<?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 How to leave screen pocessing in below code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946016#M1601224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have alv tree, while adding node i get some input from user. so i have created a screen with two fields on continue i want to create a node based on the user entered values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  METHOD handle_node_ctxt_menu_sel.
    CASE fcode.
      WHEN 'ADD_NODE'.
        CLEAR gs_node_lay.

*        CALL SCREEN 102 STARTING AT 10 5 ENDING AT 40 5.
        CALL SCREEN 102 STARTING AT 50 5 ENDING AT 100 8. " After the user enter value i want to return cursor to this add   " node method but at present the screen remains same. Cursor not leave to add node.

        CALL METHOD gcl_tree-&amp;gt;add_node
          EXPORTING
            i_relat_node_key     = node_key
            i_relationship       = cl_gui_column_tree=&amp;gt;relat_last_child
*        IS_OUTTAB_LINE       =
            is_node_layout       = gs_node_lay
*        IT_ITEM_LAYOUT       =
            i_node_text          = gv_node_text
          IMPORTING
            e_new_node_key       = gv_new_key
          EXCEPTIONS
            relat_node_not_found = 1
            node_not_found       = 2
            OTHERS               = 3
                .
        BREAK-POINT.
        IF sy-subrc &amp;lt;&amp;gt; 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL METHOD gcl_tree-&amp;gt;frontend_update.
      WHEN 'ADD_CHILD'.
      WHEN OTHERS.
    ENDCASE.

  ENDMETHOD.                    "handle_NODE_CONTEXT_MENU_SELECTED

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lisa Roy on Jun 15, 2011 5:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2011 03:58:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-15T03:58:57Z</dc:date>
    <item>
      <title>How to leave screen pocessing in below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946016#M1601224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have alv tree, while adding node i get some input from user. so i have created a screen with two fields on continue i want to create a node based on the user entered values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  METHOD handle_node_ctxt_menu_sel.
    CASE fcode.
      WHEN 'ADD_NODE'.
        CLEAR gs_node_lay.

*        CALL SCREEN 102 STARTING AT 10 5 ENDING AT 40 5.
        CALL SCREEN 102 STARTING AT 50 5 ENDING AT 100 8. " After the user enter value i want to return cursor to this add   " node method but at present the screen remains same. Cursor not leave to add node.

        CALL METHOD gcl_tree-&amp;gt;add_node
          EXPORTING
            i_relat_node_key     = node_key
            i_relationship       = cl_gui_column_tree=&amp;gt;relat_last_child
*        IS_OUTTAB_LINE       =
            is_node_layout       = gs_node_lay
*        IT_ITEM_LAYOUT       =
            i_node_text          = gv_node_text
          IMPORTING
            e_new_node_key       = gv_new_key
          EXCEPTIONS
            relat_node_not_found = 1
            node_not_found       = 2
            OTHERS               = 3
                .
        BREAK-POINT.
        IF sy-subrc &amp;lt;&amp;gt; 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL METHOD gcl_tree-&amp;gt;frontend_update.
      WHEN 'ADD_CHILD'.
      WHEN OTHERS.
    ENDCASE.

  ENDMETHOD.                    "handle_NODE_CONTEXT_MENU_SELECTED

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lisa Roy on Jun 15, 2011 5:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 03:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946016#M1601224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-15T03:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to leave screen pocessing in below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946017#M1601225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; After user enters value in Screen 102, lets say CONTINUE is pressed. In PAI for 102 for OK_CODE 'CONTINUE' use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET SCREEN 0.
      LEAVE SCREEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your processing will then start from CALL METHOD gcl_tree-&amp;gt;add_node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajvansh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 04:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946017#M1601225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-15T04:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to leave screen pocessing in below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946018#M1601226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET SCREEN 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;LEAVE SCREEN.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 04:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946018#M1601226</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-06-15T04:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to leave screen pocessing in below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946019#M1601227</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;In the place, you want to leave screen processing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the code specified above. i.e.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Which will take you to Parent screen i.e. the earlier screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 04:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-leave-screen-pocessing-in-below-code/m-p/7946019#M1601227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-15T04:24:47Z</dc:date>
    </item>
  </channel>
</rss>

