Why do we need to create Packages?

Packages I know are used to group procedures together. But why do we create packages when stored proc alone is sufficient.

user10566312 wrote:
Packages I know are used to group procedures together. But why do we create packages when stored proc alone is sufficient.For the same reason there are units in Pascal. Libraries in C. It allows the encapsulation of functionality as a single entity with a public interface and a private implementation.
It is is standard as far as structured programming goes.
And a single stored procedure is far from sufficient. It cannot have private and public static variables for keeping state. It cannot present a comprehensive and flexible call interface to the caller. It does not support polymorphism. It cannot expose constants and user types. Etc.

Similar Messages

  • Why do we need to create an emergency file?

    Please see the link  http://help.sap.com/saphelp_47x200/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
    Why do we need to create an emergency file?

    user10566312 wrote:
    Packages I know are used to group procedures together. But why do we create packages when stored proc alone is sufficient.For the same reason there are units in Pascal. Libraries in C. It allows the encapsulation of functionality as a single entity with a public interface and a private implementation.
    It is is standard as far as structured programming goes.
    And a single stored procedure is far from sufficient. It cannot have private and public static variables for keeping state. It cannot present a comprehensive and flexible call interface to the caller. It does not support polymorphism. It cannot expose constants and user types. Etc.

  • Order types, why do we need to create our order types and not use the stand

    HI
    Order types, why do we need to create our order types and not use the standard ones during implementation.

    Hi Raj,
    Well there is no hard and fast rule that you have to copy nad create a new order type. Its just to meet our own requirements that we copy the standard and make the changes if required to meet our business needs.
    And by this way we keep unchanged the standard order type for further use.
    If you are sure that the standard order type satisfies your need you can directly use that only.
    I hope this clarifies the issue.
    Do reward if find useful
    Regards,
    Abhi

  • When and Why Do We Need to Create 2 Diff iTunes Libraries?

    Hi,
    When and Why Do We Need to Create 2 Diff iTunes Libraries?
    Thanks.
    Ed

    There's no fast rule sayng you must, and I suspect most people only use one.
    You might want to set up a second library if your first one is so huge that it is slow to operate.  Split your media. For example, I don't listen to classical and rock music at the same time and could restart iTunes ffrom a different library when the time came to switch.
    I have a few extra libraries. One's for music I organized for a special occasion but don't really listen to myself and don't want it cluttering mine. I also have a special library for my mp3 player (not an Apple model) with its own set of files which match some in my main library but they are tagged differently to be compatible with the player's quirks.
    I could also see having a different library for files on an external drive if you have some on your internal drive too.  You might, for example, have a bunch of movie files on an external drive that you don't normally need to have plugged in all the time and don't want iTunes giving you a bunch of exclamation marks if are using it to play your music media on your internal drive.

  • Need help creating package

    Table A
    column1 column2
    1 A
    2 A
    3 A
    4 B
    Table B (aggregate of Table A)
    column1 column2
    A 3
    B 1
    Table C is new data for Table A and Table A.column1 = Table B.column1
    column1 column2
    1 C
    2 C
    3 C
    4 D
    I need to make a package that will aggregate the data in Table C, update the existing records in Table B, and insert records into Table B. The result should look like this:
    Table A
    column1 column2
    A 0 (3-3)
    B 0 (1-1)
    C 3
    D 1

    Hi,
    Assuming that the same id (like 'A', 'B', ...) never occurs in both table_b and table_c (which is the case in your test data):
    WITH     a_summary     AS
         SELECT       column2     AS id
         ,       COUNT (*)     AS cnt
         FROM       table_a
         GROUP BY  column2
    ,     b_c_summary     as
         SELECT     column1          AS id
         ,     COLUMN2          AS cnt
         FROM     table_b
        UNION ALL
         SELECT    column2     AS id
         ,       COUNT (*)     AS cnt
         FROM       table_c
         GROUP BY  column2
    SELECT     bc.id               AS column1
    ,     bc.cnt - NVL (a,cnt, 0)     AS column2
    FROM              b_c_summary  bc
    LEFT OUTER JOIN      a_summary    a          ON     bc.id     = a.id
    ;If there is some overlap between b and c, you'll have to change b_c_summary; it may involve a FULL OUTER JOIN instead of UNION ALL. If so, post a new set of sample data (CREATE TABLE and INSERT statements) and the results you want from that data.
    Like Anurag said, you don't need a package or any kind of PL/SQL to get these results, but you can use a query like this in a package if you want to.
    Edited by: Frank Kulash on Dec 10, 2009 10:46 AM
    If you need to change table_b, you can use a query like this as a sub-query in a MERGE statement, as Beijing said.

  • Why do I need to create playlists to sync audiobooks correctly?

    When I try to just sync audiobooks to my iPod, I get a jumble of tracks. I have to create each audiobook as a playlist, and then add the playlists. Also, I had to designate each audiobook as such (instead of music) but in the grid view, each one was still categorized as music and it was impossible to change them. Only in list view could I change each track and have it "stick." I have been messing with syncing my iPod for over an hour now, when it should be an easy procedure.

    Unfortunately, organazing audiobooks is a bit trickier than it needs to be.  See this excellent article from another forum member turingtest2 for more information and tips.
    Audiobooks on iPods
    B-rock

  • Why do we need to create DTR client

    Can any one give me some info why DTR client are needed when working with JDI. Because, In NWDI we dont need them...But, now I am workign on older version JDI.. So, can anyone let me know.

    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/83/74c4ce0ed93b4abc6144aafaa1130f/content.htm">This</a> might give you some help you require.
    Regards,
    Shubhadip

  • Why do I need to create a URL in options?

    I'm not understanding the set up :( I thought that I had installed Firefox. I then want to add on Greasemonkey.

    What URL in options? can you provide a screenshot.
    If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • Why does FF need to create 10,000 folders for the cache? How do I make it go back into single folder mode?

    Before it was x:\\Cache\"stuff"...Simple easy to find files if you need to.
    Now its..
    x:\\Cache\X\x1\"a little stuff"
    x:\\Cache\X\xA\"a little more stuff"
    x:\\Cache\X\x0\"a even more little stuff"
    x:\\Cache\X\x9\" crap... I'm lost now""
    What is the purpose for the extra folders? I want to be able to revert it back to single folder mode.

    You would need to revert to Firefox 3.6.23 to have the old cache setup.
    The multiple cache folder setup is to allow for a larger cache which works more efficiently that earlier versions worked.

  • Netbeans - Why do I need to make separate library projects and import?

    I'm running through some of the some of the tutorials for netbeans like [acrostic example|http://www.netbeans.org/kb/60/java/javase-intro.html] and I can't seem to grasp the organization.
    When and why do I need to create a separate library project and import when the MyApp project I created has a node for libraries?
    When and why would I just create another class in MyApp source packages node as opposed to importing the class from a separate library project?
    Java's organization seemed simple until I tried the IDE. Help.

    Thanks so much for the response, I really have been having problems with this.
    georgemc wrote:
    Well, for starters, a lib project can be shared amongst many other projects. For another, you won't be deploying your app alongside NetBeans, so you'll need to provide all the libraries as well as your app when you do deploy. Having them all kept in a lib project makes this very simpleAfter pondering it I'm comfortable with the idea that MyApp's Library node shows what classes I have imported and that those classes, being custom classes, should be in a separate project.
    >
    When and why would I just create another class in MyApp source packages node as opposed to importing the class from a separate library project?I don't know. Not really sure what's prompted you to ask this one, to be honest. What do you mean?Ok, bear with me as I try to explain my confusion... If I right click on the Source Packages node of MyApp it presents me with the option to create a new java class. So why not just put all my custom classes and packages in the Source Package node of MyApp instead of putting them in library projects and importing them?
    I tried this, assuming all classes within a package would have knowledge of each other, thus obviating import, but that doesn't seem to be the case. Is that it?
    >
    Java's organization seemed simple until I tried the IDE. Help.Maybe you started using an IDE to soon? They're there to make your life easier. If that's not happening, you don't need it yetI might seem quite green, but I have to dive in to this because the application I am attempting to make requires the nice GUI editing of netbeans and will grow in complexity with time.

  • Why do we need material specification for transfering results to class char.

    Hi,
    Can you guys tell me why do we need to create material specification if we want to transfer quality inspection results to a batch class?
    Basically I have done the following:
    -Create Class Characteristic
    -Assign the Class Characteristic to a batch class
    -Link Class Char.  to MIC
    -Assign MIC to an Inspection Plan
    -Post GR, batch and inspection lot are created automatically
    -Record Results for inspection Lot
    -Make UD for Inspection Lot
    The result is not transferred to batch class, then I create material specification with the MIC assigned, the results can be transferred. But why?
    Best regards
    Danny

    Hello Danny,
    This is a standard program, which checks for this indicator at the time of inspection lot completion.
    F1- help gives satisfactory explanation
    Batch Valuation Possible Without Specification
    Use
    If you set this indicator, a link between the master inspection
    characteristics and the class characteristics for the batch class must exist
    when an inspection lot is created, for batch valuation to occur when the usage
    decision or inspection point valuation is made. A link within the material
    specification is not required.
    If you do not set this indicator, batch valuation only occurs when the
    usage decision or inspection point valuation is made, if a link using the
    material specification exists between the master inspection characteristics and
    the class characteristics for the batch class. In this way, you can control on a
    material-dependent basis whether the batch characteristics are valuated based on
    the inspection results.
    Amol.
    Message was edited by: Amol Manave : Main purpose is you can control whether Batch characteristics should be valuated based on results or not for particular material. If you set this indicator then batch characteristics will be valuated for all materials and in opposite case Batch characteristics will be valuated for only materials for which Material Specification exists.

  • Why do I need a CSR if I use -genkey

    I must not be understanding something correctly.
    What I am doing is:
    1. create a key with keytool
    2. create a csr
    3. sign the csr with my security-manager-tool
    But now that I am reading the keytool doc it says the -genkey creates a self-signed certificate, so why do I need to create a csr and sign it with my security-manager?

    Well I think I have an answer to my own question which is:
    In most cases, you can
    1. generate a key
    2. self-sign the key/act as your own CA (OR have verisign/thawte sign your key)
    After going through the keytool doc it turns out
    1. keytool cannot self-sign the key
    (However, I can self-sign the key with EA/jaguar security manager).
    So basically if people are trying to self-sign the key with keytool, don't even try.

  • Why we use  package seperate folder for creating packages ?

    hi
    i have two doubts
    1) in packages why we put seperate folder for pacage.. for creating the packages...?
    2)with out creating the package folder ..is possible to any other way is there ?
    thanks !!!

    balakrishna.m wrote:
    if is it there any option to create one folder..
    all packge programs are saved into that folder.. "no need to creating a seperate folders".. ?Here's a suggestion.
    Instead of continuing to waste everyone's time (including your own I might add) by repeating the same question in different forms why don't you ask us/tell us about the real problem that prompted this question in the first place.
    I would guess that your real issue here is one of the following.
    1)
    Question: You don't want to have to create 100 folders.
    Answer: Get an IDE.
    2)
    Question: You have actually hit some limit on some filesystem with regards to the number of directories in a directory.
    Answer: Rethink your design for starters. It sounds like you have too many packages. You can also look to solve this in alternative ways (like putting the source/classes in different locations and using the classpath appropriately)
    3)
    Question: You just don't understand what packages are for.
    Answer: Read the tutorial
    4)
    Question: You just don't like packages.
    Answer: Tough. Accept it or choose another language.
    If your real question doesn't appear above please ask it. But don't ask again if you must create different folders for different packages, that question has been answered repeatedly already.

  • I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    I have ad Apple ID on my iPad , when I use the apple on my iPhone for the first time, I put in my Apple ID for the iPad, didn't work. Need to create a new one. Why? How can I just use my iPad ID on my iPhone?

    Hi kamfong,
    Went to Settings where?
    If you want to use your exisiting Apple ID on your iPad, you need to:
    1.     Go to Settings>iTunes & App Store and sign out the new ID, and then sign on the old one
    2.     Go to Settings>iCloud, scroll to the bottom and delete the iCloud account, and the sign back onto iCloud using the old ID
    You still have not indindated why you are saying that using your old ID originally "didn't work". What do you mean by that? Did you get some sort of error when you tried to sign on with your exisiting Apple ID?
    Cheers,
    GB

  • Why created package with SE80 can't be found in Transport Connection?

    We want to transport our custom InfoCubes from Developement environment to Test environment:
    RSA1 -> Transport Connection, select an InfoCube we created and drag it over to the right frame, group it by "In Dataflow Before and Afterwards".  The Package column shows it's attached to $TMP that we would have to change it to a custom package that it can be transported over.  We click the Package picture icon with a pencil trying to change the package attached from $TMP to a custom one, but can't find any custom package we created with SE80 from here.  Could someone tell us why?
    Thanks

    hey AHP,
    Yeh, if I run rsdcube and follow the menu you specified, I can assign the InfoCube to the custom package I created with SE80.  I wonder why it's to work in this way?  If clicking the Package picture icon with pencil in Transport Connection doesn't work or successfully to bring up the correct custom package we created, then why SAP has this stupid picture icon over there to mislead our developers?
    You asked me how we created the custom package, we created them with SE80. 
    BTW, someone says that's BASIS work to create package to do the transports in their companies, how about your company?  You don't have to create custom package and just assign the objects to the package BASIS creates for you?
    Also someone says the ideal transport strategy is to group by "Necessary" other than "Dataflow Before and Afterwards", how do you think?
    Thanks

Maybe you are looking for

  • Need help in Sales order Header Details

    Hellp Experts, I need to modify data on 'Additional Info B' in Sales Order Header (VA03 Transaction) . As it is a Standard program I am aware that we have to use user Exits. But before that I have to debug the code to that point. I wish to know info

  • Business content implementation timeline

    Hello folks, Trying to get an idea of timeline to plan for implementing standard business content for the new G/L functionality and Asset accounting. Assume a brand new SAP BI install EHP3 and no customization. Will appreciate any guidelines to consi

  • SLA issue - disabling wip journals

    Hi, I need to disable the wip journal entries for my secondary ledger. Trying to disable the create accounting for each wip event class and I am promped with the following error: APP-XLA-95474 This event class has details. Please delete all details f

  • 2nd slide show won't play

    After creating a dvd with two slide shows using iDVD, the second slide show will not play past the first image. The first show plays with no problem. When the second show is activated the first image comes up but I can't advance to any of the others.

  • Control from pda

    Hello, I am designing an application in labview 8 with TCP communication with an HP PDA (Pocket PC 2003). (I was based on the example PDA TCP Data Client/Server) I would like to use the same numeric control from the computer AND the PDA. So if I chan