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 is projection view?
If I want to execute a bdc program only in background not in foreground is there any option for this? : abap bdc
What are logical databases? What are the advantages of logical databases?
What are the modes in which any update tasks work?
Can a filed occur in several field groups?
What is the difference between field-group header and other field groups? : abap modularization
How to select valid lines for secondary list?
where do we store all custom programs in SD module?
Which bdc you prefer? : abap bdc
How to handle error in session method? : abap bdc
Explain the concept of clusters in payroll
What are null values? : abap data dictionary
What are the different methods of bdc? : abap bdc
Mention the various databases integrities?
Write syntax for message error (report)?