Where we use Chain and End chain?
Answers were Sorted based on User's Feedback
Answer / sapna
Chain and End chain
In PAI if you want to validate group of fields put in
chain and End chain statement .
You can declare fields in the chain enchain .
CHAIN.
FIELD chk_ABC.
FIELD chk_DEF.
FIELD chk_GHI.
FIELD CHK-JKL.
MODULE CHK_screenfields.
ENDCHAIN.
MODULE CHK_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
IF chk_ABC IS INITIAL AND chk_DEF IS INITIAL AND CHK_GHI
IS INITIAL .
MESSAGE e000(zo_spa) WITH text-017. " Enter VALUES'
ELSE.
.....
ENDIF.
ENDIF.
ENDMODULE. " modify_screenfields INPUT
Regards,
SAPNA
Is This Answer Correct ? | 40 Yes | 1 No |
Answer / 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 |
what is meant by idoc filtering?
Difference between SY-CPROG and SY-REPID? Plz give me the answer,its urgent!
What is an index ? Types of index and there uses ?
Kindly help me to Know the process of mapping in EDI from R/3 to a convertor(third party which translates IDoc flatfile to EDIFACT /XML / FTP /HTTP ) ?
What are internal tables?
Whom you report if you face difficulty in understanding the business process given in Functional Spec.
What does a lock object involve?
What is ABAP query?
What is BDC Recording?
Types of updating in call tr?
what is RFC?types of RFCs?please any one can give me the interfaces in sap abap with example?
what is the difference between with initialization and with out initialization?