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
Explain about interactive report?
What is a data dictionary? : sap abap data dictionary
Explain the function module in bdc?
What are the components in sap application server?
Explain buffering concept usage?
Define batch input session?
What is the purpose of at first and at last?
While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization
If A is the super class of B. And both the classes have constructor. We create an object of class B. Then which constructor will be called? If both then in which order?
Does the bdc-insert function allow multiple transactions to be processed by sap? : abap bdc
What are the screen painter and menu painter?
How can we set the tablespaces and extent sizes ?
Explain what are standard layouts sets in the sap script?
How to call a subroutine in sapscript?
What are two methods of modifying sap standard tables? : abap data dictionary