02-18-2008 12:14 PM
Hi,
can any one plz tell me what the field statement do in module pool in detail and also abt chain..endchain.
and plz send me full material on dialog programing
regards
vikram
06-25-2008 5:52 AM
The field statement is used to retrieve values of selection screen into field variables.We can also perform validation checks on the retrieved value.
FIELD xxx MODULE abc ON INPUT.
FIELD xxx MODULE... ON CHAIN-INPUT
FIELD xxx MODULE abc... ON REQUEST
FIELD xxx MODULE abc... ON CHAIN-REQUEST
Chain-endchain is used to group fields together and then perform some kind of processing .Fields that you address in the chain can be processed together using the ON CHAIN-EXIT or ON CHAIN-REQUEST additions.
check for further details in ABAP documentation under ABAP user dialogs.
Thanks and Regards,
Sinu.
06-25-2008 11:52 AM
hi...
field statement is used in PAI of module pool program and it is mainly used for th purpose of validation....
You can validate the data which user nters in PAI
for a particular field or a group of fields in CHAIN ENDCHAIN.
FIELD WCONCOST-QUANTITY MODULE CHK_QUAN_INPUT.
FIELD WCONCOST-UNITPRICE MODULE CHK_UNITPRICE.
FIELD WCONCOST-UOM MODULE CHK_UOM.
FIELD WCONCOST-WORKCNTR MODULE CHK_WORKCNTR.
ITS SOMETHING LIKE THIS..
06-25-2008 12:23 PM
hii,
field statements are used to club together some fields on the selection screen.
they are in between the chain - end chain block. always remember that we cannot nest the chain - end chain, the fields used here are useing
1. on change request - if we change any values on the screen of the fields specified in the field statements.
2. on value request - this will work on the default values which appear on the screen for those fields.
if we change any of these values then we have to specify the correct values in those fields to come out of the chain - end chain block.. otherwise it will give the initial screen again and again.
these field statements are abap statements not screen logic statements.. so we have to write them in methods...
if you need a simple example with coding then revert back..
reward if helpful..
thanks...