SAP Knowledge Base Article - Public

3588868 - Error MG 144 "The field MARA-GEWEI is defined as a required field; it does not contain an entry" when creating material master data via API_PRODUCT_SRV

Symptom

  • The API_PRODUCT_SRV is returning error MG 144 "The field MARA-GEWEI is defined as a required field; it does not contain an entry" when trying to create material master data.
  • The material can be created using the app "Create Material", but not through the API, even when using the same information. 

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create product master record using the API_PRODUCT_SRV with sales data and without Gross Weight (MARA-GEWEI) value.
  2. The API returns with Error message MG/144.

Cause

The Gross Weight (MARA-GEWEI) field is required when the product has sales view activated on material master.
The API does not automatically populate this value. The app "Create Material" populate this field automatically with 'KG'.

Resolution

Provide the product information with a valid Unit of Measure on Gross Weight field (MARA-GEWEI) when using API_PRODUCT_SRV when the product has sales information/sales view active.

See Also

Keywords

API_PRODUCT_SRV, POST, material master data, error, MG 144, Gross Weight, MARA-GEWEI, sales data. , KBA , LO-MD-MM-2CL , Product Master for Public Cloud , Problem

Product

SAP S/4HANA Cloud Public Edition all versions