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 to copy a material to other plant

Former Member
0 Kudos
1,131

Hi Forum,

I need to copy a material from the plant(werks) 2000 to the plant 2300, but i need to use the same material number, wich BAPI can copy this material?

Thanks in advance,

John P.

6 REPLIES 6

Former Member
0 Kudos
318

Hi John,

Use the BAPI BAPI_MATERIAL_SAVEDATA, but pass the material number in the HEADDATA as well as providing the new PLANTDATA.

If you supply the material number, it will extend the material, rather than creating a new one.

Cheers,

Brad

0 Kudos
318

Iam trying to copy a material from one sales area to other sales area and iam passing new sales area data to bapi_material_savedata iam getting following error.

Material already exists please propose new material code can u just help me out in this and also just tell me what r all the mandatory fields that i have pass

0 Kudos
318

You should use the function module MATERIAL_MAINTAIN_DARK instead of the BAPI it is well documented (in direct system documentation) and can do everything MM01/MM02 can.

0 Kudos
318

Hi Sergei,

where can we find documentation about the

'MATERIAL_MAINTAIN_DARK' function?

/Thanks

Theo

0 Kudos
318

Hi ,

fm is documented :

-> SE37 -> Ctrl+F4 (function module documentation)

Andreas

0 Kudos
318

Thanks Andreas!!