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
What are domains and data element? : abap hr
Explain buffering
Module Pool Programming: Events and Table Control handling.
After running a BDC program in background, next day morning when you see the results, few records are not updated(error records). What will you do then ?
What is update task
Badi concepts
What is function group?
Explain about Recording Function?
What does an exec sql statement do in abap?
What statement will be found in an sap application program that implements a function module exit?
What is the difference between getting and get late?
What is a transport?
Events that can be used in both the classical and interactive reports
How do you read files from the presentation server ? : abap bdc
What are the ways you can do the tuning?