04-11-2015 10:33 AM
Hi Experts,
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.
-Sanjeev
04-11-2015 11:16 AM
hi sanjeev,
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.
MODULE DISPLAY_DETAIL_RECORDS.
ENDLOOP.
Also make sure that PAI has the following (TBL_CTRL-current_line)
LOOP AT itab.
MODULE read_table_control.
ENDLOOP.
MODULE READ_TABLE_CONTROL INPUT.
MODIFY ITAB2 FROM WA2 INDEX TBL_CTRL-CURRENT_LINE.
ENDMODULE.
04-11-2015 10:35 AM
04-11-2015 10:55 AM
Please debug the code,
Instead of modifying the table is getting inserted.
Please check the loop endloop in your screen PAI.
04-11-2015 11:16 AM
hi sanjeev,
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.
MODULE DISPLAY_DETAIL_RECORDS.
ENDLOOP.
Also make sure that PAI has the following (TBL_CTRL-current_line)
LOOP AT itab.
MODULE read_table_control.
ENDLOOP.
MODULE READ_TABLE_CONTROL INPUT.
MODIFY ITAB2 FROM WA2 INDEX TBL_CTRL-CURRENT_LINE.
ENDMODULE.
04-11-2015 1:25 PM
Hi Abdul Bhai,
Thanks your logic worked bro...
Thanks a lot.
Thanks to other helping persons too.