Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table control

Former Member
0 Likes
322

hi,

In my table control i have 10 line item be default , when i save data in it .

Its saving now if i scroll and enter 2 extra line i.e 12 line item.

then it only showing 10 line item. Why.. ?

All 12 line data is avilable in inernal table. but it showing only 10 line item why.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
306

Monica,

In your PBO module, add syntax like this:

Module PBO_100.

".... your exisitng code ...

"... and then this ....

DESCRIBE TABLE your_int_table LINES Your_Table_Control_name-lines.

EndModule.

" Example if Internal table name is "TC1" and the Table Control in the Screen painter is "TableControl1"

describe table Tc1 lines TableControl1-lines.

2 REPLIES 2
Read only

Former Member
0 Likes
306

Hello Monica,

Have a look at MI_MODIFICAR_TABLA (in PAI) and MO_PREPARAR_TABLE_CONTROL (in PBO)

PROCESS AFTER INPUT.

LOOP AT G_T_MAT_CREAR.

MODULE MI_MODIFICAR_TABLA.

ENDLOOP.

MODULE MI_MODIFICAR_TABLA INPUT.

PERFORM F_MODIFICAR_TABLA.

ENDMODULE.

FORM F_MODIFICAR_TABLA .

MODIFY G_T_MAT_CREAR FROM Z37_MM_E_ROP01 INDEX G_CTRL_MAT_CREAR-CURRENT_LINE.

ENDFORM.

Z37_MM_E_ROP01 is the same WA that you should use in PBO to loop through the table control:

PROCESS BEFORE OUTPUT.

MODULE MO_PREPARAR_TABLE_CONTROL.

LOOP AT G_T_MAT_CREAR

WITH CONTROL G_CTRL_MAT_CREAR

INTO Z37_MM_E_ROP01.

...

ENDLOOP.

MODULE MO_PREPARAR_TABLE_CONTROL OUTPUT.

PERFORM F_PREPARAR_TABLE_CONTROL.

ENDMODULE.

FORM F_PREPARAR_TABLE_CONTROL .

DESCRIBE TABLE G_T_MAT_CREAR LINES G_CTRL_MAT_CREAR-LINES.

ENDFORM.

I hope it will help you.

Read only

Former Member
0 Likes
307

Monica,

In your PBO module, add syntax like this:

Module PBO_100.

".... your exisitng code ...

"... and then this ....

DESCRIBE TABLE your_int_table LINES Your_Table_Control_name-lines.

EndModule.

" Example if Internal table name is "TC1" and the Table Control in the Screen painter is "TableControl1"

describe table Tc1 lines TableControl1-lines.