<?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 Call another Screen from Subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-another-screen-from-subscreen/m-p/8276126#M1633352</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;How to call next full screen from Subscreen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created custom Subscreen 100 in Module pool program SAPZMMXXXX &lt;/P&gt;&lt;P&gt;and called in MIRO transaction Custom tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i click one of the field in custom tab (Subscreen 100),&lt;/P&gt;&lt;P&gt;it should call another screen in full window to display HTML_VIEWER with URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions is.&lt;/P&gt;&lt;P&gt;1)Should i have to add another dynpro(normal screen 200)inside modulepool SAPZMMXXXX?&lt;/P&gt;&lt;P&gt;and add custom container in that? then code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI OF 100 screen.&lt;/P&gt;&lt;P&gt;when i double click the KESAI Field in Subscreen 100.&lt;/P&gt;&lt;P&gt;below code gets triggerd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE CALL_URL INPUT.&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD CURSORFIELD LINE CURSORLINE VALUE CURSORVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT CURSORVALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;    CASE CURSORFIELD.&lt;/P&gt;&lt;P&gt;      WHEN 'WA_TC_LIV-KESAI'.&lt;/P&gt;&lt;P&gt;        CALL SCREEN  '200'  STARTING AT 5 5  ENDING at 40 40.&lt;/P&gt;&lt;P&gt;              CALL METHOD html_viewer-&amp;gt;show_url&lt;/P&gt;&lt;P&gt;                EXPORTING url   = url&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                         frame = frame&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                EXCEPTIONS cntl_error = 1.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN screen 200 i have added Custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in PBO&lt;/P&gt;&lt;P&gt;i wrote below code in status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF init is initial.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT container&lt;/P&gt;&lt;P&gt;            EXPORTING container_name = 'CUSTOM'.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT html_viewer&lt;/P&gt;&lt;P&gt;            EXPORTING  parent              = container&lt;/P&gt;&lt;P&gt;            EXCEPTIONS cntl_error         = 1&lt;/P&gt;&lt;P&gt;                       cntl_install_error = 2&lt;/P&gt;&lt;P&gt;                       dp_install_error   = 3&lt;/P&gt;&lt;P&gt;                       dp_error           = 4.&lt;/P&gt;&lt;P&gt;    IF sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fehlerbehandlung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;         EXCEPTIONS cntl_system_error = 1&lt;/P&gt;&lt;P&gt;                    cntl_error        = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fehlerbehandlung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    init = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i execute from MIRO transaction its calling SAPLMR1M 200 screen&lt;/P&gt;&lt;P&gt;Not my MOdule pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 07:16:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-14T07:16:53Z</dc:date>
    <item>
      <title>Call another Screen from Subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-another-screen-from-subscreen/m-p/8276126#M1633352</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;How to call next full screen from Subscreen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created custom Subscreen 100 in Module pool program SAPZMMXXXX &lt;/P&gt;&lt;P&gt;and called in MIRO transaction Custom tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i click one of the field in custom tab (Subscreen 100),&lt;/P&gt;&lt;P&gt;it should call another screen in full window to display HTML_VIEWER with URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions is.&lt;/P&gt;&lt;P&gt;1)Should i have to add another dynpro(normal screen 200)inside modulepool SAPZMMXXXX?&lt;/P&gt;&lt;P&gt;and add custom container in that? then code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI OF 100 screen.&lt;/P&gt;&lt;P&gt;when i double click the KESAI Field in Subscreen 100.&lt;/P&gt;&lt;P&gt;below code gets triggerd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE CALL_URL INPUT.&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD CURSORFIELD LINE CURSORLINE VALUE CURSORVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT CURSORVALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;    CASE CURSORFIELD.&lt;/P&gt;&lt;P&gt;      WHEN 'WA_TC_LIV-KESAI'.&lt;/P&gt;&lt;P&gt;        CALL SCREEN  '200'  STARTING AT 5 5  ENDING at 40 40.&lt;/P&gt;&lt;P&gt;              CALL METHOD html_viewer-&amp;gt;show_url&lt;/P&gt;&lt;P&gt;                EXPORTING url   = url&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                         frame = frame&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                EXCEPTIONS cntl_error = 1.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN screen 200 i have added Custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in PBO&lt;/P&gt;&lt;P&gt;i wrote below code in status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF init is initial.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT container&lt;/P&gt;&lt;P&gt;            EXPORTING container_name = 'CUSTOM'.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT html_viewer&lt;/P&gt;&lt;P&gt;            EXPORTING  parent              = container&lt;/P&gt;&lt;P&gt;            EXCEPTIONS cntl_error         = 1&lt;/P&gt;&lt;P&gt;                       cntl_install_error = 2&lt;/P&gt;&lt;P&gt;                       dp_install_error   = 3&lt;/P&gt;&lt;P&gt;                       dp_error           = 4.&lt;/P&gt;&lt;P&gt;    IF sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fehlerbehandlung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;         EXCEPTIONS cntl_system_error = 1&lt;/P&gt;&lt;P&gt;                    cntl_error        = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fehlerbehandlung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    init = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i execute from MIRO transaction its calling SAPLMR1M 200 screen&lt;/P&gt;&lt;P&gt;Not my MOdule pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 07:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-another-screen-from-subscreen/m-p/8276126#M1633352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-14T07:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call another Screen from Subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-another-screen-from-subscreen/m-p/8276127#M1633353</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;The problem is the OK-CODE is managed centrally by MIRO, so you should check what happens before triggering PAI of your subscreen: it seems MIRO intercepts the OK-CODE before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 07:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-another-screen-from-subscreen/m-p/8276127#M1633353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-14T07:32:57Z</dc:date>
    </item>
  </channel>
</rss>

