Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 03 at 01:57 PM

    Hi Devaraj R,

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.