10-20-2010 2:59 PM
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
10-21-2010 3:54 AM
If the material is used in any document like PO/SO etc, you cannot change the material type.
10-21-2010 12:46 AM
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
10-21-2010 3:15 AM
10-21-2010 3:54 AM
If the material is used in any document like PO/SO etc, you cannot change the material type.
10-21-2010 4:32 AM
Hi Adam,
If any transaction has been created for the material then the material type cannot be changed.
Regards,
Immanuel.
10-26-2010 4:04 PM
Thanks a lot:)
I've done it with BDC and so far so good:)
Thanks!
Regards,
Adam