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 are authorization objects and what statement is used to perform an authorization check in an abap program?
How move-corresponding works
What is the tcode to create indexes?
any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?
What are the differences between a database index and a match code?
What is netweaver???what is the relationship with ABAP?
What happens Update command is used without where clause ?
what is defference between repository and non repository Object?
How do you differentiate tax for different countries? : sap abap hr
What are the different methods of passing data? : abap modularization
What is partner selection?
SAP Script for Billing in which Billing document number was displayed as header, Bill Type, Bill Category, Bill Item, Cost, Base Unit of Measurement and Material number were categorically displayed for each billing document number. plz mention the detail coding Tahnks, Rahul
What is the difference between data elements and domains? : abap data dictionary
What is the last entry in all bdc tables? : abap bdc
What is the first thing you do after vendor setup is complete?