cancel
Showing results for 
Search instead for 
Did you mean: 

Return Sales Order Automation

arsiasmi
Explorer
0 Kudos

Hi All

My requirement is to automate the sales process ie: once sales order is created, Return Outbound delivery should be created followed by Post Goods Receipt and finally Invoice creation. I have used BAPI for create outbound delivery, however when i use 'BAPI_INB_DELIVERY_CONFIRM_DEC' or 'BAPI_OUTB_DELIVERY_CONFIRM_DEC' i get an error related to serial number assignment, I have passed the serial number as well.

Accepted Solutions (0)

Answers (2)

Answers (2)

arsiasmi
Explorer
0 Kudos

You are right, once the return order is created, the following processes have to be automated,I am aware about the "Immediate Delivery", the issue is raised when I try to do GR where I need to pass Serial Number, in my case serial number is a value in custom field created at sales order item level.If a create GR manually it works fine, but when i use 'BAPI_INB_DELIVERY_CONFIRM_DEC' or 'BAPI_OUTB_DELIVERY_CONFIRM_DEC' the system gives an error 'Item 00010 needs exactly 1 serial number'

arsiasmi
Explorer
0 Kudos

the issue was settled by creating a subroutine pool with Fixed Point Arithmetic activated. The system was considering 1.000 as 1000.

Lakshmipathi
Active Contributor
0 Kudos

Your post is not clear. At what point, you need to automate the return sales process? If the requirement is such that once the return order is saved, automatically, in the background, return delivery and goods receipt has to happen, then, in the return order type, you have a field "Immediate delivery" which should be activated and for auto GR, you need to schedule the program WS_MONITOR_INB_DEL_GDRC with some time sequence, depending upon the number of returns being created