<?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: Selection screen fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472359#M1253129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neel Iyer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got the problem resolved? Let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2009 04:51:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-27T04:51:08Z</dc:date>
    <item>
      <title>Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472350#M1253120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               I am having a selection screen .say for eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         parameters : P-Pernr type smthg,&lt;/P&gt;&lt;P&gt;                            P_bukrs type smthg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Select-options : s_werks type smthg..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now the Requirement is that when user logins to execute the report&lt;/P&gt;&lt;P&gt; the user-specific values or user specific variants should appear.in the selection screen.&lt;/P&gt;&lt;P&gt;say for eg: if user abc logs-in then only his variant shld appear or his default values shld be automatically filled in the selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can dis be done using screen or transction varaints..?&lt;/P&gt;&lt;P&gt; If yes , then How..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any sort of help wld be appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Neel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 04:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472350#M1253120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T04:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472351#M1253121</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;in Selection screen use DEFAULT and pass the value....&lt;/P&gt;&lt;P&gt;Eg: &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR mara-matnr DEFAULT 'X'.&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;Smitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 04:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472351#M1253121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T04:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472352#M1253122</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;    Its ok 2 use the Default keyword , but the  value shld be user-specific.. for eg..&lt;/P&gt;&lt;P&gt;   if user abc logins then the default value shld be displayed else not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Neel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 04:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472352#M1253122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T04:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472353#M1253123</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;Yes you can defenetly do this but this will leed to lot of cases, you can do this in INITIALIZAION event of the ABAP events, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check for the user, &lt;/P&gt;&lt;P&gt;when 'us1'&lt;/P&gt;&lt;P&gt; pass the varient.&lt;/P&gt;&lt;P&gt;when 'us2'.&lt;/P&gt;&lt;P&gt;  pass the varr.&lt;/P&gt;&lt;P&gt; like this yiou can pass in initialization event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but will have lot of cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;   Varun.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 05:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472353#M1253123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T05:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472354#M1253124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Thanks for the Reply but how do i pass the variant..?&lt;/P&gt;&lt;P&gt;            can u gimm'e a sample code..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks,&lt;/P&gt;&lt;P&gt;Neel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 05:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472354#M1253124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T05:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472355#M1253125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initialization event you can fetch the variant name for an user from the table VARID....by passing the program name and user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the FM  /OSP/REPORT_GET_VARIANT_DETAIL pass the program name, variant name and user name....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return you the values stored for that variant in an internal table. You can read the values of each field from the internal table and move them correspondingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&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>Sat, 25 Apr 2009 05:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472355#M1253125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T05:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472356#M1253126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Thanks for ur reply ..But can u gimm'e a sample code for how to pass the fetched data from &lt;/P&gt;&lt;P&gt;            the function module to selection screen..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks,&lt;/P&gt;&lt;P&gt;Neel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472356#M1253126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T04:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472357#M1253127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try out this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : P_Pernr type smthg,&lt;/P&gt;&lt;P&gt;P_bukrs type smthg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options : s_werks type smthg..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_VALUETAB type /OSP/TT_REP_VAR_NAMEVALUEPAIRS&lt;/P&gt;&lt;P&gt;      wa_value   type .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select VARIANT&lt;/P&gt;&lt;P&gt;  into v_varid&lt;/P&gt;&lt;P&gt;  from varid&lt;/P&gt;&lt;P&gt; where REPORT = 'Program_Name'      &lt;/P&gt;&lt;P&gt;   and AENAME = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/OSP/REPORT_GET_VARIANT_DETAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    iv_report_name       = Program_Name&lt;/P&gt;&lt;P&gt;    iv_variant                = v_varid&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ET_VALUETAB      = t_VALUETAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if t_valuetab is not initial.  &lt;/P&gt;&lt;P&gt;   read table t_valuetab into wa_value&lt;/P&gt;&lt;P&gt;                         with key selname = 'P_PERNR'.&lt;/P&gt;&lt;P&gt;   P_PERNR = wa_value-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   read table t_valuetab into wa_value&lt;/P&gt;&lt;P&gt;                         with key selname = 'S_WERKS'.&lt;/P&gt;&lt;P&gt;   S_WERK-low  = wa_value-low.&lt;/P&gt;&lt;P&gt;   S_WERK-high = wa_value-high.			&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at start-of-selection.&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>Mon, 27 Apr 2009 04:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472357#M1253127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T04:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472358#M1253128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nkihil Iyear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the table VARID. It will help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the report name which you get it from Sy-cprog.&lt;/P&gt;&lt;P&gt;Give the username which you get it from sy-uname.&lt;/P&gt;&lt;P&gt;Get the name of the variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And proceed with the FM  RS_VARIANT_CONTENTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472358#M1253128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T04:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472359#M1253129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neel Iyer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got the problem resolved? Let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472359#M1253129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T04:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472360#M1253130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey you can use this&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/set" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/set&lt;/A&gt;&lt;EM&gt;default&lt;/EM&gt;varient+&lt;EM&gt;in&lt;/EM&gt;reports&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;s.janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 04:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-fields/m-p/5472360#M1253130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T04:53:11Z</dc:date>
    </item>
  </channel>
</rss>

