cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order - Outbound Delivery IDoc scenario.

Former Member
0 Kudos

Hi Friends,

I have the below urgent requirement. I would be gratful, if someone suggest possible options.

Scenario: This is related to Sales order to Billing scenario.

We are creating Sales orders by using ORDERS05 Idoc. After the Real goods despatch happens at legacy system, we will be getting despatch feed (IDoc) for outbound delivery trigger. Here if all sales Order items are complete, the system is creating Outbound delivery by using this IDoc and then PGI will follow. This is Ideal scenario.

Practically what happening is, our sales orders are created with few incomplete items (Ex: Net price missing) because they are created via ORDERS05 Idoc.( Manually, we can't create sales order with incomplete items, unless we force the system to do so). When the Out bound delivery IDoc triggered, it will pick up only completed items and creates partial delivery and becomes 53 status. Now the sales order is left out with open and incomplete items.

Now our aim is how to make this outbound delivery IDoc fail, if this is not able to create delivery for all items?? (I mean, if the sales order items are incomplete, the delivery Idoc must fail. So later, if sales order becomes complete, this Idoc can be reprocessed again) How can we make this scenario possible??

Expecting your thoughts and inputs.

Regards,

Kaleeswaran

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Put a condition in User exit for trigger IDOC to create delivey if mandataory fields are maintained if not Idoc should be faild like this.

for example>

if Order mandatatory field is Serial no, so like this requirement in user exit we have to put conditon at this table name SER02 for generating IDOC one its maintained at SO level if not it sould be failed.

Thanks

Raja

jignesh_mehta3
Active Contributor
0 Kudos

Yes. you will have to go to Z-Development (User Exit), which will check if Sales Order is fully Complete, only then allow to create Delivery document.

Hope this helps,

Thanks,

Jignesh Mehta

Former Member
0 Kudos

HI,

I suggest you to think of similar solution as below.

1.As your issue is at order (few items are incomplete with Pricing issue or some other issue), at sales order level while saving each sales order write the code in user exit_save_document_prepare to check if any items exists as incomplete. if yes then populate a delivery block in the sales document header.(you can use a new delivery block to distinguish the reason for the block)

2. While creating delivery for the order through Idoc since the incomplete orders have a delivery block at the sales document header level SAP wont create delivery for the entire Order.

3.Handling this delivery block at sales order header: when ever a sales order is popluated with this new delivery block triggere a workflow which will shoot a mail to your End user team or customer representative team. they will correct the issue in the order and remove the delivery block. if you dont want to go with a workflow then you need to incorporate a process to remove the delivery block in the sales order

Thanks,

Srini

Former Member
0 Kudos

Hi,

Please go ahead with user exit to trigger IDOC to create delivery..Mention the condition like if order is completed then only allow to create delivery...

This the best of working..