<?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 variant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570426#M1270687</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;While calling the Function Module, in parameter IS_VARIANT you have to pass different fields of Variant and not SY-REPID.&lt;/P&gt;&lt;P&gt;if you seee the structure of parameter IS_VARIANT, there is one field REPORT where you have to pass SY-REPID.&lt;/P&gt;&lt;P&gt;Something like this: g_var-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID is the Current Report/Program Name, which is calling this function Module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2009 12:46:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-13T12:46:01Z</dc:date>
    <item>
      <title>alv layout variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570424#M1270685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;g_rep = sy-repid.&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    = sy-repid&lt;/P&gt;&lt;P&gt;      i_save        = c_u&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_exit        = g_exit&lt;/P&gt;&lt;P&gt;      es_variant    = g_variant&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found     = 1&lt;/P&gt;&lt;P&gt;      program_error = 2&lt;/P&gt;&lt;P&gt;      OTHERS        = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    IF g_exit IS INITIAL.&lt;/P&gt;&lt;P&gt;      g_rep-variant = g_variant-variant.&lt;/P&gt;&lt;P&gt;      p_layout      = g_variant-variant.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it necessary to use g_rep =sy-repid?&lt;/P&gt;&lt;P&gt;if yes then why &lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570424#M1270685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570425#M1270686</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 need to pass the program name to the FM 'REUSE_ALV_VARIANT_F4' as the variants are stored program wise. Also in ur code u have passed in the exporting parameter ' is_variant = sy-repid' where is should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_variant-report  = sy-repid.&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 = g_variant&lt;/P&gt;&lt;P&gt;i_save = c_u&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_exit = g_exit&lt;/P&gt;&lt;P&gt;es_variant = g_variant&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;not_found = 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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570425#M1270686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570426#M1270687</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;While calling the Function Module, in parameter IS_VARIANT you have to pass different fields of Variant and not SY-REPID.&lt;/P&gt;&lt;P&gt;if you seee the structure of parameter IS_VARIANT, there is one field REPORT where you have to pass SY-REPID.&lt;/P&gt;&lt;P&gt;Something like this: g_var-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID is the Current Report/Program Name, which is calling this function Module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570426#M1270687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: alv layout variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570427#M1270688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot both Nikhil and ANURITA!&lt;/P&gt;&lt;P&gt;Your help is really appreciable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 10:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout-variant/m-p/5570427#M1270688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T10:12:46Z</dc:date>
    </item>
  </channel>
</rss>

