Where we use Chain and End chain?
Answer Posted / palash mazumder
IN PAI IF YOU WANT VALIDATE A GROUP OF FIELDS THEN CHAIN
ENDCHAIN BLOCK IS USED.
SYNTAX IS.
IN FLOW LOGIC
CHAIN.
FIELD NUM1.
FIELD NUM2.
MODULE USER_COMMAND_0100.
ENDCHAIN.
IN ABAP PROGRAM WRITE THE FOLLOWING CODE.
MODULE USER_COMMAND_0100 INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
IF NUM1 IS INITIAL OR NUM2 IS INITIAL .
MESSAGE e398(00) WITH 'PLEASE FILL THE FIELDS'. " Enter VALUES'
ELSE.
.....
ENDIF.
ENDIF.
ENDMODULE.
NUM1 AND NUM2 ARE INPUT FIELD NAME IN SCREEN 0100
Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
What are the different modes of processing batch input sessions? : abap bdc
Name a few data dictionary objects? : abap data dictionary
On which even we can validate the input fields in module progams?
Explain what is sequence of event triggered in report?
What does the extract statement do in extract datasets? : abap modularization
Lock objects and what are parameters of ENQUEUE FM?
In order to upload purchase order details, how you handle multiple values for a single field?
What is Group by in Select statement?
What is the use of info groups? : sap abap hr
What is an on”*-input filed” statement?
foreign key enforcement?
Can you delete data element, which is being used by table fields. : abap data dictionary
what is difference between user exit, customer exit and badi?
What is ps structure? : abap hr
What is the use of 'table index'?