Skip to Content
-1

Regarding DUPLICATE PO while creating the Sales Order using VA01 in SAP

May 11 at 12:35 PM

33

avatar image

Hi, I am new to Enhancements. I have a requirement to find duplicate PO while creating Sales Order. Can anyone provide me the logic, how to write. I found the user exit, but i am not able to write the logic. Could anyone help me to write the logic.Below logic need to be built during Order save (in order creation & change) to validate if the ‘Customer PO’ number is a duplicate.

  1. Check if the Sales org (VBAK-VKORG) and Sales document type (VBAK-AUART) combination is in the pre-defined list (a new TVARVC to be created with Sales Org & Document type). If available, proceed with below step
  2. As per the standard settings (TVAK-PRBST), SAP will check for duplicate ‘Customer reference’ (VBKD-BSTKD) for a customer during the order entry.

    Warning message displayed by standard if duplicate sales order is found with same ‘Customer Reference’ for the customer (Sold-to party).

  3. However, this check should be enhanced to also check for the ‘Customer Ref. Date’ (VBKD-BSTDK) for the duplication. i.e.no warning message to be displayed if a new order created for same customer and same ‘Customer Reference number, however with a different ‘Customer Reference date’ (assuming duplicate order exists with same customer and customer reference number).
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi May 11 at 01:54 PM
0

You or an Abaper should look at the form VBKD-BSTKD_PRUEFEN in the SO main program dialog.

  • With few navigation steps in the source, you should notice that you can remove the standard error/warning message V4 115 (Transaction SPRO or OVAH)
  • You could then add your own check either in some enhancement spot or in an user-exit such as USEREXIT_CHECK_VBKD or USEREXIT_SAVE_DOCUMENT_PREPARE
Share
10 |10000 characters needed characters left characters exceeded