SAP Knowledge Base Article - Public

2398375 - Error Message "500 Internal Server Error" While Trying to Create Journal Entry Voucher Using OData Services

Symptom

You are trying to create Journal Entry Voucher Using OData services, system throws below error message:

Company missing
500 Internal Server Error

Reproducing the Issue

1. Login to Postman
2. Add the URL https://myXXXXX.sapbydesign.com/sap/byd/odata/cust/v1/customodata/AccountingEntryCollection
3. Select POST function
4. Pass the below sample payload
{
"d":{
"PostingDate":"2016-11-11T00:00:00",
"ID1":"000000000001111111",
"BusinessTransactionTypeCode":"22",
"AccountingClosingStepCode":"33,
"EntryDate":"2016-11-11T00:00:00",
"AccountingDocumentTypeCode":"55",
"AccountingEntryItem":[
{
"ChartOfAccountsCode": "XX",
"ChartOfAccountsItemCode":"11",
"DebitCreditCode":"1",
"TransactionCurrencyAmount": "11",
"currencyCode": "XX",
"ProfitCentreProfitCentre":
{
"ID":"22222222"
}
},
{
"ChartOfAccountsCode": "XX",
"ChartOfAccountsItemCode":"77",
"DebitCreditCode":"2",
"currencyCode": "XX",
"ProfitCentreProfitCentre":
{
"ID":"22222222"
}
}
]
}
}

Cause

The cause for this issue is Profit Center is a read only Business Object

Resolution

You can use SOAP webservices to create the Journal Entry Voucher with the Profit Center ID

Keywords

KBA , AP-PRP , Purchase Request Processing , How To

Product

SAP BUSINESS BYDESIGN 1611 ; SAP BUSINESS BYDESIGN 1705 ; SAP Business ByDesign 1702