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

ALV Problem

Former Member
0 Likes
646

Hi,

I have a scenario here.I want to display an ALV report using FM 'REUSE_ALV_LIST_DISPLAY' to display material master records.

When the ALV is displayed Material master should be updated from the records in the ALV table.

Now i have a problem here that as soon as the ALV is displayed the material master should get updated without selecting any function code on ALV screen.

How can I go ahead with it.DO let me know...........

Regards,

SP

4 REPLIES 4
Read only

Former Member
0 Likes
602

You are reading the material data from tables, creating an internal table and then using it to create the alv. Wouldn't it be easier to manipulate the internal table and save the data to the table before creating the alv?

Read only

Former Member
0 Likes
602

Hi sandeep,

1)Call function :BAPI_MATERIAL_SAVEDATA.

2)after that create entries for the material into

the table.

3)Append the final internal table.

4)Use the reuse_alv_list_display with the status

of the material.

Regards,

Sravanthi

Read only

Former Member
0 Likes
602

Maybe you can set a short timer (class CL_GUI_TIMER) just before displaying your ALV and do the work in the callback method. Look at the report SAP_TIMER_DEMO to see a timer example.

Read only

Former Member
0 Likes
602

Hi Sandeep,

You are having the data in final internal table which you are passing to ALV Fn Mod.

With that data update the Material Master and after finishing this call ALV Fn.Module.

Now your Material Master will be updated and ALV also displayed on screen.

Hope it will work.

Regards,

Srujan