cancel
Showing results for 
Search instead for 
Did you mean: 

Logic required for MRP element with pegged elements details to Build a custom report

0 Kudos

Hello,

We are developing a custom report to display all the MD04 MRP elements in ALV layout for multiple material codes along with pegging requirements of Each element. so we used BAPI_MATERIAL_STOCK_REQ_LIST to pull the all elements from MD04 Screen and used MD_PEGGING_NODIALOG to pull the pegging details of each material code.

in ALV report, we could not make it in same row of Each MRP element with pegging details due to no unique data not available in two extraction.

So my question is,

1.what is the way to extract data same as MD04 where i should see MRP element (PO, PR, PldOrd, DepReq) in line with Pegging requirements.

2. Above BAPI not having MRP Area detail in the Results, so how do we need to bring MRP area of vendor in report.

Happy to hear logic from SAP experts on how to fulfill the requirement.

Regards,

Saravana

Dsk
Active Contributor

Greetings,

1)I have used (Long Before) the below 2 FM to generate a consolidated view

MD_STOCK_REQUIREMENTS_LIST_API

MD_PEGGING

2) The MD04 Gives all details of the MRP element and for every element we need to pass on to the Pegging FM and get the details.

3) Then collaborate the data in the internal tables and then publish in ALV

Br,

Dsk

Accepted Solutions (0)

Answers (0)