Document contains some order item more than once - invoice verification

Hi,
we have one cross company stock transfer process in which when a billing is created in SD side, an IDOC will be triggered automatically and create an invoice verification at the MM side.
The problem is some of our billing of this process having an IDOC application error that said.
Document contains same order item more than once
Message no. M8321
Diagnosis
Under the following circumstances, you can settle an order item in an invoice received via EDI more than once:
- Goods-receipt-based Invoice Verification has been defined for the order item.
- The IDoc contains the delivery note numbers of the goods receipts.
System Response
If this is not the case, the system cancels posting of the IDoc.
Question:
1 - The funny thing is IDOC showing 51 IDOC error code message on status record of INVOIC. But the invoice verfication get created in PO history.
2 - I think this error is because we need to make the PO as GR-based Inverifcation. We have flagged it in Vendor master, and Info record, but this indicator is not flag automatically in the PO (and we cannot manually change the PO as this indicator is grey-out). How?
3 - how to solve this error?
Thanks

Once PO history is created, you cannot change the "GR-based-IV" flag. Two options are there before you.
1. Cancel all the GRs & Invoices posted in the STO then system will allow you to update the GR-based-IV flag. After updating this flag repost the GRs and invoices.
2. Create a new STO, now since you have updated the vendor maser & info-record, this flag will automatically get updated during the STO creation itself.
First option is tedious and should be selected only if you can go option 2 is not at all feasible

Similar Messages

  • Error : Document contains same order item more than once in IDOC

    We have Intercompany IDOCs getting created in our system. The
    trigger for this is the Billing Document in the same system in
    differenct company code. The MEssage type being used is INVOIC and the
    basic type is INVOIC01.
    The IDOC is in the status of 51 with the error message
    Document contains same order item more than once
    Message No : M8 321.
    Can anyone tell me why raise this error and how to resolve it?
    Thanks.

    What I have recently learned is that in 6.0 SAP allows the same line item to be on an idoc multiple times.  However, the item has to be GR-based-IV and there has to be a unique entry in the delivery note of the GR.   I have successfully tested this in my development system.  
    What I can't get to work is if the GRs have the same delivery note value.   What I think is happening is these GRs are not unique so SAP cannot match a GR with an IR so it fails with this error. 
    Here are the examples:
    Works 
    GR# A           deliverynote/BOL    "abcd"
    GR# B           deliverynote/BOL     "efgh"
    Invoice idoc
    e1edp02    qualifier 016          abcd
    e1edp02    qualifier 016          efgh
    Doesn't work:
    GR# A           deliverynote/BOL    "abcd"
    GR# B           deliverynote/BOL     "abcd"
    Invoice idoc
    e1edp02    qualifier 016          abcd
    e1edp02    qualifier 016          abcd
    If anyone knows of a way to make the second scenario work, I'd like to hear your solution.
    Thanks
    Sandra

  • EDI Invoicing - Document contains same order item more than once

    Hi,
    While trying to post an inventory invoice with EDI, we are receiving the following error message: Document contains same order item more than once.
    On the PO and the inter-company invoice, the same material come more then 1 time. Can you please tell me what I could do to fix that issue? Ideally we would like to do not modify the PO or Intercompany invoice so that the same material can come more than once.
    Thanks
    Martin

    Hello,
    maybe you've resolved this problem in the meantime.
    I have encountered the exact same problem and will try solving this by setting the flag on field "GR-Bsd IV" in the purchase order at item level under the invoice tab.
    Can you verify this?
    Thanks,
    Amber Morphis

  • Message M8 321 Document contains same order item more than once

    Hi,
    i process incoming invoices by means of bapi_incominginvoice_create/park
    The source data is a file.
    The problem arises when i process the file containing the same order item several times
    in different invoices.
    when the code does:
      PERFORM importing_data_check       TABLES    itemdata
                                                   accountingdata
                                                   taxdata
                                                   withtaxdata
                                                   vendoritemsplitdata
                                                   glaccountdata
                                                   materialdata
                                         USING     headerdata
                                                   addressdata
                                                   c_rbstat_posted
                                         CHANGING  return[]
                                                   f_subrc.
    precisely in:
    *----- Prefetch PO items ---------------------------------------------*
      LOOP AT t_itemdata INTO s_itemdata.
    *----- Check double PO/Item ------------------------------------------*
        f_loop_doublecheck = f_loop_doublecheck + 1.
        LOOP AT t_itemdata FROM f_loop_doublecheck
                           WHERE po_number    = s_itemdata-po_number
                            AND  po_item      = s_itemdata-po_item
                            AND  REF_DOC_YEAR = s_itemdata-REF_DOC_YEAR
                            AND  REF_DOC      = s_itemdata-REF_DOC
                            AND  REF_DOC_IT   = s_itemdata-REF_DOC_IT
                            AND  SHEET_NO     = s_itemdata-SHEET_NO
                            AND  SHEET_ITEM   = s_itemdata-SHEET_ITEM
                            AND  COND_TYPE    = s_itemdata-COND_TYPE
                            AND  COND_ST_NO   = s_itemdata-COND_ST_NO
                            AND  COND_COUNT   = s_itemdata-COND_COUNT
                            AND  FREIGHT_VEN  = s_itemdata-FREIGHT_VEN
                            AND  VALUATION_TYPE = s_itemdata-VALUATION_TYPE.
            e_subrc = 8.
            PERFORM bapireturn_fill USING  'M8'
                                           'E'
                                           '321'
                                           s_itemdata-po_number
                                           s_itemdata-po_item
                                           space
                                           space
                                  CHANGING te_return.
            EXIT.
        ENDLOOP.
        IF e_subrc = 8.
          EXIT.
        ENDIF.
    i get this message M8 321.
    Can i process several invoices containning the same order item in the same execution of the file?
    if so, how?
    warning: i´ve already read this solution
    (belonging to Ram Manohar Tiwari, here http://www.rmtiwari.com )
    *   The following coding is to solve the problem
    *   mentioned in OSS Note 518338.
    *   Same PO item within several invoice items.
    SORT I_ITEM BY PO_NUMBER PO_ITEM.
    LOOP AT I_ITEM.
      ON CHANGE OF I_ITEM-PO_NUMBER OR I_ITEM-PO_ITEM.
        W_COUNTER = 1.
        LOOP AT I_ITEM WHERE PO_NUMBER = I_ITEM-PO_NUMBER
                         AND PO_ITEM   = I_ITEM-PO_ITEM.
          IF W_COUNTER EQ 1.
            I_ACCOUNTINGDATA-SERIAL_NO = '01'.
            I_ACCOUNTINGDATA-XUNPL     = ' '.
          ELSE.
            I_ACCOUNTINGDATA-SERIAL_NO = ' '.
            I_ACCOUNTINGDATA-XUNPL     = 'X'.
          ENDIF.
          MODIFY I_ACCOUNTINGDATA
           TRANSPORTING SERIAL_NO XUNPL
          WHERE INVOICE_DOC_ITEM = I_ITEM-INVOICE_DOC_ITEM.
          W_COUNTER = W_COUNTER + 1.
        ENDLOOP.
    *     To solve the repetition of PO item in subsequent invoices.
      ELSEIF SY-TABIX EQ 1.
        W_COUNTER = 1.
        LOOP AT I_ITEM WHERE PO_NUMBER = I_ITEM-PO_NUMBER
                         AND PO_ITEM   = I_ITEM-PO_ITEM.
          IF W_COUNTER EQ 1.
            I_ACCOUNTINGDATA-SERIAL_NO = '01'.
            I_ACCOUNTINGDATA-XUNPL     = ' '.
          ELSE.
            I_ACCOUNTINGDATA-SERIAL_NO = ' '.
            I_ACCOUNTINGDATA-XUNPL     = 'X'.
          ENDIF.
          MODIFY I_ACCOUNTINGDATA
           TRANSPORTING SERIAL_NO XUNPL
          WHERE INVOICE_DOC_ITEM = I_ITEM-INVOICE_DOC_ITEM.
          W_COUNTER = W_COUNTER + 1.
        ENDLOOP.
      ENDON.
    ENDLOOP.
    *   Changes over for  OSS Note 518338.
    in this OSS Note 518338 it says:
    Solution
    Fill the tables as described in the documentation for the BAPI. If you want
    to post unplanned account assignments for the invoice, fill field
    'Unplanned account assignment from invoice verification' (XUNPL) in table
    ACCOUNTINGDATA instead of field 'Serial number of account assignment'
    (SERIAL_NO).
    The question is that i do not have unplanned account assignment.
    Any hint or suggestion would be greatly appreciated
    Best regards.

    Hi!
    In your BAPI programs, you can not fill 2 or more invoice's items              
    with same reference data into the BAPI interface table ITEMDATA.                                                                               
    In your input data for BAPI with multi acc.assignment you should fill          
    only one entry in ITEMDATA for given PO and more entries in                    
    ACCOUNTINGDATA, each for a different SERIAL_NO.                                                                               
    When you use multiple account assignment in  BAPI_INCOMINGINVOICE_CREATE       
    then you have to fill the SERIAL_NO manually in the interface of bapi.         
    Serial_No should contain 01,02 so on depending upon number of account          
    assingnments the PO item has it. You can see the PO in transaction ME23N       
    and then fill SERIAL_NO in the BAPI.                                                                               
    Otherwise it can cause others problems in GR/IR account in the FI DOC          
    and PO history, as well as in the further invoice processes reference to       
    the PO/item (ex. MR8M, MR11, or create another new MM-invoice DOCs).           
    For more information on this please review the following attached notes:       
    972627  BAPI: Message M8 321 is displayed for no reason                        
    512282  BAPIs: Service-based invoice verification.                             
    Please check also the following information:
    After applying the note 661864 the standard system doesn't support                                       
    several invoice items reference to same PO/item and GR/item in the                                       
    BAPI process anymore. Mainly this note was developed to avoid short                                      
    dump. Now the message M8321 is issued.                                                                               
    As you create MM-invoice using on-line transactions (ex MIRO), automatic                                 
    processes (ERS, EDI) or BAPI as well, system will create or accept                                       
    the invoice item in this way:                                                                               
    Each item for a different reference data (EBELN,EBELP,LFGJA,LFBNR,LFPOS                                  
    for normal PO, as well as PACKNO and INTROW for service PO):                                                                               
    EBELN: PO's No.                                                                               
    EBELP: PO's item No.                                                                               
    LFGJA: original GR's year,                                                                               
    LFBNR: original GR's No.                                                                               
    LFPOS: original GR's item No.                                                                               
    If the PO is with indicator 'GR based-IV'='X', the reference data (LFGJA                                 
    LFBNR and LFPOS) must not be space. It means, you can't create an                                        
    invoice reference to the PO before posting of the corresponding GR DOC,                                  
    and one invoice item must be reference only to one GR DOC/item.                                                                               
    Otherwise if the PO is with 'GR based-IV' = ' ', the reference data                                      
    (LFGJA,LFBNR and LFPOS) are always space, you can create an invoice                                      
    reference to the PO before the GR DOC or without GR DOC, or one invoice                                  
    item can be reference to more GR DOC/items.                                                                               
    And the concept is valid for the PO with 'GR based-IV' or without it.
    Best regards
    Erika

  • I purchase ringtone from itunes but my item wasnt showing that it was downloading itunes charge me for the same item more than once.asking for a refund who do i talk too? is there a number i can call?PLEASE HELP!!!!!

    please helping looking into a refund

    You can contact iTunes Support via this link : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption , and then see what contact methods are available

  • Can the same partner function be entered in the sales order more than once.

    Hi
    I know that as per standard same partner function cannot be entered more than once in Sales order.
    If somebody has tried ways to do this please share.
    THanks
    Alags

    Yes. You can have multiple Ship to Party, Bill to Parrty & Payer in Sales Order. But Sold to Party will have to Unique & single.
    This functionality of having multilpe Partners is widely used & just follow as Deepak suggested above & you too can have multiple Partners of same type in single Sales Order.
    But there has to be a strong Business case in doing so... say different Ship tp Party for different line items in Sales Order or different BIll to Party for some line Items in Sales Order.
    Hope this helps,
    Thanks,
    JIgnesh Mehta

  • Am I able to download items that I have purchased from Itunes more than once?

    Am I able to download purchased items from ITunes more than once?

    Go to the iTunes Store, log into your account, and click the Purchases link under the Quick Links. From there you should be able to re-download some or all of your purchased content. Note that not all content has been licensed for re-downloading in all countries at this time. You can see what content you can download here:
    http://support.apple.com/kb/HT5085
    You can also re-download content using an iOS device.
    For full instructions, see:
    http://support.apple.com/kb/ht2519
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • HT1040 Is there a way to place an order with more than one item at a time? For example I am going to make a few books and have them all shipped to me.  Do I have to order and pay shipping for each one individually?

    Is there a way to place an order with more than one item at a time?  for example I am making a few books and having them all shipped to me.  Do I have to order each one separately and pay shipping each time?

    You have to order each book separately, if the books are different. Only multiple copies of the same book can be ordered in the same order, see here
    Regards
    Léonie

  • HT1918 I'm having some issues trying to change my account billing---I have a new debit card and i need to punch in the new number but when i go to edit my info itunes says my 'session has timed out.' i've logged in and out more than once. what's the probl

    i'm having some issues trying to change my account billing---I have a new debit card and i need to punch in the new number but when i go to edit my info itunes says my 'session has timed out.' i've logged in and out more than once. what's the problem?

    Try to change the credit information from your iphone or other ios device. Tap on settings > store > tap Apple ID > tap view account > tap payment information > change

  • Hello, I have installed Reader, Adobe Acrobat, trial versions of Photoshop and Illustrator. Some more than once. They work for a few days at most then I am told to re-install. I cant look at any pdf file even though I can still see reader in my programs.

    Hello, I have installed Reader, Adobe Acrobat, trial versions of Photoshop and Illustrator. Some more than once. They work for a few days at most then I am told to re-install. I cant look at any pdf file even though I can still see reader in my programs. What is going on and what can I do to fix this?

    Unfortunately no, It says "Adobe not responding" as well when I try to open a pdf. It has done this a few times where I had to uninstall and reinstall. Also, Illustrator tells me to uninstall/reinstall as well.

  • I have 2 problems with Mail. I cannot address an email to more than one recipient. And I receive some emails more than once.

    I have 2 problems with Mail. I cannot address an email to more than one recipient. And I receive some emails more than once. Can you please help?

    Restart your Mac. See if that makes a difference.

  • I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup

    I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?

    Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers

  • ICloud has added some albums more than once when viewed on my iPad.Is it possible to delete the unwanted extra copies.

    How do I erase unwanted albums from iCloud.On my iPad the same album has been added more than once yet on my mac with iCloud there are no issues.

    I assume you mean photo albums.  How were these albums added in the first place?  Where they created on your iPad?  Do they have the same name?

  • Clear the line items more than 999 through F-28

    Hi,
    I have one issue,
    senario is like below:
    Step1:
    F110 - Create the payment order for customer. if customer have more than 999 line items also payment order is updating
    Step2:
    Clear the invoices with referece to Payment order in F-28
    here while clearing the customer line items using payment order referece if line items is more than 999 for customer it is not allowing to clear. error message is line items more than 999.
    I have checked with tecnical people can we split the clearing if more than 999 line items. as per them is if it is not referece to payment order it is possible to write some code based on document type or posting date they can split.
    here it is not possible. I tried with summrizaiton senario as specified in sap notes if line items more than 999. it is not also working.
    i have one more question also while running f110 can we restrect the payment order to geneare upto 999 line items if it exceeds it should create other payment order of remaing line items so on.. is it possible?
    can any body give a light to resove this issue.
    BR:
    Venkat.Gurram

    Hi,
    I have already checked that link .
    I have implemented the note: 36353 for summrizaiton.
    for payment order we can't do sumarization due to we can't the payment order while cleargin.
    give me some other idea
    BR:
    Venkat.Gurram

  • Document/literal style wsdl with more than one port

    Recently I have changed wsdl style from rpc/encoded to document/literal as BPEL does not handle soapenc:arrayType. The wsdl contains 2 operations and few complex type definitions.
    In BPEL Designer I have created a process that invokes all operations defined in the wsdl, but only one of them will have some data in the response message and the other one will have an empty message. On the other hand, when I use stub generation to invoke Web Service everything is working fine.
    If I provide separate wsdl for each operation (in BPEL process I would have two partnerLinks instead of one) than it works fine.
    Does this mean that BPEL does not handle document/literal style endpoints with more than one port (operation)?
    I have tested this with the orabpel_2.0_J1_win32.exe and orabpel_2.0rc9_win32.exe. Web Services, used for this test, are deployed in Jboss 3.2.3 and axis-1_2beta3.
    WSDL used as partnerLink:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions targetNamespace="http://test" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://test" xmlns:intf="http://test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://test" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="CardId">
    <sequence>
    <element name="cardType" nillable="true" type="xsd:string" />
    <element name="number" nillable="true" type="xsd:string" />
    </sequence>
    </complexType>
    <complexType name="CardIdArray">
    <sequence>
    <element maxOccurs="unbounded" name="item" nillable="true" type="impl:CardId" />
    </sequence>
    </complexType>
    <element name="getCardsReturn" type="impl:CardIdArray" />
    <complexType name="CardholderCards">
    <sequence>
    <element maxOccurs="unbounded" name="cards" nillable="true" type="impl:CardId" />
    <element name="serialNumber" nillable="true" type="xsd:string" />
    </sequence>
    </complexType>
    <element name="retrieveChReturn" type="impl:CardholderCards" />
    </schema>
    </wsdl:types>
    <wsdl:message name="retrieveChRequest" />
    <wsdl:message name="getCardsRequest" />
    <wsdl:message name="retrieveChResponse">
    <wsdl:part element="impl:retrieveChReturn" name="retrieveChReturn" />
    </wsdl:message>
    <wsdl:message name="getCardsResponse">
    <wsdl:part element="impl:getCardsReturn" name="getCardsReturn" />
    </wsdl:message>
    <wsdl:portType name="TestService">
    <wsdl:operation name="getCards">
    <wsdl:input message="impl:getCardsRequest" name="getCardsRequest" />
    <wsdl:output message="impl:getCardsResponse" name="getCardsResponse" />
    </wsdl:operation>
    <wsdl:operation name="retrieveCh">
    <wsdl:input message="impl:retrieveChRequest" name="retrieveChRequest" />
    <wsdl:output message="impl:retrieveChResponse" name="retrieveChResponse" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TestServiceSoapBinding" type="impl:TestService">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="getCards">
    <wsdlsoap:operation soapAction="" />
    <wsdl:input name="getCardsRequest">
    <wsdlsoap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="getCardsResponse">
    <wsdlsoap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="retrieveCh">
    <wsdlsoap:operation soapAction="" />
    <wsdl:input name="retrieveChRequest">
    <wsdlsoap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="retrieveChResponse">
    <wsdlsoap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TestServiceService">
    <wsdl:port binding="impl:TestServiceSoapBinding" name="TestService">
    <wsdlsoap:address location="http://localhost:8080/axis/services/TestService" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    Hi Dragana,
    We definitely support the ability to call a web service that exposes two operations (document/literal or not).
    Glancing through your WSDL, it looks good.
    Could you please try to tunnel the second request and see 1) what data is sent to the service and 2) what data is returned by the service?
    Can you please email us a reproduceable case so that we can help troubleshoot in parallel?
    Thank you,
    Edwin
    [email protected]
    please rename .zip to .zap

Maybe you are looking for

  • How do I tell if a site is blocked by Firefox?

    I work from a secure Microsoft Exchange email site. It was originally blocked by Firefox when I was hired about two months ago, but I was able to unblock it. Today I am unable even to get the login page to load. I'd like to find out if Firefox has it

  • Adaptive wide angle filter error for iPhone 4s in PS CC

    Hello, I have just watched a tutorial on Adobe TV regarding the new adaptive wide angle filter used on pre-stitched panoramas. I open an iPhone pano image. go to filter–>adaptive wide angle filter and in the lower left corner I find – as indicated as

  • Operating Unit List Of Values is Null When Entering Transaction Types

    Hi, Operating Unit List Of Values is null when entering Transaction Types in Receivables Manager responsibility. I also re-checked MO: Security Profile and MO:Operating Unit Profile options that were set correctly. Please let me know how to troublesh

  • How come I can't add another credit card

    I have tried to add another credit card and it isn't allowing me to....any suggestions?

  • Sidecar.xml first generation

    Johannes granted us with the excellent : http://projects.nordsueddesign.de/sidecarxml/ so that we can organize and easily manipulate elements of a large publication. The thing is it requires a "first time generation" which seems to have to be done ma