<?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 using sy-ucomm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218791#M476105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, this is the first time I post a question.&lt;/P&gt;&lt;P&gt;Nowadays I deal with the dialog programming. I have four screens: 0100, 0101, 0102, 0103..&lt;/P&gt;&lt;P&gt;And this screens have 'save' and 'back' pushbuttons on them. &lt;/P&gt;&lt;P&gt;I control the flow of screens at the screen '1000' (selection-screen), however, whenever I clicked on the Back button pf the screens and come back to screen 1000, and want to open another screen it is not possible, the code window is opened.&lt;/P&gt;&lt;P&gt;Here pEntry, pCar etc are radiobuttons defined from Parameter keyword:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:OK_CODE TYPE sy-UCOMM, saveokcode TYPE sy-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if pEntry eq 'X'. &lt;/P&gt;&lt;P&gt;  CAll SCREEN 0100.&lt;/P&gt;&lt;P&gt;ELSEIF pcar eq 'X'.&lt;/P&gt;&lt;P&gt;  call SCREEN 0101.&lt;/P&gt;&lt;P&gt;ELSEIF pCarexit eq 'X'.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 0103.&lt;/P&gt;&lt;P&gt;ELSEIF pDriver eq 'X'.&lt;/P&gt;&lt;P&gt;  call SCREEN 0104.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the screens have the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saveokcode = OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE saveokcode.&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;        PERFORM SAVE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;        call SELECTION-SCREEN 1000.&lt;/P&gt;&lt;P&gt;        LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;When I clicked on back button on one of the screens, the second time I cannot use the radio button, it directs to the code window.&lt;/P&gt;&lt;P&gt;Should &amp;amp;#305; CLEAR the ok_code?&lt;/P&gt;&lt;P&gt;Thanks for your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 15:10:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T15:10:56Z</dc:date>
    <item>
      <title>using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218791#M476105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, this is the first time I post a question.&lt;/P&gt;&lt;P&gt;Nowadays I deal with the dialog programming. I have four screens: 0100, 0101, 0102, 0103..&lt;/P&gt;&lt;P&gt;And this screens have 'save' and 'back' pushbuttons on them. &lt;/P&gt;&lt;P&gt;I control the flow of screens at the screen '1000' (selection-screen), however, whenever I clicked on the Back button pf the screens and come back to screen 1000, and want to open another screen it is not possible, the code window is opened.&lt;/P&gt;&lt;P&gt;Here pEntry, pCar etc are radiobuttons defined from Parameter keyword:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:OK_CODE TYPE sy-UCOMM, saveokcode TYPE sy-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if pEntry eq 'X'. &lt;/P&gt;&lt;P&gt;  CAll SCREEN 0100.&lt;/P&gt;&lt;P&gt;ELSEIF pcar eq 'X'.&lt;/P&gt;&lt;P&gt;  call SCREEN 0101.&lt;/P&gt;&lt;P&gt;ELSEIF pCarexit eq 'X'.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 0103.&lt;/P&gt;&lt;P&gt;ELSEIF pDriver eq 'X'.&lt;/P&gt;&lt;P&gt;  call SCREEN 0104.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the screens have the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saveokcode = OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE saveokcode.&lt;/P&gt;&lt;P&gt;   WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;        PERFORM SAVE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;        call SELECTION-SCREEN 1000.&lt;/P&gt;&lt;P&gt;        LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;When I clicked on back button on one of the screens, the second time I cannot use the radio button, it directs to the code window.&lt;/P&gt;&lt;P&gt;Should &amp;amp;#305; CLEAR the ok_code?&lt;/P&gt;&lt;P&gt;Thanks for your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218791#M476105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T15:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218792#M476106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should bring you back to the selection screen and should let you select options again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218792#M476106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218793#M476107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct syntax would be like so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE USER_COMMAND_0100 INPUT.

saveokcode = OK_CODE.

CASE OK_CODE.
WHEN 'SAVE'.
          clear ok_code.
          PERFORM SAVE_DATA.

WHEN 'BACK'.
          clear ok_code.
          call SELECTION-SCREEN 1000.
          LEAVE PROGRAM.
endcase.

ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218793#M476107</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-09T15:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218794#M476108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;the mainly it is ok but, not I at once it goes back to the screen 0. I can go at twice. At first the radio buttons are not displayed and after second F3  I can go to the screen 0.And the radios are also displayed at the second time.Also It does not go the code window.Here is ok.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 15:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218794#M476108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T15:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218795#M476109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried debugging to see what happens when BACK is pressed the first time, and why it doesnt work?&lt;/P&gt;&lt;P&gt;It might have to do with the ok_code clearing, as Rich suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 16:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218795#M476109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218796#M476110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;you are using this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call SELECTION-SCREEN 1000.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of using leave program use leave screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leave program will take you back to the code as it leaves the entire program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 05:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218796#M476110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: using sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218797#M476111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Set screen 0. &lt;/P&gt;&lt;P&gt;Leave program."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This contributed to solve the problem and it is now ok..&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 12:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sy-ucomm/m-p/2218797#M476111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T12:33:52Z</dc:date>
    </item>
  </channel>
</rss>

