<?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: call selection screen and ok_code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437492#M1411808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre, &lt;/P&gt;&lt;P&gt;   Write the Checks before you use any references. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg., &lt;/P&gt;&lt;P&gt;if tree1 is BOUND.&lt;/P&gt;&lt;P&gt;     do your operations .&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   CREATE REFERENCES &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may solve your problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt; Seema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 10:21:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-17T10:21:20Z</dc:date>
    <item>
      <title>call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437487#M1411803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hy folks i'm trying to managing a back to selection-screen from an alv grid using the ok_code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE save_ok_code.
WHEN
fcode_back OR
fcode_esc.
CALL METHOD grid-&amp;gt;free.
CALL METHOD tree1-&amp;gt;free.
CALL METHOD g_custom_container-&amp;gt;free.
call selection-screen 1000.
when others.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why the flow is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
  IF sy-ucomm = 'ONLI' or sy-ucomm = 'CRET'.
    PERFORM acquisisci_rasn.
  ENDIF.

START-OF-SELECTION.
* Initialization Drag and Drop
  PERFORM init_dragdrop.

END-OF-SELECTION.
  g_repid = sy-repid.
  CALL SCREEN 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;the problem is that after backing to the selection-screen, if you excute again the program, is dumping, the container and the grid are not loaded.&lt;/P&gt;&lt;P&gt;what do i miss?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 01:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437487#M1411803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T01:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437488#M1411804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;           I think there is some problem in your PBO logic.&lt;/P&gt;&lt;P&gt;         AND clear the reference variable by using the Keyword FREE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 05:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437488#M1411804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T05:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437489#M1411805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE save_ok_code.
WHEN
fcode_back OR
fcode_esc.
CALL METHOD grid-&amp;gt;free.
CALL METHOD tree1-&amp;gt;free.
CALL METHOD g_custom_container-&amp;gt;free.
CLEAR: grid, tree1, g_custom_container.
call selection-screen 1000.
when others.
endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the line: CLEAR: grid, tree1, g_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 05:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437489#M1411805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T05:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437490#M1411806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to be occuring because you are not handling exceptions while calling the &lt;STRONG&gt;free&lt;/STRONG&gt;  method.&lt;/P&gt;&lt;P&gt;Try to handle the exceptions as given in below code . Then the dump can be avoided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_grid1-&amp;gt;free&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cntl_error        = 1&lt;/P&gt;&lt;P&gt;        cntl_system_error = 2&lt;/P&gt;&lt;P&gt;        OTHERS            = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DO Nothing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 05:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437490#M1411806</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-12-02T05:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437491#M1411807</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;Clear your save_ok_code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE save_ok_code.
WHEN
fcode_back OR
fcode_esc.
CALL METHOD grid-&amp;gt;free.
CALL METHOD tree1-&amp;gt;free.
CALL METHOD g_custom_container-&amp;gt;free.
clear save_ok_code.  "Add this
call selection-screen 1000.
when others.
endcase.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 05:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437491#M1411807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T05:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437492#M1411808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre, &lt;/P&gt;&lt;P&gt;   Write the Checks before you use any references. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg., &lt;/P&gt;&lt;P&gt;if tree1 is BOUND.&lt;/P&gt;&lt;P&gt;     do your operations .&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   CREATE REFERENCES &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may solve your problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt; Seema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 10:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437492#M1411808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T10:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437493#M1411809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the references for the grid and tree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 05:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437493#M1411809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T05:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437494#M1411810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved the ussie. got some variables not cleared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 06:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437494#M1411810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T06:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: call selection screen and ok_code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437495#M1411811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;got one variable not cleared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 06:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-selection-screen-and-ok-code/m-p/6437495#M1411811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-18T06:06:45Z</dc:date>
    </item>
  </channel>
</rss>

