<?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: Save a variant in a custom module-pool. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504811#M1259123</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;Check this out: &lt;SPAN __jive_macro_name="thread" id="1066911"&gt;&lt;/SPAN&gt; The message is not formated anymore. To see the code in readable form, copy it in two parts and paste in new post, then select &lt;STRONG&gt;Preview&lt;/STRONG&gt; of the message but don't post it. This is due to some problems with posting too long messages encountered recently on this forum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow this code will help you in maintaing variants in module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 May 2009 08:10:47 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-05-02T08:10:47Z</dc:date>
    <item>
      <title>Save a variant in a custom module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504808#M1259120</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;i hope there is someone that can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is: i've to save a variant in a module-pool custom SAPMZ...ecc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function module or a routine or some specific ABAP istruction to save a variant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask this because in my custom module-pool i've insert input field in main dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&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;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 13:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504808#M1259120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Save a variant in a custom module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504809#M1259121</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;You can use SHD0 tcode for transaction variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;suma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504809#M1259121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T14:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Save a variant in a custom module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504810#M1259122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use below code it works for me:&lt;/P&gt;&lt;P&gt;What I did was copy the function group SVAR.  When it asked what function module to copy just select&lt;/P&gt;&lt;P&gt;'RS_VARIANT_SAVE_FROM_SELSCREEN' and renamed it to 'ZS_VARIANT_SAVE_FROM_SELSCR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************************************************************&lt;/P&gt;&lt;P&gt;DATA: lv_screen LIKE sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: t_rkey, t_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: t_rkey,  t_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_rkey-report = sy-repid.&lt;/P&gt;&lt;P&gt;  APPEND t_rkey.&lt;/P&gt;&lt;P&gt;  t_screen-program   = sy-repid.&lt;/P&gt;&lt;P&gt;  t_screen-dynnr     = '0101'.&lt;/P&gt;&lt;P&gt;  t_screen-type      = 4.&lt;/P&gt;&lt;P&gt;  APPEND t_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_screen = '0101'.&lt;/P&gt;&lt;P&gt;  EXPORT lv_screen TO MEMORY ID 'MZ_COMISSION_REPORT_F02_SCREEN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZS_VARIANT_SAVE_FROM_SELSCR'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report          = sy-repid&lt;/P&gt;&lt;P&gt;      vari_report          = sy-repid&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      variant              = w_variant&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;       p_screens           = t_screen&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     p_sscr               = t_selctab&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     p_vari               = t_vari&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_variant_name = 1&lt;/P&gt;&lt;P&gt;      not_authorized       = 2&lt;/P&gt;&lt;P&gt;      no_report            = 3&lt;/P&gt;&lt;P&gt;      report_not_existent  = 4&lt;/P&gt;&lt;P&gt;      report_not_supplied  = 5&lt;/P&gt;&lt;P&gt;      OTHERS               = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_rkey-variant = w_variant.&lt;/P&gt;&lt;P&gt;  MODIFY t_rkey INDEX 1.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_RWSET_SAVE_VARIANT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      rkey    = t_rkey&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selctab = t_selctab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************************************&lt;/P&gt;&lt;P&gt;Then in program LZSVARF07 function save_as_variant find where it's transfering the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE variscreens WITH KEY dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    IMPORT lv_screen FROM MEMORY ID 'MZ_COMISSION_REPORT_F02_SCREEN'.&lt;/P&gt;&lt;P&gt;    IF lv_screen IS INITIAL.&lt;/P&gt;&lt;P&gt;      variscreens-dynnr = sy-dynnr.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  PERFORM fill_varidyn TABLES p_dynsfields&lt;/P&gt;&lt;P&gt;                       USING  $rkey space. "Kein import von DYNSFIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alex Nguyen on May 2, 2009 1:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alex Nguyen on May 5, 2009 5:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2009 21:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504810#M1259122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-01T21:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Save a variant in a custom module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504811#M1259123</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;Check this out: &lt;SPAN __jive_macro_name="thread" id="1066911"&gt;&lt;/SPAN&gt; The message is not formated anymore. To see the code in readable form, copy it in two parts and paste in new post, then select &lt;STRONG&gt;Preview&lt;/STRONG&gt; of the message but don't post it. This is due to some problems with posting too long messages encountered recently on this forum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow this code will help you in maintaing variants in module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2009 08:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-a-variant-in-a-custom-module-pool/m-p/5504811#M1259123</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-02T08:10:47Z</dc:date>
    </item>
  </channel>
</rss>

