Application Development and Automation 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: 
Read only

material type and 'BAPI_MATERIAL_SAVEDATA'

Former Member
0 Likes
1,464

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
Read only

Former Member
0 Likes
1,060

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,060

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

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,060

Why dont you try with call transaction bdc..?

Nabheet

Read only

Former Member
0 Likes
1,061

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

Read only

Former Member
0 Likes
1,060

Hi Adam,

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

Regards,

Immanuel.

Read only

Former Member
0 Likes
1,060

Thanks a lot:)

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

Thanks!

Regards,

Adam