Modification in module pool program.
I am working on module pool programming.
There is a table control inside a tabstrip control.
Here whenever I change the value of quantity filed in a row, it should change the same row.
But instead of that a new row is getting added in addition of the previous row.
Please help me.
For your understandings I am putting here the screen shot of the screens. step by step.
1. first screen:
2. second screen where i changed the quantity field in second row but didn't press enter key.
3. final screen with additional row unwanted. here the second row should be modified but new row is being added.
Please help me to resolve this issue.
Thanks in advance.
make sure that PBO has the following (TBL_CTRL-current_line)
LOOP AT itab INTO wa WITH CONTROL tbl_ctrl CURSOR TBL_CTRL-current_line.
Also make sure that PAI has the following (TBL_CTRL-current_line)
LOOP AT itab.
MODULE READ_TABLE_CONTROL INPUT.
MODIFY ITAB2 FROM WA2 INDEX TBL_CTRL-CURRENT_LINE.