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: 

SAP Query -To get MRP information

Former Member
0 Kudos

Crrently SAP query having 3 tables PBID PBIM MARC to get PIR data. I want MRP information(MRP AREA) for corresponding material and plant. PBID is another table that i want to add which contains MRP information. but on exeuting the query the data is coming inconsistent. Could you help me please ?

4 REPLIES 4

Former Member
0 Kudos

Hi,

i think that if you want read MRP data you can use this Function Module:

MD_STOCK_REQUIREMENTS_LIST_API

Best Regards

Ivan

0 Kudos

HI,

Original Query was created using SQ01 transaction and I  have to update the same .

Best Regards,

Mayank Khandelwal

former_member192971
Participant
0 Kudos

Hi ,

In PBID - you can see the fields MATNR(Material Number), WERKS(Plant) and BERID(MRP Area) and whereas MATNR,WERKS is also having in that PBIM table .

so write a query like ...

Select  BERID MATNR WERKS FROM PBID for all entries in PBIM WHERE MATNR = PBIM-MATNR AND WERKS = PBIM-WERKS.

0 Kudos

This message was moderated.