‎2008 Jan 02 4:53 PM
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.
‎2008 Jan 02 8:56 PM
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.
‎2008 Jan 02 5:30 PM
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.
‎2008 Jan 02 8:56 PM
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.