‎2007 Jun 21 10:32 AM
Hello Friends,
i am facing a strange problem. I have created a table control using table control wizard. when I enter the values in table control select the entry and press okey button everything works fine. then I gave the program to user for test, and he came back with following issue:
He entred the data in the table control, and then he press the enter button. then he went to the last column and change the value, press again enter button, the value overwrite again ( which he has entered before ).
I went in debug mode to see what is going on, and surpringly while entring the value in the last column I press enter the control did not went to my module "Z_TAB_CTRL_modify input." rather it went in user_command. module.... and that's why it did not updated the value after user change in last column....
Any idea what I can do to fix this issue...
Regards,
‎2007 Jun 21 10:53 AM
‎2007 Jun 21 10:59 AM
HI
U should show us your PAI, perhaps are you using CHAIN/ENDCHAIN statament?
Max
‎2007 Jun 21 11:00 AM
Hi,
Check whether you have given the last coloumn field in Chain Endchain block of the Loop in PAI.The module "Z_TAB_CTRL_modify input" should have an extension ON CHAIN-REQUEST.
Check out hte following eg.
LOOP AT it_t001l.
CHAIN.
FIELD x_t001l-lgobe.
FIELD x_t001l-spart.
FIELD x_t001l-xlong.
FIELD x_t001l-xbufx.
FIELD x_t001l-diskz.
FIELD x_t001l-xblgo.
FIELD x_t001l-xress.
MODULE tc_modify ON CHAIN-REQUEST.
ENDCHAIN.
FIELD: x_t001l-sel
MODULE tc_mark ON REQUEST.
ENDLOOP.
‎2007 Jun 21 12:09 PM
Hi Vigneswaran,
Yes you are right, and now I have added the last colum in chain and it works fine...
can you pls let me know what is the purpose of field-chain stuff ?
Regards,
‎2007 Jun 21 12:19 PM
Hi,
CHAIN.
...
ENDCHAIN.
Effect
The statements CHAIN and ENDCHAIN of the dynpro flow logic define processing chains. Between CHAIN and ENDCHAIN, the statements FIELD and MODULE can be executed. The statements between CHAIN and ENDCHAIN form a processing chain. Processing chains cannot be nested. The CHAIN statement can be specified in the event blocks at PAI and PBO , however, in the event block at PBO it has no effect.
<b>A processing chain allows the joint processing of all the screen fields stated between CHAIN and ENDCHAIN after FIELD statements:</b>
The contents of all screen fields combined to a processing chain by the FIELD statements can be checked in the shared conditions ON CHAIN-INPUT and ON CHAIN-REQUEST of the MODULE statement.
‎2007 Jun 21 12:25 PM