Duplicate Reference Number in GR

Hello, Experts,
  I am looking for a solution for the following problem:
I did a confirmation to a PO with reference number 1, for example.
After a while I did another confirmation to another PO BUT with the same vendor and with reference number 1 again.
If I try to post an invoice with two identical reference numbers, I get an error message, but if I do the same thing in GR,
I get no error message.
I couldn't find any custumization for this.
Does any one know how to prevent this duplication ?
Thank you !
Rami Kleiman

I have a fuzzy idea of what you are intending to do. You might want to use generic VIs to handle different reference types but at some place or some other place in your program you will have to differentiate what type you are actually handling to cast it properly and use it.
Obviously, using flattened data, you can't typecast it to its datatype if you don't know the datatype in the first place... e.g. you can't typecast the reference flattened data to a specific type without statically wiring to a known reference type.
The best you can do is illustrated in the attached VI. The VI accepts a refnum in its variant input. The type of object refnum is detemined parsing the type string. The type is used to determine which method VI to use,
set the value of its reference input and run the method VI.
I hope that helps.
Jean-Pierre
LabVIEW, C'est LabVIEW
Attachments:
flatten_to_string.vi ‏26 KB

Similar Messages

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

  • Duplicate Invoice Reference Number

    Dear All
    I have a requirement that while Parking an Invoice system should tell me for Duplicate Invoice Number exists, when I am enetring it in Reference filed MIR7.
    Regards
    Manoj

    Hi,
    TRy activating SPROMM-lnvoice verificationIncoming Invoice--Set Check for Duplicate Invoices
    system can check duplicate for a combination of
    Reference document number,  Invoice date, Company code
    Hope this helps
    Rgds
    Dheeraj

  • MIRO: two invoices were posted with same Reference Number?

    Hi all!
    Using the MIRO user posted two invoices with the same Reference number without any warning.
    Is it normal?
    Invoices looks exactly identical, the only difference is "Specl G/L assgt" which one of them has and another doesn't.
    Regards.

    Hi Harish,
    I checked:
    1) "Duplicate invoice number" : SPRO/Materials Management/Logistics Invoice Verification/Incoming Invoice/Set Check for Duplicate Invoices - set up for Company Code correctly
    2) "Duplicate invoice number" setup for Vendor (FK03) (tick is set up)
    3) OBMSG M8 108 set up as IE (not 100% sure it's exactly the same message I'm looking for)
    Seems everything is fine.
    But I posted 2 invoices in MIRO with the same reference - no warning or error.
    Any advices?

  • Duplicate Reference check not working with fb60!!

    Dear SAP Members,
    User when posting vendor invoice using fb60 enters reference number in reference field . Once the invoice is posted the user clears the document. When entering another invoice using the same vendor account if the user enters the same reference the system does not prompt for duplicate entry Whereas if he does not clear the invoice document and then enters another invoice using the same vendor account and inputs the same reference number in the reference field the system prompts for duplicate entry.
    Please advice.
    Regards,
    Mohammed Ali Khan.

    hI,
    @ Grindhar: Yes the double check indicator is set.
    @ Mukta: So this means that double check indicator would only prompt me for a duplicate entry if invoice date entered is same. It will not prompt/warn me if the invoice date is different for the same vendor account.
    Another question: If in future i want to set a check on repetition of reference field how do i do it no matter what invoice date is inputted for a particular vendor account. Is possible or not? Just a hypothetical question
    Regards,
    Mohammed Ali Khan.

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

  • Unique ID or reference number?

    How do I create or enable a form to generate a unique ID or reference number when submitted?
    The person that receives a copy of his form should see the number as well as the author.

    Hi,
    Auto-generated field filling is not something we support currently.
    I suggest you to add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Thanks,
    Pengpeng

  • Question about finding whether a reference number is NOT in the database?

    Hello,
    I use the following code to test whether the reference number is in the database
    <ul><li>CURSOR cur_yellow</li></ul>
    <ul><li>IS SELECT</li></ul>
    <ul><li>REFERENCE_NO,</li></ul>
    <ul><li>COMPANY_NAME</li></ul>
    <ul><li>FROM CONSULTANTS;</li></ul>
    <ul><li>rec_yellow cur_yellow%ROWTYPE;</li></ul>
    <ul><li>BEGIN</li></ul>
    <ul><li> OPEN cur_yellow;</li></ul>
    <ul><li> LOOP</li></ul>
    <ul><li> FETCH cur_yellow INTO rec_yellow;</li></ul>
    <ul><li> EXIT WHEN cur_yellow%NOTFOUND;</li></ul>
    <ul><li> IF ref_no = rec_yellow.REFERENCE_NO</li></ul>
    <ul><li> THEN</li></ul>
    HTP.print ('<ul><li><span class="style5">The information concerning the consultant selected has been deleted from the database.</span></li></ul>');
    <ul><li> exp := 1; -- used to make code bullet proof</li></ul>
    <ul><li> END IF;</li></ul>
    <ul><li> END LOOP;</li></ul>
    <ul><li> CLOSE cur_yellow;</li></ul>
    Do you have any ideas for how to write code to test whether the reference number is NOT in the database.
    Thanks
    Doug

    Hallo,
    in general, yes, but I think , it will be better without cursor:
    declare
    v_dummy number;
    BEGIN
    EXECUTE IMMEDIATE 'select 1 from dual where
    exists (select 1 from user_indexes where index_name = : ind_name) USING ''DOUGLASMYINDEX'
    INTO v_1;
    -- something
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    Is it necessary to perform it in dynamic SQL ?
    declare
    v_dummy number;
    BEGIN
    select 1 into v_1 from dual where
    exists (select 1 from user_indexes where index_name = ''DOUGLASMYINDEX''')
    INTO v_1;
    -- something
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    Regards
    Dmytro Dekhtyaryuk

  • Error in generating reference number of process

    Hi All Masters,
    I'm new in HCM P&F.
    Currently I have a problem. I was running a sample process or copied process from the sample. Clicking 'check and send'. Still OK.
    But when I clicked 'Send' button, I got an error message displayed 'Error in generating reference number of process'
    Would you please help me what's wrong with that? FYI, I've tried to activate Case Management, but maybe, there is still any loss in that area?
    Thank you for your help
    Regards,
    Pradita Herdiansyah

    Hi Otto,
    Neither did I. I don't have any complete resources. Maybe actually there are exists somewhere, but just I don't find it yet.
    I try to learn and doing that by watching this forum and sap help/doc, just maybe there are other people who have same obstacles with me in developing this and then I will get solutions for it.
    Have a nice day...
    Regards,
    Pradita Herdiansyah

  • Reference Number not coming in MIGO

    Dear Sirs,
    out of 100 quantity in PO I did MIGO of 10-9-10 quantity in three of MIGO transaction, but at the time of Cancellation of one of the MIGO I am not getting the reference of original GR Number in the cancelled document, Please advice if any customization is required for getting the reference number.
    Valuable suggestions will be rewared with suitable points.
    Regards,
    SagarRK
    Edited by: SagarRK on Apr 15, 2010 9:15 AM

    Goods Receipt done with reference to PO when you post material document in MIGO (GR,GI etc) a tab named "Purchase Order History" created automatically in Item detail level of Purchase order ME23N. so you can get the Original GR Reference number from PO History tab when you display that reference PO
    Edited by: Muhammad Ali on Apr 15, 2010 10:14 AM

  • External Reference number not copied in Service Confirmation

    Hi,
    We are on CRM 5.0 SP11. We have Mobile Service 5.0 SP11.
    In Mobile Service in the Service Order creation screen we have a window to input External reference number. When we create a Service Confirmation as a followup document of Service Order, SAP by default only allows to copy Reference Object,Subject and notes (both header and item level) to the Confirmation.
    Does anyone have idea how we can copy the External Reference number to Confirmation when we do followup to Service Orders on mobile.
    This functionality works fine on Enterprise.
    Thanks,
    Yatin

    Hello,
                 The external number won't be copied by standard as Wolhfard said they are different documents.
    You need to code this to make this copy from service order to Service confirmation.
    Open your Mobile Application Studio and make following changes.
    Open the BusinessObject "BOMSVHelper"  and view the code. Go to the Method "CopySrvTransHeader"  write the following code in it.
    Find the code
    UserName = _unwind(BusinessRootObject.UserDataDictionary.GetData("USERNAME"))
    and paste the following code below it.
            Dim servconfobj As BusinessObject = bocopysrvtrans.SalesInfo
            Dim servtransobj As BusinessObject = orderheaderobj.SalesInfo
            servconfobj.SetAttribute("PoNumberSold", servtransobj.GetAttribute("PoNumberSold"))
            servconfobj.SetAttribute("PoDateSold", servtransobj.GetAttribute("PoDateSold"))

  • What to do if you lost apple claim reference number for downloading Mountain Lion

    Okay, So I just registered my Macbook pro for Apple's Up-to-date program that lets you upgrade to mountain lion if you bought a Mac starting june 11.. So i registered my macbook pro and i forgot to copy the Claim reference number that they give you.. What do you all suggest i do?

    Been waiting 6 hours now, still no email after submitting the form for my retina MBP.  You'd think at least the MBP with retina would be a quick confirmation, since they didn't exist before the eligibility period for getting a free Mountain Lion update....
    Getting rather frustrated here.  I took today off to deal with the upgrade and potential clean install so I'd have it up and running before returning to work tomorrow.  And I've had absolutely NOTHING from apple yet...

  • Where do i find the reference number for my preorder? and yes i no this is prob a dumb question but i cant find it anywhere......

    Where do i find the reference number for my preorder? and yes i no this is prob a dumb question but i cant find it anywhere......

        Hi droidboy52999,
    Your email won't have the same confirmation number as it was ordered over the phone. You will need the last name used for the order, the location code (this ends in 01) and an order number (five to six digit number). Please keep us posted if you need further assistance with this.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

  • Populate header text with reference number and vendor name

    Hi Experts,
    My client wants to populate the line item text field - SGTXT in MIRO / FB60 with the reference number field XBLNR and the vendor name.
    Is it possible to do it before the invoice get posted?. Like, just after the user entered the vendor account number and the reference number in FB60 system picks the vendor name against the vendor number from LFA1 table and the reference number entered in FB60 screen and populates them in text field ?
    Similarly in MIRO - before the invoice get posted is it possible to pick the reference number from MIRO screen and pick the vendor name based on the PO number entered on the MIRO screen.
    Please advise how to do this.
    Thank you
    Shino

    Hi
    This can be achieved by using a User Exit in Substitution rule. This is done through GGB1. Define the rule
    Prerequisite
    (System T Code =FB01 or MIRO) and Account Type = K
    Substitution
    User Exit
    The following link will be of help to you to define a user exit in substitutition rule
    http://help.sap.com/saphelp_46c/helpdata/en/5b/d231a843c611d182b30000e829fbfe/content.htm
    Regards
    Sanil Bhandari

  • F110 - reference number not getting updated.

    Hi,
    The reference number in the line items after running F110 is not getting updated. Is there any configuration I need to do .
    Please help.
    Thanks
    Sabu

    Hi,
    Thanks .
    After applying that note it has now updated the clearing document with reference number from its original document. But I want the reference document to flow/updated into the F110 screen -> DME attributes->refrence number. The table it has to get updated is REGUT-RENUM.
    I am not sure if this has to happen as a SAP standard functionality but this is the requirement given to me.
    Thanks in advance.
    SMS

Maybe you are looking for

  • 24" LED Display from DP/HDMI/DVI

    I have a 24" LED Display and I'm looking to use it with a homebrew PC. The video card I'd like to buy has output in DVI, HDMI and regular DisplayPort (but not Mini DisplayPort). I would think that going between regular DP and mini DP would be easy, b

  • Help with opening PDF files in Firefox

    I can't open pdf files on Firefox, however, I can open them on Safari.  What can I do to get Firefox to open my pdf files?

  • My 808 got screen and camera problems. I need new ...

    My 808 got so many problem..the camera did not working well and the screen has problem.. The camera problem when recording the video, i used to use touch to focus, but the when listen to the video the weird sound was produced while i focused on somet

  • Pixelated Image when Saving as .pdf

    I've been searching the forums looking for a solution to this problem, but I just can't seem to figure it out. Thank you for helping me out. I'm making an 8.5 x 11 inch document and I would like to save it as a .pdf. The text looks great and comes ou

  • Lightroom 5 mobile version still in testversion

    Hello, i used to have the test version of lightroom 5 and lightroom mobile. After the test version of 30 days i bought the full version on amazon. The problem is now, that the mobile version is still in test version. and i can't use it anymore becaus