<?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 - Help splitting rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799582#M1467248</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;You may use hierarchial ALV to display the fields of a table in two rows. Make an internal table having key fields of your main internal table and the fields which you want to display in the second row. Fill this table using the main internal table..&lt;/P&gt;&lt;P&gt;Use FM REUSE_ALV_HIERSEQ_LIST_DISPLAY. Pass main table as header table and new table as item table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayesh Gupta on Mar 24, 2010 1:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 12:21:16 GMT</pubDate>
    <dc:creator>jayesh_gupta</dc:creator>
    <dc:date>2010-03-24T12:21:16Z</dc:date>
    <item>
      <title>ALV - Help splitting rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799581#M1467247</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;I have an ALV report but with many columns but for printing this repost I need to split some information (columns) in two rows maintaining the test of the column.&lt;/P&gt;&lt;P&gt;Is it possible? By pressing the icon "Modify Layout" I can't find this option. Maybe I can modify the source Abap code when I set the field attribute (fieldcatalog_build).&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;  LOOP AT gw_fkat ASSIGNING &amp;lt;fkat&amp;gt;.&lt;/P&gt;&lt;P&gt;    CASE &amp;lt;fkat&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;      WHEN 'CBOX'.&lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-tech = 'X'. "hidden field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion will be well appreciate.&lt;/P&gt;&lt;P&gt;Thanks in advance for your kind support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Luigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 11:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799581#M1467247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T11:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Help splitting rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799582#M1467248</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;You may use hierarchial ALV to display the fields of a table in two rows. Make an internal table having key fields of your main internal table and the fields which you want to display in the second row. Fill this table using the main internal table..&lt;/P&gt;&lt;P&gt;Use FM REUSE_ALV_HIERSEQ_LIST_DISPLAY. Pass main table as header table and new table as item table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayesh Gupta on Mar 24, 2010 1:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 12:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799582#M1467248</guid>
      <dc:creator>jayesh_gupta</dc:creator>
      <dc:date>2010-03-24T12:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Help splitting rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799583#M1467249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link would be helpful to create this kind of hierarchial ALV. &lt;/P&gt;&lt;P&gt;[http://www.sapalv.net/2009/08/example-of-hierarchical-sequential-list/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember, in your case, both header table and item table comes from the same table. So, fieldcatalog will have to be created manually and not by using REUSE_ALV_FIELDCATALOG_MERGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayesh Gupta on Mar 24, 2010 1:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 12:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799583#M1467249</guid>
      <dc:creator>jayesh_gupta</dc:creator>
      <dc:date>2010-03-24T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Help splitting rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799584#M1467250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion but I'm trying to re-use the structure filled by this FM:&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_structure_name       = gc_alv_structure&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = gw_fkat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;      program_error          = 2&lt;/P&gt;&lt;P&gt;      OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try:&lt;/P&gt;&lt;P&gt;      WHEN 'FILL1'.&lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-tech = ' '. &lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-row_pos = 1.&lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-col_pos = 1.&lt;/P&gt;&lt;P&gt;      WHEN 'FILL2'.&lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-tech = ' '. &lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-row_pos = 1.&lt;/P&gt;&lt;P&gt;        &amp;lt;fkat&amp;gt;-col_pos = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I call&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program       = gv_repid&lt;/P&gt;&lt;P&gt;      i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = gc_status&lt;/P&gt;&lt;P&gt;      is_layout_lvc            = gw_layo&lt;/P&gt;&lt;P&gt;      it_fieldcat_lvc          = gw_fkat&lt;/P&gt;&lt;P&gt;      i_grid_settings          = lw_grid_settings&lt;/P&gt;&lt;P&gt;      i_save                   = 'A'&lt;/P&gt;&lt;P&gt;      is_variant               = variant&lt;/P&gt;&lt;P&gt;      it_events                = gt_events&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = gt_report&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error            = 1&lt;/P&gt;&lt;P&gt;      OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see the two filed on the top of the field description on second line. Why is it wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be well appreciated.&lt;/P&gt;&lt;P&gt;Thank for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Luigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 15:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799584#M1467250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T15:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Help splitting rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799585#M1467251</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 hope we can split the single row into two with a definded length by using this function module RKD_WORD_WRAP .  Please search with this function module u will get many codes how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat appikonda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 16:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799585#M1467251</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2010-03-24T16:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - Help splitting rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799586#M1467252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but what I need is not exacly the necessity to split text line but to change my &lt;STRONG&gt;ALV layout&lt;/STRONG&gt; from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col1     col2    col3    col4     col5    col6    col7&lt;/P&gt;&lt;P&gt;data1  data2  data3  data4   data5  data6  data7&lt;/P&gt;&lt;P&gt;data1  data2  data3  data4   data5  data6  data7&lt;/P&gt;&lt;P&gt;data1  data2  data3  data4   data5  data6  data7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col1 col2 col3 col4 col5 &lt;/P&gt;&lt;P&gt;col6 col7&lt;/P&gt;&lt;P&gt;data1  data2  data3  data4   data5 &lt;/P&gt;&lt;P&gt;data6  data7&lt;/P&gt;&lt;P&gt;data1  data2  data3  data4   data5 &lt;/P&gt;&lt;P&gt;data6  data7&lt;/P&gt;&lt;P&gt;data1  data2  data3  data4   data5 &lt;/P&gt;&lt;P&gt;data6  data7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to have your support. I'm trying with my tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your kind support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Luigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 17:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-help-splitting-rows/m-p/6799586#M1467252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T17:14:09Z</dc:date>
    </item>
  </channel>
</rss>

