05-12-2008 2:59 AM
Hi ABAP Guru's
I want to create a report which lists the stock and requirement for each material of a plant. Like MD04 in ABAP report style.
Can any one suggest or tell me how can i create this report.? I'll be very thankful for every suggestion.
Thanks and Regards,
Kittisak.
05-12-2008 3:08 AM
Hi,
Go to Tcode--->MMBESpecify the required data with movement type561---Press enteryou can view the avialable stock--. You can also check the report how it is written and customize it in another Z report.
To Post more stock you can use -
Tcode-----MB1C
Reward points if it helped you.
Rgds,
Abhishek
05-12-2008 3:11 AM
Hi
Check this FM, it is related to display MD04 details:
MD_STOCK_REQUIREMENTS_LIST_API
LOOP AT g_t_bomexp INTO g_r_bomexp.
CLEAR:g_t_mdezx[].
Attaching just a piece of code..
CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
EXPORTING
plscn = l_f_plscn
matnr = g_r_bomexp-matcom
werks = g_r_bomexp-werks
ergbz = l_f_ergbz
afibz = l_f_afibz
inper = l_f_inper
TABLES
mdezx = g_t_mdezx.
Also look for FM related to BOM Explosion:
eg
CS_BOM_EXPLOSION
Hope it helps.
Praveen
05-12-2008 3:14 AM
if you want exactly the same report.. copy the program of MD04 into a Z program and do what changes u need to do...