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


Please Help Members By Posting Answers For Below Questions

What are the different modes of processing batch input sessions? : abap bdc

664


Name a few data dictionary objects? : abap data dictionary

693


On which even we can validate the input fields in module progams?

590


Explain what is sequence of event triggered in report?

564


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

571






Lock objects and what are parameters of ENQUEUE FM?

1259


In order to upload purchase order details, how you handle multiple values for a single field?

573


What is Group by in Select statement?

661


What is the use of info groups? : sap abap hr

566


What is an on”*-input filed” statement?

612


foreign key enforcement?

1634


Can you delete data element, which is being used by table fields. : abap data dictionary

672


what is difference between user exit, customer exit and badi?

4105


What is ps structure? : abap hr

807


What is the use of 'table index'?

636