cancel
Showing results for 
Search instead for 
Did you mean: 

Return ERP Sales Order ID to SAP CPQ Sales Quote

abreuleandro
Participant

Hello Experts,

I am struggling to return the Sales Order ID generated after Posting it from SAP CPQ Sales Quote, to a custom field designated to show it.

I have already a custom field, ExternalID, ready to show the BELN that comes from the returned IDOC mapped to this field, but when the integration ends, SOAP xml gives me the error below:

<performCartActionResponse xmlns="http://webcominc.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><performCartActionResult><RESULT xmlns=""><RESULT>NOK</RESULT><REASON>Action Order Status Update is not allowed</REASON><STATUS>Order Placed</STATUS></RESULT></performCartActionResult></performCartActionResponse>

The main problem is, I don't have the action 'Order Status Update' for the 'Order Placed' status on the Workflow tab from the Setup on CPQ.

I do have this action, though, for the 'Order Confirmation Pending' status, which is the next status from the Workflow table I have here.

s there a way around this? Can I make this action available and active after this, for the 'Order Placed' status of the CPQ Quote?

I thank you in advance. I appreciate any help.

Regards,

Leandro

View Entire Topic
abreuleandro
Participant
0 Kudos

Hi wnikhil,

I did the trace by following the steps you said, but the trace returned an error.

2020-04-10 13:38:38.070 (7 ms) Script Execution - Debug run
2020-04-10 13:38:38.070    Error in script execution: Debug run   

The quote I opened in another tab has too the status 'Order Placed':

PS.: The same error on the script returned when opening the Quote 627 I sent earlier as an example.

I did a new trace now, and was able to return a success message, although the OrderID was not returned.

2020-04-14 12:33:36.290 Script Execution - Debug run

2020-04-14 12:33:36.290    136

2020-04-14 12:33:36.290    2

2020-04-14 12:33:36.290

Kindle note these new screens attached:

I really doesn't get it why the QuoteID shown is 136, once I opened the Quote #627 in another tab; anyhow, I apprecciate any other suggestion from you.

Regards,

Leandro.

nikhilwalsetwar
Contributor

Hi Leandro,

Are you opening multple quotes in diff tabs within a single browser instance? (like multiple quotes in diff tabs in chrome?)

And if you want to see the quote id, then the correct field is cart composite no and not quote ID.

Also, could you please retry the complete end to end flow? and provide your observations?

BR,

Nikhil

abreuleandro
Participant

Hi wnikhil,

Yes, I realized that the Quote ID shown is an internal ID. I wasn't opening multiple quotes that time, and the issue still persists. I have opened an incident to SAP Support, then.

Depending on their analysis, I come back with a feedback.

Best regards,

Leandro.

nikhilwalsetwar
Contributor
0 Kudos

Hi Leandro,

Did you get the root cause of this issue from SAP support? if yes, could you please post it here as well, it'll be benefitial for the community.

BR,

Nikhil

abreuleandro
Participant
0 Kudos

Hi Nikhil, no. Altough SAP Support did not respond with a resolution, I found out this issue was related to a xslt layout defined on User type. I changed it to the NewQuote.xslt and it shows the Order ID, as it should. The one that was not showing is the Reseller_wout_cost_n_margin-Discounts.xslt. Go figure!

Best regards,

Leandro.