Where we use Chain and End chain?
Answer Posted / sapna
Chain and End chain
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
Regards,
SAPNA
Is This Answer Correct ? | 40 Yes | 1 No |
Post New Answer View All Answers
What is native sql?
What is locking ?
What is is a match code? : abap data dictionary
How can we determine a vendor is Bloc/Unblock from the table LFA1?
Explain the difference between float and packed data type?
What is the difference between sy-tabix and sy-index? Where it is used?
What is its? : abap hr
What are the two ways for restricting the value range for a domain? : abap data dictionary
Select query optimisation
Control Break statements- At new...endat.
State the system field for the current date?
In the `select' statement what is group by ?
How can we upload a text file having delimiters in to legacy system? : abap bdc
What is full form of bdc session? : abap bdc
What are the advantages of abap query tool?