Skip to Content
0
Aug 04 at 06:07 PM

Add Sales Order Item to Invoice Schedule using OData Service

65 Views Last edit Aug 05 at 12:31 AM 2 rev

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"?>

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

Attachments

image.png (80.5 kB)