<?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: Help - internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762474#M329936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_s_data_in type /bic/cytest,&lt;/P&gt;&lt;P&gt;l_s_data_out type /bic/cztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: material TYPE STANDARD TABLE OF /BI0/PMATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE material &amp;lt;b&amp;gt;with header line&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;b&amp;gt;material&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;itab-/bic/zzbumtolb = material-/bic/zzbumtolb.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab, material.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;l_s_data_out = i_t_data_in.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_t_data_out = l_s_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_s_data_out, l_s_data_in are structures but not internal tables. Since you cannot use them with Loop at i_t_data_in, use about way to assign and move it to e_t_data_out and then insert using append statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be of some help to you. Let me know, if you need any other details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 20:27:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-12T20:27:48Z</dc:date>
    <item>
      <title>Help - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762473#M329935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To copy values of a field (zzbumtolb) from /bi0/pmaterial to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zzbumtolb is a display attribute of 0material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use these values of zzbumtolb (i.e. from material master data) and copy it to a corresponding field (/bic/ybumtolb) in a structure. The code i have for the structure is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_s_data_in type /bic/cytest,&lt;/P&gt;&lt;P&gt;       l_s_data_out type /bic/cztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: material TYPE STANDARD TABLE OF /BI0/PMATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at itab.     -&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;&amp;gt; This is wrong&lt;/P&gt;&lt;P&gt;       zzbumtolb = material-/bic/zzbumtolb. -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&amp;gt; This might be wrong too&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      loop at i_t_data_in into l_s_data_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      move-corresponding l_s_data_in to l_s_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_s_data_out-/bic/zbum_lb = material-/bic/zbum_lb.  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; This is transaction data. What i intend to do is, for all materials in transaction data, i want to move all values of zzbumtolb in the internal table to zbum_lb in the transaction data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      insert l_s_data_out into table e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sachin Guptha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762473#M329935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762474#M329936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_s_data_in type /bic/cytest,&lt;/P&gt;&lt;P&gt;l_s_data_out type /bic/cztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: material TYPE STANDARD TABLE OF /BI0/PMATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE material &amp;lt;b&amp;gt;with header line&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;b&amp;gt;material&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;itab-/bic/zzbumtolb = material-/bic/zzbumtolb.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab, material.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;l_s_data_out = i_t_data_in.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_t_data_out = l_s_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_s_data_out, l_s_data_in are structures but not internal tables. Since you cannot use them with Loop at i_t_data_in, use about way to assign and move it to e_t_data_out and then insert using append statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be of some help to you. Let me know, if you need any other details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 20:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762474#M329936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T20:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762475#M329937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. In yourcode, the contents of material are getting copied to itab only.  They are not getting copied to l_s_data_in or l_s_data_out or i_t_dta_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because i want the values from &amp;lt;b&amp;gt;zzbumtolb&amp;lt;/b&amp;gt; filed of internal table itab&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; to be copied to &amp;lt;b&amp;gt;zbum_lb&amp;lt;/b&amp;gt; field in l_s_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 20:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762475#M329937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T20:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762476#M329938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggested changes by using what you have mentioned in first post. I don't see anything being assigned to l_s_data_out or i_t_data_in from material or itab. if you paste all your code, myself or some one can suggest you. so, when you say 'They are not getting copied to l_s_data_in or l_s_data_out or i_t_dta_in', do you want them to be filled in from itab or material? and if so, then they will have only one record as they are structures. So, you might as well declare them as internal tables and move all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am not confusing you. But this is what i understood from you reply. I will be of glad to help you, if you paste your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 20:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762476#M329938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T20:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help - internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762477#M329939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is not from a report if you are thinking so. This code is from a BADI. Actually, we are using a tool called infospoke to extract data from a BW object to a flat file if you are not aware of infospoke. The field zbum_lb is not available within the BW object. So, i enhanced the 2 structures of an infospoke (source structure &amp;amp; target structure) with this field. I am using BADI to populate the field. The only statements missing in the code is the method statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are extracting transaction data into flat file. Material is a field in the transaction data. The field zzbumtolb is an attribute of Material. I want to populate values from zzbumtolb (i.e. attribute of material) to zbum_lb (i.e. tranasction data) for the corresponding materials. Hope i am clear. This is what i want ot achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_OPENHUB_TRANSFORM~TRANSFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_s_data_in type /bic/cytest,&lt;/P&gt;&lt;P&gt;        l_s_data_out type /bic/cztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: material TYPE STANDARD TABLE OF /BI0/PMATERIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab. -&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;&amp;gt; This is wrong&lt;/P&gt;&lt;P&gt;zzbumtolb = material-/bic/zzbumtolb. -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&amp;gt; This might be wrong too&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_t_data_in into l_s_data_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding l_s_data_in to l_s_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_s_data_out-/bic/zbum_lb = material-/bic/zbum_lb. -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; This is transaction data. What i intend to do is, for all materials in transaction data, i want to move all values of zzbumtolb in the internal table to zbum_lb in the transaction data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert l_s_data_out into table e_t_data_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 21:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-internal-table/m-p/1762477#M329939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T21:51:47Z</dc:date>
    </item>
  </channel>
</rss>

