Search Help Exit
Search Help Exit
3.SHLP_TAB : Table for elementary search help.(It is for collective search help which stores all
elementary search help)
CALL_CONTROL STEPS
1.SELONE - It is applicable for collective search help, it is used to select elementary search help from
collective search help.
Ex: In case of dialog with value restriction, we will get a dialog pop-up to select the condition. This is
called PRESEL.
But in case of Display values immediately, there will be no PRESEL because their is no dialog restriction
pop up
Ex: We have entered some value in dialog with value restriction ,based on that system will select only
related data.
***********************************************************************
1) in collective search help we have 4 elementary search helps and user wants to display 2 elementary
search helps how to restrict the elementary search helps by using search help exit ?
CREATED COLLECTIVE SEARCH HELP WITH 4 ELEMENTARY SEARCH HELP
ELEMENTARY SEARCH HELP where user want to display records based on condition
Ex: Based on ORDER STATUS user want to display the order id. So the order status which has
values of ‘Deliverd ’ and ‘Pending ’ should be displayed.
******************************************
If we want to restrict the dialog box in case of dialogue with value restriction we use
Callcontrol-step = 'SELECT' ,this will skip that pop-up and directly gives the values directly.
3) if we have one record in f4 help it should automatically populate the record.
For the same search help condition above here we are giving condition so that user get values
automatically populated on screen if hit list contains single record.
This is possible by CALLCONTROL_STEP = ‘DISP’
After selection condition (PRESEL) we need to check the no.of records in RECORD_TAB and
if it contains single row then make CALLCONTROL_STEP = ‘RETURN’.
data: lv_lines type i .
IF callcontrol-step = 'PRESEL'.
lv_wa-shlpname = 'ZCH_ESH4_ORDER'.
lv_wa-shlpfield = 'ORDER_STATUS'.
lv_wa-sign = 'I'.
lv_wa-option = 'EQ'.
lv_wa-low = 'DELIVERED'.
shlp-selopt = lv_itab.
* CALLCONTROL-STEP = 'SELECT'.
ENDIF.
endif.
ENDIF.