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 the properties of selection screen?
What are the different abap/4 editors?
How to create user interfaces for lists?
What is the tcode for sapscript forms?
What is the purpose of creating symbolic a/c, what is transaction code for same? Can we assign one symbolic a/c to multiple wage types? : sap abap hr
What are the difference between tables and structures?
What are the types of parameters in the function modules?
What are indexes? : sap abap data dictionary
Difference between Read and Get cursor?
What are field symbols?
I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management
how to use the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.
How to select valid lines for secondary list?
What are indexes? : abap hr
Can a domain, assigned to a data element be changed? : abap data dictionary