<?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: alv output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904055#M683040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hymavathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we having column wise data in it_data internal table with the n number of rows. we want to display these rows as n number of columns which is a dynamic internal table in ALV List as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what we have done is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of it_data occurs 0,&lt;/P&gt;&lt;P&gt;      coun(10) type c,&lt;/P&gt;&lt;P&gt;      offc(10) type c,&lt;/P&gt;&lt;P&gt;      fte(5) type c,&lt;/P&gt;&lt;P&gt;      end of it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_STYLE_TABLE             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IT_FIELDCATALOG           = LT_FIELDCATALOG&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_LENGTH_IN_BYTE          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     EP_TABLE                  = &amp;lt;FS_DATA&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_STYLE_FNAME             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    GENERATE_SUBPOOL_DIR_FULL = 1&lt;/P&gt;&lt;P&gt;    others                    = 2&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;assign &amp;lt;FS_DATA&amp;gt;-&amp;gt;* to &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;create data NEW_line like line of &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;assign NEW_LINE-&amp;gt;*  to &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN &amp;lt;fs_data&amp;gt;-&amp;gt;* TO &amp;lt;it_data&amp;gt;.&lt;/P&gt;&lt;P&gt;CREATE DATA it_struct LIKE LINE OF &amp;lt;it_data&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN it_struct-&amp;gt;* TO &amp;lt;header&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_data assigning &amp;lt;header&amp;gt;.&lt;/P&gt;&lt;P&gt;assign component it_data-offc of structure &amp;lt;header&amp;gt; to &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;append &amp;lt;WA&amp;gt; TO &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but we are not getting the output as desired. we are getting only header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 09:37:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T09:37:19Z</dc:date>
    <item>
      <title>alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904049#M683034</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;   I am having data in one internal table like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  country        office        amount&lt;/P&gt;&lt;P&gt;  c1               o1             100&lt;/P&gt;&lt;P&gt;  c1               o2             102&lt;/P&gt;&lt;P&gt;  c1               o3             130&lt;/P&gt;&lt;P&gt;  c2               o1             120&lt;/P&gt;&lt;P&gt;  c2               o2             110&lt;/P&gt;&lt;P&gt;  c3               o1             112&lt;/P&gt;&lt;P&gt;  c3               o2             110&lt;/P&gt;&lt;P&gt;  c3               o3             142&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the output in alv format as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       c1                  total    c2           total  c3                  total    grandtotal&lt;/P&gt;&lt;P&gt;       o1    o2    o3             o1    o2            o1     o2    o3&lt;/P&gt;&lt;P&gt;      100  102  130   332   120  110    230   112  110  142  364      926&lt;/P&gt;&lt;P&gt;total 100 102  130   332   120 110     230   112  110  142  364      926&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its toooooo urgent.&lt;/P&gt;&lt;P&gt;full points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904049#M683034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904050#M683035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this display do you wish to display all these contents in diff columns???&lt;/P&gt;&lt;P&gt;you can display the data in whatevr format you want if you get that data in ITAB.. as per your requirement.....&lt;/P&gt;&lt;P&gt;try to get the data you have mentioned in the desired format.. in some other itab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904050#M683035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904051#M683036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sharayu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Thanks for immediate response. But the final internal tble is not a physical one, its a dynamic internal table. the columns are dynamic and depends on the data of previous internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904051#M683036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904052#M683037</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;use at end of &amp;lt;filed&amp;gt;. in loop while displaying the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904052#M683037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904053#M683038</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;We have problem in displaying the rows from internal table horizontally in a ALV List display output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904053#M683038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T09:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904054#M683039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to create dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build a fieldcat with the fiedlvalue not with field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;itab-country value is c1. c1 should be the column in the dynamic interna; table.&lt;/P&gt;&lt;P&gt;so, build field cat like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fieldcat-fieldname = itab-country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build fieldcat like above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u can create a dynamic internal table like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dref type ref to data.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog =lt_fieldcat&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = dref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign dref-&amp;gt;* to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;move corresponding itab to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;assign component itab-country of structure &amp;lt;fs&amp;gt; to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs1&amp;gt; = itab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904054#M683039</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-10T09:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: alv output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904055#M683040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hymavathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we having column wise data in it_data internal table with the n number of rows. we want to display these rows as n number of columns which is a dynamic internal table in ALV List as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what we have done is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of it_data occurs 0,&lt;/P&gt;&lt;P&gt;      coun(10) type c,&lt;/P&gt;&lt;P&gt;      offc(10) type c,&lt;/P&gt;&lt;P&gt;      fte(5) type c,&lt;/P&gt;&lt;P&gt;      end of it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_STYLE_TABLE             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IT_FIELDCATALOG           = LT_FIELDCATALOG&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_LENGTH_IN_BYTE          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     EP_TABLE                  = &amp;lt;FS_DATA&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   E_STYLE_FNAME             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    GENERATE_SUBPOOL_DIR_FULL = 1&lt;/P&gt;&lt;P&gt;    others                    = 2&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;assign &amp;lt;FS_DATA&amp;gt;-&amp;gt;* to &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;create data NEW_line like line of &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;assign NEW_LINE-&amp;gt;*  to &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN &amp;lt;fs_data&amp;gt;-&amp;gt;* TO &amp;lt;it_data&amp;gt;.&lt;/P&gt;&lt;P&gt;CREATE DATA it_struct LIKE LINE OF &amp;lt;it_data&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN it_struct-&amp;gt;* TO &amp;lt;header&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_data assigning &amp;lt;header&amp;gt;.&lt;/P&gt;&lt;P&gt;assign component it_data-offc of structure &amp;lt;header&amp;gt; to &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;append &amp;lt;WA&amp;gt; TO &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but we are not getting the output as desired. we are getting only header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output/m-p/2904055#M683040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T09:37:19Z</dc:date>
    </item>
  </channel>
</rss>

