<?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: Calling a subscreen from a function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233955#M140123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess you have changed the properties of screen only.&lt;/P&gt;&lt;P&gt;I assume you have made a Ztransaction Code.&lt;/P&gt;&lt;P&gt;When you define a transaction code, you need to specify a screen number for radio option program and screen and you need to specify a screen and not subscreen.( I think so!!)&lt;/P&gt;&lt;P&gt;You changed only the code without changing the transaction code properties.&lt;/P&gt;&lt;P&gt;Therefore, i think u r getting a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to call your subscreen, call it in some screen and then call that screen using your transaction code properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN &amp;lt;area&amp;gt; INCLUDING &amp;lt;prog&amp;gt; &amp;lt;dynp&amp;gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call the PAI flow logic of the subscreen screen, use the following statement in the PAI flow logic of the main screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN &amp;lt;area&amp;gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;Please mark helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tanveer Shaikh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tanveer Shaikh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Apr 2006 12:12:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-22T12:12:11Z</dc:date>
    <item>
      <title>Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233954#M140122</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 implementing a BADI, and in the PUT method of the BADI, I am calling a "Z" function module. In the function module I am doing a call transaction to call a customized screen. &lt;/P&gt;&lt;P&gt;This works fine as long as the attribute of the customized screen is normal, but when I change the attribute of the customized screen to subscreen, it dumps. The dump does not have any info about the reason for the dump. &lt;/P&gt;&lt;P&gt;I want to call a customized screen keeping the screen attribute as subscreen (module pool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that? Please help with the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 11:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233954#M140122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233955#M140123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess you have changed the properties of screen only.&lt;/P&gt;&lt;P&gt;I assume you have made a Ztransaction Code.&lt;/P&gt;&lt;P&gt;When you define a transaction code, you need to specify a screen number for radio option program and screen and you need to specify a screen and not subscreen.( I think so!!)&lt;/P&gt;&lt;P&gt;You changed only the code without changing the transaction code properties.&lt;/P&gt;&lt;P&gt;Therefore, i think u r getting a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to call your subscreen, call it in some screen and then call that screen using your transaction code properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN &amp;lt;area&amp;gt; INCLUDING &amp;lt;prog&amp;gt; &amp;lt;dynp&amp;gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call the PAI flow logic of the subscreen screen, use the following statement in the PAI flow logic of the main screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN &amp;lt;area&amp;gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;Please mark helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tanveer Shaikh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tanveer Shaikh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 12:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233955#M140123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233956#M140124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Tanveer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing that I would like to add is that, the error message that I am getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Screen SAPLZ_CUST_SCREEN 1001 must not be an Include screen"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I am displaying the screen in the web and I am seeing the dump in the web.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 05:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233956#M140124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T05:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233957#M140125</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;It will NOT work as the Sub screen has to be placed on a SUB SCREEN element on the main screen where you are going to call the sub screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usual process is you have a MAIN screen and you place the SUB SCREEN control on that. On this SUB SCREEN you call the sub screens dynamically, right. In your case you don't have a main screen, so the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 05:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233957#M140125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T05:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233958#M140126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick,&lt;/P&gt;&lt;P&gt;As i said earlier.. u need to call the subscreen inside some screen. You are directly calling the subscreen in your transaction code which actually should have been a screen call.&lt;/P&gt;&lt;P&gt;You dont have a screen to display the subscreen and hence you are getting a dump!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;Please mark helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 06:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233958#M140126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T06:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233959#M140127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick,&lt;/P&gt;&lt;P&gt;sorry but subscreens can only be accessed from the screen flow logic (not native abap) via CALL SUBSCREEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 06:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233959#M140127</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-04-24T06:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233960#M140128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tanveer/Ravi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have done. I have created a screen, No 1002 (main screen), type normal. In this screen I have created a sub screen area. I have also created a screen type subscreen number 111. In the PBO of this main screen, I have written the code &lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUBSCR111 INCLUDING SY-REPID 111&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI of the main screen I have written the code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUBSCR111&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also written suitable code for PBO and PAI for subscreen 111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have activated all the screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I execute, I do not get a dump but I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CALL SUBSCREEN: SAPLZSRM_CUST_SCREEN 1002 NO_DYNPRO_NUMBER"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 06:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233960#M140128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233961#M140129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try putting quotes round the 111:- '111'.... or use a variable which holds the value '111'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to populate this variable in the PBO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 06:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233961#M140129</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-04-24T06:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233962#M140130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi james,&lt;/P&gt;&lt;P&gt;thes3 are the steps to be followed : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  in the pbo of the main screen, write the stmt :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUBSCR111 INCLUDING SY-REPID num .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the main pgm, decalare a variable num type sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the PAI of  main screen assign num = '111' .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 06:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233962#M140130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T06:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233963#M140131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick,&lt;/P&gt;&lt;P&gt;one other possibility is that the program involved is not sy-repid. Make sure the call subscreen references the program the subscreen belongs to, i.e. it might not be sy-repid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 02:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233963#M140131</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-04-26T02:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a subscreen from a function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233964#M140132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the right way of doing it now, as now you have a MAIN screen and that you have a sub screen, like the way I have explained in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers and close the thread if the issue is resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 02:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-subscreen-from-a-function-module/m-p/1233964#M140132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T02:53:53Z</dc:date>
    </item>
  </channel>
</rss>

