Idoc tables/segment structure

hi gurus,
how i write sthructure of an idoc segment.
how i define internal table for header and item level data.
please guid me with an example.
please provide me some programme or threads where programme is wriiten for saving the data through idoc into db.
thanks and regards.

Hi,
Make sure you have this..Marked in bold..
*" IMPORTING
*" VALUE(MESSAGE_TYPE) LIKE TBDME-MESTYP
*" VALUE(IDOC_TYPE) LIKE EDIDC-IDOCTP
*" VALUE(SEGMENT_NAME) LIKE EDIDD-SEGNAM
*" EXPORTING
*" VALUE(IDOC_CIMTYPE) LIKE EDIDC-CIMTYP
*" TABLES
*" IDOC_DATA STRUCTURE EDIDD
INCLUDE Z123.
<b>ENDFUNCTION.
FORM ...
ENDFORM.</b>
Thanks,
Naren

Similar Messages

  • MDM IDOC Mapping: segments don't seem to be grouped properly

    Hi!  I'm been struggling with implementing MDM 5.5 SP3, where I have successfully extracted IDOCs (materials, vendors, customer) and have been using the mapping tool to map IDOC fields to MDM data structures.
    My issue is when I map the IDOC fields to structures, the record segments don't seem to keep their record grouping --as a result, when searching the data in the MDM Data Manager, the tables act independently (the records don't seem to be linked).
    I've been able to load the validation tables with the help of the MDM BLOG prior to the data load.
    I've also encountered other issues, as the MDM import manager triggers windows errors (stops working) when maps become complex.
    I'm using qualified tables; I tried to use the SAP delivered content, but the many required / dependent fields are not available or not maintained in my R/3 source systems.  So, I've created my own repositories with only 20 fields (three qualified tables) in hopes to get a working model (so far no luck).
    Thank you in advance for any help or comments.
    John Strazdins

    Hi John:
    "and have been using the mapping tool to map IDOC fields to MDM data structures."
    Yo should be using the import maps already in the standard business content for SP3 (They come as .map files in the SP3 distribution files). This way it works very fine and you don't have to develop anything, just use the standard mappings. It really doesn't matter if you are not using all of the fields, it works fine if they are empty.
    "I've also encountered other issues, as the MDM import manager triggers windows errors (stops working) when maps become complex."
    I had that problem too. The only workarround I've found was to save the map as soon as you make a join or clone any field, then exit import manager and open it again.

  • Creating own IDOC with segments

    can any one let me know the steps to create <b>Z</b> IDOC and segments required  for  it.
    and also the sample code (program) to poplulate the data into those segemnts from a (excel/csv file )or tables.
    Thanks..

    hi Aday,
    There are basically two types of IDOCs.
    Basic IDOCs
    Extended IDOCs
    Idoc Components
    Basic Idoc
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extension Idoc
    Extending the functionality by adding more segments to existing Basic IDOCs.
    Creation of IDoc
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Create IDOC Type
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Regards,
    Naveen

  • Issue:EDI: Syntax error in IDoc (mandatory segment missing):Idoc extention

    Hi all,
    I have extended the the standard IDOC MATMAS05  classification view with structure as below-
    E1MARAM                        Master material general data (MARA)--->Mandatory segment
         Z1KLART                        KLART --->Extended chaild to E1MARAM
             Z1CLASS                        segment for class --->Extended chaild to Z1KLART
             Z1CHARACTERISTIC               CHARACTERISTIC --->Extended chaild to Z1KLART
         E1MARA1                        Additional Fields for E1MARAM
         E1MAKTM                        Master material short texts (MAKT) --->Mandatory segment(Child   to                                                                               
    E1MARAM )
    I am getting an error in IDOC fro material master as:EDI: Syntax error in IDoc (mandatory segment missing ).
    Diagnosys By system is :*The segment E1MAKTM has the attribute 'Mandatory' in the syntax description of the basic type MATMAS05 (customer enhancement ZMATMAS05). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.
    This error may have been triggered by an unidentifiable segment before the expected mandatory segment.*
    Please help to resolve the issue.
    Thank you.
    Edited by: sanu debu on Apr 30, 2009 11:25 AM
    Edited by: sanu debu on Apr 30, 2009 11:31 AM

    Hi,
       You cannot add an segment in the middle of other segments.
    YOu have to add any segment at the last.
    If you want to add a segment as the child of another segment, it should be added after the last child of the parent segment.
    In you case, you have to add your segment after the E1CUCFG segment.(NOt under that segement)
    Regards,
    Ravi Kanth Talagana

  • Tables and structures are used in a standard scripts

    how to find which tables and structures are used in a standard scripts?
    pls explain step by step process...
    Edited by: abap on Jun 21, 2008 4:36 PM

    Go to Transaction SE80, Select Program and paste that program name below..
    Then drop down the tree of that program...then you will find option " Dict. Structures"..
    Here you can find the tables which has been you for that transaction / program.
    Regards,
    Santosh

  • For output display report is final_internal table or structure in wd ABAP?

    Hi all,
    for output display report is final_internal table or structure in wd ABAP?
    in wd java output display report -.> CALLING rfc and that RFC OUTPUT table
    finally in internal table is assigned to STRUCTURE .Same procdure?
    Thanks,
    RAMA

    Dear Madhu,
    thanks for guidence!
    its showing popup tht this BADI ( ME_CHANGE_OUTTAB_CUS ) is only use for "SAP Internal  use".
    Regards,
    Praphull

  • Difference btw table and structure???

    Hi all guru's
    What is the difference between table and structure??
    culd you explain me???
    regards
    ss

    hi Supriya,
    structure is one single line, while a table can have as many lines as you wish.
    hope this helps
    ec

  • How to create a table less structure with dynamic menu module

    Hi guys,
    I am using dynamic menu module for creating a main menu for http://firstsite08.businesscatalyst.com/
    but it is generating table structure. What changes to do i had to make to generate a table less structure from dynamic menu module.

    Hi Andy,
    When you create a Menu, the option dropdown for the menu has Default, but under that you will see HTML CSS Only option which creates a ul li structure.
    For the Menu Module options you can find more information from the knowledgebase: http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Menu_Modules
    If you would like to use the version 2 menu module you can find a bit of a guide I wrote here: http://forums.adobe.com/docs/DOC-1903

  • To which table the structure plknzea belongs

    i need to find out the table to which this sturcture(plknzea) belongs.
    how the table fplt is related to table aufk

    This structure is only used in two programs to hold certain data from screen fields.  Depending on certain values of these fields, it sets a value to view V_T350_P, which is a view over T350.
    Code from L0I04I10.
      IF PLKNZEA-SOFT EQ YAUSW.
        V_T350_P-PLKNZ = YAUFT_SOFT.
      ELSE.
        IF PLKNZEA-GEPL EQ YAUSW.
          V_T350_P-PLKNZ = YAUFT_GEPL.
        ELSE.
          IF PLKNZEA-UNGP EQ YAUSW.
            V_T350_P-PLKNZ = YAUFT_UNGP.
          ENDIF.
        ENDIF.
      ENDIF.
    It does something simular in the other program.
    Code from LCOIHI06.
      CLEAR CAUFVD-PLKNZ.
      IF  PLKNZEA-UNGP = YX.
        CAUFVD-PLKNZ = SPACE.
      ELSEIF PLKNZEA-GEPL = YX.
        CAUFVD-PLKNZ = 1.
      ELSEIF PLKNZEA-SOFT = YX.
        CAUFVD-PLKNZ = 2.
      ENDIF.
    Does this answer your question?
    Regards,
    Rich Heilman

  • Which table or structure it will exists MENGV15

    which table or structure it will exists MENGV15

    hi,
    1)goto transaction se11.
    2)enter MENGV15 next to domain
    3) Press shiftctrlF3 else click on where used list
    There are too many structures using MENGV15 . So choose!
    Regards,
    Sooness

  • Is there any standard program to parse idocs into horizontal structure

    Could anybody please let me know if there is any SAP program to parse IDOCS into horizontal structures. We need to generate a flat file within SAP using IDOCS.
    Your earlier response is much appreciated.
    Regards
    Kasi

    Hi Kasi,
    Please check this FM EDI_IDOC_PARSER.
    Hope this will help.
    Regards,
    Ferry Lianto

  • IDOC Tables with Errors Post System Refresh

    Hi Everyone,
    Is there any Report  or other way through which one can get List of  IDOC Tables with Errors Post System Refresh.
    Thanks,
    Regards,
    - Ishan

    Hi,
    While selecting the Infopackage to run the INIT load, it is taking me to the ECC login screen. Once i enter my credentials, its showing a dump with the message:
    Short text of error message:
    No RFC authorization for user XXXXX ( RSA8 ).
    Long text of error message:
    Technical information about the message:
    Message class....... "RSAR"
    Number.............. 051
    Variable 1.......... "No RFC authorization for user XXXXX ( RSA8 )."
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "
    Please advice.
    Regards
    sneha

  • EDI: Syntax error in IDoc (mandatory segment missing)

    HI all,
    Error Message - EDI: Syntax error in IDoc (mandatory segment missing)
    Status ID - E0
    Message No - 072
    Status of the IDoc - 26
    Please help me how to solve this issue?
    Thanks,
    Srini

    Hi,
    This error normally comes up when the sequence of segments has been disturbed.
    For successfully posting an IDOC you need to maintain the sequence of the segments as in WE30.
    You can also check which segments are mandatory in WE30 by clicking on the segment name and the pop up that comes.
    Thanks,
    Manish

  • Append data to a nested table within structure

    I am trying to write some code (not really an ABAPer but helping out) and my code is not quite working.
    i have a structure that is made up of up three tables and a structure.  it is part of an DIMP add on.
    I have typed my tables and structures and tables in line with target definition, however my data is not being passed across...
    i have tried a number of different ways of doing this, but have been unsuccessful.  I am sure i am close, but would like some guidance...
             LOOP AT gt_mpdcycle INTO gs_mpdcycle.
                APPEND gs_mpdcycle TO gs_create_mpd-cycledata.
                INSERT gs_create_mpd-cycledata INTO gs_create_mpd.
              ENDLOOP.
    the gs_create_mpd is typed to the overall structure...  the gt_mpdcycle is typed to table of mpdcycle and gs_mpdcycle is typed to mpdcycle structure.  the gs_create_mpd-mpdcycle is typed as type table of mpdcycle.
    i have also tried the following:
    gs_create_mpd-cycledata[] = gt_mpdcycle[].
    and
    INSERT gt_mpdcycle INTO gs_create_mpd-cycledata.
    does that make sense?  can someone suggest a way of doing this?

    I knew i was close!
              LOOP AT gt_mpdcycle INTO gs_mpdcycle.
                APPEND gs_mpdcycle TO gs_create_mpd-cycledata.
    *            INSERT gs_create_mpd-cycledata INTO gs_create_mpd.
              ENDLOOP.

  • How to read IDOC in flafile structure into SAP to create PO

    HI,
    We have a requirement like, we will be provided with IDOC PO flatfile structures(Exactly same as IDOC,but in Dlafile format) .
    We have to read those flafiles and create POs in our SAP system.
    how can we do that?what are the necessary configuration required?
    please explian the different steps involved.
    thank you in advance.
    ...Sri

    Hi,
    Thank you for your reply.
    is there any other methods of processing the Flatfile IDOC into SAP.
    like through using file port with configuration done in Partner Profile , standard FM and report ?
    would this be different if we have customised IDOC?
    thank you,
    regards,
    .....Sri

Maybe you are looking for

  • Lookup routine problem

    Hi     I have problem in Lookup routine in transformation. But need for some object which were not in Standard infocube 0sd_c03, i have created one customize Infocube ZSD_C03_1 where data have been coming from Standard 0SD_C03 infocube by Lookup Tran

  • Iphoto '11 show some pix only with black screen

    In thumbnail view all pix are visible, but if I go to edit view, some are shown only with black. Some of these pix are in a folder witch I synchronize with my iPhone. On iPhone all pix are visible. This phenomen is not a new one, but now the number o

  • How do I get my emails to go directly to a folder

    How do I get my emails to go directly to a folder

  • ITunes won't launch after update

    Automatic Updates installed ITunes 11.1.3 and now my ITunes won't launch

  • How to turn Java on?

    I want to view videos on Youtube and I need Flash. It says "You either have JavaScript turned off or an old version of Macromedia's Flash Player" but the newest Flash is correctly installed. How can I make Java run correctly?!