Skip to Content
author's profile photo Former Member
Former Member

material type and 'BAPI_MATERIAL_SAVEDATA'

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2010 at 02:54 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2010 at 11:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2010 at 02:15 AM

    Why dont you try with call transaction bdc..?

    Nabheet

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2010 at 03:32 AM

    Hi Adam,

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

    Regards,

    Immanuel.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2010 at 03:04 PM

    Thanks a lot:)

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

    Thanks!

    Regards,

    Adam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.