Inbound INVOIC01 IDOC problem

Hi,
I am working on inboind INVOIC01 idoc and i am facing some problem in that.
When IDOC comes in it is creating application document ( Status 53 ). When i go and check in transaction MIR4 the application document (Invoice) is created. But the problem is, the Invoice is not being posted.
When i see the invoice document, there is not tax code and so the invoice does not show any amount. I do not know why it is happening.
Can anyone let me know what are the all required segments / fields for inbound invoice interface. What are the all configuration options required for it.
Thanks,

Hi Srinivas,
Thanks for your reply.
I have already configured the tax code config and now invoices are created correctly.
But now i have one scenario which i am tying to figure out how to get it right.
Let say for example
<u>Example - 1</u>
- i have PO with 1 line iteam with Quantity = 1 and amount $100. ( we mostly have PO with quantity =1 and only thing matter is $ value )
- If the incoming invoice also have quantity = 1 and amount $100, it works fine.
- But the problem is, sometime vendor sends the partial invoice. that is, quantity = 1 but amount $ 50. There can be multiple invoice with same quantity as PO line item different amount at different time. In this case i am gettng "Account Determination" error ( message  M8 147 ). Is there any way i can make this scenarion work. 80% of invoices comes like this. Please let me know
<u>Example - 2</u>
- i have PO with 1 line iteam with Quantity = 2 and amount $200.
- If the incoming invoice also have quantity = 1 and amount $100, it works fine. Also, if it has quant = 2 and amount $ 200 it works fine. In other workds the quantity / amount ratio in invoice matches that of PO, it works fine.
- But in few case we will get invoice with quantity = 1 ( PO as quant = 2) with amount 80 ( infact, any value other than 100. PO has $200, $100 / 1 each ) and in this case invoice is failing too.
Can you please let me know, is there any setting in Logistic Invoice Verification, to support these scenarios.
Thanks
Pratik

Similar Messages

  • Import & submit inbound Invoic01 idoc

    Hi experts:
    I´m actually trying to create invoices by using xml based invoic01 idocs.
    The process i´ve implemented is:
    Read incoming XML file with invoices´s data.
    Create a invoic01 xml idoc file in sap application server.
    Call EDI_DATA_INCOMING  FM to create idocs and start invoice creation process.
    The port type i´m using us xml file port, and in the outbound trigger, i put a RFC destination which triggers the startrfc program (I actually don´t know what do i have to put in the command file).
    The problem I´ve found is that the idocs's process get stopped with status 64 (the system is not triggered), and it is necessary to use we19.
    ¿Does anyone call tell me (as detailed as possible) how must i setup the XML file port to trigger the system?
    If the problem is not related with the port, ¿where is it?.
    Thanks in advance for your response.
    Useful answers will be rewarded.

    Hi Srinivas,
    Thanks for your reply.
    I have already configured the tax code config and now invoices are created correctly.
    But now i have one scenario which i am tying to figure out how to get it right.
    Let say for example
    <u>Example - 1</u>
    - i have PO with 1 line iteam with Quantity = 1 and amount $100. ( we mostly have PO with quantity =1 and only thing matter is $ value )
    - If the incoming invoice also have quantity = 1 and amount $100, it works fine.
    - But the problem is, sometime vendor sends the partial invoice. that is, quantity = 1 but amount $ 50. There can be multiple invoice with same quantity as PO line item different amount at different time. In this case i am gettng "Account Determination" error ( message  M8 147 ). Is there any way i can make this scenarion work. 80% of invoices comes like this. Please let me know
    <u>Example - 2</u>
    - i have PO with 1 line iteam with Quantity = 2 and amount $200.
    - If the incoming invoice also have quantity = 1 and amount $100, it works fine. Also, if it has quant = 2 and amount $ 200 it works fine. In other workds the quantity / amount ratio in invoice matches that of PO, it works fine.
    - But in few case we will get invoice with quantity = 1 ( PO as quant = 2) with amount 80 ( infact, any value other than 100. PO has $200, $100 / 1 each ) and in this case invoice is failing too.
    Can you please let me know, is there any setting in Logistic Invoice Verification, to support these scenarios.
    Thanks
    Pratik

  • Inbound Invoice IDoc - Problem, Please clarify.................

    Hi All,
    I am implementing an Inbound INVOIC02 IDoc for posting Credit Memo that references purchase order. But there is some unique thing. This IDoc is used to post only the SAC (D240 - Freight Allowance).
    Freight Allowance will come at Header level on the X12. This amount should be posted to a G/L account.
    I want this SACD240 amount to be mapped onto IDoc.
    I have extended the IDoc with a Z-segment @ line item level and is mapping into this z-segment.
    The mapping team came up with a question. If SACD40 is mapped onto Z-segment. And no other line item information is present on the X12/IDoc (such as matnr). Will SAP process this IDoc??
    Plz clarify??
    Thanks,
    Creasy

    data in extended Z segment would not get processed automatically.
    If std Function module IDOC_OUTPUT_INVOIC is used as inbound process code then
    you need to add custom code in  exit   CALL CUSTOMER-FUNCTION '001'   include ZXEDFU01 to pass to correct fields. or you may have to call another FM or BDC to pass data to required transaction/fields.

  • Terms of payment key in INVOIC01 Idoc

    Hi,
    We are processing inbound INVOIC01 IDOC types to load suppliers invoices in SAP.
    In the segment E1EDK01, the field ZTERM ( Terms of payment key ) is filled with a valid value. The problem is the invoice is created with blanks in that field, so the value of the IDOC is not transported to the invoice.
    Does anyone have had a similar problem, and knows how can we solve this ?
    Or does anyone has any idea of what may being heppening ? Like the need to use another segment of the IDOC or anothe issue(s) i may have attention to.
    Thanks,
    Paulo Sousa

    I,
    I solved the problem with EXIT_SAPLMRMH_014.
    The process does not pass in other sugested user-exits.
    Kind regards,
    Paulo Sousa

  • How to post Freight Charge in INbound INVOIC Idoc? (MM Invoice Verif)

    Hi Folks,
    Would like to post an inbound invoice(810) IDoc  that has multiple line items that may or may not have variances(quantity, price, etc.). MM Logistics Invoice verification is the process used for posting our invoices for raw materials. We would like for the line item variances to continue to post to the PPV account. Our problem is freight. Freight in this instance is in the header of the IDOC(segment E1EDK05). For example, we create a purchase order with 3 line items for $100.00 each totaling $300.00 for the purchase order. We receive an EDI Invoice for $345.00 which contains a $45.00 charge in the header for freight. We would like for the freight to be posted to the appropriate account. Currently the $45.00 difference in P/O total and Invoice total is being posted to the PPV account. Your helpis appreciated!
    What if Freight charge is populated as Line item in the inbound invoic idoc. Will the inbound program allow this kind of posting??
    Throw some light experts.
    Thanks,
    Matt
    Edited by: Creasy Matthew on Aug 16, 2009 6:25 PM
    Edited by: Creasy Matthew on Aug 16, 2009 6:25 PM

    Yes, you can include the freight cost in line item as well but that would not be advisable. Why don't you include Fright Cost in your pricing procedure ??? Do check the following link
    How to account freight in purchase order

  • Regarding Inbound Order Idocs

    Hi All,
    I want the tables in which Inbound Order Idocs were stored,
    Use WE02 transaction,
    i am trying to find the tables , but i cant, plz any body help me in this problem,
    Balu.

    Hi bala,
    do one thing..u wil get the idoc number as 0000000000123456(16 digit)..
    please chek the document numebr in the ztable,say for example in ur ztable it  is 10 character length.so u have extra 6 characters.
    so what u do is use CONVERSIONEXIT function module and delete the leading zeros,
    if u do like this.it will be 10 characters...
    now u can write the select query as u written,it won't give any error..
    Regards,
    Nagaraj

  • How do you determine debit vs. credit in an invoic01 idoc?

    Hi all,
    I'm relatively new to the EDI area of SAP - We have edi documents (X12 810) that are coming into our R/3 47 system via invoic01 idoc.  The problem is that credits are being posted as debits.  I can see in the X12 document that it is marked "CR", but I don't see where to look in the invoic01 idoc type to see if it's getting there as a credit.  Any ideas / suggestions?
    Thanks,
    Ken Little

    Ken, take a look at the value being mapped to the E1EDK01-BSART field.  Is it 'CRME' or 'INVO' or other?  This value controls the setting of the variable 'bsart_cremem' and subsequent debit/credit handling from there in the IDOC process code.

  • Inbound Invoice idoc segment feilds mapping to SAP feilds

    Hi,
    Could you please help me to find out the tables and feilds in SAP for the inbound invoice idoc type INVOIC01. I need to map the idoc segment fields with SAP fields and respective tables.
    Thanks in Advance
    Satish

    Hi Satish,
    That's quite a big case to get such mapping - why would you need it really? You can process Idoc with std process codes and you will see the std mapping then happening.
    You can also go through logic of processing modules:
    Function Module Name          Short text for function module
    IDOC_INPUT_INVOIC_FI           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MM           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MRM
    For sure you will get RBKP for header, RSEG for items, RBTX for taxes and some more, depending on what you get in the invoice and what are your booking and matching processes.
    Best Regards,
    Tomek

  • How to delete E1EDP19 002 segment frm the inbound ORDERS IDoc?

    Hi ABAP/EDI experts,
    I am implementing an User exit related to inbound Sales order EXIT_SAPLVEDA_001.
    Most of the time my IDocs contain the below segments.
    E1EDP19 001 (QUALF = '001')
    E1EDP19 002 (QUALF = '002')
    Sometimes, IDoc contain only E1EDP19  001 (QUALF = '001') segment.
    My problem is whenever i have two E1EDP19 segments, i want to delete the 1st E1EDP19 segment and retain the second E1EDP19 segment.
    Can anyone tell me the pseudocode for deleting the 1st E1EDP19 segment from the inbound orders IDoc.
    Am i using the correct user exit??
    Thanks,
    Creasy Matt
    Edited by: Creasy Matthew on Jan 22, 2009 12:56 AM

    Hi Matt,
    You can loop on idoc_data internal table. This table will be having all the data and the segments.
    data: l_count type i value 0,
            l_tabix type sy-tabix.
    LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
    CASE idoc_data-segnam.
    WHEN e1edp19.
    l_tabix = sy-tabix.
    l_count = l_count + 1.
    if l_count = 2.
       l_tabix = l_tabix -1.
      delete idoc_data index l_tabix.
    endif.
    ENDCASE.
    ENDLOOP.
    I hope this will work.
    Please let me know if any issues.

  • INVOIC01 IDoc - Map posting date

    I have a problem with the mapping of the posting date in an incoming INVOIC01 IDoc.
    Although the posting date is mapped on segment E1EDK03 with IDDAT = '015' (Invoice posting date (Invoice tax point date)), the resulting invoice has the system date as posting date.
    Is it possible to post an incoming (fincancial or logistics) INVOIC01 IDoc on a specific posting date?
    Kind regards
    Frank

    I solved the problem by debugging the FMs IDOC_INPUT_INVOIC_FI and IDOC_INPUT_INVOIC_MRM.
    For the FI invoice:  Qualifier 026 (billing date) has to be used.
    For the MM invoice: The document date (qualifier 012) is used as posting date.

  • How to process inbound failed IDOCS

    Hi Guys,
    Actually in outbound idocs are created with one comapny code, but in inbound idocs are failed with  company code is not availabe i.e, menas outbound company code is not availabe in inbound side.
    inbound is production system not allowing our new company code
    Is there any technique to post the failed idocs due to company code in inbound side

    outbound is production system, idocs created in outbound and transfered to inbound , but the problem is after idocs are came to inbound we will try to post with <b>another company code</b> not with existed company code in IDOC

  • When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code".

    Hi Experts,
    When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code". As checked, we have configured OBCD and OBCA for the vendor and we are passing the Tax Jurisdiction code in E1EDP04 SAL segment. Can anybody give us some idea to resolve this issue.
    Regards,
    Sameek

    Hi Sameek,
    Please refer the below link. Hope it helps.
    http://scn.sap.com/thread/1435286
    Regards,
    Chandan.

  • How to track the Inbound child IDOcs in PI 7.4 Single stack

    Hi Friends,
    I would like to know the procedure of tracking the Inbound child IDocs in PI 7.4 Single stack.
    Here is the detailed description.
    Say we are getting the data from third party system and the message may have multiple IDOcs in it. The message has processed successfully from PI and reached to the target system(ERP). So, now my question is how to track the IDOc count with in that message.
    Please suggest on the same.
    Thanks in Advance,
    Venkateswarlu.

    Hi Hareesh,
    Thanks for your inputs. According to the link IDOC Status, Tracking in SAP PI/PO Single Stack I am thinking the required funcionality is not there in PO 7.4, but still i would like to have little more clarity before moving further.
    I will explain what what was happening in PI 7.11 so that you can understand what i am looking for in PO 7.4.
    We will get the data from third party system in xml format, we had to search for the messages based on interface name and time range within SXMB_MONI. After getting the result(say the output is 100 messages), we will download the values of "Outbound Reference" field(which is a key to find the child messages for messages resulting in an Interface Collection). Below is the snap of Outbound Reference field for your reference.
    Now we will go to the table IDXRCVPOR in SE16(within PI) and put the values of Outbound Reference field in Text 24 and execute. Here we will get all the child messages.
    Now please let me know if this kind of scenario is possible in PO 7.4.
    Thanks,
    Venkat.

  • Prevent Posting of an Inbound SHIPPL IDOC using EXIT_SAPLV56I_011?

    Under certain circumstances (current shipment status), I need to prevent the update of a Shipment from an Inbound SHIPPL IDOC.  The documentation for function module EXIT_SAPLV56I_011 states:
    If a check determines that the shipment is not to be updated, the
    return code should be set to value zero and the cause should be noted
    in an entry in table IDOC_STATUS.
    I have programmed according to the documentation (see below). The IDOC
    status reflects my status correctly (63) however the Shipment is still
    updated even though the return code is set to zero.
    IF lv_sttrg = '5'.
    ls_bdidocstat-docnum = idoc_contrl-docnum.
    ls_bdidocstat-status = '63'.
    ls_bdidocstat-msgty = 'E'.
    ls_bdidocstat-msgid = 'VW'.
    ls_bdidocstat-msgno = '238'.
    ls_bdidocstat-msgv1 = gs_e1tpshh-shpid.
    ls_bdidocstat-msgv2 = lv_sttrg.
    APPEND ls_bdidocstat TO idoc_status.
    subrc = 0.
    EXIT.
    ENDIF.
    Looking for any ideas as to why this logic is not working.
    Thanks in advance for any iinput.

    Hi,
    I think, you should set the value of SY-SUBRC to non-zero value.   See the Code after the call to the Enhancement component "EXIT_SAPLV56I_011", it proceeds with creation of SHIPMENT if SY-SUBRC is initial.
    See the Code in include "LV56IF0T", Line number 111,133.
    if call_subrc ne 0.
          subrc = call_subrc.
        endif.
        if subrc is initial.
    * Shipment check complete
          perform shipment_event_check_complete
                           changing subrc.
        endif.
    endif.
    Regards
    Vinod

  • Which table stored the Inbound ASN IDOC # and corresponding In.B Delivery#

    Hi,
    May i know which table stored the inbound ASN IDOC# and corresponding created Inbound Delivery number??
    Thanks!!

    Dear Hoo Laa,
    You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
    Regards
    Samier Danish

Maybe you are looking for

  • Fx4 - No signed digest found in catalog.xml of the library

    Hi all, I'm trying to use Flex 4 compiling the simple example on LineChart and AreaCharts controls in Flex 4 (see in laguage reference of Flex4) I really cut and pasted in a mxml file. Then I tried compiling it (simply calling mxmlc passing the suorc

  • Post deinstallation debris

    Hi there, It's there a program that will care to remove left-over files, when one remove an application. Even better to check the packace database and remove those orphaned files. Just to mention that my home (a partition) has survived 3 distros and

  • Hydraulic system - how to control a servo valve?

    Thanks for ur attention. I just set up a oil hydraulic system and mechanism that is such a MTS(material test system). And my question is how to let my cylinder go forward at a constant velocity. Because when the cylinder contact my specimen(I have ma

  • Can I execute a program (like embedding browser) in J2ME program?

    Excuse me~ can I use any function to execute embedding browser on the cell phone in a midlet? thanks for reply.

  • Connecting Mac and PC to Airport Extreme

    Trying to migrate some files from a PC to a Macbook and am having trouble. After many failed attempts, it seems to me the best way is to connect both the PC and the Mac directly to the Airport Extreme. I am asking if this is possible, will it work to