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 does the extract statement do in extract datasets? : abap modularization
Explain what is sap script? What is the purpose of sap script?
What are standard layouts sets in the sap script?
What is meant by read lock? : sap abap data dictionary
What are conditional chain statement?
What is an rdbms?
There is 1 person but it’s displaying that this person cannot be booked. He is not available for the business event. Can you tell me where is it going wrong? What can be the reasons? : sap abap hr
Explain the difference between a pool table and a transparent table and how they are stored at the database level?
What is the abap program name to process the batch input session automatically? : abap bdc
How to use messages in lists?
Differentiate between transparent tables, cluster tables and pooled tables
Why is pretty printer user in abap?
Does the call transaction method allow multiple transactions to be processed by sap?
Explain the difference between a dialog program and a report?
What are the objects of the abap dictionary or what types of objects can be created in the abap dictionary? : abap data dictionary