<?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 Problem in modal dialog box in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-modal-dialog-box/m-p/6958905#M1489637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a function which call a modal dialog box. In this one, the user has to choose a value in a listbox. It's like a popup for the user.&lt;/P&gt;&lt;P&gt;The screen is called like below:&lt;/P&gt;&lt;P&gt; CALL SCREEN 0500 STARTING AT 5 5&lt;/P&gt;&lt;P&gt;                   ENDING   AT 100 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen is defined with a pf-status containing only one icon(pf-key) with value VALID. In the process after input, I'm controlling the value like below:&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0500 INPUT.&lt;/P&gt;&lt;P&gt;data : save_ok like sy-ucomm.&lt;/P&gt;&lt;P&gt;save_ok = lv_code.&lt;/P&gt;&lt;P&gt;  case save_ok.&lt;/P&gt;&lt;P&gt;    when  'VALID'.&lt;/P&gt;&lt;P&gt;      if lv_prio(2) lt 4.&lt;/P&gt;&lt;P&gt;        message s098(ze).&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        set screen 0.&lt;/P&gt;&lt;P&gt;        leave screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;    message s098(ze).&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0500  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bug when the program is calling twice the function means the popup.&lt;/P&gt;&lt;P&gt;Instance of program Z.&lt;/P&gt;&lt;P&gt;loop at X.&lt;/P&gt;&lt;P&gt;   call function YY.......&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;The table X contain two values. &lt;/P&gt;&lt;P&gt;When the popup is called the first time in the loop, all is ok, but when the popup is called the next time, if the user doesn't choose a value in the listbox and just press on the keyboard Enter, then the system go completly out of the program Z and doesn't go in the user_command !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've defined the field (listbox) as required, but no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a bug of the system ? or do I defined the screen incorrectly or ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 14:02:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-27T14:02:58Z</dc:date>
    <item>
      <title>Problem in modal dialog box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-modal-dialog-box/m-p/6958905#M1489637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a function which call a modal dialog box. In this one, the user has to choose a value in a listbox. It's like a popup for the user.&lt;/P&gt;&lt;P&gt;The screen is called like below:&lt;/P&gt;&lt;P&gt; CALL SCREEN 0500 STARTING AT 5 5&lt;/P&gt;&lt;P&gt;                   ENDING   AT 100 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen is defined with a pf-status containing only one icon(pf-key) with value VALID. In the process after input, I'm controlling the value like below:&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0500 INPUT.&lt;/P&gt;&lt;P&gt;data : save_ok like sy-ucomm.&lt;/P&gt;&lt;P&gt;save_ok = lv_code.&lt;/P&gt;&lt;P&gt;  case save_ok.&lt;/P&gt;&lt;P&gt;    when  'VALID'.&lt;/P&gt;&lt;P&gt;      if lv_prio(2) lt 4.&lt;/P&gt;&lt;P&gt;        message s098(ze).&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        set screen 0.&lt;/P&gt;&lt;P&gt;        leave screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;    message s098(ze).&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0500  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bug when the program is calling twice the function means the popup.&lt;/P&gt;&lt;P&gt;Instance of program Z.&lt;/P&gt;&lt;P&gt;loop at X.&lt;/P&gt;&lt;P&gt;   call function YY.......&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;The table X contain two values. &lt;/P&gt;&lt;P&gt;When the popup is called the first time in the loop, all is ok, but when the popup is called the next time, if the user doesn't choose a value in the listbox and just press on the keyboard Enter, then the system go completly out of the program Z and doesn't go in the user_command !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've defined the field (listbox) as required, but no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a bug of the system ? or do I defined the screen incorrectly or ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 14:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-modal-dialog-box/m-p/6958905#M1489637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in modal dialog box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-modal-dialog-box/m-p/6958906#M1489638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi merle,&lt;/P&gt;&lt;P&gt;i  have u debugged the program ?  Is it coming to user-command event ?&lt;/P&gt;&lt;P&gt;What is the type of this field lv_prio ?&lt;/P&gt;&lt;P&gt;comment set screen 0  &amp;amp; use leave to screen 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_prio(2) lt 4.&lt;/P&gt;&lt;P&gt;message s098(ze).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 09:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-modal-dialog-box/m-p/6958906#M1489638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-28T09:12:14Z</dc:date>
    </item>
  </channel>
</rss>

