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

Maintenance status change by BAPI update

Hi All,

I used BAPI_MATERIAL_SAVEDATA in a program to update a MARC field in MRP2 view.

For this, I set headdata-mrp_view = 'X', and other data required. The MARC field is updated successfully.

But when I check MM02, I got the error ' Material not fully maintained for this transaction/event'.

Initially I could display Basic Data view, but after BAPI call, I could not display Basic Data view.

I observed that MARA-PSTAT is overwritten with value 'D' (MRP view I set above).

How do I fix this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 24, 2014 at 03:39 PM

    Hi

    Are you using IS-OIL in your system? If yes, have a look at the following attached note

    322832 Oil fields in the material master

    Report ROIB_MARA_VPSTA may help.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2014 at 07:40 AM

    Thanks Hannon.

    I think there is no oil view related issue in this case. But thanks, IS-OIL issue is really helpful.

    If I update a field in MRP2 view in MM02, MARA-PSTAT is updated, say, from KAB to KABD.

    But if I update using BAPI_MATERIAL_SAVEDATA giving headdata-mrp_view = 'X'.. MARA-PSTAT changes from KAB to D. Then I have to extend KAB view for the material again. I want to avoid this.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Jürgen Lins

      There is no value assignment for PSTAT field. I just marked MRP_VIEW = 'X'. Assigned plant and then MARC-field in MRP2 view.

      As of now, I have LOOPed at MARA-PSTAT letters, and all the 'VIEW's flags are marked X accordingly. This appends 'D' to PSTAT existing value and stops overwriting of PSTAT value completely with 'D'. I am not sure if this is how we should do.

      Note: MARC-field is actually is from append structure, and I have used BAPI extension structures for that.

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.