<?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: Dialog programming- subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900008#M55000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would assume that the button which is added onto a subscreen would be handled by the parent screen.&lt;/P&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>Mon, 21 Mar 2005 16:00:44 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-03-21T16:00:44Z</dc:date>
    <item>
      <title>Dialog programming- subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900005#M54997</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 would like to know if we can attach OK code to a subscreen. If can't how do we do it? Can we  use any userexit or something for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help pls&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 15:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900005#M54997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T15:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programming- subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900006#M54998</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;there is no way to have a ok-code for a subscreen itself. The ok-code is always passed to the basic dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 15:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900006#M54998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programming- subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900007#M54999</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;So what should I do if I want to attach a button to a subscreen and and functionality to it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx &lt;/P&gt;&lt;P&gt;Kelly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 15:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900007#M54999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T15:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programming- subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900008#M55000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would assume that the button which is added onto a subscreen would be handled by the parent screen.&lt;/P&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>Mon, 21 Mar 2005 16:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900008#M55000</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-21T16:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programming- subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900009#M55001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i've just tested it.  If you put a button on a subscreen and include the subscreen in another screen, the fcode is triggered and sent back to the USER_COMMAND of the parent screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my test program.  I created screen 100 as the parent with a subscreen are called sub1, and subscreen 101 with a pushbutton which triggers fcode 'PUSH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

data: ok_code type sy-ucomm.

call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

endmodule.                
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
module user_command_0100 input.

  case ok_code .
    when 'PUSH'.
      check sy-subrc  = 0.
  endcase.

endmodule.               


* This is the flow logic

*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*
* call subscreen sub1 including sy-repid '101'.
*
*PROCESS AFTER INPUT.
*
* call subscreen sub1 .
*
* MODULE USER_COMMAND_0100.
&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>Mon, 21 Mar 2005 16:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900009#M55001</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-21T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programming- subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900010#M55002</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;Subscreens are used always as a &amp;lt;b&amp;gt;sub&amp;lt;/b&amp;gt; screen of a normal screen. So, they cannot have their own user command field. The user-command field of the main screen gets the function code of the button (or triggered function) pressed at the subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 20:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-subscreen/m-p/900010#M55002</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-03-21T20:39:15Z</dc:date>
    </item>
  </channel>
</rss>

