‎2008 Jul 03 5:47 AM
Hi! Abapers ,
Now here is a table control as below:
-
head1 | head2 | head3
-
A1 | A2 | A3
-
10-A1 | 12-A2 | 14-A3
-
Here in this table control values the first row A1 , A2 , A3 are
manualy entered by users .
The second row should be calculated automatically as
10-A1, 12-A2, 14-A3 and diplayed in the table control once users press save button or enter key .
can anyone help me out.
thanks
Amit
‎2008 Jul 03 6:00 AM
hi...suppose u r using a table itab for ur table control...
Then in PAI first populate the table with A1, A2 and A3.
LOOP AT ITAB.
CHAIN.
field itab-field1.
field itab-field2.
field itab-field3.
MODULE m_fill.
ENDCHAIN.
ENDLOOP.
:
:
module m_fill.
INSERT itab INDEX tc_contrl-current_line.
concatenate '10-' itab-field1 into wa_itab-field1.
concatenate '12-' itab-field2 into wa_itab-field2.
concatenate '14-' itab-field3 into wa_itab-field3.
append wa_itab to itab.
endmodule.
here tc_contrl is name of the table controll u are using...
hope it helps...reward points if helpful..
‎2008 Jul 03 6:00 AM
hi...suppose u r using a table itab for ur table control...
Then in PAI first populate the table with A1, A2 and A3.
LOOP AT ITAB.
CHAIN.
field itab-field1.
field itab-field2.
field itab-field3.
MODULE m_fill.
ENDCHAIN.
ENDLOOP.
:
:
module m_fill.
INSERT itab INDEX tc_contrl-current_line.
concatenate '10-' itab-field1 into wa_itab-field1.
concatenate '12-' itab-field2 into wa_itab-field2.
concatenate '14-' itab-field3 into wa_itab-field3.
append wa_itab to itab.
endmodule.
here tc_contrl is name of the table controll u are using...
hope it helps...reward points if helpful..