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

What does the extract statement do in extract datasets? : abap modularization

555


Explain what is sap script? What is the purpose of sap script?

622


What are standard layouts sets in the sap script?

546


What is meant by read lock? : sap abap data dictionary

559


What are conditional chain statement?

745






What is an rdbms?

579


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

636


Explain the difference between a pool table and a transparent table and how they are stored at the database level?

549


What is the abap program name to process the batch input session automatically? : abap bdc

645


How to use messages in lists?

600


Differentiate between transparent tables, cluster tables and pooled tables

561


Why is pretty printer user in abap?

633


Does the call transaction method allow multiple transactions to be processed by sap?

555


Explain the difference between a dialog program and a report?

546


What are the objects of the abap dictionary or what types of objects can be created in the abap dictionary? : abap data dictionary

533