SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Задать ограничения для Search-Help PREMK



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Garik
Специалист
Специалист



Joined: 11 Oct 2007
Posts: 60

PostPosted: Fri Feb 29, 2008 2:03 pm    Post subject: Задать ограничения для Search-Help PREMK Reply with quote

Еще один вопрос. На экране несколько параметров

Code:
SELECT-OPTIONS: so_bukrs FOR lfb1-bukrs.
PARAMETERS p_pernr TYPE pa0001-pernr.


Для вывода search-help 'PREMK' использую

Code:
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname           = 'PA0001'
      fieldname         = 'PERNR'
      SEARCHHELP        = 'PREMK'
      dynpprog          = sy-cprog
      dynpnr            = '1000'
      dynprofield       = 'P_PERNR'
    TABLES
      return_tab        = lt_return_tab
    EXCEPTIONS
      field_not_found   = 1
      no_help_for_field = 2
      inconsistent_help = 3
      no_values_found   = 4
      OTHERS            = 5.


Как сделать, чтобы выводимый SH сразу ограничивал выдачу по Company Code?
Back to top
View user's profile Send private message
John Doe
Модератор
Модератор


Age: 46
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Fri Feb 29, 2008 2:20 pm    Post subject: Reply with quote

1. Скопируйте СП PREMK в собственное ZPREMK.
2. В параметре СП BUKRS поставьте "Значение по умолчанию" - BUK.
3. Перед вызовом F4IF_FIELD_VALUE_REQUEST сделайте
Code:
SET PARAMETER ID 'BUK' FIELD your_company_code.

4. Замените в вызове название СП на новое.
Back to top
View user's profile Send private message Blog
Garik
Специалист
Специалист



Joined: 11 Oct 2007
Posts: 60

PostPosted: Fri Feb 29, 2008 5:06 pm    Post subject: Reply with quote

Спасибо, John Doe. Значит только созданием своего SH.
Думал, может какой хитрый параметр есть у функции F4IF_FIELD_VALUE_REQUEST, чтобы задать начальные значения.
Back to top
View user's profile Send private message
John Doe
Модератор
Модератор


Age: 46
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Fri Feb 29, 2008 5:10 pm    Post subject: Reply with quote

Я точно не знаю, может быть и есть. Просто предложил один из "быстрых" вариантов (когда нет времени разбираться).
Back to top
View user's profile Send private message Blog
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.