SAP Knowledge Base Article - Public

2825809 - Creation of Expense Reports with OData Service

Symptom

You have created a Custom OData Service and you have added the ExpenseReportCollection entity to your service, but when you try to run a POST (create) on this entity, you get the below errors and the record is not created.

Errors are:

  • 'Create not allowed for properties: EmployeeID. Check metadata for ExpenseReportCollection'
  • 'Employee ID missing::No calculation of settlement results due to inconsistent entries. Please correct the errors.::Expense arrangement not found'

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Using a tool of your choice, perform the POST using the ExpenseReportCollection.
  2. Error is thrown: 'Create not allowed for properties: EmployeeID. Check metadata for ExpenseReportCollection'.
  3. Now remove Employee ID from the payload and run again.
  4. Error is thrown: 'Employee ID missing::No calculation of settlement results due to inconsistent entries. Please correct the errors.::Expense arrangement not found'.

Cause

Error 'Create not allowed for properties: EmployeeID. Check metadata for ExpenseReportCollection' is thrown because the Employee ID property is not enabled for creation, as seen in the service's metadata (creatable = "false").

Error 'Employee ID missing::No calculation of settlement results due to inconsistent entries. Please correct the errors.::Expense arrangement not found' is thrown because the OData Entity does not allow creation of expense reports. The logic used here means that expense reports can only be created through the UI. Web services also do not allow this creation, in fact there is no web service available for expense Reports.

Resolution

At this time, the functionality does not allow for creation of expense reports through OData.

See Also

2570879 - Creation of Expense Reports with Web Service

Keywords

OData, Finance , KBA , SRD-FIN-ERM , Travel and Expense Management , AP-RC-ODF , OData framework (C4C Only) , How To

Product

SAP BUSINESS BYDESIGN 1611 ; SAP BUSINESS BYDESIGN 1705 ; SAP BUSINESS BYDESIGN 1708 ; SAP Business ByDesign 1.0 ; SAP Business ByDesign 1302 ; SAP Business ByDesign 1305 ; SAP Business ByDesign 1308 ; SAP Business ByDesign 1311 ; SAP Business ByDesign 1402 ; SAP Business ByDesign 1405 ; SAP Business ByDesign 1408 ; SAP Business ByDesign 1411 ; SAP Business ByDesign 1502 ; SAP Business ByDesign 1505 ; SAP Business ByDesign 1508 ; SAP Business ByDesign 1511 ; SAP Business ByDesign 1602 ; SAP Business ByDesign 1605 ; SAP Business ByDesign 1608 ; SAP Business ByDesign 1702 ; SAP Business ByDesign 1711 ; SAP Business ByDesign 1802 ; SAP Business ByDesign 1805 ; SAP Business ByDesign 1808 ; SAP Business ByDesign 1811 ; SAP Business ByDesign 1902 ; SAP Business ByDesign 1905 ; SAP Business ByDesign 1908 ; SAP Business ByDesign 1911 ; SAP Business ByDesign feature pack 2.0 ; SAP Business ByDesign feature pack 2.5 ; SAP Business ByDesign feature pack 2.6 ; SAP Business ByDesign feature pack 3.0 ; SAP Business ByDesign feature pack 3.5 ; SAP Business ByDesign feature pack 4.0