<?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: Cannot access object inside include. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570071#M22212</link>
    <description>&lt;P&gt;Is it a syntax error?&lt;/P&gt;
  &lt;P&gt;Or is it a short dump?&lt;/P&gt;
  &lt;P&gt;Please post the exact message, and indicate at which line of the source code and include it corresponds.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 07:06:23 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2017-08-17T07:06:23Z</dc:date>
    <item>
      <title>Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570066#M22207</link>
      <description>&lt;P&gt;"Here is my code...&lt;/P&gt;
  &lt;P&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp; Report ZMS_TEST14&lt;BR /&gt; *&amp;amp;&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp;&lt;BR /&gt; *&amp;amp;&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; &lt;BR /&gt; INCLUDE ZMS_TEST14_TOP . " global Data&lt;BR /&gt; &lt;BR /&gt; * INCLUDE ZMS_TEST14_F01 . " FORM-Routines&lt;BR /&gt; &lt;BR /&gt; INITIALIZATION.&lt;BR /&gt; &lt;BR /&gt; AT SELECTION-SCREEN.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; INCLUDE ZMS_TEST14_CI01. " Definition and implementation of lcl_po class..&lt;BR /&gt; &lt;BR /&gt; START-OF-SELECTION.&lt;BR /&gt; data: po type ref to lcl_po.&lt;BR /&gt; create object po.&lt;BR /&gt; &lt;BR /&gt; CALL METHOD po-&amp;gt;get_sflight.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; INCLUDE ZMS_TEST14_O01 . " PBO-Modules&lt;BR /&gt; INCLUDE ZMS_TEST14_I01 . " PAI-Modules&lt;/P&gt;
  &lt;P&gt;-----------------------------------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt;"My problem is I cannot access object po in my PBO-Modules..&lt;/P&gt;
  &lt;P&gt;"Here is my PBO-Module code..&lt;/P&gt;
  &lt;P&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp; Include ZMS_TEST14_O01&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp; Module STATUS_9003 OUTPUT&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; * text&lt;BR /&gt; *----------------------------------------------------------------------*&lt;/P&gt;
  &lt;P&gt;MODULE STATUS_9003 OUTPUT.&lt;BR /&gt; SET PF-STATUS 'SELECT PO'.&lt;BR /&gt; SET TITLEBAR 'SELECT PO'.&lt;BR /&gt; &lt;BR /&gt; CREATE OBJECT OB_CONT&lt;BR /&gt; EXPORTING&lt;BR /&gt; * PARENT =&lt;BR /&gt; CONTAINER_NAME = 'CONTAINER'.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; CREATE OBJECT OB_GRID&lt;BR /&gt; EXPORTING&lt;BR /&gt; * I_SHELLSTYLE = 0&lt;BR /&gt; * I_LIFETIME =&lt;BR /&gt; I_PARENT = ob_cont.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; set HANDLER po-&amp;gt;add_toolbar_but for ob_grid.&lt;BR /&gt; &lt;BR /&gt; set HANDLER po-&amp;gt;add_double_click for ob_grid.&lt;BR /&gt; set HANDLER po-&amp;gt;add_menu_but for ob_grid.&lt;BR /&gt; set HANDLER po-&amp;gt;add_user_command_insert for ob_grid.&lt;BR /&gt; &lt;BR /&gt; CALL METHOD OB_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;BR /&gt; CHANGING&lt;BR /&gt; IT_OUTTAB = it_sflight&lt;BR /&gt; IT_FIELDCATALOG = it_fld.&lt;BR /&gt; &lt;BR /&gt; ENDMODULE. " STATUS_9003 OUTPUT&lt;/P&gt;
  &lt;P&gt;"_________________________________________________________&lt;/P&gt;
  &lt;P&gt;And I keep getting error Field PO is unknown ....&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570066#M22207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-16T11:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570067#M22208</link>
      <description>&lt;P&gt;Make sure "INCLUDE ZMS_TEST14_O01" is not entered in the ZMS_TEST14_TOP include too.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 20:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570067#M22208</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-08-16T20:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570068#M22209</link>
      <description>&lt;P&gt;Please post code using code formatting&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 23:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570068#M22209</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2017-08-16T23:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570069#M22210</link>
      <description>&lt;P&gt;I have called screen in my INCLUDE ZMS_TEST14_CI01. " Definition and implementation of lcl_po class..&lt;/P&gt;
  &lt;P&gt;Is that making it not reachable??&lt;/P&gt;
  &lt;P&gt;what should i do? its working fine if i use whole code in the same program. I mean if i use whole code inside my PBO module outside in the same report at the same place it will work fine.please help..&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 05:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570069#M22210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-17T05:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570070#M22211</link>
      <description>&lt;P&gt;Activate it all despite the errors and check then if the error is still there.&lt;/P&gt;
  &lt;P&gt;If that doesn't help, show it to an experienced colleague of yours. It is difficult to solve such include problems without looking directly at them - although they are mostly trivial.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 05:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570070#M22211</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-17T05:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570071#M22212</link>
      <description>&lt;P&gt;Is it a syntax error?&lt;/P&gt;
  &lt;P&gt;Or is it a short dump?&lt;/P&gt;
  &lt;P&gt;Please post the exact message, and indicate at which line of the source code and include it corresponds.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 07:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570071#M22212</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-08-17T07:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot access object inside include.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570072#M22213</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;Your mistake is to consider screen 9003, container ob_cont and grid OB_GRID as one "big display object".&lt;/P&gt;
  &lt;P&gt;Screen 9003 only have to deal with status GUI, title GUI and GUI exit functions.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;MODULE status_9003 OUTPUT.
 SET PF-STATUS 'SELECT PO'.
 SET TITLEBAR 'SELECT PO'.
ENDMODULE.    

MODULE user_command_0100 INPUT.
CASE sy-ucomm.
      WHEN 'BACK'.
        SET SCREEN 0.
        LEAVE SCREEN.
      WHEN 'EXIT'.
        SET SCREEN 0.
        LEAVE SCREEN.
      WHEN 'CANCEL'.
        SET SCREEN 0.
        LEAVE SCREEN.
    ENDCASE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;And, in upper level (in your main program as you posted it) :&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT OB_CONT
EXPORTING
* PARENT =
CONTAINER_NAME = 'CONTAINER'.

CREATE OBJECT OB_GRID
EXPORTING
I_PARENT = ob_cont.

set HANDLER po-&amp;gt;add_toolbar_but for ob_grid.
set HANDLER po-&amp;gt;add_double_click for ob_grid.
set HANDLER po-&amp;gt;add_menu_but for ob_grid.
set HANDLER po-&amp;gt;add_user_command_insert for ob_grid.

CALL METHOD OB_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
CHANGING
IT_OUTTAB = it_sflight
IT_FIELDCATALOG = it_fld.

CALL SCREEN 9003.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Best regards&lt;/P&gt;
  &lt;P&gt;Bertrand&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 09:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-access-object-inside-include/m-p/570072#M22213</guid>
      <dc:creator>bertrand_delvallee</dc:creator>
      <dc:date>2017-08-17T09:46:59Z</dc:date>
    </item>
  </channel>
</rss>

