This website is not affiliated with, sponsored by, or approved by SAP AG.

Function MD_STOCK_REQUIREMENTS_LIST_API for all Plant

Logistics : PP

Moderators: thx4allthefish, Snowy, Ha Tran

Function MD_STOCK_REQUIREMENTS_LIST_API for all Plant

Postby Flare » Tue Sep 06, 2011 5:23 pm

Is there a way to run function MD_STOCK_REQUIREMENTS_LIST_API with just exporting the plant and not a specific material? I tried testing it in SE37, but it won't let me run the entire Plant, it demands a Material number.

The reason for this. I want to make a query based on MARC, then I want to create an additional field that would get a value from MD04.

I want to get the Stocks/requirements lists for all materials via this function and store it in an internal table so I can loop into it and fetch the data.

I feel that if I load the entire plant, my query would run faster. Or do you think that running the function for each material would take just as many resources as looping into an itab that had everything in it?

Flare
 
Posts: 14
Joined: Wed Jun 28, 2006 4:18 pm
Location: Arkadelphia, AR

Re: Function MD_STOCK_REQUIREMENTS_LIST_API for all Plant

Postby Sharpshooter » Wed Sep 07, 2011 3:57 am

You are going to call this function in a query?
I see short dumps in your future - probably DBIF_RSQL_INVALID_CURSOR.
Good luck!
Sharpshooter
 
Posts: 953
Joined: Wed Mar 17, 2010 12:01 pm
Location: In the dark


Return to Logistics PP

Who is online

Users browsing this forum: Google [Bot] and 4 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.