<?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: VARIANT? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188952#M466467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Actually what are the situations we go for Variants? We can do the same thing by choosing option of changing layout?&lt;/P&gt;&lt;P&gt;Y specifically we go for creation of variants and using related FMs??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 13:38:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-24T13:38:40Z</dc:date>
    <item>
      <title>VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188944#M466459</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;Can any one explains me the difference between Variant in normal reports and Variant we get using REUSE_ALV_VARIANT_F4.&lt;/P&gt;&lt;P&gt;i have checked in one alv program BALVSD01, it is going to give a value at one selection screen field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where does this variant value be written from? and what's the use of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188944#M466459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T06:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188945#M466460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re: REUSE_ALV_VARIANT_F4' how to use it when we iuse it   &lt;/P&gt;&lt;P&gt;Posted: Apr 12, 2007 8:30 AM    in response to: kumar jami       Reply      E-mail this post  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display variant selection dialog box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;Possible entries help, if the variant is defined explicitly as an input&lt;/P&gt;&lt;P&gt;field on a screen. The selection must be specified by at least partially&lt;/P&gt;&lt;P&gt;filling the parameter structure IS_VARIANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure is only relevant if display variants are to be saved&lt;/P&gt;&lt;P&gt;and/or read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant information including the name of the list output variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The access path must be specified in the fields REPORT (required field),&lt;/P&gt;&lt;P&gt;HANDLE (optional) and/or LOG_GROUP (optional) to allow ALV to read&lt;/P&gt;&lt;P&gt;display variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If display variants are also to be saved, the parameter I_SAVE must also&lt;/P&gt;&lt;P&gt;be entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also the documentation of the IMPORTING parameter I_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variant is identified uniquely by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o the program to which it is assigned (REPORT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o the handle if, e.g. several lists with various structures and data&lt;/P&gt;&lt;P&gt;are called (HANDLE) in a program (I_CALLBACK_PROGRAM)&lt;/P&gt;&lt;P&gt;The handle is a unique user-assigned CHAR(4) field, which assigns&lt;/P&gt;&lt;P&gt;the call to the current internal output table structure.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Various lists can be output in program x, depending on a user&lt;/P&gt;&lt;P&gt;action.&lt;/P&gt;&lt;P&gt;Display variants are to be able to be defined for each of these&lt;/P&gt;&lt;P&gt;lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header Table Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name of the internal table in the program containing the output data of&lt;/P&gt;&lt;P&gt;the highest hierarchy level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item Table Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name of the internal table in the program containing the output data of&lt;/P&gt;&lt;P&gt;the lowest hierarchy level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field catalog containing descriptions of the list output fields (usually&lt;/P&gt;&lt;P&gt;a subset of the internal output table fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A field catalog is required for every ALV list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field catalog for the output table is built-up in the caller's&lt;/P&gt;&lt;P&gt;coding. The build-up can be completely or partially automated by calling&lt;/P&gt;&lt;P&gt;the REUSE_ALV_FIELDCATALOG_MERGE module &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188945#M466460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T06:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188946#M466461</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;   The variants we create at selection screen is different from the ALV variant. The ALV variant stores the layout of the output that the ALV is displaying. You need to create an ALV variant by selecting a layout with the fields you need in the displayed output and saving it. While executing the ALV report in the next run, you can give the name of the variant you have created as the ALV variant and the output will be as per the layout you have saved in your variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharmila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188946#M466461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T06:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188947#M466462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_VARIANT_F4=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Text&lt;/P&gt;&lt;P&gt;Display variant selection dialog box&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;Possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;IS_VARIANT&lt;/P&gt;&lt;P&gt;I_TABNAME_HEADER&lt;/P&gt;&lt;P&gt;I_TABNAME_ITEM&lt;/P&gt;&lt;P&gt;IT_DEFAULT_FIELDCAT&lt;/P&gt;&lt;P&gt;I_SAVE&lt;/P&gt;&lt;P&gt;I_DISPLAY_VIA_GRID&lt;/P&gt;&lt;P&gt;E_EXIT&lt;/P&gt;&lt;P&gt;ES_VARIANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of the normal varinat we use to create as per your requirement,and the output type that we want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 07:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188947#M466462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188948#M466463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sharmila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to create an ALV variant? &lt;/P&gt;&lt;P&gt;what details are going to be stored into ALV? &lt;/P&gt;&lt;P&gt;How can we know which one is default variant?&lt;/P&gt;&lt;P&gt;where this variant is going to be store?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we want to retrive those variants..Is that only way to use Reuse_alv_variants_F4 by defining a selection screen parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please clarify the above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 07:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188948#M466463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188949#M466464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praneet&lt;/P&gt;&lt;P&gt;   Normal Variants will create the selection-screen fields with the saved values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as REUSE_ALV_VARIANT_F4. is used for diffrent purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose in alv list you have 40 columns. By executing without REUSE_ALV_VARIANT_F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let your requirement is one time you have to display 20 selected columns and second time you want to display 25 columns like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting the list by selecting required columns and save you can create one variant with that name. This can be carried by REUSE_ALV_VARIANT_F4 FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For detialed explanation have a look on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv_variant-report = alv_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;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_variant = alv_variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;es_variant = alv_variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not_found = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_layout = alv_variant-variant.&lt;/P&gt;&lt;P&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 07:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188949#M466464</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-24T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188950#M466465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we have 40 cols, we can reduce it to 20 cols by choosing change layout..But how to save it as variant ...as i could not see any save button or way to name the changed layout a variant name...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we acheieve that..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 09:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188950#M466465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188951#M466466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In you r call to the reuse_diplay_alv_grid function module, yo uhave to pass I_SAVE = 'A'.&lt;/P&gt;&lt;P&gt;Then yo ucan find a buton on the lav tool bar to change and save layouts.&lt;/P&gt;&lt;P&gt;Check the programs BCALV_GRID_11 , BCALV_GRID_10 and BCALV_GRID_09 for examples.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 09:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188951#M466466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T09:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188952#M466467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Actually what are the situations we go for Variants? We can do the same thing by choosing option of changing layout?&lt;/P&gt;&lt;P&gt;Y specifically we go for creation of variants and using related FMs??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 13:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188952#M466467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T13:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188953#M466468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variants in the list display can be both user-specific and general. &lt;/P&gt;&lt;P&gt;The user can programmatically set the initial (default) variant for list display. &lt;/P&gt;&lt;P&gt;The default variant can be found using the function module 'REUSE_ALV_VARIANT_DEFAULT_GET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_save     = variant save condition ( A=all, U = user-specific )&lt;/P&gt;&lt;P&gt;       CHANGING&lt;/P&gt;&lt;P&gt;            cs_variant = internal table containing the program name (and the default variant---optional )&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            not_found  = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can also choose from the list of existing variants using the function module &amp;#145;REUSE_ALV_VARIANT_F4&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also chk this  REUSE_ALV_VARIANT_EXISTENCE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 13:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant/m-p/2188953#M466468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T13:49:17Z</dc:date>
    </item>
  </channel>
</rss>

