cancel
Showing results for 
Search instead for 
Did you mean: 

Storage Location extension with BAPI_MATERIAL_SAVEDATA

Hi,

I got some change request from my client related to inbound MATMAS Idoc, previous developers have used BAPI_MATERIAL_SAVEDATA to create and update the material master from idoc, now I got an enhancement request to update multiple storage location while creating the material which is not possible with BAPI_MATERIAL_SAVEDATA.

I can replace the BAPI_MATERIAL_SAVEDATA with BAPI_MATERIAL_SAVEREPLICA but I need to change almost everything in old code to make structure suite to BAPI_MATERIAL_SAVEREPLICA..

Is there anyway I can achieve the requirement to update multiple storage locations at a time using BAPI_MATERIAL_SAVEDATA

Thanks in advance

Udaykiran

Accepted Solutions (1)

Accepted Solutions (1)

DominikTylczyn
Active Contributor

Hello udaykburra

udaykburraNo, that is not possible. BAPI_MATERIAL_SAVEDATA accepts only one record of storage location level data, i.e. STORAGETYPEDATA and STORAGETYPEDATAX input structures. You simply cannot pass multiple storage location level records to the BAPI_MATERIAL_SAVEDATA interface.

You need to call BAPI_MATERIAL_SAVEDATA multiple times, once for each storage location.

Best regards

Dominik Tylczynski

Thanks for your reply,

I just tried this, its worked

Thanks you so much

Udaykiran

Answers (1)

Answers (1)

BijayKumarBarik
Active Contributor
0 Kudos

BDC with MMSC will service your purpose and not sure why you are trying with BAPI but wait for other experts to answer