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

Similar Messages

  • Clear IDOC creation when only header level changes are made ME22N.

    Hi All,
    when the PO is  on changed in the header level only(for example header texts and header code)  and when we execute RSNAST00 one BADI getts triggered which checks if the Item category is 9 and  badi will clear the IDOC creation.
      If the PO item category is = 9, the IDOC must not be created. This badi works fine if the changes are made at
    1)at Item level
    2)both header level and Item level
    In case of 1 and 2 we have both header segment E1EDK01 and item segments E1EDP01.As a result it checks for the item category in the item segment.so idoc is not created.
    3)BADI is not working when the changes are made at the header level only. The IDOC is getting created even though the PO has the item category as 9.
    I found in this case only header segments are availble while debugging and the item segments are not there to check the condition for the item category.
    Please any one can suggest me possible solutions to  clear idoc creation when only header level changes are made ME22N.
    The BADI used is as below.
      DATA : lwa_data TYPE edidd.
      DATA : lw_dp01 TYPE e1edp01.
      DATA : lwa_control TYPE edidc.
      CHECK idoc_control-rcvprn = '3PL' AND idoc_control-idoctp = 'ORDERS05'.
      LOOP AT idoc_data INTO lwa_data.
        IF lwa_data-segnam = 'E1EDP01'.
          lw_dp01 = lwa_data-sdata.
          IF lw_dp01-pstyp = '9'.
            CLEAR create_idoc.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHO
    Thanks in advance.

    Hi all,
    Is there  any way that I can get the item category details when Only header level changes are made to the PO in ME22N and only header segments are available in the IDOC.
    Is this possible:- Fetch the po number and item category details from ekpo table that matches with  the header segment po number and then check for item category value  to clear the idoc creation?
    Any information is helpfull.
    Edited by: Selina.selk on Nov 20, 2009 1:39 PM
    Edited by: Selina.selk on Nov 20, 2009 2:49 PM

  • 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

  • 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

  • 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

  • How to create a characteristic that can hold decimal values.

    Hi,
    I want to create a characteristic which shoul be able to hold decimal values.
    Because from source system its coming in the format Number(1,1) and it should be a characteristics as per my
    business requirement.
    Please give me the solution if u know.
    Thanks,
    Vijaya

    Hi,
    it depends on your requirements... there are two possibilities
    1. type CHAR - displays the values as they are coming from source system, but I do not think any further calculations will be possible
    2. type NUMC - you can multiply each value from source system with 10 to derive an Integer value if you have format 1,1 for all records. The values will not be displayed as decimals but you can apply further calculations if needed (and divide all numeric values by 10 to transform back to correct decimal value)
    Please elaborate on your requirements, maybe you can meet your requirements using a decimal key figure...
    @Manfred
    I think type amount will be available only for key figures, not for characteristics?
    Best regards,
    Björn

  • Stop invoice idoc with Zero lines

    Hi all,
    I need assistance on how I can stop the ouptut to create an invoic idoc with zero value.
    Else
    as we create workflows for invoice creation. that means we use workflow as soon as the PGI(post goods issue) is done we creare invoice - Can we build a functionality to stop it from creating invoice if the PGI done and the items/ lines with zero value not passed.
    Thanks in advance
    Jasmeet

    Making the bold assumption that you use an outbound IDoc process code that invokes function module IDOC_OUTPUT_INVOIC, you have the user exit LVEDF001 available.  This is a standard exit that can be activated and maintained via CMOD. 
    The first function exit in LVEDF001 is EXIT_SAPLVEDF_001.  It contains a call to the include program ZXEDFU01.  Therein you can add code that will delete invoice line items having zero quantity or net value from the communication structure DTVBDPR before the IDoc is created. 
    Regards,
    Ken

  • Get the value of a particular field in a segment of an Idoc

    Hi All,
    I have a requirement where I need to write a report which will fetch the value of a particular field in a segment of an idoc.
    I have the idoc number segment and field name as input parameters by which I can fetch Sdata from EDID4 but the confusion is how to find the exact field value from that Sdata. How to Map the SDATA to the segment structure.
    Please advice...

    Hi,
    I have one last doubt that may be you people can help with... The user will be giving the segment name and field name as input. So by following Kesav's code while i can get all the values in the segment structure at runtime please suggest how to display any one field from that structure given that that particular field will come at runtime.
    EX: user gives an idoc number 123 (say belonging to Orders basic type)
                                 segment E1EDK01
                                 field  BELNR.
    So i need to display the value of E1EDK01-BELNR of idoc number 123.
    Please suggest how to achieve this....

  • 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

  • INVOIC IDOC Segment

    Hi Experts,
    We are getting an Inbound IDOC for creating Invoice after service entry sheet is created for the service POs.
    If there is 1 Service entry sheet for the PO, we can create 1 Invoice but when we have 3 service entry sheet generated for same PO line item, the requirement is to create single Invoice with 3 line items.
    We are using INVOIC message type to create the IDOC, but are not able to create Invoice for the second case.
    Kindly help us with which segments should be filled in & with what data. It would be great if you can help us with sample code.
    Thanks in advance.

    Hello Kritesh
    Looking at the documentation of IDoc type <b>INVOIC02 </b>(transaction <b>WE60</b>) you will see that the following segments belong to item details:
    E1EDP01 : IDoc: Document Item General Data
    Status: Optional , min. number : 1 , max. number : 999999
    Structure
    E1EDP02 : IDoc: Document Item Reference Data
    Status: Optional , min. number : 1 , max. number : 25
    Structure
    E1EDP03 : IDoc: Document Item Date Segment
    Status: Optional , min. number : 1 , max. number : 25
    Structure
    E1EDP19 : IDoc: Document Item Object Identification
    Status: Optional , min. number : 1 , max. number : 10
    Structure
    E1EDP26 : IDoc: Document Item Amount Segment
    Status: Optional , min. number : 1 , max. number : 20
    Structure
    E1EDPA1 : IDoc: Doc.item partner information
    Status: Optional , min. number : 1 , max. number : 20
    Structure
    E1EDP05 : IDoc: Document Item Conditions
    Status: Optional , min. number : 1 , max. number : 99
    Structure
    E1EDP04 : IDoc: Document Item Taxes
    Status: Optional , min. number : 1 , max. number : 25
    Structure
    E1EDP28 : IDoc: Document Item - General Foreign Trade Data
    Status: Optional , min. number : 1 , max. number : 9
    Structure
    E1EDP08 : IDoc: Package data individual
    Status: Optional , min. number : 1 , max. number : 999999
    Structure
    E1EDP30 : IDOC: Document Item Account Assignment Intercompany Billing
    Status: Optional , min. number : 1 , max. number : 99
    Structure
    E1EDPT1 : IDoc: Document Item Text Identification
    Status: Optional , min. number : 1 , max. number : 99
    Structure
    E1EDPT2 : IDoc: Document Item Texts
    Status: Optional , min. number : 1 , max. number : 999
    Regards
      Uwe

  • 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

  • Finding the correspponding IDoc No's for values in a segment of the Idoc

    Hi,
    I have around 100 work order numbers, based on which I want to find out the failed Idoc numbers. These work order numbers are part of one of the segment fields in IDocs. I know the message type of the IDocs.
    I do not want to use transaction WE09 as it would be too time consuming, entering one work order number and finding the correspponding IDoc. Is there a way of finding all the correspponding IDoc numbers for the work order numbers that I have at one go.
    Any help would be greatly appreciated.
    Thanks and Regards,
    Mick

    Thanks Raja.
    But I dont want to write a report. I was just want to get the IDoc numbers using a table or a function module. Any idea if using Transaction SE16N can help?
    If yes how should I go about it, as I have already tried querying table edid4 passing all the work order numbers. But no result. What I have observed is that the data is stored in the field application data in the table and to get data querying the table, passing the work order number might not be possible. As the application data contains a lot of other data also.
    Regards,
    Mick

  • 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

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

  • 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

Maybe you are looking for