<?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: Variants for module pool screena in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850927#M1591955</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 avail save variant option in module pool screen, &lt;/P&gt;&lt;P&gt;1. You need to create a data base table similar to INDX table with the fields RELID, VARI_NAME&lt;/P&gt;&lt;P&gt;PROG_NAME&lt;/P&gt;&lt;P&gt;UNAME&lt;/P&gt;&lt;P&gt;SRTF2, MEMORYID, CLUSTR,  CLUSID. And the remaining fields can be anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Enable the Save button in the Function keys part of GUI Status. And Add a push button for Get variant.&lt;/P&gt;&lt;P&gt;3. When Save button clicked call a screen with a single field for variant (let us say g_var). After g_var entered, in the PAI of the initial screen export all the screen values to the created database index using the statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     EXPORT: g_characteristics_tab TO DATABASE zav0257(ch) ID g_var,&lt;/P&gt;&lt;P&gt;                                   s_auart TO DATABASE zav0257(au) ID g_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     So that the values will be exported to database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     Then update the fields(VARI_NAME,PROG_NAME,UNAME) of  the database table using modify from work area.  &lt;/P&gt;&lt;P&gt;                     So that you will have the history of variance existence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Next time , when the user clicks on Get Variant option, call another screen to enter the variant name. Then import the values for that variant from the memory id in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 13:35:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-14T13:35:05Z</dc:date>
    <item>
      <title>Variants for module pool screena</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850924#M1591952</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 tried creating a variant for module pool screen by using the FM : RS_CREATE_VARIANT.&lt;/P&gt;&lt;P&gt;For this i created a dummy report which has the same parameters as the fields in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RS_VARIANT_CONTENTS'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          report                      = gc_dummy_rep&lt;/P&gt;&lt;P&gt;          variant                     = 'variant5'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MOVE_OR_WRITE               = 'W'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NO_IMPORT                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXECUTE_DIRECT              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        SP                          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_PARAMS_NONV               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_SELOP                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_SELOP_NONV                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          valutab                     = lt_params&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OBJECTS                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FREE_SELECTIONS_DESC        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FREE_SELECTIONS_VALUE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VARIANT_NON_EXISTENT        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VARIANT_OBSOLETE            = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OTHERS                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i try to retrieve the values stored in the variant using FM : RS_VARIANT_CONTENTS.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_VARIANT_CONTENTS'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          report                      = gc_dummy_rep&lt;/P&gt;&lt;P&gt;          variant                     = 'variant5'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MOVE_OR_WRITE               = 'W'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        NO_IMPORT                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXECUTE_DIRECT              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        SP                          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_PARAMS_NONV               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_SELOP                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        L_SELOP_NONV                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          valutab                     = lt_params&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OBJECTS                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FREE_SELECTIONS_DESC        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FREE_SELECTIONS_VALUE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VARIANT_NON_EXISTENT        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        VARIANT_OBSOLETE            = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OTHERS                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error message : variant5 not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anything that i miss here?&lt;/P&gt;&lt;P&gt;or is the way i use to create variant for module pool screen not right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kamini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 07:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850924#M1591952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-18T07:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variants for module pool screena</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850925#M1591953</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;Please refer the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: [http://help.sap.com/saphelp_47x200/helpdata/en/67/232037ebf1cc09e10000009b38f889/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renuka S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 07:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850925#M1591953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-18T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variants for module pool screena</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850926#M1591954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible to create variants for module pool screen.&lt;/P&gt;&lt;P&gt;Instead of module pool screen, i used selection screen as dialog pop-up.&lt;/P&gt;&lt;P&gt;and called it using call selection screen xxx starting at P Q ending at S T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gave the option to save variants for the screen by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kamini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kamini Rawat on May 25, 2011 6:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 04:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850926#M1591954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-25T04:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variants for module pool screena</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850927#M1591955</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 avail save variant option in module pool screen, &lt;/P&gt;&lt;P&gt;1. You need to create a data base table similar to INDX table with the fields RELID, VARI_NAME&lt;/P&gt;&lt;P&gt;PROG_NAME&lt;/P&gt;&lt;P&gt;UNAME&lt;/P&gt;&lt;P&gt;SRTF2, MEMORYID, CLUSTR,  CLUSID. And the remaining fields can be anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Enable the Save button in the Function keys part of GUI Status. And Add a push button for Get variant.&lt;/P&gt;&lt;P&gt;3. When Save button clicked call a screen with a single field for variant (let us say g_var). After g_var entered, in the PAI of the initial screen export all the screen values to the created database index using the statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     EXPORT: g_characteristics_tab TO DATABASE zav0257(ch) ID g_var,&lt;/P&gt;&lt;P&gt;                                   s_auart TO DATABASE zav0257(au) ID g_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     So that the values will be exported to database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     Then update the fields(VARI_NAME,PROG_NAME,UNAME) of  the database table using modify from work area.  &lt;/P&gt;&lt;P&gt;                     So that you will have the history of variance existence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Next time , when the user clicks on Get Variant option, call another screen to enter the variant name. Then import the values for that variant from the memory id in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 13:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variants-for-module-pool-screena/m-p/7850927#M1591955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-14T13:35:05Z</dc:date>
    </item>
  </channel>
</rss>

