cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP S/4HANA ODATA API - the dateformat or configuration for date format is not right

SampathRamanuja
Explorer
0 Likes
395

We get this error: "Period Date 00/00/0000 must be between start of life 00/00/0000 and end of life 00/00/0000."

Though below Payload passing the EDM EPOH date format , it does not take it. it always treats them as 00/00/000

i have also tried "05/01/2023" , or "2023-05-01T04:00:00Z" , it does not wor

API is to create manual Accruals via odata :
/sap/opu/odata/sap/API_MANUALACCRUALS/MnlAccrsAccrualSubobject


{

"CompanyCode": "0001", "ManualAccrualsAccrObjectType": "0VENDORINV", "AccrualObjectDescription": "POSTMANTest2", "to_Item": { "results": [ { "AccrualItemType": "COSTSUPL", "AccrSubobjectItmValdtyStrtDte":"/Date(1702698345000)/", "AccrualMethod": "", "AccrSubobjHdrStartOfLifeDate":"/Date(1702698345000)/", "LedgerGroup": "0L", "TotalAccrualQuantity": "60", "TotalAccrualQuantityUnit": "PC", "TotalAccrAmountInTransCrcy": "600.00", "TransactionCurrency": "USD", "to_AccrPerdcAmounts": { "results": [ {} ] } } ] }

}

Accepted Solutions (0)

Answers (0)