Activate standard sum segment in INVOIC iDoc

Dear experts,
I am not sure if I am in the right board but I hope you can point me in the correct direction.
I have to map INVOICE02 to INVOIC EDIFACT format and in the sum segments of the EDIFACT message
I need a sum of all discounts.
Now in WE60 I checked the INVOIC02 structure and saw that in E1EDS01, QUALF='020' I get the sum of "allowances/charges".
But in my iDoc example I do not have an E1EDS01, QUALF='020'.
How can I "activate" or add that standard sum segment to my INVOICE02 iDoc?
Thank you for your help and best regarsd,
Peter

Hello TW Typewriter,
thank you for your comment. Yes, other fields are populating. Yes, there are discounts given in the invoice.
I checked one of the invoices in SAP ERP and in the head under "Conditions" I can see that there are 2 different Z-rebates and field that contains the sum of the two rebates.
But that sum I can't find in the iDoc.
I guess I have to sum up discounts myself implementing a user exit and looping over all the positions with possible discounts.
Thank you again and best regards,
Peter

Similar Messages

  • Which segment in INVOIC IDoc holds Allowance value @ header level?

    Hi all,
    I want a segment in INVOIC IDoc to hold SAC (Service Allowance and Charge) Values @ Header level. Plz suggest me one. I know @ item level SAC values are stored in E1EDP26 segment. Tell me which segment i can use it for holding SAC values at header lever??
    Thanks,
    Creasy

    Thanks MxG for your reply.
    I have a scenario. I have to accommodate EDI SAC codes into SAP through IDocs(inbound vendor invoice (FB60)). I have around 4 to 6 SAC codes which have values that will be either credited or debited to GL accounts. some are at header level and some are at detail level.
    How come I implement this scenario. I have no clue to implement this scenario.
    Plz do reply.
    Thanks very much,
    Creasy

  • Populating segment in INVOIC IDOC

    Hi,
    I have a requirement where I need to insert a standard segment E1EDKT1 with a different qualifier in the IDOC INVOIC2.
    I see that this segment is repeated several times with different qualifiers starting from 001,002,Z001 and so on and there is a child segment E1EDKT2 under this segment which is also repeated multiple times for each E1EDKT1.
    <E1EDKT1 SEGMENT="1">
        <TDID>001</TDID>
        <TSSPRAS>EN</TSSPRAS>
        <TSSPRAS_ISO>EN</TSSPRAS_ISO>
        <E1EDKT2 SEGMENT="1">
            <TDLINE>some text</TDLINE>
            <TDFORMAT>*</TDFORMAT>
        </E1EDKT2>
        <E1EDKT2 SEGMENT="1">
            <TDFORMAT>*</TDFORMAT>
        </E1EDKT2>
    </E1EDKT1>
    and so on for different qualifiers...
    I now have to insert the same segments after all the standard qualifiers are executed in the userexit. I am facing difficulty in identifying the end of running of all the above segments before I can append mine.  Can you please let me know how I can identify the end of above segments before I can insert mine. End of last E1EDKT2 for the last occurrence of E1EDKT1.
    Regards
    Praneeth

    Hi,
    try this for insert:
    DATA:
      ls_edidd    LIKE LINE OF int_edidd,
      lv_pos      TYPE i,
      ls_e1edkt1  TYPE e1edkt1,
      ls_e1edkt2  TYPE e1edkt2.
    * check if insert was already done
    READ TABLE int_edidd WITH KEY segnam = 'E1EDKT1' sdata(4) = 'Z003' TRANSPORTING NO FIELDS.
    IF sy-subrc <> 0.
    * check if header text from SAP is finished
      READ TABLE int_edidd WITH KEY segnam = 'E1EDK14' sdata(3) = '008' TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
    * insert E1EDKT1
        lv_pos = sy-tabix.
        ls_e1edkt1-tdid        = 'Z003'.
        ls_e1edkt1-tsspras     = 'U'.
        ls_e1edkt1-tsspras_iso = 'FI'.
        ls_edidd-segnam = 'E1EDKT1'.
        ls_edidd-sdata = ls_e1edkt1.
        INSERT ls_edidd INTO int_edidd INDEX lv_pos.
    * insert E1EDKT2
        ADD 1 TO lv_pos.
        ls_e1edkt2-tdline   = 'TEXT'.
        ls_e1edkt2-tdformat = '*'.
        ls_edidd-segnam = 'E1EDKT2'.
        ls_edidd-sdata = ls_e1edkt2.
        INSERT ls_edidd INTO int_edidd INDEX lv_pos.
      ENDIF.
    ENDIF.
    BR

  • Missing segment in invoice idoc

    Problem: A segment in IDOC is missing. This contains the internal record text of a pricing condition type... when i look at the condition type, no changes were made to it since it's creation and it is automatically determined in the pricing condition in sales order. The condition record text is optional but the business now wants to see this text.
    Question:
    1. I want to know the reason why this segment is missing?
    2. Does the condition type has something to do with it?
    3. How can I make this segment appear in the IDOC?
    thanks and i look forward to your replies...

    Hi,
    1. Check the FM module related to this IDOC. See where this segment is being populated. Put a break-point there and debug the code where it is failing to add this segment.
    2. Once you debug the code, you would come to know that if condition type has something to do with this or not.
    3. If you want this segment to populate on IDOC then find out the user-exit in IDOC processing ( most probably in FM ) and add this segment.
    If you tell me which IDOC/message type/process code you are using, i can tell you the user-exit and i might be able to answer too why the segment is not getting populated. Also let me know which segment you are talking about
    Let me know if you need any other information.
    Regards,
    RS

  • Segment/Field name for Unplanned delivery costs in Inbound Invoic Idoc?

    Hi Folks,
    Will you please let me know the name of the segment/field (IDoc type INVOIC) for unplanned delivery costs on Inbound Invoic Idoc??
    Thanks,
    Matt

    Hi,
    Am facing the same issue and did tried the E1EDS01 segment. SUMID = 20 and passing the value to field BEZNK, but its not updating the value.
    Could you please give me some more info. how to achieve it.
    Thanks,
    Aniket Korde

  • TAX ASSESSMENT BASIS MISSING IN SEGMENT E1EDK04 FOR IDOC INVOIC

    Hello,
    Tax assesment basis is missing in segment E1EDK04 for IDOC INVOIC. In EDI messages,Tax assesment basis has to be sent in TAX segment together with VAT rate. When there is only one VAT rate this is not a problem as tax assessment basis is the total net amount (And we have it in the IDOC). On the other hand when there is more than one VAT rate in the invoice, we don't have in the IDOC the Tax assesment basis of each VAT rate.
    Did someone experience this issue ? How did you handle it ?
    Regards.
    Eric.

    Dear Eric
    The latest pack available now for these components are (for PI 7.1)
    SAP BASIS 7.11 support package 6
    SAP HR 6.04 with Support Package 44
    If you are in PI 7.0 then I suggest you download the latest patch from marketplace.
    Sourabh

  • 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

  • Inbound processing of INVOIC IDOC without PO number and item check

    Hi All,
    I'm processing an Inbound INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order but wish to do process this based on the delivery note number rather than the PO number. The INVOIC IDOC will not contain a reference to the Purchase order and thus the need to process it based on the delivery note number which will be referenced in the Purchase order Goods receipt.
    However, when processing the Inbound INVOIC IDOC it is validating that the number in IDOC segment E1EDP02 with QUALF 001 is the purchase order number. In this scenario it won't be and therefore it errors. The delivery note number is in IDOC segment E1EDP02 with QUALF 016.
    Could someone please tell me if there is a standard way that we can have this Inbound INVOIC IDOC processing using only the delivery note?. If I manual process in the MIRO transaction I can process an Invoice based on the dleivery note in the Goods receipt so would expect I should be able to do so also with the IDOC processing.
    I have noticed that IDOC segment E1EDP19 with QUALF 003 is not being populated and therefore according to the SAP help the IDOC segment E1EDP19 with QUALF 002 holding the Vendor material number is checked. Could this have something to do with it not being able to process the Invoice using only the delivery note number reference?.
    Thanks in advance,
    Michael

    Hi Karen,
    According to Note 103051 - EDI: Multiple reference to same purchase order item.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active. Please check the note.
    Thank you,
    Shyam

  • Mapping of large INVOIC Idocs

    Dear SAP,
    we have a 1:n mapping scenario.
    The source is an INVOIC Idoc that will be splitted into several messages.
    The INVOIC IDoc has a sice of 5MB and more than 35.000 data sets.
    Because of the huge number of data sets / positions, there are two new
    child-segments containing the data sets (see attachment).
    INVOIC IDocs with only eg. 100 data sets has noch such child-segments
    (see attachments).
    In PI message mapping there is an error while mapping large INVOIC IDocs:
    While 1:1 mapping of positions (E1EDP01) the text segments
    (E1EDPT1/E1EDPT2) are not mapped correctly.
    While mapping a position of child-segment ONE the text is mapped from a
    position from child-segment TWO.
    In our case the 166th position of child-segment ONE is mapped, but the
    text is comming from the 166th. position of child-segment TWO.
    The text mapping is 1:1. It works without errors while proceeding smaller INVOIC IDocs.
    We can´t explain this behaviour.
    Also the standard INVOIC structure does not provide such child-segments
    while uploading into PI.
    Is it a buffer problem in PI?
    Is there a maximum number of data records in INVOICE IDocs?
    Do we have to adjust the INVOICE structure in PI?
    Thanks in advance,
    André

    Is it a buffer problem in PI?
    Could be, but I have used bigger message size without any issues. If your mapping is not too complex, could you write an XSL mapping and check if you run into similar situation? Message mapping has definitely cache issues, hence I prefer XSL.
    Is there a maximum number of data records in INVOICE IDocs?
    No.
    Do we have to adjust the INVOICE structure in PI?
    No need to adjust the structure, just try with XSL mapping.

  • INVOIC IDOC - E1EDK28 Problem with selection of multiple bank accounts

    Hi SAP-Experts!
    I have a problem with house banks in outgoing invoice IDOC INVOIC.
    We have maintained several house banks in one company code with up to 3 different account ID's.
    I was wondering why there is (in my point of view) the wrong bank account populated in one ot the IDOC segments E1EDK28.
    What I found out while debugging the code which fills the internal table it012k is, that he selects only the first row from table t012k
    (select * from t012k up to 1 rows).
    We have already implemented the OSS notes concerning currency dependency and SEPA.
    By switching the account ID sequence in sandbox system, e.g. from EUR to SEK, the program picks now the "correct" bank details.
    From my Point of view this cannot be a porper logic always to pick the first entry.
    Has anyone experienced that issue, too? Is there any solution for this problem (in standard).
    If not, I will raise an OSS call at SAP for this.
    Thanks for any thoughts!
    Stefan

    When you enter bank details in master, update field "Partner bank type" LFBK-BVTYP with free form value, may be currency is good choice.
    During invoice entry, this field is available for update, update which bank to be used for payment of this invoice. You may build logic to populate this field, like substitution to populate currency in this field during invoice posting.
    During payment, system checks value in field Partner bank type in invoice and selects corresponding bank.
    Hope this helps.

  • Use IBAN number in outbound INVOIC IDOC

    Hi,
    I'm looking for a field to store the IBAN number in outbound INVOIC IDOC's. Apparently there is no separate field available for this. I would like to avoid extending the current IDOC structure and I would have expected the IBAN number to be part of the SAP standard outbound INVOIC idoc.
    Has anyone encountered the same requirement? I have looked at the standard INVOIC01 and INVOIC02 structure.
    Thanks
    Walter

    Hi Ken,
    Thanks for the response. I'm indeed looking at the international bank account number.
    I was hoping that SAP somewhere does have a solution to send the IBAN numbers and not that we have to overwrite the ACNUM field or create our own segment. I want to pass the regular bank account and the IBAN number in our IDOC so that we do not need to decide within SAP if a customer requires the IBAN number or any other number. We want to make that decision in our EDI mapping, not in SAP. I'm surprised SAP has not foreseen anything for this as the IBAN is widely used within Europe.
    We already have a problem that we have more than 20 house bank with more than 20 bank accounts, so the SAP limitation of 20 K28 segments is already creating a problem for us.
    I guess we will need to setup our own coding in the user exit. Thanks for your response anyway.
    Regards
    Walter

  • Error 'No tax code found for difference' in Posting Vendor Invoice IDOC

    Hi All,
    I am getting error message 'No tax code found for difference' while posting Vendor Invoice IDOC into SAP. IDOC type is INVOIC02. There is no difference in PO price, Invoice price and even Standard price. then why this  error message? Other Vendor EDI settings are done ( OBCA, OBCD, OBCE etc). Is there any thing specific to be done in the config for this error?
    IDOC has PO  as reference document.
    I looked into several threads in SDN forum but could not find proper solution
    Can any ine help me with this issue?
    Thanks in advance
    Hari

    Hi
    You might be  missing the tax code for uploding through IDOC
    so you can use the t.code we02 and give the doc and find the error
    go to the WE19 to edit the tax  code
    and USE the t.code  BD87  to select the doc and process it
    thanks
    Madhu

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

  • Error in Invoic Idoc - Vendor, Company code not found

    Hi All,
    We are facing an issue with an Incoming Invoice Idoc (Mes type - Invoic). A third party system sends the Invoices which are received by the XI system and then as Idocs into SAP.
    The XI system is defined as a Logical system in R/3. We have created Partner Profile, Dist Model with XI as a LS.
    The error that we are encountering is -
    Customer , vendor <our LS> not known
    Message no. FD110
    A company code cannot be determined for LS
    Message no. FD006
    Are we missing out some data in the Idoc or are we missing some EDI configuration?
    Please advise as to how we need to proceed.
    Thanks in advance!
    Liz

    hi,
    Error : A company code cannot be determined for LS
    This means that SAP cannot match an appropriate company code with a partner profile :-  and hence, doesn't know where to post the invoice.
    Partner Type = "LS" (Logical System)
    Partner Name = ""
    I think what you've got is message FD006 - longtext for it can be found via transaction SE91 and sounds like this:
    The system cannot determine the relevant company code since the allocation of the data transferred in the invoice is missing in Financial Accounting customizing.
    The company code can be determined outside of the system and be put into the intermediate document (for example, from the EDI subsystem). Then the company code must be put into the E1EDK14 segment and ORGID field and the value "011" used as the qualifier.
    Determine the company code for & & & in Financial Accounting customizing.
    LS  is your Logical System. So you might want to have a look at transaction OBCA where you can assign a company code name in the invoice for your Logical System.
    In the E1EDKA1 segment. there are two fields PARVW (which is the qualifer or Partner function) PARTN (partner number). The information that is sent in the PARTN has to either match the information in SAP or has to be converted.
    If the later is the case try transaction VOED.

  • Standard interfaces for vendor invoice and salary posting

    Hi all,
    Our customer is asking for a standard interface for vendor invoices (not purchase invoices, only for invoices entered in FB60), if they could have a CSV file from vendor and import that to SAP. Is there a standard functionality or do we have to build an own interface?
    They also ask if there is a standard interface for salary file so they can tell the company that create the salary file that they should use a standard format or do we need o to create an interface there to?
    Thanks in advance!
    BR L

    Hi,
    You can either go with INVOICE01 or INVOICE02, As per the requirement you can check with the Function module attach with the idoc type, and whether it is providing the appropriate functionallity or not.
    Thanks & Regards,
    Navneet Chaubey

Maybe you are looking for