<?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 objects not visible in package interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-not-visible-in-package-interface/m-p/685377#M30640</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am building some applications in our SAP development system. These applications use some tools. I want to make sure that an application knows about its dependencies.&lt;/P&gt;
  &lt;P&gt;So I decided to use the package interfaces.&lt;/P&gt;
  &lt;P&gt;After I found out that I had to activate package checks system wide in table PAKPARAM and activate "Package encapsulated" (which only is visible when GLOBAL_SWITCH is set to RESTRICTED...), I had my first success:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;For testing purposes I created a Report ZZDEMO_Z1 in package Z1 and a class ZCL_Z2 in package Z2. For each package I created a package interface (Z1 and Z2). &lt;/P&gt;
  &lt;P&gt;In ZZDEMO_Z1 I call a method of ZCL_Z2:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT zzdemo_z1.
zcl_z2=&amp;gt;test( ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;When doing a package check, I get the expected error: &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Object used, CLAS ZCL_Z2, is not visible&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;But: In my package Z1 I added the package interface Z2 in "use access":&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/239406-z1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I expected that I get an information about the use of Z2-objects in my Z1-program. Insetad I get an error.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;What also confuses me: I cannot see any "visible objects" in my package:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/239407-z1-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What am I doing wrong?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;thanks for any hint!&lt;/P&gt;
  &lt;P&gt;Cheers&lt;BR /&gt;~Enno&lt;/P&gt;</description>
    <pubDate>Fri, 02 Nov 2018 10:00:31 GMT</pubDate>
    <dc:creator>EnnoWulff</dc:creator>
    <dc:date>2018-11-02T10:00:31Z</dc:date>
    <item>
      <title>objects not visible in package interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-not-visible-in-package-interface/m-p/685377#M30640</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I am building some applications in our SAP development system. These applications use some tools. I want to make sure that an application knows about its dependencies.&lt;/P&gt;
  &lt;P&gt;So I decided to use the package interfaces.&lt;/P&gt;
  &lt;P&gt;After I found out that I had to activate package checks system wide in table PAKPARAM and activate "Package encapsulated" (which only is visible when GLOBAL_SWITCH is set to RESTRICTED...), I had my first success:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;For testing purposes I created a Report ZZDEMO_Z1 in package Z1 and a class ZCL_Z2 in package Z2. For each package I created a package interface (Z1 and Z2). &lt;/P&gt;
  &lt;P&gt;In ZZDEMO_Z1 I call a method of ZCL_Z2:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT zzdemo_z1.
zcl_z2=&amp;gt;test( ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;When doing a package check, I get the expected error: &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Object used, CLAS ZCL_Z2, is not visible&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;But: In my package Z1 I added the package interface Z2 in "use access":&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/239406-z1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I expected that I get an information about the use of Z2-objects in my Z1-program. Insetad I get an error.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;What also confuses me: I cannot see any "visible objects" in my package:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/239407-z1-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;What am I doing wrong?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;thanks for any hint!&lt;/P&gt;
  &lt;P&gt;Cheers&lt;BR /&gt;~Enno&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 10:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-not-visible-in-package-interface/m-p/685377#M30640</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2018-11-02T10:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: objects not visible in package interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-not-visible-in-package-interface/m-p/685378#M30641</link>
      <description>&lt;P&gt;ok. thanks to  &lt;SPAN class="mention-scrubbed"&gt;tobias.trapp&lt;/SPAN&gt; I am one step further:&lt;/P&gt;&lt;P&gt;I thought that &lt;EM&gt;visible objects &lt;/EM&gt;result from the package used. It does not. I have to define exactly, which objects (service) will be exposed by the package interface.&lt;/P&gt;&lt;P&gt;I added CLAS ZCL_Z2 to visible elements:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/239428-z1-3.png" /&gt;&lt;/P&gt;&lt;P&gt; and now the package test passes:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/239429-z1-4.png" /&gt;&lt;/P&gt;&lt;P&gt;I now get an information that my code uses foreign package objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-not-visible-in-package-interface/m-p/685378#M30641</guid>
      <dc:creator>EnnoWulff</dc:creator>
      <dc:date>2018-11-02T16:44:08Z</dc:date>
    </item>
  </channel>
</rss>

