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: 

Material Master Creation

Former Member
0 Kudos

Hi all,

My requirement is to create a 5000 material in 88 warehouses 103 plants and 400 storage locations with all views.So, I am using the bapi BAPI_MATERIAL_SAVEREPLICA to create and extend the material to all plants and storage locations.

My problem is that it is taking around 75 seconds to create one material and when i try to create morethan 25 materials it is showing a dialog box that contains log could not keep in the memory queue and throwing me out of SAP.For creating one material it is giving around 2200 lines of messages in returnmessages structure .So, Please suggest me how to improve the performance reduce the number of messages and a solution for log could not keep in the memory queue.

thanking you in advance.

Regards ,

Pavan

7 REPLIES 7

Former Member
0 Kudos

Hi,

Try to schedule the program in Background mode, thru job scheduling .

Regards,

Raghav

0 Kudos

Hi Raghavendra,

Even in back ground it is not executing if the no. of materials is more than 25.

Regards,

Pavan

0 Kudos

Hi,

Try BAPI_MATERIAL_SAVEDATA.

Regards,

Raghav

0 Kudos

Hi Raghavendra,

Thanks for your answer.

BAPI_MATERIAL_SAVEDATA is used to create one material at a time but i need to create more than 5000 materials so, this will become a big performance issue.

Regards,

Pavan

0 Kudos

Hi,

You can call the BAPI <b>BAPI_MATERIAL_SAVEDATA</b> in side the loop. frist upload the file to Application server,and then get them to itab and then loop at itab call the BAPI

and try to schedule the Background job to upload the Material master.

this way you can reduce the load.

Regards

vijay

0 Kudos

Hi,

You can get the contents to the material in the internal table and use BAPI_MATERIAL_SAVEDATA in a loop. Surely this shall be very time consuming process n shall have performance issues.

Thus, the program should be run as background program and should be scheduled in night time when the load on the server is minimum.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

Former Member
0 Kudos

See if you can use BDC for transaction 'MM01'?