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

MRP Exception Message Number

Former Member
0 Likes
1,129

I need to write an ABAP report which uses the details on the MD04 Stock Requirements List detail screen for those items which have an Exception Message number (10, 20,30 etc..). The screen shows this data is held in a structure called MDEZ. I have tried performance tracing and ABAP debugging but can't find the actual database table where this data is held.(I'm a newbie).

Can anyone help with the relevant table name or appropriate function module?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
821

Try BAPI_MATERIAL_STOCK_REQ_LIST

or

MD_STOCK_REQUIREMENTS_LIST_API

Regards,

Ravi

3 REPLIES 3
Read only

Former Member
0 Likes
821

Check form AUFBEREITUNG_ANZEIGE in main program SAPMM61R, include MM61RF40 in particular - forms aufbauen_mdpsx & mdezx_aufbauen.

They use 2 FMs to retrieve data, but these FMs require proper values to be passed in... so check all code in the form AUFBEREITUNG_ANZEIGE.

As an option - you may try to call this form like

perform AUFBEREITUNG_ANZEIGE(SAPMM61R). and then use field symbol, to access MDEZX.

assign ('(SAPMM61R)MDEZX[]') to <fs_mdezx>.

I hope this helps.

Read only

Former Member
0 Likes
822

Try BAPI_MATERIAL_STOCK_REQ_LIST

or

MD_STOCK_REQUIREMENTS_LIST_API

Regards,

Ravi

Read only

Former Member
0 Likes
821

So, what is the table name? Does it exist? I'm trying to do a SQ01 query to pick up the exceptions on the MD04 screen, but all I can trace back to is the MDEZ structure.