Symptom
No APIs to postpone and write off entries for billing.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
Currently there are no APIs to postpone and write off entries that can be done in the app 'Manage Project Billing'.
However a normal PATCH request towards Project Billing Request Item entity can be used, by modifying fields for to be written off amounts or quantities it will postpone or writes off that entry.
The following examples are to write off/postpone entries (Timesheet entries).
PATCH request to write off an entry.
<domain>/sap/opu/odata4/sap/api_projectbillingrequest/srvd_a2x/sap/projectbillingrequest/0001/ProjectBillingRequestItem(01234567-89ab-cdef-0123-456789abcdef)
Body:
{
"ProjectBillingRequestItemUUID" : "123",
"ProjBillgElmntEntrItmUUID" : "123",
"ProjectBillingRequestUUID" : "123",
"ProjectBillingElementUUID" : "123",
"ToBeWrittenOffQuantity" : 2,
"QuantityUnit" : "H"
}
PATCH request to postpone an entry.
<domain>/sap/opu/odata4/sap/api_projectbillingrequest/srvd_a2x/sap/projectbillingrequest/0001/ProjectBillingRequestItem(01234567-89ab-cdef-0123-456789abcdef)
Body:
{
"ProjectBillingRequestItemUUID" : "123",
"ProjBillgElmntEntrItmUUID" : "123",
"ProjectBillingRequestUUID" : "123",
"ProjectBillingElementUUID" : "123",
"ToBePostponedQuantity" : -2,
"QuantityUnit" : "H"
}
The following examples are to write off/postpone expense amounts.
PATCH request to write off an entry.
<domain>/sap/opu/odata4/sap/api_projectbillingrequest/srvd_a2x/sap/projectbillingrequest/0001/ProjectBillingRequestItem(01234567-89ab-cdef-0123-456789abcdef)
Body:
{
"ProjectBillingRequestItemUUID" : "123",
"ProjBillgElmntEntrItmUUID" : "123",
"ProjectBillingRequestUUID" : "123",
"ProjectBillingElementUUID" : "123",
"ToBeWrittenOffAmtInTransCrcy" : -300.00,
"TransactionCurrency" : "USD"
}
PATCH request to postpone an entry.
<domain>/sap/opu/odata4/sap/api_projectbillingrequest/srvd_a2x/sap/projectbillingrequest/0001/ProjectBillingRequestItem(01234567-89ab-cdef-0123-456789abcdef)
Body:
{
"ProjectBillingRequestItemUUID" : "123",
"ProjBillgElmntEntrItmUUID" : "123",
"ProjectBillingRequestUUID" : "123",
"ProjectBillingElementUUID" : "123",
"ToBePostponedAmtInTransacCrcy" : 200.00,
"TransactionCurrency" : "USD"
}
Keywords
API to postpone entries, API to write off entries, Postpone, Write off, Manage Project Billing, PPM-SCL-BIL, PPM-SCL-BIL-FIO, SAP S/4HANA Cloud Public Edition. , KBA , PPM-SCL-BIL , Project Billing (Public Cloud) , PPM-SCL-BIL-FIO , Fiori UI for Project Billing (Public Cloud) , Problem