cancel
Showing results for 
Search instead for 
Did you mean: 

Add Sales Order Item to Invoice Schedule using OData Service

former_member641161
Discoverer
0 Kudos
349

Hello,

I have a requirement to Add an Item to a Sales Order Invoice Request using OData.

I have created an OData Service for this with nodes:

SalesOrderInvoiceSchedule

SalesOrderInvoiceScheduleItem

SalesOrderToBeScheduledItem

OData POST Request Endpoint :https://myXXXXXX.sapbydesign.com/sap/byd/odata/cust/v1/salesorderprojectassignment/SalesOrderToBeScheduledItemCollection

JSON Body:

{

"ParentObjectID": "FA163E1286091EDD84FBF342E8A92A7C",

"InvoiceScheduleTypeCode": "2",

"ID":"10"

}

Where ParentObjectID is the Sales Order Invoice Schedule UUID

Response:

<?xml version="1.0" encoding="utf-8"?>

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>ERROR</code>

<message xml:lang="en">Item 10 does not exist</message>

</error>

However I receive a response saying Line Item 10 does not exist, however this item does exist on the Sales Order

Can anyone assist with adding an item to Sales Order Invoice Schedule via OData?

Regards

View Entire Topic
EelcoE
Participant
0 Kudos

Hi Martin!

I have the same need. Were you able to resolve this? Is that something you can share?

Thanks!

Eelco