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

Similar Messages

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

  • How to generate a new segment in IDoc for multiple occurance of Control Num

    Hi Experts,
    In my scenario, i need to generate a new segment in IDoc(Target Structure) based on  Control Number Field in the Source Structure.
    The segment need to be created for multiple occurance of the Control Number.
    Ex:
    Control Number - 100 appears 5 times in Source Structure.This control Number is mapped to one of the Field in the Segment of  IDoc.
    Now my requirement is to generate the Segment 5 times with respective to this Control Number.
    please help me out to resolve this issue.
    Thanks,
    Kish.

    Hi,
    Here is the XML Structure of my Source:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:GoodsReceipt_MT xmlns:ns0="urn:WOL-com:XI:data:HJ:10">
       <row>
          <CONTROL_NUMBER>111</CONTROL_NUMBER>
          <LINE_NUMBER>1111</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>111111</WH_ID>
          <LOCATION_ID/>
          <HU_ID>11111</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>111111</ITEM_NUMBER>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>11111</LOT_NUMBER>
          <UOM>11111</UOM>
       </row>
       <row>
          <CONTROL_NUMBER>111</CONTROL_NUMBER>
          <LINE_NUMBER>12222</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>12222</WH_ID>
          <LOCATION_ID/>
          <HU_ID>1222</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>112222</ITEM_NUMBER>
          <TRAN_QTY>112222</TRAN_QTY>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>12222</LOT_NUMBER>
          <UOM>1122222</UOM>
       </row>
       <row>
          <CONTROL_NUMBER>222</CONTROL_NUMBER>
          <LINE_NUMBER>2222</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>22222</WH_ID>
          <LOCATION_ID/>
          <HU_ID>222222</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>2222222</ITEM_NUMBER>
          <TRAN_QTY>22222222</TRAN_QTY>
          <LOCATION_ID_2>33333333</LOCATION_ID_2>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>22222</LOT_NUMBER>
          <UOM>22222</UOM>
       </row>
       <row>
          <CONTROL_NUMBER>333</CONTROL_NUMBER>
          <LINE_NUMBER>3333</LINE_NUMBER>
          <CONTROL_NUMBER_2/>
          <OUTSIDE_ID/>
          <WH_ID>33333</WH_ID>
          <LOCATION_ID/>
          <HU_ID>33333</HU_ID>
          <NUM_ITEMS/>
          <ITEM_NUMBER>333333</ITEM_NUMBER>
          <TRAN_QTY>33333333</TRAN_QTY>
          <CONTROL_NUMBER_3>LR</CONTROL_NUMBER_3>
          <LOT_NUMBER>33333</LOT_NUMBER>
          <UOM>333333</UOM>
       </row>
    </ns0:GoodsReceipt_MT>
    Now Control_Number 111 occurs 2 times, 222 & 333 occurs 1 time.
    Now one IDoc for 111,222 & 333 should be generated.
    But Control_number 111 appears 2 times.
    Now the data in the 2 rows should be passed to Single IDoc by repeating the segments inside the IDoc.
    As u said i changed the Occurance of IDoc to 0...unbound and imported as External Definition. I have done upto Generating IDoc for each unique Control_Number.
    I stuck up at repeating the Segments in the IDoc.
    So please help me out.
    Thanks,
    Kish.

  • How to isolate error with a record/segment in IDOC with multiple records

    I have an IDOC with multiple records/segments (typically 1000 records/segments). Sometime XI can not process the IDOC because of some control characters in data.
    1. How can I pre-processed the IDOC to remove those control characters?
    Can I use XPATH expression/Java class to do it? How can I configure the XPATH expression/Java class in XI to pre-process the file?
    2. Until I have answer to 1st question. I would like to find out the error is exactly for which record? What configuration can I do in XI to isolate the error is with which record/segment in IDOC?
    Thanks in advance.

    Split the IDoc.
    with in the UDF, after the validations if every thing fine, pass as successful records to success_MT and pass it to target system using Branching in BPM.
    if errors found in the record, then store the error records in Hash table with in UDF, get the IDoc number, frame as a string and raise alert.
    U have to do this in the context of IDoc.
    If U wanna get the IDoc Number, Segment Name and field name for every failure, U can pass the expected error field name as constant to UDF, frame the sentence in the UDF like -> <b>IDoc 1234321 segment – SEG001 – field – FLD03 has a special character ‘*’</b>.
    If U wanna pass this string to source/target, U can do in error messages branch in BPM.
    U must use BPM for splitting the IDoc, since it is multi-mapping.
    reg.,
    Yallabandi.

  • How  can create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version

    Hi All,
                Can any one help, how  to create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version.This is my task.
    Given BADI name was----VENDOR_ADD_DATA_BI .
    Thanks

    Anil,
    look at this thread ..may be this helps you.
    Re: 824 IDOC and BADI/User Exit
    sateesh.

  • 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

  • In exit EXIT_SAPLKD01_001 populate custom segment of idoc ext. cremas05

    Hi,
       I am using EXIT_SAPLKD01_001 where I need to populate 2 custom segments for idoc extension cremas05.
    I have created a function module separately where I have populated the 2 structures that is of same type as the segment structure.
    In the exit I have called the function module where the structures are populated.
    Now my question is how to populate the custom segments from the function module structures directly in the exit.
    Thanks and Regards
    P

    Hi
    Now I'm able to do this.... closing the thread.

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

  • Optional Segments in IDocs

    How do Optional segments in Idocs gets triggered ? Iam generating Idocs on R/3 Side and optional segments seems to be not getting created when I see on WE05 Tcode.
    My Question is does these segments will be created automatically if there is a data ?
    Please clarify

    Hi Ram,
    There needs to a specific coding for filling the segments be it optional or anyother. I believe the filling of the segment is being done in SAP R/3 and there might not be a code to fill these optional segments.
    Just simply write a code where you are filling other segmemts for the IDoc in case it's not there and it should work.
    Hope this helps.
    Nishant
    Message was edited by: Nishant Rustagi

  • Idoc segment to idocs

    Hello all,
    I am working on idoc to idoc scenario, i have to map a segment to idoc, exact requirement is
    " If there are 10  "E1P12" segments in the inbound IDOC then we need to create 10 outbound Delins IDOCs, each with 1 E1EDP10 segment.
    Can anyone provide me the steps to follow in this scenario.
    Thanks for all your help.

    one more
    For every Idoc generated on the target side the header data is populated frm source Idoc.(i.e) the same header repeated 4r all idocs right???
    In order to do tat u need to write a simple udf
    public void Test(String[] a,String[] b,ResultList result,Container container)
       //write your code here
    for (int i=0; i<a.length;i++)
         result.addValue(b[0]);
    use this udf under all header element(eg.element1 under header tgt side)
    then mapping ll be
    E1EP12----->
                          Test-------->Split By Value---->element1
    src element---->

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

  • Segment to idoc..

    Hello all,
    I am working on the scenario where i need to mapp a segment to idoc.
    means if i am having 10 segments then 10 idocs should get created.
    If there are 10 EDP10 segments in the inbound IDOC then we need to create 10 outbound Delins IDOCs, each with 1 EDP10 segment.
    I have to display the header part from other segment with each idoc created.
    Please explain in detail.
    Thanks for all your help.

    Hi siddhesh,
       Try the below logics...
       It will working fine for me in Orders IDOC.
        If you have a Multiple E1EDPO1 for each E1EDPO1 need to create a
        Each IDOC.
        and also Each IDOC have Only one E1EDPO1.
        But Header segments Like EIEDKO1 comes only one time.
        This also should be enable each IDOC in the Receiver.
      First for Multiple IDOC:
        E1EDPO1Remove ContextSplitByValue(Each)Collapse ContextIDOC
      Second for enable each E1EDPO1 for each IDOC:
        E1EDPO1SplitByValue(Each)E1EDPO1
         other elements need to simple map.
         Like..
         Posex--Posex
         Action--Action
      Third For header need to use Each IDOC:
        EIEDKO1(Context IDOC)                     ---
        E1EDPO1(Change the context to IDOC)---UseOneAsMany-E1EDKO1
        E1EDPO1                                          ---
        Other elements also need to map like above.
        Consider the field ACTION
         ACTION(Context IDOC)                       ---
        E1EDPO1(Change the context to IDOC)---UseOneAsMany-ACTION
        E1EDPO1                                           ---
       In useoneasmany we need to keep first and second node context should be same.
    Regards,
    Prakasu

  • 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

  • How can i check the segment in idoc.

    hi gurus,
       how can i check the segment in idoc.please help me as

    Hi Rohit,
    In WE02/05 U can view the IDocs.
    Since u r having the IDoc with u, Double click the Idoc no. and it will take you to screen where it will show you all the segments of IDoc. Here you can check which segment is giving error.
    Go to  WE60/63 which shows the detailed documentation in the MySAP environments if u have been using the old 4.6c systems. In 6.10 since the documentation is not available ,modify your personal settings to show the documentation by default; In 6.10 in transactions WE60 and WE63, documentation is no longer generated by default for the segment fields when the documentation is generated. To activate the generation of the documentation from the corresponding data elements, proceed as follows: WE60/WE63. > Goto > User settings. Here you must set the indicator for 'Display of the documentation' under 'Display attributes for IDOC types' and then save the change. Now the documentation is also displayed for the segment fields when WE60/WE63 is executed.
    **Reward points if u find this useful.
    Thanks & Regards,
    gyanaraj

Maybe you are looking for

  • Sales Order Inquiry bapi upload problem

    Hi All.. when iam trying to upload SO inquiry sample data through bapi iam getting these Errors : Material 1423 is not defined for sales org.1000,  distr.chan.12,  language DE Error in SALES_ITEM_IN 000000 Sales document  was not changed. but i defin

  • How to use count with decode

    I want to count several categories(say a b c d) under same count and some catogories under another count ..there I need to use count with decode pls let me know the syntacs to write my query..this is ergent regards Buddhike

  • Duplicate calendar events

    I have my iPad2 linked to my Entourage calendar and iCloud storage.  I have several duplicated calendar events, and I can't figure out how to delete them from my iPad2.  They are not duplicated on my iMac's Entourage.

  • Authorisation of laptop

    i started to sync my iphone 4 onto the itunes on my laptop, all going great until it said that i need to authorise my laptop in order for it to sync my apps. so i authorised my laptop and started to sync again and the same message came up again "your

  • Color and Font Classes

    I would like to fill this rectangle with a different color other than black.. but i'm not sure how to change the color.. i know what each value is for. (fillRect(int x, int y, int width, int height) ) I'm just not sure how to change it's color? Maybe