cancel
Showing results for 
Search instead for 
Did you mean: 

Maintenance status change by BAPI update

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

JL23
Active Contributor
0 Kudos

do you have any value assignment for PSTAT field in your BAPI?

Former Member
0 Kudos

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.

anna_hannon
Active Participant
0 Kudos

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.