Symptom
Error M3/071 "Enter the lot size (materials planning)" occurs when using POST or PATCH method for a product in the API_PRODUCT_SRV, even if the fields "MRPResponsible" and "LotSizingProcedure" from "to_PlantMRPArea" are correctly filled.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Setup a payload for the product with "MRPResponsible" and "LotSizingProcedure" fields from "to_PlantMRPArea" node correctly filled.
- Send POST request to the Product Master (A2X) API with the payload
- The API returns error M3/071 "Enter the lot size (materials planning)"
Cause
This is the standard system behavior controlled by the MRP procedure defined in the MRP type.
- For MRP types (MARC-DISMM field) defined with MRP procedures N (No MRP) and W (Retail), the MRP controller and Lot Sizing Procedure are optional.
- For MRP types (MARC-DISMM field) defined with other MRP procedures, the MRP controller and Lot Sizing Procedure are mandatory.
The relevant MRP controller or Lot Sizing Procedure for the product based on the MRP type is missing in the payload.
Resolution
The LotSizingProcedure can be found in both the "to_PlantMRPArea" and "A_ProductSupplyPlanning" nodes. (Schema View | Product Master (A2X) | SAP Business Accelerator Hub)
Ensure that the payload includes the relevant node "A_ProductSupplyPlanning" with the MRP Controller ("MRPResponsible") and Lot Sizing Procedure ("LotSizingProcedure") fields properly filled.
See Also
Keywords
API, Response, Error, Replication, Postman, MRP Type, Payload, HTTP response, 400 bad request, LotSizingProcedure, API_PRODUCT_SRV resource, SAP S/4HANA Cloud, Public Cloud, Enter lot size. , KBA , LO-MD-MM-2CL , Product Master for Public Cloud , Problem
SAP Knowledge Base Article - Public