Blocking of Duplicate Customer Ref Number in AR Invoice

Good Morning Experts,
Just want to know how to block duplicate customer reference number in AR Invoice Entry.  System is currently give message that "Customer ref number already exists in this document type..". 
My set up for Document Remarks Include in Document Settings is BP Reference Number.  Is there any additional set up that needs to be done so that system will block duplicate reference number?
Version SAP 2007A
PL 30
Localisation Australia/New Zealand
Thanks
Sandra

Hi
You can try this sp_transaction notification : Copy the given code to store procedure sp_transaction notification where it says --add code here
if (@object_type = '13' or @object_type = '15')
and (@transaction_type= 'A' or @transaction_type= 'U')
begin
declare @venno as varchar(100)
if @object_type = '15'
begin
select @venno = NumAtCard
from opdn
where docentry =@list_of_cols_val_tab_del
if 1 != (select count(docentry) from ODLN with(nolock) where NumAtCard = @venno)
begin
select @error = 1
select @error_message = 'Duplicate Customer ref no in SO Receipts. ! '
end
end
else
if @object_type = '13'
begin
select @venno = NumAtCard
from opch
where docentry =@list_of_cols_val_tab_del
if 1 != (select count(docentry) from OINV with(nolock) where NumAtCard = @venno)
begin
select @error = 2
select @error_message = 'Duplicate vendor ref no in AR Invoices. ! '
end
end
end
This will block the transaction when you have duplicate customer reference . It will let you put same customer reference in Sales order  but it will block from delivery
<b>Please test it in test environment </b>
Thank you
Bishal

Similar Messages

  • Customs declaration number in VAT Invoice output

    Hi Gurus,
    I need to print the customs declaration number in VAT invoice output.I have given the logic to fetch this number from ITEM>Foreign Trade/Customs>Comments tab,but I have come across a scenario if some times user forgot to mention this number in the respective field then the print program won't print,I have tried to enter the value in change mode of billing document VF02 and this field is grayed out.Is there is any other field to maintain this field after the creation of billing document.
    Regards,
    Hari Challa.

    To my knowledge, pretty much the only thing that may be changed in VF02 is the text. See Item Text tab for item-level text, same is available on the header level.
    Usually the right approach is to make sure all the required data is entered in the preceding document (order, delivery, etc.). Then it should be just copied to the invoice.

  • Duplicate Customer Ref No (Sales Order)

    Dear Experts....
    Can the system keep track of duplicate Customer Reference No during Sales Order Entry ?
    At least a warning message to the user that the SAME reference No has been entered for the same Business Partner (BP).
    Reason : Sometime the BP sends the same order twice without knowing the same order has been made before and we cant always keep checking whether the existing reference exist or not...
    Please advise.
    TQ
    Cheers....
    TOMMY

    I tried using your suggestion but can not find the setting you are referring to.
    When I click on the per document tab and select sales order i only get theses options.
    Default days for order cancellation
    Allow changesd to existing orders
    Activate availability check
    Sales order approved
    We are on 2007 PL 47.
    IS the option available in this version to give a warning when a duplicate reference number for a BP is entered?
    Thanks

  • Blocking of duplicate entry

    We would like to block duplicate entries from being posted into our database especially the BP ref no field in the AP invoice.
    I have read through a post which shows the procedure of doing this through an approval procedure. However, is there another way to prevent duplicate entries like this from adding into the database such that it blocks the user if he has duplicated this field rather than sending an apprval procedure? One way of doing this is by creating an SBO_SP_TransactionNotification which blocks the transaction from adding. Would someone be having a sample code for this?
    Thanks & Regards,
    Asif

    Hi
    You can use this stored procedure in sp_transaction_notification. Please test this in test environment before you proceed.
    /** block duplicate Vendor Invoice number **/
    if (@object_type = '20' or @object_type = '18')
    and (@transaction_type= 'A' or @transaction_type= 'U')
    begin
    declare @venno as varchar(100)
    if @object_type = '20'
    begin
    select @venno = NumAtCard
    from opdn
    where docentry =@list_of_cols_val_tab_del
    if 1 != (select count(docentry) from opdn with(nolock) where NumAtCard = @venno)
    begin
    select @error = 1
    select @error_message = 'Duplicate vendor ref no in PO Receipts. ! '
    end
    end
    else
    if @object_type = '18'
    begin
    select @venno = NumAtCard
    from opch
    where docentry =@list_of_cols_val_tab_del
    if 1 != (select count(docentry) from opch with(nolock) where NumAtCard = @venno)
    begin
    select @error = 2
    select @error_message = 'Duplicate vendor ref no in AP Invoices. ! '
    end
    end
    end

  • Duplicate Vendor ref no in A/P Invoice

    Dear Experts,
    Kindly suggest the SP Notification to block the duplicate Vendor ref no in A/P Invoice for a Vendor Specific.
    SAP has this setting to Block duplicate Vendor ref no in Document setting, but it is for all vendor for same ref no. and not  vendor specific. 
    Regards,
    Datta kharat

    Hi Datta...........
    Please try this........
    IF (@object_type = '18' AND @transaction_type IN ('A','U'))
    BEGIN
    DECLARE @VendorRefNo AS VarChar (20)
    DECLARE @BPCode AS VarChar (20)
    SELECT @VendorRefNo = NumAtCard FROM dbo.OPCH
         WHERE DocEntry = @list_of_cols_val_tab_del
    SELECT @BPCode = CardCode FROM dbo.OPCH
         WHERE DocEntry = @list_of_cols_val_tab_del
    IF 1 != (SELECT COUNT(DocEntry) FROM OPCH WITH(NOLOCK) WHERE NumAtCard = @VendorRefNo AND CardCode = @BPCode) AND (@VendorRefNo IS NOT NULL OR @VendorRefNo <> '')
    BEGIN
    SELECT @ERROR = 1
    SELECT @ERROR_MESSAGE = 'Vendor Reference No. Already Exist'
    END
    end
    Or check this.....
    Blocking A/P Invoice
    Regards,
    Rahul

  • Duplicate Vendor Ref. No.

    Dear Experts,
    Is there a way restrict the "Vendor Ref. No." field on the A/P Invoice screen so that the same invoice number from a vendor is not duplicated?
    In other words, we want to keep from paying a duplicate invoice.
    Any suggestiions?
    Also,  if any of you have a client with heavy B1 A/P processing, please let me know.  I would like to speak with you, especially if you moved a client off batch processing.
    Thanks.
    John

    Dear Jane,
    Try this modified Stored Procedure for A/P Invoice in Test Database and then Proceed,
    I checked in my database, found working well.
    if @object_type = '18'
    and (@transaction_type = 'A' or @transaction_type = 'U')
    Begin
    declare @venno as varchar (100)
    declare @vennam as varchar (100)
    if (@object_type = '18')
    Begin
    select @venno = NumAtCard, @vennam = CardCode from OPCH T0 where docentry = @list_of_cols_Val_tab_del
    Begin
    if (@venno is not null)
    Begin
    if 1!= (select count (docentry) from OPCH with (nolock)where (NumatCard = @venno) and (cardcode = @vennam))
    Begin
    select @error = 2
    select @error_message = 'Duplicate Vendor Ref Number!'
    End
    End
    End
    End
    End
    Regards,
    Bala
    Edited by: Balakumar Viswa on Sep 16, 2009 1:03 PM
    Edited by: Balakumar Viswa on Sep 21, 2009 10:07 AM

  • Add Customer_PO number to SQR Invoice

    I need to add customer po number to our invoice.I am very new to PeopleSoft and SQR
    when I look at biivcpn.sqr and bisubp00.sqc I can't tell where(What Table) it pulls from
    How do I tell that?
    How do I need to add the Customer PO line to bisubp00.sqc

    see any where in the sqr or in sqc for the string "begin-select". begin-select is the command that will fetch the data from the peoplesoft tables. so somewhere you must see "begin-select".
    In that begin-select try to locate any of the data(column of the table) which is getting printed right now on the invoice and see that table name(locate the from in that begin-select, you can see the table name). go to app designer and see if that has PO_ID. if that has PO_ID then modify the begin-select to get this extra column.
    Hope this helps.

  • My i-phone Not charging because Sunken pins and Green Belt3 Power Mac Center said even my warranty still open until 30 October they cannot do nothing and refer me to a Toll Free Apple customer Service number..my question for what are thwy there?

    My i-phone 5s is not charging because of Sunken pins where the socket is plugged. According Power Mac Center at Green Belt3 even my warranty still open until 30 October they cannot do nothing and refer me to a Toll Free Apple customer Service number in Singapore!!! ..my question for what are they there? not alt all very friendly and helpful!!

    Send an e-mail with all this in it directly to Tim Cook. Seriously. You can send e-mail to him.
    You might also try this forum here for more ideas: http://forums.macrumors.com/index.php?

  • TransNotif block duplicate vendor ref

    Hi experts,
    Im using this TransNotif to block duplicate Vendor Ref in the sales order but i only want it for doc series 1 and 6, how can i achieve this.
    if @object_type = '17' and (@transaction_type in ('A' ,'U'))
    begin
    declare @RefNo as varchar (100)
    declare @CardCode as varchar (100)
    declare @Series smallint
         if (@object_type = '17')
              begin
                 select @RefNo = NumAtCard, @CardCode = CardCode from ORDR T0 where docentry = @list_of_cols_Val_tab_del
                 begin
                   if (@RefNo is not null)
                     begin
                       if 1!= (select count (docentry) from ORDR  where (NumatCard = @RefNo) and (cardcode = @CardCode))
                         begin
                            select @error = 10
                            select @error_message = 'Conduce Duplicado'
                         End
                       End
                   End
              End
    End

    Hi Leonardo E. Martinez
    Try This you can include the series in the where condition
    If @object_type = '17' and (@transaction_type in ('A' ,'U'))
    begin
    declare @RefNo as varchar (100)
    declare @CardCode as varchar (100)
    declare @Series smallint
         if (@object_type = '17')
              begin
                 select @RefNo = NumAtCard, @CardCode = CardCode from ORDR T0
                        where docentry = @list_of_cols_Val_tab_del and T0.Series IN (1,6)
                 begin
                   if (@RefNo is not null)
                     begin
                       if 1!= (select count (docentry) from ORDR  where (NumatCard = @RefNo) and (cardcode = @CardCode))
                         begin
                            select @error = 10
                            select @error_message = 'Conduce Duplicado'
                         End
                       End
                   End
              End
    End
    Hope Helpful
    Regards
    Kennedy

  • There is already a record with duplicate customer/vendor reference number

    Dear  Expert,
    Person "A" reject the Sale Order now Person "B" edit same  SO and again send to "A",now second time "A" approval
    "B" in aleart msg go to that approval,press "add" button got information  (error)
    "there is already a record with duplicate customer/vendor reference number"
    what shud i do ?
    and why in aleart message box two entry for same SO
    1st is reject but show SO draft [approved]
    2nd is approval ...
    Thanks

    hi,
    U can change radio button option in per document tab of document settings for sales order,
    Either change it to without warning / warning only When duplicated customer reference no. occurs.
    Modify customer reference number by including dot at end.

  • Customer PO numbe rshould not duplicate

    Hi
    For specific sales order type we need to restict customer PO number getting ducplicate. It should pop up an error massage when, user enters the customer PO number which he entered priviously. This should not be specific to customer. For any customet, if user enters a PO number which he enters before system should give an error massage.
    Please advice how to configure this !!
    Thanx in advance !!!
    Regards
    Kesharika

    Hello Kesharika,
    You can do this by customizing
    Step1.  In the Sales Order type customizing (VOV8) set the option Check purch.order no = A, this will result a warning message in sales order when you enter a duplicate PO number, however you require an error message, so follow the step 2.
    Step2. Change the attribute of the message V4 115, in the following place IMG>Sales and Distribution>Sales -->Sales Documents --> Define Variable Messages. Fine the message VA 115 and change the System message category to E.
    Regards,
    Murali

  • How to avoid duplicated customer ref. no when create new sales order?

    Hi,
    In my company, we need input customer ref. no when create a new sales order, but I found there was no any validation to avoid input a existed number.
    Can somebody show me how to add some check function on this filed?
    thanks.

    Hi,
    This can be handled in standard system.
    Go to Administration> System Initialization> Document Settings>Per Document (Tab)> Select Sales Order-->Tick Block release (When duplicated  customer reference no. occurs).
    Thanks,
    Joseph

  • Formatted Search is driving me crazy - Customer Reference Number to UDF

    Hi all, what should of been a simple Formatted search has turning into a monstrosity.
    All I am trying to do is to copy my Customer Reference Number on a Sales Order Header, to a Header UDF, via Formatted Search. Here is my formatted search:
    SELECT $[$14.0.0] FROM ORDR T0
    That formatted search is connected to my UDF also at the sales order header level.
    Any ideas as to why this formatted search does not duplicate the customer reference number into my UDF?
    I am running 2007A SBO.
    Thanks guys.
    Mike
    Formatted search is: SELECT  Dollar[Dollar14.0.0]
    For some reason, this forum changes my SQL sentence into a URL.
    Let me try this again. SQL statement is SELECT DollarBracketDollar14.0.0Braket

    Hi Mike,
    Try this,
    ->> Create 1 UDF in Title(Header) Level on Sales Order(Marketing Documents).
    ->> UDF :
    Type - Alphanumeric.
    Length - 100. (because in SO Customer Reference Number Field Character is 100 in Table)
    Structure - Regular.
    ->> Assign the below FMS Query in UDF.
    ->> Autofresh of Customer/Vendor Ref. No..
    Ex.
    1. Goto the UDF and Clcik (ShiftAltF2).
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query.
    4. Select the AUTO REFRESH WHEN FIELD CHENGES.
    5. Select Customer/Vendor Ref. No..
    6. Put the Tick Mark in Display Saved Values.
    SELECT $[ORDR.NumAtCard]
    or
    SELECT $[$14.0.0]
    Regards,
    Madhan.

  • How to restrict Duplicate Customer Creation in SAP

    Dear all,
    How can we restrict duplicate customer creation in SAP SD.
    We are into retail sector, across the store customers are being created by different employees.
    in this way for many customers more than one business partner records are being created.
    we are looking for a sytem wise functionality to restrict the customer master creation (for Sold to party only) if name1, telephone number and street field values are same, then system has to stop customer creation by giving an error message.
    Is there any standard functionality to address these requirement. If so how could we configure it.
    Any of you can help us to solve the issue. your solutions and help will be highly appreciated.
    thank you.
    Raghu ram.
    Edited by: Raghu Ram on May 26, 2008 5:34 PM

    Hi,
    2 solutions :
    - Procedure manually (no SAP) ;
    - Use extension SAP (SMOD : SAPMF02D) to check with differents data before recording.
    No solution in standard.
    Regards,
    Lionel

  • [PLD] vendor ref Number variable in outgoing payment  ?

    Hello,
    How to display the vendor ref Number in PLD on printing outgoing payment document.
    We want display the ref in every line.
    wath is the variable number ? 
    Rgds,
    Thierry

    Hello Thierry,
    On the Outgoing Payments Screen if you check on the
    Customer / Vendor Reference Number, you would automatically see the Vendor Reference No in the rows where the invoices are displayed.
    This information also carries to the template and when you preview/print the template this information is printed through the <b>Documents paid variable</b>
    <b>SYSTEM VARIABLE NO 130</b>  This is Field_340 in the
    <b>Outgoing Payment (System)</b> template <b>in the End of Report Area.</b>
    Best wishes
    Suda

Maybe you are looking for

  • Notice update or delete in Database via WCF SQL Adapter

    Hi Folks, i try to notice any changes in a database table via SQL Adapter: so i check for a special column wich contains '0' for new datasets and '1' for those i already copied via BizTalk. This works fine as long as you only insert datasets, update

  • How to send attachments using java application and outlook

    Hi , I created an application in java which is as on the Conference Tab i can schedule a conference and with the send command on page it map all the scheduled data to outlook(with all conference details) and using outlook send option the mails are se

  • Outlook calendar sync takes hours

    The synchronizing of my iphone 5 with the outlook calendar takes many hours, although I have limited the number of days to 3. How can this be improved???

  • Error filtering with ALV standard

    Hi to all, In my WD ABAP application I have a ALV. For show us this error I'm going to use the estandar WD example -> WDT_ALV I execute the application, then press settings - filter - add 2 columns of filter: column ID and column Apt. Then I save the

  • How to see flash in Netscape6

    Dear All, I have question is the flash files had already copied to my X86 Solaris8's Netscape6.1 plugin directory. But it still can't run the flash page. And I also find there is no info about micromedia in the Netscape Help About Plugin. Pls help me