Skip to Content
-1
May 11, 2018 at 12:35 PM

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

1601 Views

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).