<?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: Comming back from function... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744143#M323039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to clear ur sy-ucomm.&lt;/P&gt;&lt;P&gt;This is done by giving okcode in the element list of the particular screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for every normal screen u can have one okcode.&lt;/P&gt;&lt;P&gt;we cant have okcode for subscreen.&lt;/P&gt;&lt;P&gt;get the okcode in a variable &amp;amp; clear it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;Data : okcode type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok like okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module_user_command.&lt;/P&gt;&lt;P&gt;save_ok = okcode.&lt;/P&gt;&lt;P&gt;clear okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case save_ok.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;endcase. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use okcode instead of using sy-ucomm in case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 11:38:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-12T11:38:47Z</dc:date>
    <item>
      <title>Comming back from function...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744141#M323037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a subscreen with a button on it. When i press the button it's&lt;/P&gt;&lt;P&gt;calling function 'VIEW_MAINTENANCE_CALL' (i'm going to SM30)&lt;/P&gt;&lt;P&gt;Then when i press 'BACK' button it's comming back to my screen, but:&lt;/P&gt;&lt;P&gt;- from this moment every time when i press ENTER it's calling that function.&lt;/P&gt;&lt;P&gt;  I've checked the value of SY-UCOMM and it's not changing when comming &lt;/P&gt;&lt;P&gt;  back from called function... -&amp;gt; SY-UCOMM = 'my_func'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In USER_COMMAND I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;  WHEN 'my_func'.&lt;/P&gt;&lt;P&gt;    CALL .....&lt;/P&gt;&lt;P&gt;  WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I clear somehow SY-UCOMM after I call my function?&lt;/P&gt;&lt;P&gt;Or can I give some extra condition that i'm pressing my button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do You have any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 11:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744141#M323037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comming back from function...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744142#M323038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Assign sy-ucomm to another variable and use that in your case..endcase.&lt;/P&gt;&lt;P&gt;  Clear sy-ucomm after the variable is assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_ucomm = sy-ucomm.&lt;/P&gt;&lt;P&gt;  clear sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case v_ucomm.&lt;/P&gt;&lt;P&gt;   when 'my_func'.&lt;/P&gt;&lt;P&gt;     .....&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 11:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744142#M323038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T11:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comming back from function...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744143#M323039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have to clear ur sy-ucomm.&lt;/P&gt;&lt;P&gt;This is done by giving okcode in the element list of the particular screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for every normal screen u can have one okcode.&lt;/P&gt;&lt;P&gt;we cant have okcode for subscreen.&lt;/P&gt;&lt;P&gt;get the okcode in a variable &amp;amp; clear it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;Data : okcode type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok like okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module_user_command.&lt;/P&gt;&lt;P&gt;save_ok = okcode.&lt;/P&gt;&lt;P&gt;clear okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case save_ok.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;endcase. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use okcode instead of using sy-ucomm in case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 11:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744143#M323039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Comming back from function...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744144#M323040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not going to work because when program is going back to main screen,&lt;/P&gt;&lt;P&gt;SY-UCOMM is getting it's old value - that I wanted to clear...&lt;/P&gt;&lt;P&gt;And I cant change main screen - only subscreen...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744144#M323040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comming back from function...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744145#M323041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whther you are calling the subscren in a loop.If so dont call it in a loop,call it at the end of loop by making use of flag.&lt;/P&gt;&lt;P&gt;Moreover,while handling the function codes write &amp;lt;b&amp;gt;LEAVE TO SCREEN 0&amp;lt;/b&amp;gt; to come back to the previous screen.Dont write SET SCREEN 0.Check it once again..&lt;/P&gt;&lt;P&gt;I am using exactly the same functionnality as you are using.There is no problem for me.And one more thing dont write your own screen numbers while creating table maintenance generator,LET the system propose screen numbers.Since a dump will come when you try to call TMG from the SE11 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Reddy G&lt;/P&gt;&lt;P&gt;***Rewards if answers are helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comming-back-from-function/m-p/1744145#M323041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T09:55:36Z</dc:date>
    </item>
  </channel>
</rss>

