I want to update PIRs (planned independent requirements) in SAP S/4Hana Cloud. I am using Java SDK. I am using the class DefaultExtendedPlannedIndependentRequirementService.
PlannedIndepRqmtItem pirItem = null;
try {
pirItem.setPlannedQuantity(utilities.convertToBigDecimal(anaplanLine.getForecastQuantity()));
new DefaultExtendedPlannedIndependentRequirementService()
.updatePlannedIndepRqmtItem(pirItem)
.execute();
I use PlannedIndepRqmtItem to populate fields to be updated, as shown above.
My question is how do I set conditional fields (where fields)?
The fields of the where clauses are: product, plant, MRP area, PIR type, PIR version, PIR period and period type.
BR, Pietro