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

Modify stmt in module pool pgm

Former Member
0 Likes
627

Hi,

I have created a Table control with push buttons modify and insert. The records displayed in the table control is from different tables. For example from mara, mard,makt. I have declared a internal table say itab for the fields from these tables.

Now suggest me how to write code in modify pushbutton as well as insert push button, so that the updation will be reflected in these tables.

Thanx in advance.

Arun.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

Hello,

Since u r modify the material u can use tha BAPI_MATERIAL_SAVEDATA.

Write it in the PAI event of the screen

5 REPLIES 5
Read only

anversha_s
Active Contributor
0 Likes
594

hi,

for examples on table control

demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at

RSDEMO_TABLE_CONTROL

Rgds

Anver

Read only

Former Member
0 Likes
594

Hi anversha,

I have already checked those programs, but i couldn't find the solution.

Since three tables r involved in that table control, i am little bit confused.

I need to write code for that modify push button.

Arun.

Read only

Former Member
0 Likes
594

Hi ,

Try like this .

READ TABLE ITAB INDEX TC1-CURRENT_LINE .

Now u will get the values in the ITAB of that corresponding row .

Now u can able to modify or insert the tables as ur wish .

Hope it is helpful for u .

Regards ,

Senthil

Read only

Former Member
0 Likes
594

PAI

case sy-ucomm.

when 'insert'.

move-corresponding it_dest to itab_mara.

move-corresponding it_dest to itab_mard.

move-corresponding it_dest to itab_makt.

insert into mara values itab_mara.

insert into mara values itab_mard.

insert into mara values itab_makt.

endcase.

Hope it helps.

Cheers.

Read only

Former Member
0 Likes
595

Hello,

Since u r modify the material u can use tha BAPI_MATERIAL_SAVEDATA.

Write it in the PAI event of the screen