<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130691#M987722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am peer.Can anybody tell how we can develope a program for idoc,&lt;/P&gt;&lt;P&gt;tell me with any example program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peer mohamed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 06:39:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T06:39:01Z</dc:date>
    <item>
      <title>IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130691#M987722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am peer.Can anybody tell how we can develope a program for idoc,&lt;/P&gt;&lt;P&gt;tell me with any example program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peer mohamed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 06:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130691#M987722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T06:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130692#M987723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 06:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130692#M987723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T06:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130693#M987724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving you simple sinario I hope you can understand by step bye step procedrue under this you have the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD54 (Creating new logical system)&lt;/P&gt;&lt;P&gt;Change/Display (Crl+f4)New entries.&lt;/P&gt;&lt;P&gt;Log system                             Name&lt;/P&gt;&lt;P&gt; Zlogical                                 SAPLER&lt;/P&gt;&lt;P&gt;(Save)&lt;/P&gt;&lt;P&gt;WE81 message type)&lt;/P&gt;&lt;P&gt;Change? Display (crl+f4) New entries.&lt;/P&gt;&lt;P&gt;Message type                         Short text&lt;/P&gt;&lt;P&gt;Zmegidoc                               (enter short text)&lt;/P&gt;&lt;P&gt;(save)&lt;/P&gt;&lt;P&gt;WE31 (Idoc segments )&lt;/P&gt;&lt;P&gt;Segment type: zsegidoc     (create)(enter)&lt;/P&gt;&lt;P&gt;Short text (give short text)&lt;/P&gt;&lt;P&gt;Field Name                                 Data element&lt;/P&gt;&lt;P&gt;(Enter whatever fields you want to transfer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Save go back (that is initial screen) goto Edit in menu bar items and set release and we can find release number generally it is 620)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If you want change or modify the fields goto Edit  cancel release and modify and again go edit setrelease) if you want create some more  segments  create another segment in the same fation. But it is another name.&lt;/P&gt;&lt;P&gt;WE30 (idoc structure)&lt;/P&gt;&lt;P&gt;Obj.name: zbasicidoc       (Create)   &lt;/P&gt;&lt;P&gt;(Choose radio button basic type or extension type  (if the fields are already transfer in the destination side user extension type , if it is new fields means go to basic type)&lt;/P&gt;&lt;P&gt;Description: (enter short description)&lt;/P&gt;&lt;P&gt;Create  segment type : zbasicidoc&lt;/P&gt;&lt;P&gt;      (Select mandatory fields in the check box)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Minimum number : 1&lt;/P&gt;&lt;P&gt;       Maximum number : 9999999999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter and save&lt;/P&gt;&lt;P&gt;(Come back to initial screen go to menu bar edit u2013 set release  release basic data type (Yes)&lt;/P&gt;&lt;P&gt; Back&lt;/P&gt;&lt;P&gt;WE82 (create between message type and idoc type )&lt;/P&gt;&lt;P&gt;(change/display(crl+f4) )New entries&lt;/P&gt;&lt;P&gt;Message type         basic type                                        release &lt;/P&gt;&lt;P&gt;Zmsgidoc               zbasicidoc                                        620&lt;/P&gt;&lt;P&gt; (Save)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE21 (port definition)&lt;/P&gt;&lt;P&gt;Select transaction RFC  create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select own port name radio button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description : give short description&lt;/P&gt;&lt;P&gt;Enter existing RFC destination &lt;/P&gt;&lt;P&gt; save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE20 (Partner Profile)&lt;/P&gt;&lt;P&gt;a.	Partner profiles&lt;/P&gt;&lt;P&gt;b.	partner type LS  &lt;/P&gt;&lt;P&gt;Select SAPLER&lt;/P&gt;&lt;P&gt;u2022	Create outbound parameters &lt;/P&gt;&lt;P&gt;enter&lt;/P&gt;&lt;P&gt;(Goto next screen)&lt;/P&gt;&lt;P&gt;Fill up message, receiver port and basic type.&lt;/P&gt;&lt;P&gt;Select transfer idoc immediately radio button.&lt;/P&gt;&lt;P&gt;Mention pocket size by default it is 1 &lt;/P&gt;&lt;P&gt; save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After formatting the layer you can write program for creating of Idoc number.&lt;/P&gt;&lt;P&gt;SOURCE CODE&lt;/P&gt;&lt;P&gt;tables : kna1.&lt;/P&gt;&lt;P&gt;select-options : s_kunnr  for kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_edidc like edidc occurs 0 with header line..&lt;/P&gt;&lt;P&gt;data : it_edidd  like edidd occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : it_kna1 like kna1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : wa_edidc like edidc.&lt;/P&gt;&lt;P&gt;data : wa_zsegidoc like zsegidoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from kna1 into table it_kna1 where kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Control record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_edidc-rcvprn = u2018SAPLERu2019.&lt;/P&gt;&lt;P&gt;wa_edidc-rcvprt = u2018LSu2019.&lt;/P&gt;&lt;P&gt;wa_edidc-rcvpor = u2018SAPLERu2019.&lt;/P&gt;&lt;P&gt;wa_edidc-direct = 1.&lt;/P&gt;&lt;P&gt;wa_edidc-mestyp = u2018ZMSGIDOCu2019.&lt;/P&gt;&lt;P&gt;wa_edidc-idoctp = u2018ZBASICIDOCu2019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data record &lt;/P&gt;&lt;P&gt;loop at it_kna1.&lt;/P&gt;&lt;P&gt;move : it_kna1-kunnr to wa_zsegidoc-kunnr,&lt;/P&gt;&lt;P&gt;            it_kna1-name1 to  wa_zsegidoc-name1,&lt;/P&gt;&lt;P&gt;            it_kna1-land1 to wa_zsegidoc-land1.&lt;/P&gt;&lt;P&gt;move : wa_zsegidoc to it_edidd-sdata,&lt;/P&gt;&lt;P&gt;            zsegidoc to it_edidd.&lt;/P&gt;&lt;P&gt;call function u2018master_idoc_distrubutionu2019&lt;/P&gt;&lt;P&gt; 	exprting&lt;/P&gt;&lt;P&gt;            master_idoc  = wa_edidc&lt;/P&gt;&lt;P&gt;	tables &lt;/P&gt;&lt;P&gt;            communication = it_edidc&lt;/P&gt;&lt;P&gt;	master_idoc  = it_edidd&lt;/P&gt;&lt;P&gt;(decomment all exceptions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;clear it_edidc.&lt;/P&gt;&lt;P&gt;read table it_edidc intex 1.&lt;/P&gt;&lt;P&gt;write : /1 it_edidc-docnum.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute this program you will get idoc number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this program you will run u2018RBDMOINDu2019 program you will find which idocs are not processd if your idoc will appear there your idoc is not processed/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will check your idoc status in WE02 or WE05 T-Codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 06:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/4130693#M987724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T06:51:15Z</dc:date>
    </item>
  </channel>
</rss>

