What is the use of event AT SELECTION-SCREEN ON FIELD?

Answer Posted / ash

We can give F4 help to selection field or restrict the F4
help for specific values.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_vaplz-low.

SELECT werks arbpl ktext INTO TABLE it_vaplz FROM m_crama
CLIENT SPECIFIED
WHERE mandt = sy-
mandt
AND werks
= '4000'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = c_vaplz
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = c_so_vaplz_low
value_org = 'S'
TABLES
value_tab = it_vaplz
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV


Note --Validation is not possible with AT SELECTION-SCREEN
ON FIELD, Because it comes before entering the value in
selection screen.
AT SELECTION-SCREEN event comes in picture after entering
value in selection screen, so validation is possible only
here.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you set up a back ground job ? How to create a background job without a variant ?

824


What are the differences between se01, se09 and se10?

749


How can we use / display table in a screen?

818


What is erp? : sap abap hr

824


How to create a check box/option button in a list?

2672


What is size category?

741


What are the types of parameters in the function modules?

854


Explain the differences between at selection-screen and at selection-screen output?

747


wat is the difference between A-gate & W-gate?where are they used?

1686


What is payroll driver ? : abap hr

811


Which table stores the programs created?

796


Where can you find error log for call transaction? : abap bdc

955


What are the function modules used in a sap script driver program?

807


Work most on which module: name a few tables?

758


What function does data dictionary perform?

777