<?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 SM30 Defaulting values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658223#M613089</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 am using a custom Z transaction for maintaining my table. This comes up with a selection screen where the user gets to choose one of 4 values for a field in the table (ID). Based on the selection, only the relevant entries are displayed in the SM30 screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when the user wants to make new entries he has the option to pick any of those 4 values in the drop down for ID field. I want the ID field to default the value selected in the 1st selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I tried looking at form maintenance routines but none of the events trigger prior to clicking on "New Entries". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2007 16:03:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-15T16:03:44Z</dc:date>
    <item>
      <title>SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658223#M613089</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 am using a custom Z transaction for maintaining my table. This comes up with a selection screen where the user gets to choose one of 4 values for a field in the table (ID). Based on the selection, only the relevant entries are displayed in the SM30 screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when the user wants to make new entries he has the option to pick any of those 4 values in the drop down for ID field. I want the ID field to default the value selected in the 1st selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I tried looking at form maintenance routines but none of the events trigger prior to clicking on "New Entries". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658223#M613089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658224#M613090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try event 05?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658224#M613090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658225#M613091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've tried event 05. It gets triggered too late&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658225#M613091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658226#M613092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though you default it, the user can still change it unless you are passing the ID as a restriction in the initial screen of SM30. In that case, even if the user tries to select the other values, it will not allow them to. Is that what you are currently seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658226#M613092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658227#M613093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suparna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too had a similar problem. We solved it in the following manner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Domain with the 4 values as your default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds simple &amp;amp; it works. Does it satisfy ur requirement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658227#M613093</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2007-08-15T16:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658228#M613094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach can be that you create a maintenance view for this table hiding the ID field. Fill up the value of that field with the user selected ID from the initial screen in one of the events (typically I have used before saving event). Are you calling VIEW_MAINTENANCE_CALL function module or are you calling the transaction SM30? Use the function module, you will have better control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658228#M613094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658229#M613095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the FM View Maintenance call. I am passing the user selected value to this FM so that it will display only table entries corresponding to the user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is to retain this value and determining where to pass it when the user tries to make new entries. Right now, he can choose any of the 4 values and he gets an unhelpful message " Specify key within workarea" if he tries to enter values for a field other than the one he selected initially.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658229#M613095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658230#M613096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly that is what will happen when you are passing values to this call. It is nothing but the same way SM30 works where you have the restrictions option. Once you have restrictions, any new entries that you insert should also follow the same restrictions. So the best thing to do is to hide that column altogether since your user already decided which ID to use upfront and any new entries should be made only for that ID not for any other IDs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658230#M613096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: SM30 Defaulting values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658231#M613097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok, I get your point. To me that sounds like a great idea, let me run it by the "Superuser" and see what they have to say. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 16:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-defaulting-values/m-p/2658231#M613097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T16:50:23Z</dc:date>
    </item>
  </channel>
</rss>

