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 collective search help? : sap abap data dictionary
How to create a button in selection screen ?
when run my program in se38 it was showing output, when i take background execution and giving printer details it was shoing out put. but in SP01 when i give the Spool Request Number it was showing not yet processed entire page why it happens i dont know please give me a solution.
Tell me a scenario where did you use secondary index?
out bound process code for quotation?
How will you transfer data into a file in application server?
how to read the standard field value in your custom program.
What is luw?
visibility section for class level and attributes level
Explain what is an rfc?
How many lists can a program can produce?
What are the differences between a database index and a match code? : abap data dictionary
What is a size category?
Can you assign a matchcode object to a parameter? If so how?
How to find the return code of an stmt in abap programs?