Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Success and Failure confirmation of sales order

0 Kudos

Hi Friends,

Need additional check in SAP to confirm that Sales Orders exist in the database prior to sending the confirmation to Hybris

When an order is injected into SAP from HYBRIS(ECommerce website] , an acknowledgment is sent back to HYBRIS for confirmation that the order has been saved.

Based on confirmation from from SAP, an order is shown to ordering Party on HyBRIS as confirmed with a value. Any mis-match between SAP and HYBRIS can potentially created issues as an order is critical to monthly purchase incentives for Factor product, and has a financial impact

There was an instance where Order was not saved successfully in SAP database, though confirmation was sent back to HYBRIS. This needs to be fixed.

For this i have an RFC fm which is creating the order through bapi

BAPI_SALESORDER_CREATEFROMDAT2bu tnot sure how to send the failure or succes cofirmaiton to hybris .

Please suggest.

2 REPLIES 2

former_member378318
Contributor
0 Kudos

What are you not sure of? BAPI_SALESORDER_CREATEFROMDAT2 returns a table of messages and errors can be identified. If you are calling the RFC from HYBRIS then you will know if the order was able to create or not.

0 Kudos

Thanks Surbjet for reply,

My question is how to send an acknowledgment back to HYBRIS through success or failure confirmation messages like 'order has been saved or failed' and Please suggest where or how we can implement this logic?

Thanks