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
How do you backup Sapscript layout sets? Can you download and upload? How?
HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?
What are the two ways for restricting the value range for a domain? : sap abap data dictionary
What is the function of the transport system and workbench organiser?
Double click function on the lists, identifying the line selected by the user on the list?
How to debug a script in abap?
Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc
Suppose there is a secondary index on 4 non-key fields A,B,C & D. There are 3 select queries :- a) one on basis of A, B, C , D b) Second on basis of A, B, C c) Third on basis of D, C,B, A In which all situations , the above secondary index will be used?
What are the two different ways of building a match code object? : abap data dictionary
Explain the client concept of sap.
How to use messages in lists?
What is the use of 'for all entries'?
what is the t-code to link technical and functional operation?
What is the advantage of structures?
Describe data classes? : abap hr