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 or FM to copy Material (MM01)?

Former Member
0 Kudos

Dear Experts,

I am finding difficult to locate a BAPI or FM that would create a New Material referencing a Old Material. This facility is provided by MM01. I managed to locate few BAPI's but they don't have a interface to capture the Old Material.

1. /AFS/BAPI_MATERIAL_SAVEDATA

2. BAPI_MATERIAL_SAVEREPLICA

3. BAPI_MATERIAL_SAVEDATA

If you find a BAPI or FM please pass it on. If you could include some sample data.

Thanks,

Sri

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

Use this fm.

IOCI_CONVERT_OLD_MAT_NO

5 REPLIES 5

GauthamV
Active Contributor
0 Kudos

Use this fm.

IOCI_CONVERT_OLD_MAT_NO

Former Member
0 Kudos

Dear Gautham,

Thanks for the FM. But this FM does not provide the requirement I need.

When I mean Old Material it is not MARA-BISMT. What I mean is Create a New Material Referencing another Material.

Thanks

Sri

GauthamV
Active Contributor
0 Kudos

Try to get data related to old material using BAPI_MATERIAL_GET_ALL

and then use BAPI_MATERIAL_SAVEDATA to create new one.

Also check these FM.

BAPI_STANDARDMATERIAL_CREATE

MATERIAL_MAINTAIN_DARK

Former Member
0 Kudos

check this Badi - CDT_CHECK_MATERIAL , method-CHECK_MATERIAL.

regards,

Srikar

GauthamV
Active Contributor
0 Kudos

Plz close the thread once your issue is resolved.