I m working on IDOC invoic02

i have to test the idoc in we19..and never worked before on idocs...
my idoc is invoic02 and FM is idoc_input_invoic_fi
Plz help//i m getting problem in data mapping

1.goto we19
2.place the radio button on message type type invoic
3. execute
4 it asks for two idoc types
Which IDoc type?
select invoic02          
and execute
now an empty idoc has to be populated from here..
to get the correct details for an idoc
goto we02
in logical message put invoic and execute ,
from the list select a 53 status idoc and try to construct with the same ..
regards,
Vijay.

Similar Messages

  • Customer Order and confirm number on idoc invoic02

    Goodmorning,
    in idoc invoic02 at line of invoice is present a field that give:
    -customer order number and data of creation
    -data of creation of order confirm about customer order
    Thanks
    Fabrizio T.

    Hi
    go to header-> output in the sales order and u will find the idoc no there
    Ranga

  • "Standard" mapping between SAP IDOC INVOIC02 and Finvoice

    Hello all
    We are about to implement invoicing via IDOC (INVOIC02) => XI => mapping to Finvoice (http://www.fkl.fi/verkkolasku/english/index.htm).
    Now i am interested in a "standard" mapping between Invoice02 and Finvoice as a starting point for our mapping.
    I cannot find anything in the internet, so i wanted to ask you, if you have such a mapping?
    Thank you and best Regards
    Martin

    Hi  Martin,
    Now i am interested in a "standard" mapping between Invoice02 and Finvoice as
    a starting point for our mapping.
    Do you have the XSD or DTD for the Finvoice structure.If you are able to load the XSD structure
    then try mapping according to the business requirement.Pls ref link below.
    XML definition -> SAP data dictionary structure
    Finvoice (http://www.fkl.fi/verkkolasku/english/index.htm).
    Not sure if you are trying to use the service by http://www.ebxml.org/.
    Please elaborate more on your requirement.
    Regards,
    Srinivas

  • IDOC INVOIC02 in outbound - segment E1EDP05

    I'm making some test with the IDOC INVOIC02, i try to generate a invoice idoc for from another SAP system for generate SD invoice with the GN_INVOICE_CREATE.
    I view that the idoc created dont generate the segment E1EDP05 with the pricing procedure conditions (necessary for a mirror creation of invoice on the destionation SAP).
    Anyone knows why the segment is lost?
    Thanks
    Davide

    Hi,
    Could you please check is there any segment filters are set in the sender system.
    Generally we will check any segment filter in BD56 transaction.
    Thanks,
    shyla

  • Extend Idoc  INVOIC02 - E1EDKA1 - Syntax error

    Hi All,
    I have extended Basic idoc “INVOIC02” and using exit “EXIT_SAPLVEDF_002” to extend custom segment. I am trying to add a custom segment under “E1EDKA1”. In program I am inserting ‘Z1’ segment after parent segment “E1EDKA1”. I am passing Parent segment reference (INT_EDIDD-PSGNUM) and hierarchy level of custom (INT_EDIDD-HLEVEL) segment. Problem is custom segment still placed under root segment after “E1EDKA1” segment, which is incorrect.  Idoc error with status ‘26’ – Syntax error. Can any one tell me what I am doing wrong or how do I manage to get custom segment under parent segment “E1EDKA1”, so that I don’t get this error. Below code for your reference. Thanks in advance.
    Regards,
    Tim
    Program -
    "ZXEDFU02" -
    describe table INT_EDIDD lines gv_indes.
    read table INT_EDIDD index gv_indes.
    if sy-subrc eq 0.
      if INT_EDIDD-segnam eq co_e1edka1 and
         INT_EDIDD-sdata+0(3) eq 'ZM'.
    Now INSERT segment Idoc value and custom extend field
        if not gv_email is initial.
                INT_EDIDD-PSGNUM = gv_indes.
                INT_EDIDD-HLEVEL = '03'.
          move: co_z1edka1        to INT_EDIDD-SEGNAM,
                'email address'   to INT_EDIDD-SDATA.
          append INT_EDIDD.
        endif.
      endif.
    endif.

    Your logic looks ok.  I would remove the code to populate the parent segment number and hierarchy level.  SAP will determine those on its own.
    As for the result you are seeing, if there is a syntax error on an IDoc, the entire hierarchy will be lost so the fact that the custom segment is showing up at the same level as its parent doesn't mean that is actually causing the syntax error.
    Did you add your extension in the partner profile?
    Program -
    "ZXEDFU02" -
    describe table INT_EDIDD lines gv_indes.
    read table INT_EDIDD index gv_indes.
    if sy-subrc eq 0.
    if INT_EDIDD-segnam eq co_e1edka1 and
    INT_EDIDD-sdata+0(3) eq 'ZM'.
    Now INSERT segment Idoc value and custom extend field
    if not gv_email is initial.
    INT_EDIDD-PSGNUM = gv_indes.
    INT_EDIDD-HLEVEL = '03'.
    move: co_z1edka1 to INT_EDIDD-SEGNAM,
    'email address' to INT_EDIDD-SDATA.
    append INT_EDIDD.
    endif.
    endif.
    endif.

  • Create Idoc INVOIC02 when a invoice is created

    Hi everybody.
    Which are the necessary steps to make in order to costumize the Idoc INVOIC02 creation when a invoice is created in R3?
    Thanks a lot

    Hi again,
    Ive done this steps:
    1. create the output type in the nace using the output type RD04 and define the transmission medium as the EDI.
    2. configure the newly created output type in the access sequence.
    3. create the partner profile in the we20 transaction in partner type LS. I need to send it through Logical Systema
    4. In creation of partner profile mentioned the port number to which you want to pass the idoc. define the port in we21 transaction. and in message type mentioned the INVOIC. in basic type mention the INVOIC02.
    5. in message control tab define the output type for your EDI.and use the correct process code.
    But the output type doesn´t appear in my invoice and if i try to add it I always get an error.
    How could I fix this???? Im getting crazy!!!!

  • Accounting document creation for sales invoice with IDOC INVOIC02 ?

    Hi All,
    Our sales invoice are managed in a external system and those Invoice are going to be send in FI with IDOC interface.
    is it possible to use the IDOC INVOIC02 to do this operation ?
    if yes, what are the customizing points I have to implement ?
    if not, what kind of IDOC can I use ?
    Thank you in advance for your help
    Franck

    Hi Thenna
    The accounting document status in the document flow is determined dynamically when you display the document flow,
    it's not saved in a specific table.
    Here is the relevant logic:
    LV05CF01 -> form BUCHHALTUNGSBELEG
    IF vbrk-vbeln <> vbfa_tab-vbeln.
       PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
       REFRESH xbkpf.
       CALL FUNCTION 'FI_DOCUMENT_READ'
        LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
                      AND   belnr EQ xbkpf-belnr
                      AND   gjahr EQ xbkpf-gjahr
                      AND   ( koart EQ 'D' OR koart EQ 'K' ).
        ENDLOOP.
                IF NOT sy-subrc IS INITIAL.
      SET STATUS TO 'No items are cleared'
                  l_xdoc_num-status = 'A'. <<<
                ELSE.
                  LOOP AT xbseg WHERE augbl IS initial
                                AND   umskz NE 'A'
                                AND   vorgn NE 'AZUM'
                                AND   ( koart EQ 'D' OR koart EQ 'K' ).
                  ENDLOOP.
                  IF NOT sy-subrc IS INITIAL.
      Set status to 'All items are cleared'
                    l_xdoc_num-status = 'C'. <<<
                  ENDIF.
                ENDIF.
    Regards,
    Alex

  • E1EDKT1 segment in Idoc INVOIC02

    Hi,
    Im getting the following error when sending an INVOIC02 Idoc to ECC:
    "Error: Segment 'E1EDKT1', segmentnumber '000010' not correct in structure INVOIC02"
    I already refreshed the IDoc metadata and I see the segment in the repository and IDX2. The connection to the backend works fine: when I remove this segment the Idoc is processed succesful. What could be causing this problem?

    Hi Iddo Rijsdijk,
    It solved my issue as well. Thanks.
    - Netrey

  • Best way to customize IDOC INVOIC02 (outbound)

    Hello,
    I want to customize the IDOC type INVOIC02 (outbound). Customize means:
    - remove segments
    - change some values
    I tried different ways to achive this, but it does not work as needed. What I tried:
    - IDOC extension: can not be used, because I can not remove segments
    - IDOC view: not possible for INVOIC02 (see sapnote 185445)
    - new IDOC type: I created a new IDOC type and copied all needed segments from INVOIC02. Now I want to use the existing function IDOC_OUTPUT_INVOIC, but it does not work. The IDOC gets status 26 (Syntax error, E1EDK17 does not exist). I do not want to rewrite the existing function. I think this would be the worst.
    - new idea (not tried yet): use the existing INVOIC02 and change, remove segments in the user-exit.
    Can someone help me and maybe give me hint?
    Thanks, best regards
    Andreas

    Hi Sasidhar,
    I am using EXIT_SAPLVEDF_002 now and it works like a charm. Thanks!
    This is my coding right now (maybe it helps someone reading this):
    *&  Include           ZXEDFU02                                         *
    *separate by partner
    CASE control_record_out-rcvprn.
    * Special customer
      WHEN '0000123456'.
    *   get segment
        CASE int_edidd-segnam.
    *     delete segments
          WHEN 'E1EDK17' OR
            'E1EDK23' OR
            'E1EDK28' OR
            'E1EDK29' OR
            'E1EDK14' OR
            'E1EDP03' OR
            'E1EDPA1' OR
            'E1EDP28' OR
            'E1EDP08' OR
            'E1EDP30'.
            DELETE TABLE int_edidd.
        ENDCASE.
    ENDCASE .
    Regards,
    Andreas

  • Posting Header Freight to separate account with idoc INVOIC02

    Hi,
    I am using idoc type INVOIC02 to post a cross-company code invoice.  There is freight at the header level in the invoice and I want the freight amount to hit a different G/L account than the rest of the document. From the help documentation, it looks like I should be able to set the flag in T076S-KOKSEPA, and this should then take the amount in segment E1EDK05 and place it in a separate line item segment in the Idoc.  Once it's in its in a separate segment then I should be able to use settings in table T076I to direct it to a separate G/L account.  However, when I set this flag inT076S-KOKSEPA the system is not doing anything with the amount in the header segment..
    Does anyone have experience with this?  If I set the flag in T076S-KOKSEPA what should I expect to see at the item segment level? Should I get an additional E1EDP01 segment?  If not, what's the best way to get header freight to post to a separate account?
    Thanks,

    Hi,
    You need to add a record in T076I using OBCB transaction, fill EWLNR with the folllowing concatenated values from E1EDK05 :
    - E1EDK05-ALCKZ (the value is - or +)
    - E1EDK05-KSCHL
    In my case T076S-KOKSEPA doesn't work, I got an accounting item corresponding to header condition but no more accounting lines corresponding to invoice items...
    But it works fine using T076S-KOPSEPA to post conditions at item level.
    Your questions :
    - Does anyone have experience with this ?  > We are still waiting ...
    - If I set the flag in T076S-KOKSEPA what should I expect to see at the item segment level ? > Nothing, this parameter works later, when the idoc is processed to create the accounting data (function IDOC_INPUT_INVOIC_FI not function IDOC_OUTPUT_INVOIC_IV_MM)
    - Should I get an additional E1EDP01 segment ?  > No
    - If not, what's the best way to get header freight to post to a separate account ? > It is the best way, but you can try at item level (T076S-KOPSEPA), in my case it works immediatly.
    My question :
    When the flag is set at header level (set the flag in T076S-KOKSEPA), an accounting item is created for the header condition, but how this value is allowed (- or +) on the other accounting items ?

  • Error in message mapping of IDoC Invoic02

    Hi,
    i have imported the invoic02 idoc into PI system. i have mapped the required field os idoc with standard XSD which is imported through ED. I'm able to most of the fields with idoc and XSD. however, some of the node in xsd are repaeting.
    so here the part of xsd with which i'm mapping.
    (first_node)ListOfTaxSummary                      0..1
    (second_parent_node)TaxSummary                   1..unboubed
    (child_node) tax                                 1..1
    (element)TaxAmount                                0..1
    (element)TaxCategoryCoded                         0..1
    here the i have mapped  ListOfTaxSummary    with the idoc node E1EDS01
    TaxSummary  with E1EDS01
    tax with E1EDS01.
    i tried all possibilities with different mapping. but i'm able to get the tax node under taxsummary with the element. the problem its been repeated as  E1EDS01 idoc repeats.
    please help us in solving this problem.
    Thanks
    Kind regards,
    Lalitkumar.

    Could someone tell me is there any relation for the above error in XML messages and to the message mapping?
    The error mentions that you have used an IDOC in your mapping program which is not found in the ESR....you need to check if the IDOC is present in the ESR and is present under the correct SWCV.
    Once you have done the check do some dummy change to the mapping and activate it (if in DEV) and then check the CACHE.

  • PM Work Order IDOC?

    I have a requirement to pass data related to a PM work order to an external Database. Transfer needs to be near real-time. Is there a standard IDOC for a PM work order? I am new to IDOCs. Your help will be appreciated.
    Thanks,
    Gary

    If you are putting Current date (coming as default), PR is getting the same date. Are you creating this PR through MRP??
    Even if you put any actual requirement date, based on MRP period, system will create the PR with appropriate date which has been mentioned in PM order.
    There is no impact of changing this date.

  • Idoc invoic02 freight costs

    we're giong to use INVOIC02 as inbound idoc for the logistics invoice verification.
    Does anybody have a clue, how freight costs can be processed? The supplier provides us in a flat input file with separated costs for freight, but my workmates say these costs can't /won't fit in the idoc structure definition.
    Any hint is appreciated.

    Hi Matt Potts,
    During creation of Purchase Order, you have to carry out following steps;
    (a) Select header condition or relevant PO Line items
    (b) Add your Freight condition and add your values in Ammount (based on value or in %)
    (c) Select above Freight condition and click condition details (magnifier)
    (d) Add your Vendor code in Vendor Field (KOMV-LIFNR)
    Bye,
    Muralidhara

  • IDOC Invoic02 - Segment E1EDP26 (net value) is missing because of val. 0,00

    Hello everyone,
    I have an idoc of type Invoic02 and the segment E1EDP26 with qualifier 003 (net value) is missing if the net value is 0,00u20AC. If the value is greater than zero, the segment is perfectly there.
    Does anyone have an idea how I can achieve that this segment is always there independent of the value?
    Thank you!
    Best regards
    Andreas

    I'm replying to this old post since it comes up in Search. We had the same issue - E1EDP26 with QUALF 003 would not be in the IDoc, but it was required by the receiving system.
    Here is a reply I received from SAP:
    This is the standard system behaviour and this is hard coded in the
    system.
    Please see the following from note 635337 (Conditions are missing in theIDoc):
    o The value of the condition must be <> 0.
    You may change the code in LVEDFF0F by removing the IF and ENDIF
    statements and then E1EDP26 segment 003 will always be output
    but this would be a modification and would be subject to the conditions
    from note 170183.
    *- Absoluter Nettowert
    IF NOT tvbdpr-netwr IS INITIAL. <<<
    CLEAR int_edidd.
    CLEAR e1edp26.
    int_edidd-segnam = 'E1EDP26'.
    e1edp26-qualf = '003'.
    PERFORM get_e1edp26_tcurx_currency USING tvbdpr-netwr.
    MOVE tvbdpr-netwr TO h_newr_btrg.
    MOVE e1edp26 TO int_edidd-sdata.
    APPEND int_edidd.
    PERFORM customer_function.
    ENDIF. <<<
    Since we already had a user exit EXIT_SAPLVEDF_002 implemented for the IDoc extension, instead we resolved it by adding the following code (fragment) there:
    DATA ls_e1edp26    TYPE e1edp26.   "document item pricing data
    DATA lv_kwert      TYPE kwert.
    CASE int_edidd-segnam.
      WHEN 'E1EDP26'.
        MOVE int_edidd-sdata TO ls_e1edp26.
        IF ls_e1edp26-qualf = '001'.
          IF xtvbdpr-netwr = 0.
            CLEAR: ls_e1edp26, lv_kwert.
            ls_e1edp26-qualf = '003'.
            ls_e1edp26-betrg = lv_kwert.   " so that decimals/format are the same
            SHIFT ls_e1edp26-betrg LEFT DELETING LEADING space.
            MOVE ls_e1edp26 TO int_edidd-sdata.
            APPEND int_edidd.
          ENDIF.
        ENDIF.      " ls_e1edp26-qualf = '001'
    ENDCASE.

  • IDOC INVOIC02 tax configuration

    Hi All
    We're going to use INVOIC02 IDoc to trigger FI vendor invoices. It involves some configuration settings along with Tax configuration. But, functional people they says functionally it's not possible to maintain all the tax codes in configuration level.
    So, please help me to avoid config for Tax for INVIOC02 IDoc.
    Thanks in advance
    Senth.

    Hi ,
    1)We got same senario.You have to inform functional guys to configure the VAT codes in  the EDI subsystems for all countrys.
    2) Other wise you have to write BDC to update the EDI config.
    Thanks.

Maybe you are looking for