06-21-2017 3:55 PM
Hi Expert,
I need a help on insert row between two rows of table control.
I am facing problem, while inserting a row between two rows, last row getting disappear from table control.
Thanks!
06-22-2017 6:40 AM
Did you maintain the number of lines in the table control in the PBO (or after each statement like INSERT or DELETE on the displayed internal table that may change its value)
DESCRIBE TABLE my_itab LINES my_tableview-lines.
06-21-2017 4:11 PM
Insert the row into your internal table. Handle teh table control using the table control wizard.
06-21-2017 9:43 PM
Could you explain more, there are many possibilities! Maybe you think the last line has disappeared because you did only look at the dynpro statement "LOOP AT" in the PBO or PAI. It's normal that the loop is limited to only the lines displayed.
06-22-2017 6:40 AM
Did you maintain the number of lines in the table control in the PBO (or after each statement like INSERT or DELETE on the displayed internal table that may change its value)
DESCRIBE TABLE my_itab LINES my_tableview-lines.
06-22-2017 8:10 AM
Wouldn't this be handled by the table control wizard ?
06-22-2017 10:44 AM
It should be, but OP may have changed/commented some code or not used the wizard, or forgotten to check the 'Scroll' or 'insert/delete line' boxes during its execution, etc.
06-22-2017 1:23 PM
06-22-2017 8:00 AM
Thanks a lot for answering my query.
It has been resolved. I was not dynamically increasing the table control lines based on my row insert.
06-22-2017 1:23 PM
As far as I am aware you can't dynamically increase the size of a table control.