<?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 layout problem ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912196#M685280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chenge the value in the layout and pass , change accodingly how u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u post ur code, we can suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 09:03:43 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2007-10-10T09:03:43Z</dc:date>
    <item>
      <title>alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912192#M685276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generating 2 alv reports within a program.In the selection screen there are 2 radio buttons for different alv reports. First i selected the 1st radio button and executed the prog to get a alv report.Then i went to change layout and selected the required columns from the columns set and then saved the layout as the default layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I came back to the selection screen again.In the selection screen, in the parameter p_var there is default variant,so i cleared the parameter with no layout variant selected.then i selected the 2nd radio button and executed the program.Here the program is again taking the default layout (even though i cleared it in the selection screen )and generating the alv report according to that.But i don't want to use the default layout when i select the 2nd radio button,unless i select it from the variant list.How can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 08:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912192#M685276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912193#M685277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the layout may be seleted thru the fucntion module reuse_alv_grid_display. in which there will be aparameter is_layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 08:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912193#M685277</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-10T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912194#M685278</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; for any thing related to layout .. go to reuse_alv_grid_display function module and there two parameters is_layout and it_varient which are related to layout ... you can go to function module documentation and can get several option related to is_layout... one of them will fulfill your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reach out to me any issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if i have helped u&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;Nikesh kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 08:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912194#M685278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T08:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912195#M685279</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;Actually i m call alv 2 times in the program.When I use the 2nd radio button it should not use any default layout.The report should be displayed with the columns what we are using in the fieldcatalogue.What value should i have to pass to the parameter is_layout in my 2nd alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912195#M685279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912196#M685280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chenge the value in the layout and pass , change accodingly how u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u post ur code, we can suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912196#M685280</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-10T09:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912197#M685281</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 the reply.Below is my code for the layout.If u can see any problem in the code please tell me the changes.Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_VAR LIKE DISVARIANT-VARIANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM GET_VARIANT CHANGING P_VAR.               " ALV Layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_VARIANT CHANGING X_VAR.&lt;/P&gt;&lt;P&gt;  PERFORM F4_ALV_LAYOUT(PPIO_ENTRY) USING I_GRID-PROGRAM&lt;/P&gt;&lt;P&gt;                                 CHANGING X_VAR.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform alv_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ALV_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: I_GRID-LAYOUT TYPE SLIS_LAYOUT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT I_HEADER BY PLNBEZ AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Define layout.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR I_GRID-LAYOUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I_GRID-LAYOUT-COLWIDTH_OPTIMIZE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set up Variant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  I_GRID-VARIANT-VARIANT = P_VAR.     " Variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_CALLBACK_PROGRAM             = I_GRID-PROGRAM&lt;/P&gt;&lt;P&gt;    IS_LAYOUT                      = I_GRID-LAYOUT&lt;/P&gt;&lt;P&gt;    IT_FIELDCAT                    = I_GRID-FIELDCAT&lt;/P&gt;&lt;P&gt;    I_SAVE                         = 'A'&lt;/P&gt;&lt;P&gt;    IS_VARIANT                     = I_GRID-VARIANT&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;     T_OUTTAB                      = I_HEADER&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Failed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Failed with',SY-SUBRC.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM ALV_DISPLAY_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ALV_DISPLAY_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: I_GRID-LAYOUT TYPE SLIS_LAYOUT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT I_HEADER BY PLNBEZ AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Define layout.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR I_GRID-LAYOUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I_GRID-LAYOUT-COLWIDTH_OPTIMIZE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set up Variant&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; I_GRID-VARIANT-VARIANT = P_VAR.     " Variant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I_CALLBACK_PROGRAM             = I_GRID-PROGRAM&lt;/P&gt;&lt;P&gt;    I_CALLBACK_PF_STATUS_SET       = I_GRID-PF_STATUS_SET&lt;/P&gt;&lt;P&gt;    I_CALLBACK_USER_COMMAND        = I_GRID-USER_COMMAND&lt;/P&gt;&lt;P&gt;    IS_LAYOUT                      = i_grid-layout&lt;/P&gt;&lt;P&gt;    IT_FIELDCAT                    = I_GRID-FIELDCAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   I_SAVE                         = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IS_VARIANT                     = I_GRID-VARIANT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     T_OUTTAB                      = I_HEADER&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Failed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Failed with',SY-SUBRC.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " ALV_DISPLAY_2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912197#M685281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912198#M685282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u dont want column optimize for the second alv, &lt;/P&gt;&lt;P&gt;I_GRID-LAYOUT-COLWIDTH_OPTIMIZE = ' '. give space instead of X, or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can just comment the layout &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = I_GRID-PROGRAM&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = I_GRID-PF_STATUS_SET&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = I_GRID-USER_COMMAND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*IS_LAYOUT = i_grid-layout&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = I_GRID-FIELDCAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_SAVE = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IS_VARIANT = I_GRID-VARIANT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = I_HEADER&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV Failed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;WRITE: / 'Failed with',SY-SUBRC.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912198#M685282</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-10T09:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912199#M685283</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;I commented the paramter is_layout as u said but it is still taking the default layout.Even though i cleared the parameter p_var in the selection screen still it is taking the default layout.Any more suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 09:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-problem/m-p/2912199#M685283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T09:31:58Z</dc:date>
    </item>
  </channel>
</rss>

