Package in package?

Hi,
is there any workaround to implement this?:
CREATE OR REPLACE PACKAGE main_package AS
PACKAGE package_a;
PACKAGE package_b;
PACKAGE package_c;
END main_package;
Thanks

I cannot understand your requirement.
But...
Is this?
<br>
create or replace
packeg aaa
is
procedure main; /* Public procedure */
end;
create or replace
package body aaa
is
procedure aaa1 /* Private procedure */
is
begin
  null; -- any real procedual routine
  /* cannot refer aaa2 */
end;
procedure aaa2 /* Private procedure */
is
begin
  null; -- any real procedual routine
  /* can refer aaa1 */
end;
procedure main
is
begin
  aaa1;
  aaa2;
end;
-- initial package
begin
  null;
end;
<br>
<br>
Or this
create or replace
procedure main
is
-- declare type,cursor,variable for main at here
  procedure sub1
  is
  begin
     null;
  end;
  procedure sub2
  is
  begin
     null;
  end;
begin -- this is main
  sub1;
  sub2;
end;
/

Similar Messages

  • Variable declaration in Package and package body

    Hi
    Kindly reply the difference in declaring a cursor inside a package vs package body
    eg:
    create or replace package shapak is
    cursor shacur is select * from sha;
    function shafun return number;
    end;
    i can declare the above cursor inside the package body withoout declaring in package specification. but what is the difference?
    reply appreciated
    thanks
    shajan

    In general..Items declared in the package spec are visible outside the package..so you can say public.where as items declared in the body are restricted to use within the package..such items are called private.

  • Packages and packages

    Hi
    I was rereading Martin's principles of package architecture and was wondering how the concept of package in this context relates to the concept of a Java package
    after thinking a bit, I got the feeling these two concepts have nothing to do with each other
    I feel that Java packages deal with namespace and access control, while OO packages (the components of your program's binaries) would be, in the Java world, jar files containing classes from different packages (and not especially all classes from these (Java) packages), and constructed as much as possible in order to follow these supposedly good OO principles
    Am I right ? partially ? totally ? totally not ? I need some insight on this

    Kind of. But what would stop me to define the
    namespace on a per-component base? I used structures
    like com.mycompany.myapp.database (data tier),
    com.mycompany.myapp.web (presentation tier) and the
    likes. You could put classes (or packages) belonging
    to a certain subsystem into a package dedicated to it.I did it for a long time too, traditionaly with webapps :
    be.mycompany.myapp
    dataaccess
    business
    web
    and that worked fine... but that's not my concern
    actually, what concerns me is the business package itself... I'm writing a very simple peer2peer file sharing tool for both fun & education, and the packaging becomes trickier, since the app is naturally distributed :
    * file sharing client package
    * user manager client package
    * server package (handles login requests & user management requests)
    thing is, I reuse many classes among these three "kinds of endpoint", which makes me think about properly dividing my app into small reusable, well-organised components... when java packages come into play, things are getting less clear as of how I should do...
    how do you people do when it comes to structuring (packages AND deliverables of) your business layer ?

  • ORA-04042: procedure, function, package, or package body does not exist

    getting following error
    I have logged on as sys
    GRANT EXECUTE ON CTXSYS.CTX_DDL TO public
    ERROR at line 1:
    ORA-04042: procedure, function, package, or package body does not exist
    does it need Oracle text installed
    comp_name
    Oracle Database Catalog Views
    Oracle Database Packages and Types
    Oracle Workspace Manager
    JServer JAVA Virtual Machine
    Oracle XDK
    Oracle Database Java Packages
    Oracle Expression Filter
    Oracle XML Database
    Oracle Rules Manager
    Oracle Multimedia
    Oracle Real Application Clusters

    912919 wrote:
    getting following error
    I have logged on as sys
    GRANT EXECUTE ON CTXSYS.CTX_DDL TO public
    ERROR at line 1:
    ORA-04042: procedure, function, package, or package body does not exist
    does it need Oracle text installed
    comp_name
    Oracle Database Catalog Views
    Oracle Database Packages and Types
    Oracle Workspace Manager
    JServer JAVA Virtual Machine
    Oracle XDK
    Oracle Database Java Packages
    Oracle Expression Filter
    Oracle XML Database
    Oracle Rules Manager
    Oracle Multimedia
    Oracle Real Application Clustersit worked for me.
    09:10:19 SQL> GRANT EXECUTE ON CTXSYS.CTX_DDL TO public;
    Grant succeeded.
    09:10:23 SQL>

  • In a update rule, run two data packages ; package by package not secuencial

    HI, my data source is an ods i want to fill other ods.
    If i have two data packages, with 7000 and 5000 registers
    i want to run the two datapackages in a secuencial way not parallel.
    But the init delta doesn´t give me the option of run package by package.
    The options show me is initialization with transfer data (parallel) i want package by package.
    How i can do that??
    Reward points

    a

  • How to prevent downgrading of the app in meta package using package versioning feature of package maker tool?

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

  • Including packages in package hierarchy

    Hi,
    What is the purpose of including packages in package hierarchy?
    How can I define use access for them? what is the use?
    Please help me out in this.
    Thanks and regards,
    Lakshmi Reghuvaran

    Hello Lakshmi
    The <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/f39de8ae6f11d596c000a0c94260a5/content.htm">SAP Online Help</a> says the following to this topic:
    <b>Goals of the Package Concept</b>
    When SAP created the package architecture in R/3 Enterprise, its goals were:
    To improve the structure of the software
    To encapsulate software functions more strictly
    To make well-defined interfaces available to all applications
    To clarify responsibilities
    The very same goals can be applied to your own packages, either if you are a professional software supplier for SAP or a customer.
    Regards
      Uwe

  • Init delta package by package

    Is it posible a init delta running package by package( from ods to ods update rule) like in the datasource (Load in ods package by package)
    Thanks

    Hi,
    I'm not sure if I understand your question correctly.  You want to do the delta init with several InfoPackages with non-overlapping selections, correct?
    You cannot do this directly with ODS objects as DataSource, but you can do full loads and after these full loads you do a delta init without data transfer.
    You have to ensure that you load all data with your full loads and that no ODS activation is going on until the whole process has finished.
    Regards,
    Ralf

  • How will i configure packaging & returnable packaging

    how will i configure packaging & returnable packaging.........

    Hi,
    [Packaging Master Data|http://help.sap.com/erp2005_ehp_03/helpdata/EN/2b/274d3cd4250f3ae10000000a11402f/frameset.htm]
    [Returnable Packaging|http://help.sap.com/saphelp_47x200/helpdata/en/dd/560051545a11d1a7020000e829fd11/content.htm]
    Assign Points if helpful.
    Thanks and Regards,
    Naveen Dasari.

  • Ext.Set, Enh.Package, Sup.Package, Add-on terminology clarification

    Hello All.
    I need some ideas and examples to understand the differencies between the next objects and their relations.
    - Extension Set
    - Enhancement Package
    - Support Package
    And also their relation inside an add-on.
    Best regards.

    Thanks a lot for you answer Kossmann,
    But I still don't have a clear idea.
    You say that an Extension Set is some new functinality related to the base functionality that can be customized trough SPRO.
    You also mention that an Enhancement Package is an add-on for some modules and that they contain new functionality not contained inside standard base, so not accesible in the standard customizing.
    In both cases you say that is new functionality, but while an extension set requires additional licensing, doesn't require this for an enhancement package.
    Can I understand that an Enhancement package is the evolution of an extension set for netweaver environment ?
    About patching, I understand that is using support packages where we can path all the functionality, even if this come from an Extension Set, Enhancement package or none of them, but I'll like to understand if there is any relation between levels off all three elements...
    That is if we applie for example SP 1-20 thats equivalent to be in the extension set X...?
    Another question is how is an extension set licensed ?
    Best regards

  • Packages inside packages

    I am trying to learn servlets. I am trying to get this simple servlets to work with a little encryption package I wrote. The Encryption file is inside the history folder.
    Here is the servlet:
    package history;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import Encryption.*;
    public class SignUp extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
             response.setContentType("text/html");
             PrintWriter out = response.getWriter();
             String title = "Reading Three Request Parameters";
                  String docType = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " + "Transitional//EN\">\n";
             String name, pass1, pass2, encrypted;
             Encrypt encrypt = new Encrypt(); [red]//error is here[/red}
             name = request.getParameter("param1");
             pass1 = request.getParameter("param2");
             pass2 = request.getParameter("param3");
             if(!pass1.equals(pass2))
              out.println(docType + "<HTML>\n" +
                    "<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +
                    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
                    "<H1 ALIGN=\"CENTER\">" + title + "</H1>\n" +
                    "<UL>\n" + "ERROR" + "</UL>\n" +
                    "</BODY></HTML>");
             else
                  encrypted = encrypt.encode(name, pass1);
                  out.println(docType +
                    "<HTML>\n" +
                    "<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" +
                    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
                    "<H1 ALIGN=\"CENTER\">" + title + "</H1>\n" +
                    "<UL>\n" +
                    "  <LI><B>param1</B>: "
                    + request.getParameter("param1") + "\n" +
                    "  <LI><B>param2</B>: "
                    + request.getParameter("param2") + "\n" +
                    "  <LI><B>param3</B>: "
                    + request.getParameter("param3") + "\n" +
                    + encrypted + "\n" +
                    "</UL>\n" +
                    "</BODY></HTML>");
    }This is the error:
    history/SignUp.java:6: package Encryption does not exist
    import Encryption.*;
    ^
    history/SignUp.java:26: cannot resolve symbol
    symbol : class Encrypt
    location: class history.SignUp
    Encrypt encrypt = new Encrypt();
    ^
    history/SignUp.java:26: cannot resolve symbol
    symbol : class Encrypt
    location: class history.SignUp
    Encrypt encrypt = new Encrypt();
    ^
    3 errors
    I tried this:
    import history.Ecryption.*;
    But got a different error:
    history/SignUp.java:26: cannot access history.Encryption.Encrypt
    bad class file: .\history\Encryption\Encrypt.class
    class file contains wrong class: Encryption.Encrypt
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    Encrypt encrypt = new Encrypt();
    ^
    1 error
    Any advice will be greatly appreciated.

    My guess is that in the Encrypt class, you probably have this:
    package Encryption;
    If it's to be under "history", then it should be:
    package history.Encryption;
    There's no such thing as sub packages, or packages inside packages. The directories the files are stored in are within that directory structure cuz that's how directories are, but packages are not parent/subpackage relationships. "history" and "history.Encryption" would be totally separate packages. This is why you can't do "import history.*" and get all the classes in "history.Encryption" as wel.
    Then your import in your servlet would be:
    import history.Encryption.*;

  • Sql developer hangs when saving pl/sql external package or package body fil

    When I open a package body file I can modify the contents of the file.
    Compilation of the file works fine but when I want to close or save the file SQL developer hangs. I use version 1.2 (previous version did have the same problem.)
    Somebody has an idee what I'am doing wrong?

    Are you using 1.2.1.32.13?
    Sue

  • IDOC packaging/No packaging - need either/or depending on receiver

    Hello IDOC adapter gurus,
    We have an existing scenario with IDOC packaging, in which the message goes to multiple receivers . The client wants to OMIT idoc packaging for a single one of the receivers. Since the packaging is done in the sender adapter, how can I accomplish this in XI? A separate Partner Profile is already set up for this receiver in the sending system, so that side is not a problem.
    One idea I'm exploring would be to create a new sender comm channel without packaging and a new Sender Agreement with Virtual Receiver and select the receiver in question, however I can't find enough documentation on the VR feature. Would that work? Any other ideas?
    Thanks in advance.
    Carlos

    >
    Carlos Herrera wrote:
    > Hi Ravikanth,
    >
    > Yes, I intend to do that, but the question is, will that be enough since it will still go through the comm channel that has idoc packaging configured? In other words, will the comm channel package size act as a "max size" or "min size"?
    >
    > Thanks.
    > Carlos
    if it is configured to be not do the collect at the partner profile end, you dont have to worry.
    the IDoc adapter will not do any collect even if the package size is set.

  • How to remove a package from package structure?

    Hello profs,
    i have a problem. I add a package 'A' to another package 'B' in the package builder.
    Now i don't know how to remove package 'A' from the list of package 'B'.
    I have not found in the docu of package builder how to remove a package from the included list.
    Has somebody an idea how to do it?
    Thanks a lot.

    I found out that the relation between the packages saved in table TDEVC.
    Field PARENTCL contains the surrounding package 'B' of the package 'A' field DEVCLASS.
    At the moment the only way to remove the package is to modify the table.
    But i look for another possibility for this issue.
    Best regards
    Waldemar

  • How do I save a SCORM package in Packager?

    I use eLearning Suite's SCORM Packager to create multi-SCO objects for my LMS.  It will create the package, but it won't let me save the info for further use - the save button is inactive.  Is there something I need to do to activate this functionality?  I'm getting tired of re-entering the manifest information every time I need to regenerate the package.

    Thanks, I will try that process.
    I used to be able to convert Pages document easily to iPhoto before I upgraded to Lion.  Used to be able to go to: File > Print> PDF (bottom left corner of print dialog box)>Save as PDF to iPhoto.
    Now if I do that I have option to save as PDF to iTunes but not to iPhoto.
    The advantage of saving Pages to iPhoto was that it was very easy to send email of collages of photos created in Pages.

Maybe you are looking for

  • Upgraded to 7.5.2 and HP LaserJet 1320 Stopped Working

    I upgraded to firmware 7.5.2, and now my HP LaserJet 1320 doesn't work. I reverted to 7.4.6, and it still doesn't work. Apple fix your firmware !

  • External Table's Tablespace

    Hi, When creating a external table, does the table always reside in the SYSTEM tablespace? Is there a way we can store it in a specified Tablespace. What is the syntax for this?

  • Java script problem

    Hai all, i had a problem regarding java script,i had a time shedule page in which there is a start time and end time for each day,means monday,tuesday...... the problem is when i select monday it shows '0000' in start up but when i de select means ch

  • Html markup for "NAME" field in APEX 4.02.00.07 tree structure

    Hi, I've seen countless examples of modifying the appearance of the NAME field of an APEX 4 tree, but I can't get it to work. If I create the tree as below, all I get is : <b>the Name</b> on each node of the tree. I can't seem to make the NAME field

  • How To create a new DAG across a WAN connection?

    In preparation to moving our mailbox/hub transport server from our local office to a data center, we would like to create a DAG, putting the second mailbox server into the data center What is the best way to start a DAG when the servers are across a