Skip to Content
0

Different processing requirements for Sales orders created through VA01 and ORDERS IDoc

Jun 29, 2017 at 08:34 PM

47

avatar image

There is an requirement to perform different type of checks for Sales orders created from ORDERS Idoc than for Sales order created via VA01. For example if user creates SO via VA01 and uses duplicate Customer PO number, system will issue a warning message only. However if ORDERS Idoc will try to create an SO and use Customer PO which has been already used, the requirement is to issue an error message and Idocs should end in 51 status. Any idea how (based on which information) to differentiate during Idoc processing that specific checks are only valid for documents created from Idoc and not by using obvious way?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Jun 30, 2017 at 05:01 AM
0

Basically, an ABAPer has to write the code .As per your example, you should get an error while creating sales order if the message contains duplicate PO .Customer Purchase order number stored in table VBKD-BSTKD, So before processing the message, Pass the customer purchase order number in table VBKD , If this returns any sales order then fail the message stating that 'There is a sales order created against Customer PO. Whatever you are writing the code in Idoc message processing it will not impact to manual created Sales orders.Still, they get a warning message and the code is applicable only Idoc messages.

First you need to identify in which segment (ORDERS message) the customer PO provided. Use that PO number and find the order in VBKD table .If there is no order then process the message else fail the message .Hope this helps.

Share
10 |10000 characters needed characters left characters exceeded