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 module pool

Former Member
0 Likes
284

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

1 ACCEPTED SOLUTION
Read only

former_member195383
Active Contributor
0 Likes
262

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..

1 REPLY 1
Read only

former_member195383
Active Contributor
0 Likes
263

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..