Input help can be programmed in selection screen using event
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FIELD and for module pools in event
PROCESS ON VALUE_REQUEST using module
call starting with FIELD
i.e FIELD field MODULE module
There ar number of function modules that can be used for the purpose, but these
can fullfill the task easily or combination of them.
This function module is used to read values in the screen fields. Use of this
FM causes forced transfer of data from screen fields to ABAP fields.
There are 3 exporting parameters
DYNAME = program name = SY-CPROG
DYNUMB = Screen number = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
and one importing TABLE parameter
DYNPFIELDS = Table of TYPE DYNPREAD
The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
to this FM and the values read from the screen will be stored in this table.This
table consists of two fields:
FIELDNAME : Used to pass the name of screen field for which the value is to
FIELDVALUE : Used to read the value of the field in the screen.
DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
LIKE LINE OF SCREEN_VALUES.
SCREEN_VALUE-FIELDNAME = 'KUNNR' .
* Field to be read
APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
CALL FUNCTION 'DYNP_VALUES_READ'
READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table
to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.