<?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 Re: about IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738267#M320981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;for standard SAP program you dont need to worry about filling the segments with data&lt;/P&gt;&lt;P&gt;but for your customized program you need to fill it.&lt;/P&gt;&lt;P&gt;Jus go thru the book "ALE/EDI and IDoc Technologies for SAP" By Arvind Nagpal.&lt;/P&gt;&lt;P&gt;You can gain tons of knowledge from it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 14:56:07 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-12-01T14:56:07Z</dc:date>
    <item>
      <title>about IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738264#M320978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to send data [ records ]to a perticular segment's field in an IDOC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738264#M320978</guid>
      <dc:creator>former_member577909</dc:creator>
      <dc:date>2006-12-01T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: about IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738265#M320979</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;Try with this simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*If segment is E1KNVP fill the custom segment Z1KNVP.&lt;/P&gt;&lt;P&gt;    WHEN gc_e1knvpm.&lt;/P&gt;&lt;P&gt;      e1knvpm = idoc_data-sdata.&lt;/P&gt;&lt;P&gt;      IF e1knvpm-kunn2 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;*Get Partner Function Customer name(KNVP-KUNN2).&lt;/P&gt;&lt;P&gt;        SELECT SINGLE  name1&lt;/P&gt;&lt;P&gt;          FROM kna1&lt;/P&gt;&lt;P&gt;          INTO gs_knvp-name1&lt;/P&gt;&lt;P&gt;          WHERE  kunnr = e1knvpm-kunn2.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*Get Partner Function Description&lt;/P&gt;&lt;P&gt;      IF e1knvpm-parvw IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE vtext&lt;/P&gt;&lt;P&gt;          FROM tpart&lt;/P&gt;&lt;P&gt;          INTO gs_knvp-partner_fun_des&lt;/P&gt;&lt;P&gt;          WHERE spras EQ gc_en AND&lt;/P&gt;&lt;P&gt;                parvw EQ e1knvpm-parvw.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*Fill the custom segment Z1KNVP.&lt;/P&gt;&lt;P&gt;      z1knvp = gs_knvp.&lt;/P&gt;&lt;P&gt;      gs_idoc_data-segnam = gc_z1knvp.&lt;/P&gt;&lt;P&gt;      gs_idoc_data-sdata  = z1knvp.&lt;/P&gt;&lt;P&gt;      APPEND gs_idoc_data TO idoc_data.&lt;/P&gt;&lt;P&gt;      CLEAR: gs_idoc_data,&lt;/P&gt;&lt;P&gt;             gs_knvp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738265#M320979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: about IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738266#M320980</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;IDOCs are transported as unstructured character records. IDOC records have a segment name segnam and a data part sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to access a particular segment field, the best way is to transfer the data stored in sdata to a structured field with the actual segment's structure. Then you can access it by name, store a value and tranport it back into sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are familiar with field-symbols, you can speed up the process a lot, see this symbolic code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field-symbols: 
  &amp;lt;segment&amp;gt; type any,
  &amp;lt;field&amp;gt;        type any.

assign [sdata](segment_length) to &amp;lt;segment&amp;gt; casting type (segment).
assign component (field) of structure &amp;lt;segment&amp;gt; to &amp;lt;field&amp;gt;.
&amp;lt;field&amp;gt; = [value].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will maintain the value directly in the sdata part of the idoc segment data record. Especially in mass processing, you will gain 1000 % speed because nothging is copied back and forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 14:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738266#M320980</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-12-01T14:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: about IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738267#M320981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;for standard SAP program you dont need to worry about filling the segments with data&lt;/P&gt;&lt;P&gt;but for your customized program you need to fill it.&lt;/P&gt;&lt;P&gt;Jus go thru the book "ALE/EDI and IDoc Technologies for SAP" By Arvind Nagpal.&lt;/P&gt;&lt;P&gt;You can gain tons of knowledge from it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 14:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-idoc/m-p/1738267#M320981</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-12-01T14:56:07Z</dc:date>
    </item>
  </channel>
</rss>

