02-17-2009 12:58 PM
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
02-17-2009 1:07 PM
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?
02-17-2009 1:12 PM
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
02-18-2009 8:33 AM
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.
02-19-2009 4:47 AM
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