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
Why do we use Abstract classes give an example from your project?
what is mean be On Change of in Control Break statement
What are the differences between a database index and a match code? : abap data dictionary
how to Create a smart form related to gate pass to be submitted to vendor’s location. This form outputs document number, date, vendors name, address, material details, quantity, unit,and the company logo.
What is sap locking?
8)when u create sales report what u can see in that report ? what rthose field names or data element names? 9)when u create purchase order details report what u can see in that report ?what rthose fieldnames or dataelements? 10)when u create material stock report in material master grouped by material type and plant what u can see in report ?what rthose field names or dataelement ? 11)when u create shipping forecast report what u can see in that report ?what rthose data elements or field names?
How do you get the number of lines in an internal table? How to use a specific number occurs statement?
What happens Update command is used without where clause ?
What is the difference between Check and Continue?
Which type of tables used this buffer?
What are the types of the software component being deployed in the sap?
How memory management happens for internal tables and work areas in abap?
What is the relationship existing between the various data elements in data dictionary? : abap data dictionary
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
What are smart forms?