How to create a simple idoc in practice? can you provide an example?

how to create a simple idoc in practice? can you provide an example with full source code?

Try with the follwoing steps
Sending System(Outbound ALE Process)
Tcode SALE „³ for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 ¡V Create Model View
Tcode BD82 ¡V Generate partner Profiles & Create Ports
Tcode BD64 ¡V Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE „³ for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 ¡V Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 ¡V Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 ¡V Send Material Data
Tcode WE05 ¡V Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Thanks & regards
Sreenivas
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Take a look at this guide.
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/ale/configuration.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapdevelopment.co.uk/training
http://www.sappro.com/downloads/OneClientDistribution.pdf
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
Create The Extension Segment
Transaction: WE31
The first step in extending an IDoc is to create the new segments that will go into that IDoc. There are some rules that you need to follow when creating the segments:
- The name of each segment type must start with ‘Z1’
- For each field in the segment you need to define a field name and a
data element.
- The data element for the segment structure must be of data type ‘CHAR’.
How to create new segments:
Run the segment maintenance transaction WE31.
Type your new segment name, and click on Create.
Define the fields of your segment:
Field name
Data Element for the field (from the ABAP dictionary).
Do not change the Export length!
Save the segment
Run Segment -->Check to check the segment for consistency.
Release the segment for transport. Select Edit -->Set Release. Note that the “Release’ column now has a check mark.
Create the Extension IDoc Type
Transaction: WE30
After you create the segments to be added to the extension type, you can create the extension type itself. Execute transaction WE30, enter the extension name, select Extension type, and click Create. You now have three options:
Create new type: Does not refer to other extension types
Create copy: Copies info from an extension type that already exists
Create successor: Extends an extension type from a previous release
of R/3. You can only have one version of an extension type for
each release.
Enter the Basic IDoc type that this extension type will extend.
The screen now shows the structure of the IDoc type you used as
a reference.
Position the cursor on one of the segments and click Create. This will insert an extension segment as a child of the selected segment.
NOTE: A segment cannot appear more than once in an IDoc type! You must control the use of duplicate segments with the segment attributes (the next screen).
The segment attribute screen appears. Enter the information and save.
Extension segments should not be mandatory (for future upgrades), and will need to have minimum and maximum number of instances defined. This answers the question, “for each instance of the parent segment, how many instances of the child segment may we have?”
You can press the Segment Editor pushbutton to view or change the segment definition.
Create the new Message Type
You can only use an extension IDoc type by assigning it to a message type. You can create a new message type for this.
First the message type itself needs to be created.
Transaction: WE81
Create a new entry and save. Use SAP established customer naming conventions (good form is to start with a Z and retain the rest of the related SAP message type, so, for example, MATMAS becomes ZMATMAS).
After creating the message type, associate it with the corresponding Basic IDoc Type and Extension Type. This relationship is used when IDocs are sent to or received from a partner to determine what segments are valid and what the hierarchy for those segments is.
Transaction: WE82
Create a new entry and enter the Message type, Basic IDoc type, Extension type, and Release, and save your data. Note: the release assignment is not valid for prior SAP releases.
One message type can be associated with many basic IDoc types; however, you need a one-to-one relationship for distribution via ALE.
regards,
srinivas
*reward for useful answers*</b>

Similar Messages

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • How to create partner in idoc

    hello friends ,
    i am new in ALE IDOC i don't know  how to create partner in IDOC.
    thanks in advance

    Hi,
    To create a partner, use transaction WE20; before which the following configurations should be done.....
    - Creation of logical system(txn BD54)
    - Assigning client to Logical System(txn SCC4)
    - Creation of RFC destination(txn SM59)
    - Creation of port(txn WE21)
    Now create the partner profile for the logical system defined in BD54, using the port as the one created in WE21.
    A partner can have outbound and inbound message types, which are purely as per the business requirement.
    ~ Bineah.

  • How to create an inbound Idoc from an inbound IDoc in same client

    How to create an inbound Idoc from an inbound IDoc in same client
    Idoc will come from XI as an inbound idoc to SAP, now I have to read this inbound Idoc and split it into Several Inbound Idocs and now needs to be posted in the same client.
    please let me know the procedure..
    Thanks in advance,
    Sagar

    Hi Sagar,
    Develop a cusom Z-Inbound function module, configure the Z-FM to trigger when idoc is recieved from XI. In your Z-Inbound function module split the idoc (Recieved from XI)  into respective Idocs and Using MASTER_IDOC_DISTRIBUTE post the IDOCs into the same system.
    Thanks & Regards

  • How to create transaction for a maintenance view, Thank you.

    How to create transaction for a maintenance view,
    Thank you.
    deniz...

    Hi Deniz,
    Go to se93.
    Then create the new T.code.
    Under that select parameter Transaction.
    Then give the sm30 in the t.code in default values tab.
    check the checkbox skip initial screen.
    in classification tab.
    click checkbox inherit gui attributes..
    Now below..
    In the default values..
    select
    viewname and give ur table name.
    UPDATE= Xsave
    view - table name ( Should be upper case
    update X ( should be upper case).
    http://www.sap-basis-abap.com/sapbs011.htm
    Hope this helps you.
    Regards,
    Viveks

  • How to create Short Lived process?..can neone pls help...

    How to create Short Lived process?..can neone pls help...

    Hi,
    Login into workbench. Click on Help->Workbench start page.
    Lot of helps are there you can go through them. They will be helpful.
    But it seems you are new to livecycle, so it will difficult to start through help. Either you can take help of any of your team member who is expert in livecycle or some training you should attend.
    Thanks

  • HT5731 My iPad says I cannot download any more because I am out of memory.  I purchased space in cloud and still get same message.  I do not know how to delete shows to open space.  Can you help?  Thanks.

    My iPad says I cannot download any more because I am out of memory.  I purchased space in cloud and still get same message.  I do not know how to delete shows to open space.  Can you help?  Thanks.

    Your iPad is physically out of storage space. Purchasing space in iCloud dosen't magically give your actual iPad more physical  storage space.
    You need to delete content off of your iPad.
    https://discussions.apple.com/thread/5122738?start=0&tstart=0
    http://m.youtube.com/watch?v=mZdBQoE37FA&desktop_uri=%2Fwatch%3Fv%3DmZdBQoE37FA

  • HT5361 I am unable to start or select the MAIL app. No incoming mail and no outgoing mail. I do not even know how to get an answer without email. Can you help?

    I am unable to start or select the MAIL app. No incoming mail and no outgoing mail. I do not even know how to get an answer without email. Can you help?

    Thank you Carolyn, How helpless you can feel without this App!
    Going into the App Store as you suggest, I see 'thee updates available", the first says, 'X RESTART', the second says, 'Garage Band, an error has occurred" (in red), and the third 'Memory Clean, UPDATE'.
    Am I correct in thinking that OSX is the problem, because it is waiting for a restart?
    Kind regards,
    Cy

  • HT203163 I appear to have transferred to the US store and cannot find out how to get back to the UK store- can you help ?

    I have managed to get into the US store and cannot work out how to get back to the UK store - can you help?

    See  >  Change your iTunes Store country
    Here  >  http://support.apple.com/kb/HT1311
    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region = Change Country / Region

  • How i create a simple sequence in OWB (Example)

    Hi,
    i want create an simple sequence in OWB. But how i make a simple sequence in the oracle data Warehouse Builder.
    Until now i goes into expression Builder of the sequence.
    where already written is:
    *"SEQ_ACCOUNT".NEXTVAL*
    so my idea was to write behind this start with 1 increment by 1
    also looks it practically so
    *"SEQ_ACCOUNT".NEXTVAL start with 1 increment by 1*
    but this doesn´t work. But was is wrong?
    Can me give anyone an concrete example for a simple sequence or show how it must write that it will be correct.
    I look forward for your replies :)

    I have found the solution for this problem :) To create a seqeunce goes to sequences in project explorer ---> new sequences ---> give name and bla bla bla --> right click on to created sequence and choose confiugre. Here you can under sequence parameter configure things as Increment By and Start with But how goes it into expression builder of a sequence?

  • How to create a simple app using the MVC approach?

    Hello gurus i'm trying to learn the SAPUI5 and i'm trying to create a simple app using the MVC i created the app and trying to add a lable to the view but there is nothing appear when i run it the code for the HTML page
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("mytestapp");
      var view = sap.ui.view({id:"idshell1", viewName:"mytestapp.shell", type:sap.ui.core.mvc.ViewType.JS});
      view.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    the code for the view
    sap.ui.jsview("mytestapp.shell", {
      /** Specifies the Controller belonging to this View.
      * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
      * @memberOf mytestapp.shell
      getControllerName : function() {
      return "mytestapp.shell";
      /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
      * Since the Controller is given to this method, its event handlers can be attached right away.
      * @memberOf mytestapp.shell
      createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      oLabel.placeAt("content");
    i dont know what is wrong or if i should use a container to display my controls
    any help will be appreciated
    thanks in advance

    Hi,
    Instead of   oLabel.placeAt("content"); use return oLabel;
    so it will as below,
    createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      return oLable;
    Regards,
    Chandra

  • How to create a simple input form in BPC 10.0 and the details are below

    Hi Experts,
    I would like to know how to create attached input form and what are the dimension would require to use in order to populate correct report
    Please provide your comments and the sample report has been attached.
    MGA Index
    Column
    Head Count Planning Required
    Approver authority
    Asset
    Row_Cost Center
    Business Development
    Finance
    Procurement -
      C&P
    Legal
    HSS &  Environment
    Petroleum Engg
    Drilling
    Subsurface
    Thanks in advance.
    Regards,
    SK.

    Hello,
    The new update of Muse allows you to use the Webforms widget with a non Business Catalyst host as well.
    However, Captcha is something which currently cannot be used via Muse without using Business Catalyst as host.
    This document might be of some help : http://forums.adobe.com/docs/DOC-3581
    Regards,
    Sachin

  • How I create a simple instaltion to Oracle 10g Client

    Firstly I dont know where I post about this... So Post here. I need create a Simple instalation to Oracle Client...
    example: Next, next and conclude. when I define the parameters previously... this is possible?

    Hi;
    You need to use response file
    http://docs.oracle.com/html/B13804_02/advance.htm
    http://docs.oracle.com/cd/B19306_01/install.102/b14312/advance.htm
    Also please use search mechanism which we discussed similar issue many times. Also notice 10g not supported anymore.
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • How to create a inbound IDOC from flat file in Application server

    HI All
    Our requirement is to create the Inbound idocs from a flat file from application server with in R/3
    Could any body please let me know the steps required for this.
    Thanks
    Malli

    1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
    and then call function
    CALL FUNCTION 'INBOUND_IDOC_PROCESS'
        TABLES
          IDOC_CONTROL       =  i_edidc
          IDOC_DATA          =  i_edid4.

  • Roadmap UI  - How to create a simple roadmap?

    Hi,
    I wonder to know the most simple explanation to create an application that uses a Roadmap UI.
    For example, a Roadmap with 2 steps, and when I click a button in the first step, go to the second step, using BAPI's to validate each step.
    Anybody give me a detailed steps to create it?
    thanks a lot in advance,
    regards,
    Edited by: Leandro  Balboni on Aug 28, 2008 11:31 PM

    Hi
    1) Create a view and add Road map UI with two step(say step1 and step2).
    2) Create two context for step1, step2 of local dictionary type RoadMapStepDesign and bind the context to UI step (design property)
    3) in wdDoModifView() method write
        if (firstTime)
         IWDRoadMap myRoadMap = (IWDRoadMap) view.getElement("RoadMap");
         myRoadMap.mappingOfOnSelect().addSourceMapping("step","step" );
    6) Create an action with parameter step of type java.lang.String and bind to Roadmap Event onSelect. In this action you can write your comparision code like
    if(step.equals("Step1"))
         // set visible property to the UI related to step1
         // wdContext.currentContextElement().setVa_Step1(WDRoadMapStepDesign.SELECTED);
         // wdContext.currentContextElement().setVa_Step2(WDRoadMapStepDesign.STANDARD);
    elseif(step.equals("Step2"))
         // set visible property to the UI related to step2
         // wdContext.currentContextElement().setVa_Step2(WDRoadMapStepDesign.SELECTED);
         // wdContext.currentContextElement().setVa_Step1(WDRoadMapStepDesign.STANDARD);
    Regards
    saba

Maybe you are looking for

  • ITunes 10.1.1 quits unexpectedly upon opening

    This just started today, I can't remember if I've tried opening iTunes since it last updated, but I use it regularly so I probably have and I've never had this problem before. I've tried uninstalling iTunes and reinstalling it from Apple.com, and I'v

  • JMS Sender Adapter with constant values

    Hello Friends, My scenario is, 1. I am having 6 Sender JMS CCs with different Queues 2. One Inbound Proxy to post the data into R/3 Sender (JMS) - > XI - > R/3 (Inbound Proxy) Note: There is no Message Mapping used. Problem:  When my sender JMS adapt

  • Flash Player 9 obstructs ALL QT media

    After installing Flash Player 9.0r47 on my Mac, ALL QT media is prevented from playing. My system includes: Mac OS X 10.4.7 (PPC) and QT 7.13. When QT content is available on my machine or on the web, I get a QT icon with ? mark. Any ideas will be he

  • Table css column-header text color not working

    When setting -fx-text-fill: red; in a css table, it does not change the header to tex to red. Is there another value? .table-view .column-header {                                                                                                        

  • Field Dominance Question for Sequence

    I shot my video in DVCPro50 format at 30p. I have edited my video in a DV50 sequence. I am ready to take to a production house to be transferred to BetaSP. In the past with other videos I take the finished sequence and nest it into a Uncompressed 8-b