Skip to Content

ProductUUID field in API_MKT_PRODUCT_SRV in SAP CPI mapping

Hello Team,

I am using API_MKT_PRODUCT_SRV API to load Product to Marketing. But as ProductUUID field is mandatory, can anyone help me with what value has to be passed in this.

i am fetching ProductUUID from marketing and passing in mapping, still i am getting below error:

(( in the server is outdated OR (2) The request payload seems to be incorrect. Error Details : Parsing exception, com.sap.gateway.core.ip.processor.exception.ODataProcessingException: Cannot convert "01234567-89ab-cdef-0123-456789abcdef" to java.util.UUID, java.lang.NumberFormatException: For input string: ""01234567" ))

Also, as per the SAP value has to be like this:

"ProductUUID":"01234567-89ab-cdef-0123-456789abcdef",

Can someone please suggest what should be the value mapped to Productuuid.

Regards,

Ritul Rai

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 19, 2020 at 09:08 PM

    Hi,

    Why do you need to pass the ProductUUID field for loading the products to Marketing? It is not needed. This field(ProductUUID) value is auto-generated by the system upon creation of a product in SAP Marketing Cloud. In order to create a product you need to make a PATCH method call for entityset ProductOriginDataSet of API API_MKT_PRODUCT_SRV.

    Ex URL: https://<Host>/sap/opu/odata/SAP/API_MKT_PRODUCT_SRV/$batch (POST Call)

    Use the following payload with request header parameter "Content-Type" as "multipart/mixed; boundary=batch_guid_01".

    --batch_guid_01
    Content-Type: multipart/mixed; boundary=changeset_guid_01
    
    
    --changeset_guid_01
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    
    
    PATCH ProductOriginDataSet(ProductID='MATNR_HYBRIS',ProductOrigin='SAP_ERP_MATNR') HTTP/1.1
    Content-Length: 1035
    Accept: application/json
    Content-Type: application/json
    
    
    { 
    	"ProductOrigin":"SAP_ERP_MATNR",
    	"ProductID":"MATNR_HYBRIS",
    	"WebsiteURL":"https://www.amazon.com/Organic-Espresso-Bean-Coffee-5-Pound/dp/B002GWHAVM?th=1",
    	"ProductImageURL":"https://images-na.ssl-images-amazon.com/images/I/51tbABf6XKL._SX522_.jpg",
    	"Brand":"",
    	"IsBaseProduct":true
    }
    
    
    --changeset_guid_01--
    --batch_guid_01--
    

    For more details, pls refer https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/2005.500/en-US/c89a08a0954e4944aa1ac1c40fa6b031.html

    BR
    Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 19, 2020 at 02:02 PM

    Thank you! Mateusz Adamus for notifying that, i just updated

    Regards,

    Ritul Rai

    Add a comment
    10|10000 characters needed characters exceeded

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.