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
Differentiate between abap memory and sap memory?
What is the difference between refresh and free statements?
Difference between .Include and .append?
What is partner selection?
How do you Export a session ?
How can we create callable modules of program code within one abap/4 program? : abap modularization
What functions does a data dictionary perform ?
what is the difference between Blocked ALV and interactive ALV?
How can you display frames (horizontal and vertical lines) in lists?
What are the advantages of logical databases?
What is a badi?
How do you set up background jobs in sap? What are the steps?
Does the bdc-insert function allow multiple transactions to be processed by sap? : abap bdc
how do you transport lsmw data from one system to another?
Explain lsmw?