‎2008 Jun 24 1:32 PM
Hi,
I was using header part and detail part in a screen..Header part is having only 4 fields(text box)
Detail part is having table control with 5 fields..
Now how to validate using chain and endchain..
can anyone help me with sample code..
My code looks as follows
*Process Before Output
PROCESS BEFORE OUTPUT.
MODULE STATUS_3636.
MODULE MOVE_HDR_TO_SCREEN.
LOOP AT IT_DET WITH CONTROL PO_DET.
MODULE MOVE_DATA_TO_SCREEN.
ENDLOOP.
MODULE CLEAR_FIELDS.
*Procees After Input
PROCESS AFTER INPUT.
MODULE USER_COMMAND_3636.
CHAIN.
FIELD : ZINS,ZLAN,ZCU1,JCV1.
MODULE VALIDATION.
ENDCHAIN.
MODULE MOVE_HDR_FROM_SCREEN.
LOOP AT IT_DET.
CHAIN.
FIELD : EBELN,EBELP,MATNR,MENGE,NETPR.
MODULE VALIDATION_TC.
ENDCHAIN.
MODULE MOVE_DATA_FROM_SCREEN.
ENDLOOP.
‎2008 Jun 24 1:41 PM
hi,
cut and paste the module user_command after the chain and endchain. it will work fine.
Rgds.,
subash