IDOC EVENTS

Hi experts!
I'm searching for a way to manage general IDOC events.
I need someting like user exit, common to any IDOC, that let me to manage the following events:
- for Inbound Idocs: Start of Idoc elaboration, End of Idoc elaboration and error during Idoc elaboration.
- for Outbound Idocs: Start of Idoc creation, Endo of Idoc creation and error during Idoc creation.
Does exist something similar that avoid me to make deep modification to standard IDocs?
Thanks a lot.
Mario.

Mario,
Just refer:
User Exit for Reading Segments
Amit.

Similar Messages

  • IDOC event linkage deactivated automatically

    HI All,
    We are facing an issue in Production. IDOC event linkage deactivated automatically when we execute one custom transaction.
    Below is the log from Workflow trace SWEL transaction.
    IDOC     PROCESSSTATEREACHED     10.11.2010     09:25:43     TS30200090     @5C\QFeedback after error@     SWW_WI_CREATE_VIA_EVENT
    IDOC     PROCESSSTATEREACHED     10.11.2010     09:25:46     TS30200090     @5C@     Deactivated
    Could you please let me know what is the actual issue.
    Edited by: Phanindra Annaparthi on Nov 10, 2010 8:10 AM
    Edited by: Phanindra Annaparthi on Nov 10, 2010 8:12 AM

    Hello,
    Check the event log (SWEL) for the actual error. Could be a missing mandatory parameter.
    regards
    Rick Bakker
    hanabi technology

  • PI message packets effecting idoc events

    Hello experts.
    I seem to have a problem with message packets.
    I receive several messages of type ALEAUD (not as acks, but as a regular IDOC), and when I send them to my
    SAP ECC system they are being sent as a packet.
    When an ALEAUD is being processed I want it to raise an event, however, an event is being raised for a packet only.
    I asked SAP, and they told me that I can change AUD1 and there I can make it to raise an event for each IDOC
    (but they will not support it, so I made a new process code named ZAUD1)
    However when I send several IDOCS, there are 2 events that are being raised for the same IDOC, and an IDOC that has no event.
    Can anyone please help?
    How can I make every IDOC processing raise an event for that IDOC only?

    Hi,
    Trigger an idoc using we19 and set break points in your process code and debug to find out how the events are getting triggered...
    need an abap knowledge on this take help of abaper if you are not..
    HTH
    Rajesh

  • Event raised upon successful outbound idoc INVOIC

    Is there any event that I can use to trigger a workflow when an INVOIC02 idoc is created successfully?
    This is an SD billing document created from VF01.  output type RD00
    I want to use workflow to take that idoc, transform it to another format, then send it off.
    I'd like to trigger this follow on function from a successfull idoc event.
    I've tried IDOC.processStateReached and IDOC.statusIDocProcessed.  They don't seen to be raised when I create the idoc.
    The events in IDOCINVOIC only relate to inbound idocs.
    I can only find inbound or failure events.  Not outbound success events.
    Thanks

    Hi-      
    I want to use workflow to take that idoc, transform it to another format, then send it off.
    I'd like to trigger this follow on function from a successfull idoc event.
    I am not sure, why to use workflow to transfer the idoc. Normally after creation of successfull idoc, ECC will send the idoc to other middleware like PI and they will convert and transform the idoc
    ok, If you need to trigger the workflow for success idoc, then are you creating idoc immediately after creating billing document or using batch job process?. This  you will be configuring in NACE
    If it is batch job process, then you need to check prog- RSNAST00 (which will be scheduled periodically to create idoc) and check any way to enhance to add logic to trigger workflow for success idoc, else, you could create a copy of std and make change
    Vinoth

  • NPS SQL missing reason-code in Server 2012 R2

    Hi
    It seems like several SQL fields in the 2012 R2 version of NPS logging has been removed.
    Amongst others the Reason-Code field.
    Most people only refer to log files to see why someone can't connect to the vpn server.
    In previous versions we had a web front end for an sql view that gave you the reason why the server denied access so that we do not need to give helpdesk personnel access to the log files and we also filter which operations vpn sessions they can see (via
    multiple vpn nps policies and then filter the sql view based on their permissions).
    Is there any way to restore the logging of this field to SQL as well as logging the source IP address of the request (our investors requires this and we get audited on it) with the issued IP (non DHCP). We are not allowed to run DHCP on this server since
    it is situated in the 3rd party datacenter.
    Regards
    Johan

    And this is what Server 2008R2 had parsed in the default stored procedure:
    FROM
    OPENXML(@idoc,
    '/Event')
    WITH
        Computer_Name
    nvarchar(255)
    './Computer-Name',
        Packet_Type
    int
    './Packet-Type',
        [User_Name]
    nvarchar(255)
    './User-Name',
        F_Q_User_Name
    nvarchar(255)
    './Fully-Qualifed-User-Name',
        Called_Station_Id
    nvarchar(255)
    './Called-Station-Id',
        Calling_Station_Id
    nvarchar(255)
    './Calling-Station-Id',
        Callback_Number
    nvarchar(255)
    './Callback-Number',
        Framed_IP_Address
    nvarchar(15)
    './Framed-IP-Address',
        NAS_Identifier
    nvarchar(255)
    './NAS-Identifier',
        NAS_IP_Address
    nvarchar(15)
    './NAS-IP-Address',
        NAS_Port
    int
    './NAS-Port',
        Client_Vendor
    int
    './Client-Vendor',
        Client_IP_Address
    nvarchar(15)
    './Client-IP-Address',
        Client_Friendly_Name
    nvarchar(255)
    './Client-Friendly-Name',
        Event_Timestamp
    datetime
    './Event-Timestamp',
        Port_Limit
    int
    './Port-Limit',
        NAS_Port_Type
    int
    './NAS-Port-Type',
        Connect_Info
    nvarchar(255)
    './Connect-Info',
        Framed_Protocol
    int
    './Framed-Protocol',
        Service_Type
    int
    './Service-Type',
        Authentication_Type
    int
    './Authentication-Type',
        NP_Policy_Name
    nvarchar(255)
    './NP-Policy-Name',
        Reason_Code
    int
    './Reason-Code',
        Class
    nvarchar(255)
    './Class',
    Session_Timeout
    int
    './Session-Timeout',
        Idle_Timeout
    int
    './Idle-Timeout',
        Termination_Action
    int
    './Termination-Action',
        EAP_Friendly_Name
    nvarchar(255)
    './EAP-Friendly-Name',
        Acct_Status_Type
    int
    './Acct-Status-Type',
        Acct_Delay_Time
    int
    './Acct-Delay-Time',
        Acct_Input_Octets
    int
    './Acct-Input-Octets',
        Acct_Output_Octets
    int
    './Acct-Output-Octets',
        Acct_Session_Id
    nvarchar(255)
    './Acct-Session-Id',
        Acct_Authentic
    int
    './Acct-Authentic',
        Acct_Session_Time
    int
    './Acct-Session-Time',
        Acct_Input_Packets
    int
    './Acct-Input-Packets',
        Acct_Output_Packets
    int
    './Acct-Output-Packets',
        Acct_Terminate_Cause
    int
    './Acct-Terminate-Cause',
        Acct_Multi_Session_Id
    nvarchar(255)
    './Acct-Multi-Session-Id',
        Acct_Link_Count
    int
    './Acct-Link-Count',
        Acct_Interim_Interval
    int
    './Acct-Interim-Interval',
        Tunnel_Type
    int
    './Tunnel-Type',
        Tunnel_Medium_Type
    int
    './Tunnel-Medium-Type',
        Tunnel_Client_Endpoint
    nvarchar(255)
    './Tunnel-Client-Endpt',
        Tunnel_Server_Endpoint
    nvarchar(255)
    './Tunnel-Server-Endpt',
        Acct_Tunnel_Connection
    nvarchar(255)
    './Acct-Tunnel-Connection',
        Tunnel_Pvt_Group_Id
    nvarchar(255)
    './Tunnel-Pvt-Group-Id',
        Tunnel_Assignment_Id
    nvarchar(255)
    './Tunnel-Assignment-Id',
        Tunnel_Preference
    int
    './Tunnel-Preference',
        MS_Acct_Auth_Type
    int
    './MS-Acct-Auth-Type',
        MS_Acct_EAP_Type
    int
    './MS-Acct-EAP-Type',
        MS_RAS_Version
    nvarchar(255)
    './MS-RAS-Version',
        MS_RAS_Vendor
    int
    './MS-RAS-Vendor',
        MS_CHAP_Error
    nvarchar(255)
    './MS-CHAP-Error',
        MS_CHAP_Domain
    nvarchar(255)
    './MS-CHAP-Domain',
    MS_MPPE_Encryption_Types
    int
    './MS-MPPE-Encryption-Types',
    MS_MPPE_Encryption_Policy
    int
    './MS-MPPE-Encryption-Policy',
        Proxy_Policy_Name
    nvarchar(255)
    './Proxy-Policy-Name',
        Provider_Type
    int
    './Provider-Type',
        Provider_Name
    nvarchar(255)
    './Provider-Name',
        Remote_Server_Address
    nvarchar(15)
    './Remote-Server-Address',
        MS_RAS_Client_Name
    nvarchar(255)
    './MS-RAS-Client-Name',
        MS_RAS_Client_Version
    nvarchar(255)
    './MS-RAS-Client-Version',
        NAP-specific information, available from NPS starting with Windows Server 2008.

  • Trigger an Event in PI when IDOC is created

    Hi Expert ,
    I  am working on a inbound scenario where multiple IDOC is created from one XML file .  When the IDOC is getting posted in ECC then its taking time to get processed . IDOC is getting processed by a batch job RBDAPPO1 and it is scheduled after every 30 min so IDOC processing is delayed for 30 min if it is getting posted just after the completion Job . We can't increase the frequency of job at its taking lot of resource .
    So is it possible to create an event when IDOC arrives in ECC which will run the job program i.e instead of running the background job at scheduled time is it possible to raise an event while posting IDOC so RBDAPP01 can be run just after the IDOC is received in ECC.
    There is an option of Process IDOC immediately in parter profile but we don't have to go for that as at one time lots of IDOC is being posted in ECC.
    Regards,
    Saurabh

    Hi,
    interesting topic !
    I add two info:
    1. By using a dummy idoc or a proxy call (interesting idea) to trigger a job, be careful of one point: in PI, when idocs will be sent to ECC... well... PI will use different queues (SMQ2)... And so maybe your dummy idoc will use a "faster" queue and will arrive before all the other idocs. and the result will be not this one that you want !
    Solution: EOIO by specifying a unique queue... but in that case, if there is a pb between PI and ECC, it's ALL the next exchanged of this interface which will be in status "wait inside the queue"... until you solve the first error.
    2. with you dummy idoc, How to trigger a job to run your idocs... it's "easy", it's just in the function module linked to your dummy Idoc, that either you run directly RBDAPP01 with your specific Message Type, idoc type, parter, date, etc... (*) or your program create a job which to the same (personally I prefer this solution).
    (*) as suggest by another guy, do a generic "dummy idoc".
    Regards.
    Mickael

  • Raise an event when an idoc invoice (INVOIC02) gets created in error

    Hi All,
    I’m trying to generate an email message from an output invoice when processed incorrectly.
    I created a subtype of IDOCINVOIC, updated the linkage table using swe2  but the events are not raised when I go to re-issue my invoice output.
    I know it’s possible to raise these events in idoc invoice exit ZXEDFU02 but  the status is not created at this stage.
    Is it possible to raise an event when an idoc invoice gets created in error?
    King Regards
    Ann

    @CoolDadTX -That's because I've written com servers in the past using VB.net, however they were not registered with the Running object table.
     What I'm trying to do in this case is have an application that will be started by the user, and then they will start another application written in .Net to connect to that first application.  The reason for this is that we have an application
    written in an old version of smalltalk that doesn't seem to support getObject but can create an IUknown, and we already have base classes to attach to COM objects written in .Net.  As this new application needs to be started first it can't be tightly
    coupled to the legacy application, so we are trying to register the new application and then connect a Dotnet Client that is being started through a  COM Interface from the legacy application.  I know it's convoluted but we need to keep the legacy
    application alive for a bit longer while we rewrite it as an add-in for the new application.
    The article that you linked to has been very helpful on the server side, but do you have any ideas as to how I can connect the sink on the client side in C#?

  • Create IDOC Based on an Event Being Triggered

    I have a BOR object that when changed - triggers event 'Change'
    I would like to code the event linkage such that an IDoc is created everytime the event is raised.
    Has anyone done this before?
    The message type I am using is a standard one and is associated with the same BOR object.
    Which function module should I use in the event linkage for that 'change' event?
    The IDoc doesnt have an outbound function module.
    Please indicate steps or point me to related weblogs/threads
    Thanks

    hi!!!!!!!!!!!!!!
    this is the sample code which may help u,
    *BAsic type ZMARA
    *Extension ZMARA
    *Message type ZMatmas
    REPORT  zi_material_idoc
            NO STANDARD PAGE HEADING
            MESSAGE-ID b1.
    TABLES: z1maram, z1mara_desc, z1marcm.
                        TYPE DECLARATION
    TYPES: BEGIN OF ty_data,
            matnr TYPE matnr,
            ernam TYPE ernam,
            ersda TYPE ersda,
            mtart TYPE mtart,
            mbrsh TYPE mbrsh,
            spras TYPE spras,
            maktx TYPE maktx,
            werks TYPE werks_d,
            lgort TYPE lgort_d,
           END OF ty_data.
    DATA: w_data TYPE ty_data,
          w_edidd TYPE edidd,
          i_edidd TYPE STANDARD TABLE OF edidd,
          w_edidc TYPE edidc,
          i_edidc TYPE STANDARD TABLE OF edidc.
                         SELECTION SCREEN                               *
    PARAMETERS: p_matnr TYPE matnr.
                       AT SELECTION SCREEN
    *Validate Material
    AT SELECTION-SCREEN ON p_matnr.
      PERFORM check_matnr.
                       START-OF-SELECTION
    *Start of selection
    START-OF-SELECTION.
      PERFORM get_data_from_selection.
                        END-OF-SELECTION
    *End of selection
    END-OF-SELECTION.
      IF NOT i_edidd IS INITIAL.
        PERFORM generate_idoc.
      ENDIF.
    *&      Form  check_matnr
          text
    FORM check_matnr .
      DATA l_matnr TYPE matnr.
      IF NOT p_matnr IS INITIAL.
        SELECT SINGLE matnr FROM mara INTO l_matnr
                            WHERE matnr = p_matnr.
        IF sy-subrc NE 0 OR l_matnr IS INITIAL.
          MESSAGE e000 WITH text-004.
        ENDIF.
      ENDIF.
    ENDFORM.                    " check_matnr
    *&      Form  get_data_from_selection
          text
    FORM get_data_from_selection .
      SELECT SINGLE a~matnr
                    a~ernam
                    a~ersda
                    a~mtart
                    a~mbrsh
                    b~spras
                    b~maktx
                    c~werks
                    c~lgort
                    INTO w_data
                    FROM mara AS a
                    INNER JOIN makt AS b
                    ON amatnr = bmatnr
                    INNER JOIN mard AS c
                    ON amatnr = cmatnr
                    WHERE a~matnr = p_matnr AND
                          b~spras = 'EN'.
      IF sy-subrc = 0.
        MOVE: w_data-matnr TO z1maram-matnr,
              w_data-ernam TO z1maram-ernam,
              w_data-ersda TO z1maram-ersda,
              w_data-mtart TO z1maram-mtart,
              w_data-mbrsh TO z1maram-mbrsh,
              w_data-spras TO z1mara_desc-spras,
              w_data-maktx TO z1mara_desc-maktx,
              w_data-werks TO z1marcm-werks,
              w_data-lgort TO z1marcm-lgort.
    Populate Parent Segment
        w_edidd-segnam = 'Z1MARAM'.
        w_edidd-sdata = z1maram.
        APPEND w_edidd TO i_edidd.
        CLEAR w_edidd.
    Populate Extn Segment
        w_edidd-segnam = 'Z1MARCM'.
        w_edidd-sdata = z1marcm.
        APPEND w_edidd TO i_edidd.
        CLEAR w_edidd.
    Populate Child Segment
        w_edidd-segnam = 'Z1MARA_DESC'.
        w_edidd-sdata = z1mara_desc.
        APPEND w_edidd TO i_edidd.
        CLEAR w_edidd.
      ENDIF.
    ENDFORM.                    " get_data_from_selection
    *&      Form  generate_idoc
          text
    FORM generate_idoc .
    Populate Control Record
      w_edidc-direct = '1'.
      w_edidc-rcvpor = 'A000000021'.
      w_edidc-rcvprt = 'LS'.
      w_edidc-rcvprn = 'ZMATMAS'.
      w_edidc-sndprt = 'LS'.
      w_edidc-sndprn = 'LOG950R3'.
      w_edidc-mestyp = 'ZMATMAS'.
      w_edidc-idoctp = 'ZMARA'.
      w_edidc-cimtyp = 'ZMARA'.
    Data Distribution
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control            = w_edidc
        TABLES
          communication_idoc_control     = i_edidc
          master_idoc_data               = i_edidd
        EXCEPTIONS
          error_in_idoc_control          = 1
          error_writing_idoc_status      = 2
          error_in_idoc_data             = 3
          sending_logical_system_unknown = 4
          OTHERS                         = 5.
      IF sy-subrc = 0.
        CLEAR w_edidc.
        READ TABLE i_edidc INTO w_edidc INDEX 1.
        IF sy-subrc = 0.
          WRITE:/ w_edidc-docnum.
        ENDIF.
      ENDIF.
    ENDFORM.                    " generate_idoc
    this link may help u,
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6702507d11d18ee90000e8366fc2/content.htm
    reward if useful.

  • Can I create an IDOC Based on A Change Event Being Triggered

    I have a BOR object that when changed - triggers event 'Change'
    I would like to code the event linkage such that an IDoc is created everytime the event is raised.
    Has anyone done this before?
    The message type I am using is a standard one and is associated with the same BOR object.
    Which function module should I use in the event linkage for that 'change' event?
    The IDoc doesnt have an outbound function module.
    Please indicate steps or point me to related weblogs/threads
    Thanks

    Hi Anand,
    What happens generally  is that -- Initiator are created on the basis on the main role. User submit the request for main roles and the dependent roles are added automatically. Dependent roles are added later automatically the initiator needs to be created on the main roles. So if initiator is created on the basis of dependent role ( secondary roles ) and you are not selecing the dependent role in the request ( selecting only the main roles ) the initiator's conditions will not meet.
    Kind Regards,
    Srinivasan

  • HRMD_A IDoc in error not raising an event

    I have workflows enabled for IDocs in error.
    If an inbound order IDoc (ORDERS) arrives in status 51, it triggers a workflow.
    If an HR master data IDoc (message type HRMD_A) arrives in status 51, no workflow is triggered.
    Here is what I have checked:
    Partner profile has me as responsible agent in both cases.
    Both type linkages are active for IDOCHRMD and IDOCORDERS event InputErrorOccurred.
    Both IDocs types are posted in with the test tool and end up in status 51.
    When I investigate the event trace, I can see that an event is raised for the ORDERS IDoc but not for the HRMD_A IDoc.
    There are no errors in the type linkage status column.
    So why would it be that the event is not being raised for the HRMD_A IDoc?
    How can I find out what should be raising the event? I guess that there is a function module call to SWE_EVENT_CREATE or SAP_WAPI_CREATE_EVENT.
    Kind Regards,
    Tony.

    Hi Tony,
    I am a complete novice to workflow but I have a requirement liek yours to trigger workflow for idocs in error, so I was hoping you could point me in the direction of some documentation/steps on how to do this?

  • IDoc Packaging on Event Driven Message Processing Message Filter

    Hi Experts,
    I am testing IDoc Packaging on Event Driven Message Processing and I got struck at scheduling the job.
    My scenario is IDoc to File. I have created sender and receiver id with coresponding interfaces. While creating the message filter I have selected outbound channel --> IDoc Packaging Option n I have took 10 as Package Size in Messages. In SM 36 I have created JOB and in the step I have selected SXMS_START_JOBS.
    Now my problem is while creating the JOB in SM36 what condition should I select? How do I test this event driven message processing with IDoc packaging??
    Please guide me...
    Regards
    SAPTOTAL

    in the event, you should also have a job for RSEOUT00 scheduled so that the IDocs are send out as a package

  • Idoc - what is INPUTSUCCESS event ?

    Hi, people
    I have a little question:
    When I do an event tracing (transactions SWELS + SWEL)
    on idoc creation/reprocessing
    I see that the event INPUTSUCCESS is triggered.
    Does anyone know, what is the meaning of this event ??
    Because i havn't found any documentation or help on this issue.

    Are you getting this event in Receiver System? What is the Business Object this event is for?
    by looking at the Event name it looks like the Particular IDOC is posted successfully.
    Thanks
    Shital

  • BAPI/Idoc for creating Business event

    Hi,
    Can we create a business event using any BAPI/Idoc without using the transaction PV10?
    Thanks

    Hi Ravish,
    BAPI_BUPA_CREATE_FROM_DATA   which generates a general Business Partner.  BAPI_BUPA_ROLE_ADD.                   to add a different role
    Regards
    Narayana

  • Create event Outbound Idoc

    Hi Community,
    I configured all to send by Nast an outbound idoc DELVRY03 message type DESADV.
    Now I wish to know idoc number e its status in order to update custom table about process.
    Is there some event (like Created) that I could catch after the idoc is created? Have you any suggestion to solve my trouble?
    thanks in advance,
    Frank

    hi ,
    Check in trx <b>WE05</b> for idoc list.
    there u can get idocno,status,...
    Cheers
    ALfred
    Reward points for helpful answers.

  • Error in creation of  PurOrd IDoc

    Hi All,
    I have set up the output type for PO and created patner profiles and also add the message types ORDER and ORDCHG  but  when I save the PO and check the messages, I get an error: " No recipient found for message type ORDERS in the ALE Model ".
    What could be the possible problem?
    Highly appreciate any kind of help.
    Thanks in advance,
    Shweta
    PS: <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

    Hi
    Check the Partner Profile in WE20 correctly
    also see the steps for it as per the doc
    Data Creation in Idoc
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
    asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
    IDoc is a intermediate document to exchange data between two SAP Systems.
    *IDocs are structured ASCII files (or a virtual equivalent).
    *Electronic Interchange Document
    *They are the file format used by SAP R/3 to exchange data with foreign systems.
    *Data Is transmitted in ASCII format, i.e. human readable form
    *IDocs exchange messages
    *IDocs are used like classical interface files
    IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    FOr testing you can use WE19.
    How to create idoc?
    *WE30 - you can create a IDOC type
    For more information in details on the same along with the examples can be viewed on:
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    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.
    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
    Check these out..
    Re: How to create IDOC
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    go trough these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
    1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
    2.IDOCs are independent of the sending and receiving systems.
    3.IDOCs are independent of the direction of data exchange.
    The two available process for IDOCs are
    Outbound Process
    Inbound Process
    AND There are basically two types of IDOCs.
    Basic IDOCs
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extended IDOCs
    Extending the functionality by adding more segments to existing Basic IDOCs.
    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)
    imp links
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    www.sappoint.com
    --here u can find the ppts and basic seetings for ALE
    http://sappoint.com/presentation.html
    www.sapgenie.com
    http://www.sapgenie.com/ale/index.htm
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    Try this..Hope this will help.
    >>>> SAP ALE & IDOC<<<<
    Steps to configuration(Basis) >>
    1. Create Logical System (LS) for each applicable ALE-enabled client
    2. Link client to Logical System on the respective servers
    3. Create background user, to be used by ALE(with authorizaton for ALE postings)
    4. Create RFC Destinations(SM59)
    5. Ports in Idoc processing(WE21)
    6. Generate partner profiles for sending system
    The functional configuration(Tcode: SALE)
    • Create a Customer Distribution Model (CDM);
    • Add appropriate message types and filters to the CDM;
    • Generate outbound partner profiles;
    • Distribute the CDM to the receiving systems; and
    • Generate inbound partner profiles on each of the clients.
    Steps to customize a new IDoc >>>
    1. Define IDoc Segment (WE31)
    2. Convert Segments into an IDoc type (WE30)
    3. Create a Message Type (WE81)
    4. Create valid Combination of Message & IDoc type(WE82)
    5. Define Processing Code(WE41 for OUT / WE42 for IN)
    6. Define Partner Profile(WE20)
    Important Transaction Codes:
    SALE - IMG ALE Configuration root
    WE20 - Manually maintain partner profiles
    BD64 - Maintain customer distribution model
    BD71 - Distribute customer distribution model
    SM59 - Create RFC Destinations
    BDM5 - Consistency check (Transaction scenarios)
    BD82 - Generate Partner Profiles
    BD61 - Activate Change Pointers - Globally
    BD50 - Activate Change Pointer for Msg Type
    BD52 - Activate change pointer per change.doc object
    BD59 - Allocation object type -> IDOC type
    BD56 - Maintain IDOC Segment Filters
    BD53 - Reduction of Message Types
    BD21 - Select Change Pointer
    BD87 - Status Monitor for ALE Messages
    BDM5 - Consistency check (Transaction scenarios)
    BD62 - Define rules
    BD79 - Maintain rules
    BD55 - Defining settings for IDoc conversion
    WEDI - ALE IDoc Administration
    WE21 - Ports in Idoc processing
    WE60 - IDoc documentation
    SARA - IDoc archiving (Object type IDOC)
    WE47 - IDoc status maintenance
    WE07 - IDoc statistics
    BALE - ALE Distribution Administration
    WE05 - IDoc overview
    BD87 - Inbound IDoc reprocessing
    BD88 - Outbound IDoc reprocessing
    BDM2 - IDoc Trace
    BDM7 - IDoc Audit Analysis
    BD21 - Create IDocs from change pointers
    SM58 - Schedule RFC Failures
    Basic config for Distributed data:
    BD64: Maintain a Distributed Model
    BD82: Generate Partner Profile
    BD64: Distribute the distribution Model
    Programs
    RBDMIDOC – Creating IDoc Type from Change Pointers
    RSEOUT00 – Process all selected IDocs (EDI)
    RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
    RSARFCEX - Execute Calls Not Yet Executed
    RBDMOIND - Status Conversion with Successful tRFC Execution
    RBDMANIN - Start error handling for non-posted IDocs
    RBDSTATE - Send Audit Confirmations
    FOr testing you can use WE19.
    Regards
    Anji

Maybe you are looking for