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: 

BAPI for MB52 and MMSC

hossain_rajib55
Participant
0 Kudos
269

Hi !!!

I needBAPI to fetch stock report  storage location wise data for MB52 t-code. Right now i am using ''BAPI_MATERIAL_STOCK_REQ_LIST'' single material wise where not given storage location wise.

In MB52 we can get data as per our desired search data. Can you please suggest me any BAPI to get stock data as per storage location.

Using  MMSC t-code we can add material & plant based storage location. I need BAPI which is used to add new storage location based on data. Its a retail based business so need to use third party app to change data through API.

Please guided me - Rajib

Rajib

4 REPLIES 4

NTeunckens
Active Contributor
223

Are you on a recent SAP-System (S/4)? If so, you should look into CDS / APIs like "API_MATERIAL_STOCK_SRV" instead of BAPIs ...
For instance, you could check the OData-service "MMIM_MULTIPLE_MATERIAL_SRV" behind the "F1595"-App, which is similar to "MB52". I don't think there are released objects like BAPIs to match "MB52".

A BAPI for "MMSC" would be "BAPI_MATERIAL_SAVEDATA".
Another Approach would be to use "LSMW" or Trx. "MMSC_MASS".

Hope this helps

Nic T.

 

0 Kudos
183

@NTeunckens  Yes i am on s/4 system. Thanks for your response. I tried BAPI_MATERIAL_SAVEDATA this one but its not give the actual result and this one is not for retail function.

hossain_rajib55_0-1736918230225.png

hossain_rajib55_1-1736918345233.png

hossain_rajib55_2-1736918371741.png

hossain_rajib55_3-1736918383524.png

hossain_rajib55_4-1736918457156.png

Please share your opinion.

167

Hello Rajib

I'm not familiar with IS-R.
Please investigate which BAPI is provided to enable an update to Retail-Material Master Storagelocation...
A quick Google-search mentions "BAPI_MATERIAL_MAINTAINDATA_RT" as an alternative (it contains "STORAGELOCATIONDATA" / "STORAGELOCATIONDATAX" tables) ...

Kind regards

Nic T.

0 Kudos
136

@NTeunckens  Thanks .. its work..