<?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: create internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038080#M1350447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after loop when i try to write this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FS&amp;gt;-PERNR = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;it is sowing and error that data object &amp;lt;fs&amp;gt; has no structure and therefore no component called pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help hoe to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Aug 2009 09:52:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-09T09:52:51Z</dc:date>
    <item>
      <title>create internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038076#M1350443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a internal table it_temp has two fields name and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;name        value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;wage1     10.00&lt;/P&gt;&lt;P&gt;wage2     12.00&lt;/P&gt;&lt;P&gt;wage3     14.00&lt;/P&gt;&lt;P&gt;wage4     108.00&lt;/P&gt;&lt;P&gt;wage5     1050.00&lt;/P&gt;&lt;P&gt;wage6     100.00&lt;/P&gt;&lt;P&gt;wage7     75.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this i have 237 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have a it_final table which has the 237+1 fields as the value of names&lt;/P&gt;&lt;P&gt;structure of it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pernr wage1 wage2 wage3 wage4 wage5 wage 6 wage7 wage8 ..... wage273.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create a row of it_final by fetching the value from it_temp.&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;1 10.00    12.00     14.00     108.00     1050.00     100.00     75.00 ..... .. upto 237 values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me what to do for such case.&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;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 11:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038076#M1350443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038077#M1350444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a field symbols which is having a type as the line of it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: G_OBJ type ref to data.
field-symbols: &amp;lt;fs&amp;gt; type any
field-symbols : &amp;lt;FIELD&amp;gt; type any.

CREATE DATA G_OBJ LIKE LINE OF IT_FINAL.


* creating a work area of the internal table IT_FINAL
ASSIGN G_OBJ-&amp;gt;* TO &amp;lt;FS&amp;gt;.

IF &amp;lt;FS&amp;gt;  IS ASSIGNED.

LOOP AT IT_TEMP INTO WA.

* assigning the particular column of the workarea of it_final to a field symbol so that
* the value will be passed to that particular column of the workarea

ASSIGN COMPONENT WA-NAME OF STRUCTURE  &amp;lt;fs&amp;gt; TO  &amp;lt;FIELD&amp;gt;.

IF &amp;lt;FIELD&amp;gt; IS ASSIGNED.
&amp;lt;FIELD&amp;gt; = WA-VALUE.
ENDIF.

UNASSIGN : &amp;lt;FIELD&amp;gt;.

ENDLOOP.

&amp;lt;FS&amp;gt;-PERNR = 1.

APPEND &amp;lt;FS&amp;gt; TO IT_FINAL.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get teh concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Parab on Aug 8, 2009 6:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 12:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038077#M1350444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T12:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038078#M1350445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;your internal table it_final Should be dynamic for this case.&lt;/P&gt;&lt;P&gt;Your internal table it_itab will consists of following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Work area&lt;/P&gt;&lt;P&gt;__________&lt;/P&gt;&lt;P&gt;name value&lt;/P&gt;&lt;P&gt;wage1 10.00&lt;/P&gt;&lt;P&gt;wage2 12.00&lt;/P&gt;&lt;P&gt;wage3 14.00&lt;/P&gt;&lt;P&gt;wage4 108.00&lt;/P&gt;&lt;P&gt;wage5 1050.00&lt;/P&gt;&lt;P&gt;wage6 100.00&lt;/P&gt;&lt;P&gt;wage7 75.00&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;till 237 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the it_final,&lt;/P&gt;&lt;P&gt;The wage columns will not be of type character as in this columns you have to store the workarea in them.&lt;/P&gt;&lt;P&gt;Create your dynamic internal table using the class&lt;/P&gt;&lt;P&gt;CL_ALV_TABLE_CREATE and method CREATE_DYNAMIC_TABLE.&lt;/P&gt;&lt;P&gt;You will have to create a fieldcatalog table and pass to the method.&lt;/P&gt;&lt;P&gt;Then use the dynamic internal table created to store your data horizontally against each wage column.&lt;/P&gt;&lt;P&gt;Display the output in an ALV.&lt;/P&gt;&lt;P&gt;Pass the WAGE values as the description for each WAGE column in the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akash Rana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 15:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038078#M1350445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038079#M1350446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 08:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038079#M1350446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-09T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038080#M1350447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after loop when i try to write this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FS&amp;gt;-PERNR = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;it is sowing and error that data object &amp;lt;fs&amp;gt; has no structure and therefore no component called pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help hoe to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 09:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038080#M1350447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-09T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038081#M1350448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;FS&amp;gt;-PERNR = 1.&lt;/P&gt;&lt;P&gt;is not working pls help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 09:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table/m-p/6038081#M1350448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-09T09:54:05Z</dc:date>
    </item>
  </channel>
</rss>

