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
Hi my dear friends,Please give the answers for the following link http://www.saptechnical.com/InterviewQ/interviewQ.htm
What is payroll driver ? : abap hr
ALV Report that will show the details of order like order no, order date, customer, product code & description, order quantity and value along with the details of dispatch of those orders like invoice no, invoice date, invoice quantity and pending order quantity. plz mention the detail coding Tahnks, Rahul
Explain the advantages of different types of bdc's?
What are the techniques involved in using sap supplied programs?
What are the other modules integrated with om? : sap abap hr
pls if any one have idea ,reply as soon as possible 1.Allied solution group inc. is a genuine company or not ? 2.what is update module. 3.Transaction: scc3 what it is?
What are the two ways for restricting the value range for a domain? : abap data dictionary
What does the insert statement in extract datasets do?
Why is pretty printer user in abap?
In a loop of an internal table, what is the use of at first & at last statements?
What two statements are required in an abap program to output an icon using a write statement?
What abap statement will trigger list generation?
What are pooled tables? : abap data dictionary
What is sap script? Describe its components.