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 type and 'BAPI_MATERIAL_SAVEDATA'

Former Member
0 Kudos

Hi Experts,

I'm trying to update an exisitng material via BAPI 'BAPI_MATERIAL_SAVEDATA'.

I need to change material type (mtart in MARA table), but every time i try i got the message that material was created or changes (which should mean it's okey) but there are no change in material type in table MARA.

I try to change HEADDATA parameter with MATL_TYPE = new type and setting BASIC_VIEW and other flag to 'X' but with no luck.

Can anyone tell me if material type can be change (on existing material not by creating new material) via this bapi?

And if it's possible then how ?:)

Regards,

Adam

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If the material is used in any document like PO/SO etc, you cannot change the material type.

5 REPLIES 5

Former Member
0 Kudos

Hi Adam,

you might be better of with a BTCI over tc MMAM so you can have all business logic validating your material type change. As far as I know you can't change material type with that BAPI.

Regards,

Edgar

nabheetscn
Active Contributor
0 Kudos

Why dont you try with call transaction bdc..?

Nabheet

Former Member
0 Kudos

If the material is used in any document like PO/SO etc, you cannot change the material type.

Former Member
0 Kudos

Hi Adam,

If any transaction has been created for the material then the material type cannot be changed.

Regards,

Immanuel.

Former Member
0 Kudos

Thanks a lot:)

I've done it with BDC and so far so good:)

Thanks!

Regards,

Adam