Application Development 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: 

ALV Problem

Former Member
0 Kudos

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

Former Member
0 Kudos

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?

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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