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


Please Help Members By Posting Answers For Below Questions

What is native sql?

606


What is locking ?

605


What is is a match code? : abap data dictionary

685


How can we determine a vendor is Bloc/Unblock from the table LFA1?

1660


Explain the difference between float and packed data type?

761






What is the difference between sy-tabix and sy-index? Where it is used?

757


What is its? : abap hr

628


What are the two ways for restricting the value range for a domain? : abap data dictionary

534


Select query optimisation

900


Control Break statements- At new...endat.

903


State the system field for the current date?

635


In the `select' statement what is group by ?

1521


How can we upload a text file having delimiters in to legacy system? : abap bdc

615


What is full form of bdc session? : abap bdc

678


What are the advantages of abap query tool?

544