Skip to Content
0
Mar 18, 2009 at 08:51 PM

BAPI_MATERIAL_SAVEDATA, Error message MG 142 for field MARC-FHORI

2052 Views

I have a program to extend materials to new plants and I am using the BAPI

BAPI_MATERIAL_SAVEDATA.

I am copying data into the PLANTDATA (BAPI_MARC) structure from existing plant data in MARC.

The BAPI returns the error message MG 142 that says:

"The value 000 is not allowed for the field MARC-FHORI / BAPI_MARC-SM_KEY."

The check table for this domain (FHORI) is T436A and it contains the 000 value.

Any thoughts as to why this message is getting issued?

Thank you for any help.

Regards,

Chris Mowl

ABAP Developer

Fossil