<?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 Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-issue/m-p/3177233#M756137</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 creating material master through new extension.&lt;/P&gt;&lt;P&gt;i developed custom program which populates all segments by reading data from custom tables.for this i am using INBOUND_IDOC_PROCESS function module&lt;/P&gt;&lt;P&gt;but at the time of idoc creation i am getting status code 60.&lt;/P&gt;&lt;P&gt;which means (segment cannot be identified)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this idoc has parent and child segments,but my program creating all segments one after one and giving status code 60.&lt;/P&gt;&lt;P&gt;i am not populating SEGNUM ,PSGNUM and HLEVEL in EDIDD structure.is this causes a problem..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that is the case how should i approuch this..?if any body has sample code plz send immd'tly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 21:49:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-11T21:49:05Z</dc:date>
    <item>
      <title>IDoc Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-issue/m-p/3177233#M756137</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 creating material master through new extension.&lt;/P&gt;&lt;P&gt;i developed custom program which populates all segments by reading data from custom tables.for this i am using INBOUND_IDOC_PROCESS function module&lt;/P&gt;&lt;P&gt;but at the time of idoc creation i am getting status code 60.&lt;/P&gt;&lt;P&gt;which means (segment cannot be identified)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically this idoc has parent and child segments,but my program creating all segments one after one and giving status code 60.&lt;/P&gt;&lt;P&gt;i am not populating SEGNUM ,PSGNUM and HLEVEL in EDIDD structure.is this causes a problem..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that is the case how should i approuch this..?if any body has sample code plz send immd'tly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 21:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-issue/m-p/3177233#M756137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T21:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: IDoc Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-issue/m-p/3177234#M756138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you trying to do? I understand you want to create an outgoing idoc?&lt;/P&gt;&lt;P&gt;In that case you should not use the INBOUND_IDOC_PROCESS function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some sample code to generate an idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill idoc control record - EDIDC&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  p_wa_edidc-mestyp = lv_mestyp.&lt;/P&gt;&lt;P&gt;  p_wa_edidc-idoctp = lv_idoctp.&lt;/P&gt;&lt;P&gt;  p_wa_edidc-rcvprt = lv_rcvprt.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'SAP' sy-sysid INTO p_wa_edidc-sndpor.&lt;/P&gt;&lt;P&gt;  p_wa_edidc-sndprt = lv_sndprt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Gets port and receiver info from BD64 distribution model tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE sndsystem&lt;/P&gt;&lt;P&gt;                rcvsystem&lt;/P&gt;&lt;P&gt;  FROM tbd05&lt;/P&gt;&lt;P&gt;  INTO (p_wa_edidc-sndprn, p_wa_edidc-rcvprn)&lt;/P&gt;&lt;P&gt;  WHERE mestyp = lv_mestyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE rcvpor&lt;/P&gt;&lt;P&gt;  FROM edp13&lt;/P&gt;&lt;P&gt;  INTO (p_wa_edidc-rcvpor)&lt;/P&gt;&lt;P&gt;  WHERE idoctyp = lv_idoctp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill data segments --&amp;gt; sdata contains the content of the segments&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lt_edidd-segnam = lv_segmcocd.&lt;/P&gt;&lt;P&gt;    lt_edidd-segnum = 1.&lt;/P&gt;&lt;P&gt;    lt_edidd-sdata = wa_header_segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND: lt_edidd.&lt;/P&gt;&lt;P&gt;    CLEAR: lt_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lt_edidd-segnam = lv_segmpostvar.&lt;/P&gt;&lt;P&gt;    lt_edidd-segnum = 2.&lt;/P&gt;&lt;P&gt;    lt_edidd-sdata = gt_idoc_period_segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND: lt_edidd.&lt;/P&gt;&lt;P&gt;    CLEAR: lt_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;distribute idoc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR: gt_comm_idocs.&lt;/P&gt;&lt;P&gt;    REFRESH: gt_comm_idocs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        master_idoc_control            = wa_edidc&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        communication_idoc_control     = gt_comm_idocs&lt;/P&gt;&lt;P&gt;        master_idoc_data               = lt_edidd&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_in_idoc_control          = 1&lt;/P&gt;&lt;P&gt;        error_writing_idoc_status      = 2&lt;/P&gt;&lt;P&gt;        error_in_idoc_data             = 3&lt;/P&gt;&lt;P&gt;        sending_logical_system_unknown = 4&lt;/P&gt;&lt;P&gt;        OTHERS                         = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;      MESSAGE e011(zgl).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 08:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-issue/m-p/3177234#M756138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T08:19:57Z</dc:date>
    </item>
  </channel>
</rss>

