cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Quote PriceItem data is not getting added to SAP C4C from SAP CPI using Batch request

former_member230091
Participant
0 Kudos

Hello Everyone,

We have requirement to add products/items to SAP C4C from CPI. This is successfully working via ODATA batch request.

We are trying to add SalesQuotePriceItem as well on top of it to each product/line item which we create in the same batch request and it is not working for PriceItem. C4C throws 400 bad request error.

Please find the attached screenshot for batch format I tried.

batch-request-salesquotepriceitemcollection.png

Could anyone help me to successfully post some data to SAP C4C SalesQuotePriceItem Collection?

Thanks..!!

Regards,

Devaraj

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi devaraj.r1,

I believe its a two step process. First have to create sales quote and then you would need object ID to create salesquote-Item.

Could you check below API documentation for more details.

https://api.sap.com/api/salesquote/resource

Hope this helps !

thanks and regards,

Praveen T

former_member230091
Participant
0 Kudos

Hi Praveen,

We are creating sales quote first in C4C and received object ID. This process works fine without any issues.

After some time we tried to create quote item/products to that same sales quote and this also worked.

Now we need to include Price Item info as well to that product/line item. So basically when we try to add product we also cover Price Item info also in same batch request as shown in screenshot. Here we get 400 bad request error from C4C?

Can we do both product/line item addition along with price item info in same batch request or do we need to create line item first in C4C and then need to update price info?

Thanks..!

Regards,

Devaraj