<?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 Layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534385#M1264220</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;in the ALV_GRID_DISPLAY report i need to put LAYOUT option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean in the selcetion screen i should have a option of Layout, they can run the report with the fields they need and save the layout. and even save button in the Layout is disabled how to enable it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 08:29:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-21T08:29:19Z</dc:date>
    <item>
      <title>Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534385#M1264220</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;in the ALV_GRID_DISPLAY report i need to put LAYOUT option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean in the selcetion screen i should have a option of Layout, they can run the report with the fields they need and save the layout. and even save button in the Layout is disabled how to enable it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534385#M1264220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534386#M1264221</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;Pass options :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         is_variant                   = report name&lt;/P&gt;&lt;P&gt;         i_save                       = 'A'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your FM to enable save layout option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534386#M1264221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534387#M1264222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;code&lt;SPAN __jive_macro_name="data"&gt;&lt;/SPAN&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ALV FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_default          = 'X'&lt;/P&gt;&lt;P&gt;      i_save             = 'A'&lt;/P&gt;&lt;P&gt;      is_variant         = g_kvariant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after display in ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goot menu settings-&amp;gt;layout-&amp;gt;saving &lt;/P&gt;&lt;P&gt;then save the layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534387#M1264222</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-04-21T08:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534388#M1264223</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 have layout option in selection field how to get F4 help for that option.&lt;/P&gt;&lt;P&gt;i mean to check what are the layouts saved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534388#M1264223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534389#M1264224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS:
P_VAR TYPE SLIS_VARI.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VAR.
PERFORM F4_VARIANT CHANGING P_VAR.

FORM F4_VARIANT CHANGING C_VARIANT TYPE SLIS_VARI.

  DATA: LS_VARIANT TYPE DISVARIANT,
            L_EXIT     TYPE CHAR1.

  LS_VARIANT-REPORT = SY-REPID.

  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
       EXPORTING
            IS_VARIANT          = LS_VARIANT
            I_SAVE              = 'A'
       IMPORTING
            E_EXIT              = L_EXIT
            ES_VARIANT          = LS_VARIANT
       EXCEPTIONS
            NOT_FOUND = 2.
  IF SY-SUBRC = 2.
    MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ELSE.
    IF L_EXIT EQ SPACE.
      C_VARIANT = LS_VARIANT-VARIANT.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534389#M1264224</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-04-21T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534390#M1264225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjunath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the code in the program "BCALV_GRID_10"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :       gs_variant TYPE disvariant.&lt;/P&gt;&lt;P&gt;DATA : lv_exit TYPE char1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_variant = gs_variant&lt;/P&gt;&lt;P&gt;      i_save     = 'A'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_exit     = lv_exit&lt;/P&gt;&lt;P&gt;      es_variant = gs_variant&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    IF lv_exit = space.&lt;/P&gt;&lt;P&gt;      p_vari = gs_variant-variant.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534390#M1264225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534391#M1264226</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;&lt;/P&gt;&lt;P&gt;Now i am able to get F4 help for what are the layout created.&lt;/P&gt;&lt;P&gt;but if i give any layout which i have created i am not getting that layout, the standard layout it is displaying for any layout which has created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 09:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534391#M1264226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534392#M1264227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while saving the layout check for options defaule,client specified etc.&lt;/P&gt;&lt;P&gt;Cant get your problem clearly !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 09:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534392#M1264227</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-04-21T09:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534393#M1264228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to transfer the variant to the ALV display FM. Please check this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
wa_variant  TYPE  disvariant,
wa_variant-report  = sy-repid.
wa_variant-variant = p_var.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = v_repid
      is_layout          = wa_layout
      it_fieldcat        = it_fieldcat
      i_save             = 'A'
      is_variant         = wa_variant " --&amp;gt; Pass the Variant details as interface param
      it_events          = it_events
    TABLES
      t_outtab           = it_display
    EXCEPTIONS
      program_error      = 1
      OTHERS             = 2.
  IF sy-subrc IS NOT INITIAL.
    MESSAGE i022. " Error while displaying data through ALV Grid.
    LEAVE LIST-PROCESSING.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 09:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534393#M1264228</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-04-21T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534394#M1264229</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;To create and save the layout you have to create the variant like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : SVARIANT TYPE DISVARIANT.



*&amp;amp;---------------------------------------------------------------------*
*INITIALIZATION
*&amp;amp;---------------------------------------------------------------------*



PARAMETER : S_VAR TYPE DISVARIANT-VARIANT.


*&amp;amp;---------------------------------------------------------------------*
*IF  IN INITIALIZATION THIS SVARIANT-REPORT = SY-REPID.
* NOT GIVEN THEN IT WILL NOT FIND THE VARIANTS FOR THAT PARTICULAR REPORT
*&amp;amp;---------------------------------------------------------------------*



INITIALIZATION.

SVARIANT-REPORT = SY-REPID.



*&amp;amp;---------------------------------------------------------------------*
*VARIANT'S F.M CALL
*&amp;amp;---------------------------------------------------------------------*



CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
 EXPORTING
   I_SAVE              = 'A'
  CHANGING
    cs_variant          = SVARIANT
 EXCEPTIONS
   WRONG_INPUT         = 1
   NOT_FOUND           = 2
   PROGRAM_ERROR       = 3
   OTHERS              = 4
          .
IF sy-subrc = 0.
 S_VAR = SVARIANT-VARIANT.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_VAR.

CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
  EXPORTING
    is_variant                = SVARIANT
*   I_TABNAME_HEADER          =
*   I_TABNAME_ITEM            =
*   IT_DEFAULT_FIELDCAT       =
   I_SAVE                    = 'A'
*   I_DISPLAY_VIA_GRID        = ' '
 IMPORTING
*   E_EXIT                    =
   ES_VARIANT                = SVARIANT
* EXCEPTIONS
*   NOT_FOUND                 = 1
*   PROGRAM_ERROR             = 2
*   OTHERS                    = 3
          .
IF sy-subrc = 0.
 S_VAR = SVARIANT-VARIANT.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.


AT SELECTION-SCREEN.
SVARIANT-VARIANT = S_VAR.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
 EXPORTING
   I_SAVE              = 'A'
  CHANGING
    cs_variant          = SVARIANT
 EXCEPTIONS
   WRONG_INPUT         = 1
   NOT_FOUND           = 2
   PROGRAM_ERROR       = 3
   OTHERS              = 4
          .
IF sy-subrc &amp;lt;&amp;gt; 0.

MESSAGE W000(ZGG_MSG).
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*&amp;amp;---------------------------------------------------------------------*
* START-OF-SELECTION
*&amp;amp;---------------------------------------------------------------------*

START-OF-SELECTION.
SVARIANT-VARIANT = S_VAR.

Then you can fetch your data from select queries,and
in the Function Module:

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
      i_callback_program                = sy-repid
         I_SAVE                            = 'A'
    IS_VARIANT                        = SVARIANT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&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;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 09:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534394#M1264229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T09:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534395#M1264230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u very much suhas&lt;/P&gt;&lt;P&gt;problem resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 09:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/layout/m-p/5534395#M1264230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T09:53:55Z</dc:date>
    </item>
  </channel>
</rss>

