Storing Objects

Hello All
How can I store objects in database. For example, I am using Visual C++ to access Oracle database 9i. I have a custom struct/class defined and want to store its objects in the database. Is there any option to do this?

If you want to store a real object, you would have to write a method that created a binary representation of the object and store that in a BLOB column. If you're familiar with Java, you'd need to write a serialize method.
I would strongly suggest that you consider the implications of doing this, however. If your data is stored in binary columns, only your application will ever be able to access it, you won't be able to use database features like referential integrity, etc. Your application will also be responsible for enforcing data integrity, etc.
I would be willing to wager that everyone will be happier in the future if you create a reasonable relational data model and spend the time now to develop the object-relational data maps. There are tools on the market that will help you develop the O-R mapping if that is the stumbling block.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Can a Servlet be used for Storing Objects with both JSP and JSF used on it?

    Hi,
    Pages I have:
    SearchEmployee.jsp
    This page has a search engine that search out the Employee. This Employee Object will be stored inside a Servlet(controller) for future references by other pages. I used JSP, html tags for forms, and request.getParameter() to built this search engine.
    Problem:
    I have a JSF Form that wants to DISPLAY the employee which I have found in my Search Engine. How can I get the JSF's value="#{Controller.employeeObj.name}" to get the value from the object?
    This seems logical as my JSF form is just retrieving the stored object in the Controller. I currently cant seem to output it

    The servlet shouldn't be used to store ANY data, let alone data to be accessed by other sevlets. Put the object into the Session object.

  • Invalid stored Object Types with Constructor Function

    hi folks,
    i created a stored object type on database 10.2. but it is invalid.
    it has a constructor function and a number of member functions.
    SQLPlus the only feddback is
    Warning: Type Body is compiled with errors.
    Toad 9.0.0 gives no error message.
    how can i find out what kind of error there is? and where?
    thx for help
    joerg

    In SQL*Plus, when you get a warning that you've created an object with compilation errors, you can type
    SQL> show errorsto see the list of errors.
    Justin

  • Storing Object in SharePoint Cache

    Please share examples of storing custom objects(of  any  C# class) in SharePoint Cache
    Regards,
    Swati
    SP Page: http://www.facebook.com/SharePointQ SP Blog: http://swatipoint.blogspot.com

    Hi Swati,
    See this link, may be a good starting point for you -
    https://www.nothingbutsharepoint.com/sites/devwiki/articles/Pages/Leverage-AppFabric-for-custom-caching-in-SharePoint-2013.aspx
    +
    http://blogs.msdn.com/b/besidethepoint/archive/2013/03/27/appfabric-caching-and-sharepoint-2.aspx
    I have not tested the code, but it looks promising.
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Centrally storing objects/page layouts for use in Indesign CS6

    Hi all,
    We create credential docs to send out to potential clients. We have done work in different sectors (e.g. health, sports, charities, etc) so we tailor these creds docs so they are appropriate to the client. We currently have a process where we would open up an old indd file, copy whatever pages we want, and paste them into the new indd doc.
    This process presents several issues. The pages start to vary between the different cred docs (margins, grids, styles, etc) as time goes on. Digging through creds docs to find a page for a particular project is time consuming. Sometimes a new page is created because the old page wasn't found (or we forgot we already had one) which adds to the variation of pages.
    I've gone down the library route, creating libraries for the different sectors and storing content within there. This has been good so far, as we can quickly find pages we want and place them. And we can quickly place new pages into the library, or update any old ones with a simple click.
    The issue is that these libraries store absolute links, and we store our data in a Dropbox share which has different absolute path on each computer based on the username (Mac HD\users\"username"\Dropbox).
    My question is, does anyone have a better solution to centrally store indd pages so they can be used from any Dropbox share?

    Hi guys, thanks for your prompt replies. I've been reading about snippets (and I read your article too, Bob, it's a very good read). My ultimate question is if I create a snippet with a link to an image stored on Dropbox from Computer A, will Computer B be able to use that snippet without having to relink the image.
    e.g. I create a snippet, saved in "Computer A \ Dropbox \ Snippets" containing a link to an image stored in "Computer A \ Dropbox \ Snippets \ images". Will Computer B be able to use that snippet stored in "Computer B \ Dropbox \ Snippets" without having to relink the image?

  • Problem storing object extend HashMap

    With Coherence 3.3.1/389 using extend TCP client.
    We have our own customized HashMap implementation which extend java.util.HashMap<String,Object>.
    The class are something like this :
    public class SimpleMapStorage<T,V> extends HashMap<T,V> {
    public SimpleMapStorage() {
    super();
    public SimpleMapStorage(Map<T, V> initMap) {
    super(initMap);
    However, if I put this object into a DistributedCache and try to get it back. The object return from get() operation will be a HashMap instead of SimpleMapStorage.
    NamedCache cache = CacheFactory.getCache("Test");
    SimpleMapStorage ss = new SimpleMapStorage();
    cache.put("key", ss);
    Object obj = cache.get("key"); // this object will be a HashMap object.
    Any reason for this behavior? Or it's a bug?
    Regards,
    Chen

    Hi Chen,
    This is an expected behavior for the default POF serialization (used by the extend client).
    Let me elaborate this bit. Let's assume that your did not extend HashMap at all. Then, unless you make Coherence aware of your class (most commonly, by registering it), you would not be able to put it into the cache at all.
    Since you did not registered your SimpleMapStorage, the POF serializer only knows that it is a Map and uses a corresponding implementation (HashMap).
    The simplest way to resolve the issue is to (i) make your class to implement PortableObject interface; (ii) register your class in a custom POF configuration descriptor; (iii) point to that descriptor in cache configuration descriptors: "initiator-config/serializer" (on the client side) and "acceptor-config/serializer" (on the proxy side).
    Regards,
    Gene

  • Storing Objects in Request Scope

    Hello,
    I'm trying to pass an object in the request scope between a JSPDynPage and the associated JSP however the object is always null. If I store it in the session I am able to retrieve it.
    Could anyone assist in how to do this?
    My code is as follows, thanks and regards.
    public class MyClass extends PageProcessorComponent {
      private String redirectToPage = "";
      private static final String INITAL_PAGE = "initialpage.jsp";
      private static final String SECONDARY_PAGE = "secondarypage.jsp";
      private static final String BEAN_ALIAS = "myBean";
      public void doProcessBeforeOutput() throws PageException {
        if (redirectToPage == null || redirectToPage.equals("")) {
          this.setJspName(INITAL_PAGE);
        } else {
          this.setJspName(redirectToPage);
      public void onMyButtonEvent (Event event) {
        redirectToPage = SECONDARY_PAGE;
        MyBeanClass myBean = new MyBeanClass();
        IPortalComponentRequest componentRequest = (IPortalComponentRequest)getRequest();
        componentRequest.putValue(BEAN_ALIAS, myBean);
    secondarypage.jsp:
    <%@ page session = "true"%>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean" scope="request" class="MyBeanClass " />
    <hbj:content id="myContent">
      <hbj:page title="myTitle">
       <hbj:form id="myForm">
         <% if (myBean != null) {
              out.println("null");
            } else {
              out.println("not null");
         %>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    output on the page is always "null" ??

    Hi,
    Thanks for your posts... the null logic was actually a typo.
    I've solved the problem myself - basically I think the <jsp:useBean doesn't work as I expect it (that is automatically obtain the handle to the bean):
    MyDynPage.java:
    package com.my;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class MyDynPage extends PageProcessorComponent {
      public DynPage getPage(){
        return new MyDynPageDynPage();
      public static class MyDynPageDynPage extends JSPDynPage{
        public void doInitialization(){
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
              IPortalComponentRequest componentRequest = (IPortalComponentRequest)getRequest();
              componentRequest.putValue("myRequestParam", "My Request Param Value");
              MyBean myBean = new MyBean("My Bean Title Value");          
              componentRequest.putValue("myBean", myBean);
             this.setJspName("myJSP.jsp");
    MyBean.java:
    package com.my;
    import java.io.Serializable;
    public class MyBean implements Serializable {
         private String txtTitle;
         //setters
         public void setTxtTitle(String txtTitle) { this.txtTitle = txtTitle; }
         //getters
         public String getTxtTitle() { return this.txtTitle; }
         public MyBean(String txtTitle) { //constructor
              this.txtTitle = txtTitle;
    myJSP.jsp:
    <%@ page session = "true"%>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean" scope="request" class="com.my.MyBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
        <%
               String myRequestParam = (String)componentRequest.getValue("myRequestParam");
              out.println("myRequestParam: " + myRequestParam + "<br>");
              if (myBean == null) {
                   out.println("myBean is null<br>");
              } else {
                   out.println("myBean is not null<br>");
                   out.println(myBean.getTxtTitle() + "<br>");
              com.my.MyBean myOtherBean = (com.my.MyBean) componentRequest.getValue("myBean");
              if (myOtherBean == null) {
                   out.println("myOtherBean is null");
              } else {
                   out.println("myOtherBean is not null<br>");
                   out.println(myOtherBean.getTxtTitle() + "<br>");
        %>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    The output is:
    myRequestParam: My Request Param Value
    <b>myBean is null</b>
    myOtherBean is not null
    My Bean Title Value
    It appears that you can save objects in the request scope however you need to manually retrieve them. I'm pretty sure that this is not the case in other J2EE servers as the <jsp:useBean tag should imply that I want the bean retrieved from the scope automatically or created if it's null.
    However the use of the <jsp:useBean appears to work correctly/as expected when using the session scope.
    Thanks for your assistance.
    DSR

  • Help using Java to retrieve XMLType returned from PL/SQL stored object

    Hi,
    Please bear with me if this is a trivial question. I'm brand new to Java, JDBC, and XML DB. I've been spinning my wheels on this for a few hours now.
    I have a table:
    XMLDB_USER@xmldb64> desc my_test_table
    Name                                      Null?    Type
    ID                                                 NUMBER(9)
    DOC                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //www.myproquest.com/Global_
                                                        Schema_v3.0.xsd" Element "RE
                                                        CORD") STORAGE BINARYI've written a trivially simple PL/SQL function to retrieve the DOC column, based on the ID passed to it.
    create or replace function get_doc(goid in number) return xmltype is
      doc_content xmltype;
    begin
      select doc into doc_content from my_test_table where id = goid;
      return doc_content;
    end;
    /Up to here, everything works fine. I wrote a small anonymous PL/SQL block, and proved that I can call the PL/SQL function successfully.
    Now, I want to implement in Java. This is where I get confused.
    Currently my code looks like this:
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.OracleTypes;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.xdb.*;
    import java.io.*;
    import java.lang.StringBuilder;
    import java.sql.Clob;
    class MyJava
      public static void main(String args[]) throws SQLException, IOException
        Clob xml = null;
        System.out.print("Connecting to the database...");
        System.out.flush();
        OracleDataSource ods = new OracleDataSource();
        String URL = "jdbc:oracle:thin:@//pqhdb201.aa1.pqe:1522/xmldb64";
        ods.setURL(URL);
        ods.setUser("xmldb_user");
        ods.setPassword("xmldb_user");
        Connection conn = ods.getConnection();
        System.out.println("connected.");
        System.out.println("GOID to be retrieved is " + args[0]);
        CallableStatement cs1 = null;
    try {
        cs1 = conn.prepareCall( "{? = call get_doc (?)}" );
        cs1.registerOutParameter(1,OracleTypes.OPAQUE,"XMLType");
        cs1.setString(2,args[0]);
        cs1.execute();
    //    xml = XMLType.createXML(cs1.getOPAQUE(1));
        xml = (Clob) cs1.getObject(1);
    //    System.out.println(((XMLType)xml).getStringVal());
    //    System.out.println(xml.getClobVal());
        System.out.println(xml.getCharacterStream());
      finally {
         if(cs1!=null) cs1.close();
         if(conn!=null) conn.close();
    }This compiles, but when I run, I get:
    pqhdb201:[xmldb64]:(/home/oracle/xmldb_scripts):$java MyJava 91455713
    Connecting to the database...connected.
    GOID to be retrieved is 91455713
    Exception in thread "main" java.sql.SQLException: invalid name pattern: XMLDB_USER.XMLType
            at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:553)
            at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:469)
            at oracle.sql.OpaqueDescriptor.initPickler(OpaqueDescriptor.java:237)
            at oracle.sql.OpaqueDescriptor.<init>(OpaqueDescriptor.java:104)
            at oracle.sql.OpaqueDescriptor.createDescriptor(OpaqueDescriptor.java:220)
            at oracle.sql.OpaqueDescriptor.createDescriptor(OpaqueDescriptor.java:181)
            at oracle.jdbc.driver.NamedTypeAccessor.otypeFromName(NamedTypeAccessor.java:83)
            at oracle.jdbc.driver.TypeAccessor.initMetadata(TypeAccessor.java:89)
            at oracle.jdbc.driver.T4CCallableStatement.allocateAccessor(T4CCallableStatement.java:689)
            at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:157)
            at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:202)
            at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1356)
            at MyJava.main(MyJava.java:29)As you can see from the commented lines, I've tried several different approaches, based on various examples from Oracle documentation and various samples found on the net. My problem, I think, is that I have a fundamental disconnect somewhere. Objects? Types? Different methods? getClobVal? getStringVal? getCharacterStream? I'm still trying to get up to speed on all the lingo and terminology, and, as a result, I suspect I'm asking the wrong questions, and getting wrong results.
    Based on the simple example above, my table and PL/SQL function definitions, can someone help me fill in the gaps of what I'm missing in terms of the Java code?
    Thanks!
    -Mark

    Hi, I´ve been working on an application that return an XMLTYPE from an schema package, the XML is generated in a query, not read it in a table, and use that variable in a JSP.
    The DDL of the package function is this:
    CREATE OR REPLACE
    PACKAGE BODY pkg_modulos
    IS
        FUNCTION obtenerModulos (pAnio IN NUMBER DEFAULT 2011)
            RETURN XMLTYPE
        IS
            x    XMLTYPE;
        BEGIN
            SELECT  XMLELEMENT ("tree", XMLAttributes (0 AS "id"),
                        (SELECT  DBMS_XMLGEN.getxmltype(DBMS_XMLGEN.newcontextfromhierarchy('SELECT level,
                                              XMLElement("item",
                                                                          XMLAttributes(
                                                                    m.idmodulo as "id",
                                                                    m.nombre AS "text"))
                                FROM            modulos m
                 WHERE m.anio = 2011
    CONNECT BY   PRIOR m.idmodulo = m.padre
    START WITH   m.padre IS NULL'))
                            FROM     DUAL))
                            arbolXML
              INTO  x
              FROM  DUAL;
            RETURN x;
        END;                                                                         
    END;   as far as I see there shouldn´t be any problems with this code
    The problem is on the JSP code
    this is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <%@ page contentType="text/xml; charset=UTF-8" import="java.io.*,java.lang.*,java.sql.*,java.util.*,oracle.jdbc.*,oracle.xdb.*, oracle.jdbc.OracleTypes,oracle.jdbc.pool.OracleDataSource"%>
    <%
      Connection dbconn;
      OracleDataSource ods = new OracleDataSource();
      OracleCallableStatement stmt;
        try
             String hostname="localhost";
             String dbname="xe";
             String usr="seguridad";
             String pass="seguridad";
             String URL = "jdbc:oracle:thin:@"+hostname+":1521:"+dbname;
             ods.setURL(URL);
            ods.setUser(usr);
            ods.setPassword(pass);
             dbconn = ods.getConnection();
              String st=request.getParameter("st").toString();
              int np=Integer.parseInt(request.getParameter("np").toString());     
              stmt = (OracleCallableStatement)dbconn.prepareCall( "begin ? := "+st+"; end;" );
              stmt.registerOutParameter(1,OracleTypes.OPAQUE,"SYS.XMLTYPE");          
              stmt.execute();
              XMLType xml = null;
              xml = (XMLType) stmt.getObject(1);
              System.out.println(xml.getStringVal());
              stmt.close();
              dbconn.close();
        catch (SQLException s)
          out.println("SQL Error: " + s.toString());
           System.out.println("SQL Error: " + s.toString());
    %>I´m getting te error:
    SQL Error: java.sql.SQLException: inconsistent java and sql object types: SYS.XMLTYPE
    Making a debbuging I identified that the exception is been raised in this line:
    xml = (XMLType) stmt.getObject(1);I´ve been checking a lot of online documentation but I´ve not been able to make it work
    If anyone could help me please, I don´t know what else to do
    Thanks... sorry for the english

  • VBA: problems in creating and storing objects in array with loop

    I created a Class named Issue. Then I created a function that creates Issue objects, set their properties with data from a worksheet and store them into a variant array through a loop. the problem is that everytime that the loops runs it overwrites the properties
    of the same object instead of creating a new object, setting its properties. Would anyone know how to solve that? The loop code goes below:
     'Stores all the Issues objects in an Array
    Function StoreAllIssues() As Variant
    Dim IssuesSheet As Worksheet
    Set IssuesSheet = Sheet1
    Dim intLastRow As Integer
    intLastRow = Uteis_Jorge.LastRowFunc(IssuesSheet, 1)
    Dim IssuesArray() As New Issue: ReDim IssuesArray(0)
    For i = 2 To intLastRow
        Dim MyIssue As New Issue
        MyIssue.IssueName = IssuesSheet.Cells(i, 1)
        MyIssue.Suggestion = IssuesSheet.Cells(i, 2)
        MyIssue.Priority = IssuesSheet.Cells(i, 3)
        MyIssue.Resolution = IssuesSheet.Cells(i, 4)
        MyIssue.JobStatus = IssuesSheet.Cells(i, 5)
        MyIssue.AssignedTo = IssuesSheet.Cells(i, 6)
        Set IssuesArray(i - 2) = MyIssue
        ReDim Preserve IssuesArray(i - 1)
    Next i
    ReDim Preserve IssuesArray(i - 3)
    StoreAllIssues = IssuesArray
    End Function
    Jorge Barbi Martins ([email protected])

    Hi Jorge,
    You can set the MyIssue to Nothing every time you don't use the MyIssue object, in this way, the array will properly store the new MyIssue object:
    For i = 2 To intLastRow
    Dim MyIssue As New Issue
    MyIssue.IssueName=IssuesSheet.Cells(i,1)
    Set IssuesArray(i - 2) = MyIssue
    ReDim Preserve IssuesArray(i - 1)
    Set MyIssue = Nothing
    Next i
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Storing Objects in O10G XE

    Hello,
    is it possible to store Objects like PDF-Files in a Database?
    If so,...how to?
    Thanks
    Peter

    Hello,
    is it possible to store Objects like PDF-Files in a Database?
    If so,...how to?
    Thanks
    Peter

  • Storing Objects in database

    pls what steps must i take to store a user defined object in Mysql. thanks in anticipation.

    Its better to store the data in an object into the database and not serialize the object and store it.
    If you store the object, when you pull it out of the database, you have to know what version of the class was used in creating the object to recover it. If you have the raw data, you dont have to do that. ALso, with the raw data, any other programmer can run unique queries on the data and use it for their own purposes. Cant do so if the data is trapped in a serialized object in the database.

  • Storing objects in List ?

    I've created a List<?> list; but when I want to add any object for ex. list.add(new Integer(5)); there's an error 'The method add(capture-of ?) in the type List<capture-of ?> is not applicable for the arguments (Integer)'
    How should I add objects to this kind of list?

    From Sun's 'Generics in the Java Programming Language'
    Collection<?> c = new ArrayList<String>();
    c.add(new Object()); // compile time errorSince we don�t know what the element type of c stands for, we cannot add objects
    to it. The add() method takes arguments of type E, the element type of the collection.
    When the actual type parameter is ?, it stands for some unknown type. Any parameter
    we pass to add would have to be a subtype of this unknown type. Since we don�t know
    what type that is, we cannot pass anything in. The sole exception is null, which is a
    member of every type.

  • Versioning and Storing Objects programmatically.

    Hi,
    We have a requirement where we will not be accessing the iFS the standard way using Windows explorer, browser, FTP or emails, Command lines. But we would like to use the features of iFS programmatically using java API or PLSQL. Is it possible.
    Scenarios could be like this. We write some Java programs or PLSQL's which generates some files and these files must be stored in the iFS and be vesioned ( like check-in and check-out). can we use the iFS Java API's to do such things and the user written Java/PLSQL programs might also reside in different schema than the iFS schema.
    Where must I put this java programs for exction. should they be put in the iFS repositiry???
    Please help.
    THanks
    Ramna
    null

    Yes. iFS has a set of Java APIs that allows you to develop the application you described. You can get the Javadoc on OTN by choosing Documentation tab (on the left side of the page) and then choose The Oracle Internet File System. In fact, a major message of iFS is to serve as a development platform for content management applications, besides serving as a file system for accessing the database.
    The Java files you develop will reside in the middle tier. You can also use the read-only SQL view to view the data in iFS schema.
    You can read the iFS developer's guide on OTN to learn more about how to develop Java applications on top of iFS.
    I hope this helps.
    Sincerely,
    Joyce

  • How to access ServletContext object of a webapp on remote server?

    Hi!
    I have a webapp, runs on tomcat, loads information from local db server, keeps them in servlet context, and publish these datas to web via jsp pages.
    I make run the same webapp on different location, different webserver and db server with different datas.
    Is it possible to link both ServletContext to each other, or access one from the another?
    What is the right solution, if I want to access all stored Objects of these independent webapplications, summarize and show them in one browser page, in one jsp?
    sorry for my poor english
    and thanks for any help,
    kind regards,
    henpanta

    It is not possible to access another servletcontext glueless using HTTP or any transfer protocol. Would be a potential security hole too. If you want to let communicate 2 webapps on different servers with each other, consider webservices.

  • ABAP OO:  Duplication of selected data in created objects?

    I am new to ABAP OO and I have a conceptual question/concern that I cannot resolve.  Can someone explain what I am missing?
    I would think that selecting and storing (in internal tables) a large amount of data from many related database tables and, at the same time, creating and storing objects from this same data would unnecessarily consume a huge amount of memory.  To avoid this problem, it seems that the selected data and created objects should not be stored in internal tables simultaneously.
    Does this concern make sense?  If so, how is this problem best handled?
    Does it make sense to delete the corresponding data once the objects are created (to free memory)?
    Or does it make sense to keep the data and only temporarily create objects as needed?
    Thanks.

    Hello Matt
    The approach you describe is to select data first and the feed the object instances with them. <b>Why not let the object instances do the data selection themselves?</b>
    I will give you an example what I mean.
    (1) Lets assume I want to write an application that allows to deal with cost center hierarchies. On the selection screen you can choose one or many cost center hierarchies.
    (2) Using the selection criteria I would select all cost center hierarchies but without any details (just the key values).
    (3) Next I would loop over the cost center hierarchies and create a cost center hierarchy instance (a class you have to define yourself) for each key value. The CONSTRUCTOR of this class will have an IMPORTING parameter like <i>id_kostl_hier</i>.
    (4) In the CONSTRUCTOR method I first check if the cost center hierarchy exists (if not raise an exception-class based exception) and then do the selection of the hierarchy details (e.g. the cost centers).
    (5) The instances are collected in an itab of the "frame" application.
    Using this approach you will have little duplication of data within your application. Furthermore, if you really have to deal with huge amounts of data then you could read them only on demand (like in tree controls where the sub-nodes usually are read when the parent node is expanded).
    Hope I could give you some fresh insights into this exciting topic.
    Regards
      Uwe

Maybe you are looking for

  • SAP GUI Scripting: Script Is Running.....Help!

    Hello all, I'm new to the forums and have an SAP question problem. I'm an end user of SAP and have been using it since 2002. A couple of weeks ago when I logged into SAP I noticed a red/white icon in the lower right corner of my screen. When I hover

  • Sales order delivery dates

    Hi all, A critical scenario I am stuck in. My client has 3 plants viz. 1000, 1100, 1200. Plant 1000 gets sales orders from different customers and production happens on plants 1100 and 1200 through special procurement key. Customer A and customer B a

  • My battery isn't responding

    hello! i've been having some weird problems with my battery this last few days... i accidentaly let it drain completely and now my laptop doesn't detect it. i've tried all the updates and reseting the PMU but nothing seems to work do you think that t

  • Aperture and display profiles

    Hi, I have a MBP connected to an Eizo display. Each display has its own calibration. To use the colour profile of the second display do I work in clamshell mode, Aperture mirroring mode or just drag Aperture to the second display? It seems to me that

  • Open Html file

    How i can write a program can open html file?