‎2011 Mar 07 9:19 AM
Dear Experts
Now I have a requirement:Batch Create Material Master data.and I want to realize it with BAPI
I checked BAPIS with Transaction Code BAPI,and find these two BAPIS which both could used for Creating Material Master Data
1 BAPI_MATERIAL_SAVEDATA (Create and change material master data)
2 BAPI_MATERIAL_SAVEREPLICA (BAPI for Mass Maintenance of Material Data)
From the explain of the BAPI,I feel the Second BAPI_MATERIAL_SAVEREPLICA is much Better just because i will Creat lots of Material
Master data.
But when i Test it in the program ,i got lots of errors.
I could Create Material Master data with BAPI_MATERIAL_SAVEDATA .once I call the BAPI ,I create a material.
i searched some material both in the SDN and SAP Technical,find nothing valueable materials about this BAPI(Some people said the second BAPI is used for other functional usage,not create Material master record)
will Some one explan the difference between BAPI_MATERIAL_SAVEDATA & BAPI_MATERIAL_SAVEREPLICA?
and is it possible to use BAPI_MATERIAL_SAVEREPLICA for batch create Material master data?
will some one give me some Demo program to introduce BAPI_MATERIAL_SAVEREPLICA.
hope to receive your response,I am sure you advice may gave me lots of help to solve this Problem!
Best regards!
‎2011 Mar 07 9:35 AM
Hi,
if you want ot create a material with some reference use the BAPI -- BAPI_MATERIAL_SAVEREPLICA Because at a lot it will create a material for different plant s and Storage Locations.
If you want to create a material for specific plant use BAPI_MATERIAL_SAVEDATA
BAPI_MATERIAL_SAVEDATA is used to create a material for one plant , if you want to create you need to call multiple calls.
1 BAPI_MATERIAL_SAVEDATA (Create and change material master data)
2 BAPI_MATERIAL_SAVEREPLICA (BAPI for Mass Maintenance of Material Data)
D@s
‎2011 Mar 07 9:35 AM
Hi,
if you want ot create a material with some reference use the BAPI -- BAPI_MATERIAL_SAVEREPLICA Because at a lot it will create a material for different plant s and Storage Locations.
If you want to create a material for specific plant use BAPI_MATERIAL_SAVEDATA
BAPI_MATERIAL_SAVEDATA is used to create a material for one plant , if you want to create you need to call multiple calls.
1 BAPI_MATERIAL_SAVEDATA (Create and change material master data)
2 BAPI_MATERIAL_SAVEREPLICA (BAPI for Mass Maintenance of Material Data)
D@s
‎2011 Mar 08 12:58 PM
Hello PrabhuD
Thank for your reply.
But i still have some issues.
will you explan the usage of BAPI BAPI_MATERIAL_SAVEREPLICA with more words?
If i want to create a Material at plant plant1 storagelocation1,I could use BAPI BAPI_MATERIAL_SAVEDATA.
if I want to create a Material at plant plant1 storagelocation2 and
plant plant2 storagelocation2 and
plant plant2 storagelocation 3 ,I should use BAPI BAPI_MATERIAL_SAVEREPLICA to create these dat
only with One call .
then is it possible if I Use BAPI BAPI_MATERIAL_SAVEDATA 3 times to create the Material (one call for plant1 storagelocation1
the other call for plant2 storagelocation2 .and the third call for palnt2 storagelocation3)
Is this Correct? Hope to receive your advices!
and will you gave me some Demo of BAPI:BAPI_MATERIAL_SAVEREPLICA
Best regards!
from Carl