What is the use of CHAIN and ENDCHAIN statement?
Answer Posted / saurabh shrivastava
If the validation has to be done for more than one field the
those fields are included between chanin and endchain.
Ex
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
| Is This Answer Correct ? | 26 Yes | 2 No |
Post New Answer View All Answers
1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?
What is tcode se16?
How to create a button in selection screen ?
What is the table buffer?
performance tuning concepts
when do you need to create an internal table with header line ? and with out a header line?
What do you mean by batch data communications programming?
Where are you used type casting?
What are the different types of sapscript symbols?
What is a table attribute? : abap data dictionary
What are the basic objects of the data dictionary? : abap data dictionary
Fallback class
WHAT ARE THE MANDATORY FIELDS TO BE FILLED FROM TABLES BAPIITEMIN, BAPIPARTNR, BAPIITEMEX, BAPICUCFG, BAPICUINS, BAPICUPRT, AND BAPICUVAL IN BAPI 'BAPI_QUOTATION_CREATEFROMDATA
What is view? Different types of view. Explain?
What are the other modules integrated with om? : sap abap hr