Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Modification in module pool program.

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

Former Member
Former Member replied

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.                


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question