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
What are the three hierarchical levels of data types and objects?
What is the difference between native sql & open sql? : abap data dictionary
What are the organizational related Infotypes
how to Create a smart form related to gate pass to be submitted to vendor’s location. This form outputs document number, date, vendors name, address, material details, quantity, unit,and the company logo.
What is update task
What work you have done in HR module
what is call back in alv?
Explain buffering
How many lists can a program can produce?
What is the difference between the function module and a normal abap/4 subroutine?
How to create a link between modified form and modified print program?
When value table becomes check table?
What is a view? : abap data dictionary
Why are insert and append statement used in sap abap?
What are the properties of selection screen?