hi,
i have created a ztable in se11.
i have a field called zid.
now on my selection screen i want a f4 help for p_zid (parameter) field displaying the values which are present in the ztable for the zid field.
for that i ve to create f4 help in the ztable for the available values.
how can i get those?
thanls in advance.
hi Sneha,
in SE11 you have to maintain the search help for the field you created. Then it will appear automatically, if you place this field as parameter (or select option) on a selection screen.
PARAMETER : p_zid TYPE ztable-zid.
if it does not work you can add:
PARAMETER : p_zid TYPE ztable-zid MATCHCODE OBJECT name_of_the_search_help.
hope this helps
ec
Try this code...
TABLES : ztab. TYPES: BEGIN OF itab, zid TYPE ztab-zid, END OF itab. DATA: itab TYPE STANDARD TABLE OF itab WITH HEADER LINE. PARAMETERS: p_zid TYPE ztab-zid. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_zid. SELECT zid FROM ztab INTO TABLE itab. SORT itab. DELETE ADJACENT DUPLICATES FROM itab. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'ZID' dynpprog = sy-repid dynpnr = sy-dynnr dynprofield = 'P_ZID' value_org = 'S' TABLES value_tab = itab. IF sy-subrc <> 0. "some message ENDIF.
What you asked for, may look like
1-Create the search help
Give the field zid as import/export parameter
Add a text field not as parameter but as a displayed field
2-In the PARAMETERS instruction use the clause MATCHCODE OBJECT
Other ways to perform it
- In your Z-table define zid as a foreign key on himself
- In the domain definition of zid give the ztable as a table of value
- Create the search help and add it to data-element definition
- Use function modules like F4IF_INT_TABLE_VALUE_REQUEST in an AT SELECTION-SCREEN ON VALUE REQUEST event.
Regards
Add a comment