Problem with embedded objects

Hi,
I have problem with embedded objects which contained embedded objects.
When I create an Object in the persistent memory and commit this object I get the following error:
ORA-22805: cannot insert NULL object into object tables or nested tables
In the constructor of my persisten object I create the embedded members in the transient memory:
ATestPersObj::ATestPersObj() : m_count(0), m_lang(NULL), m_cost(NULL) {
  m_lang = new AEnumLanguage_OraType();
  m_cost = new AAmount_OraType();
}Or when I dereference a reference I get this error:
ORA-00600: internal error code, arguments: [kokeicadd2], [16], [5], [], [], [], [], []
Can somebody give me a hint?
I've defined the following Type:
CREATE OR REPLACE TYPE AENUM_ORATYPE AS OBJECT (
                         VALUE  NUMBER(10,0)
                       ) NOT FINAL ;
CREATE OR REPLACE TYPE AENUMLANGUAGE_ORATYPE UNDER AENUM_ORATYPE (
                       ) FINAL " );
CREATE OR REPLACE TYPE ACURRENCY_ORATYPE AS OBJECT (
                         ISONR          NUMBER(5,0)
                       ) FINAL ;
CREATE OR REPLACE TYPE AAMOUNT_ORATYPE AS OBJECT (
                         CCY        ACURRENCY_ORATYPE,
                         LO32BITS   NUMBER(10,0),
                         HI32BITS   NUMBER(10,0)
                       ) NOT FINAL ;
CREATE OR REPLACE TYPE ATESTPERSOBJ AS OBJECT (
                         COUNT    NUMBER(4),
                         LANG     AENUMLANGUAGE_ORATYPE,
                         COST     AAMOUNT_ORATYPE   
                       ) FINAL ;
oracle::occi::Ref<ATestPersObj> pObjR = new(c.getConnPtr(), "TTESTPERSOBJ") ATestPersObj();
pObjR->setCount(i+2001);
pObjR->setLang(AEnumLanguage(i+1));
pObjR->setCost(AAmount(ACurrency(), 2.5));
c.commit();
c.execQueryRefs("SELECT REF(a) FROM TTESTPERSOBJ a", persObjListR);
len = persObjListR.size();
{for (int i = 0; i < len; i++) {  
  oracle::occi::Ref<ATestPersObj> pObjR = persObjListR;
pObjR->getCount();
pObjR->getLang();
c.commit();
With kind regards
Daniel
Message was edited by:
DanielF
Message was edited by:
DanielF

Hi,
I have problem with embedded objects which contained embedded objects.
When I create an Object in the persistent memory and commit this object I get the following error:
ORA-22805: cannot insert NULL object into object tables or nested tables
In the constructor of my persisten object I create the embedded members in the transient memory:
ATestPersObj::ATestPersObj() : m_count(0), m_lang(NULL), m_cost(NULL) {
  m_lang = new AEnumLanguage_OraType();
  m_cost = new AAmount_OraType();
}Or when I dereference a reference I get this error:
ORA-00600: internal error code, arguments: [kokeicadd2], [16], [5], [], [], [], [], []
Can somebody give me a hint?
I've defined the following Type:
CREATE OR REPLACE TYPE AENUM_ORATYPE AS OBJECT (
                         VALUE  NUMBER(10,0)
                       ) NOT FINAL ;
CREATE OR REPLACE TYPE AENUMLANGUAGE_ORATYPE UNDER AENUM_ORATYPE (
                       ) FINAL " );
CREATE OR REPLACE TYPE ACURRENCY_ORATYPE AS OBJECT (
                         ISONR          NUMBER(5,0)
                       ) FINAL ;
CREATE OR REPLACE TYPE AAMOUNT_ORATYPE AS OBJECT (
                         CCY        ACURRENCY_ORATYPE,
                         LO32BITS   NUMBER(10,0),
                         HI32BITS   NUMBER(10,0)
                       ) NOT FINAL ;
CREATE OR REPLACE TYPE ATESTPERSOBJ AS OBJECT (
                         COUNT    NUMBER(4),
                         LANG     AENUMLANGUAGE_ORATYPE,
                         COST     AAMOUNT_ORATYPE   
                       ) FINAL ;
oracle::occi::Ref<ATestPersObj> pObjR = new(c.getConnPtr(), "TTESTPERSOBJ") ATestPersObj();
pObjR->setCount(i+2001);
pObjR->setLang(AEnumLanguage(i+1));
pObjR->setCost(AAmount(ACurrency(), 2.5));
c.commit();
c.execQueryRefs("SELECT REF(a) FROM TTESTPERSOBJ a", persObjListR);
len = persObjListR.size();
{for (int i = 0; i < len; i++) {  
  oracle::occi::Ref<ATestPersObj> pObjR = persObjListR;
pObjR->getCount();
pObjR->getLang();
c.commit();
With kind regards
Daniel
Message was edited by:
DanielF
Message was edited by:
DanielF

Similar Messages

  • Problem with embedded OLE objects

    I am using Outlook as client.
    I sent mail with Excel table as embeddet object.
    Outlook can after what read and show this mail.
    But if I read this mail with SOAP I get a message body without Excel table.
    I thought it should be in attachment.
    hasAttachments-filed in mail object is true, but attachments-filed is empty (not null!): attachments=AttachmentItemInfo[0].
    I am reading mail with getItemRequest and view = "default attachments attachment message attachments".
    We are using Groupwise 8.0.1 HP1.
    What is hier wrong? How can I read OLE object with SOAP?

    The complete response was not included.
    If you are trying to save an embedded OLE attachment,
    there is no logic to do that on the POA, the attachment
    will be dropped.
    Preston
    >>> On Wednesday, April 07, 2010 at 5:56 AM, d
    shvedov<[email protected]> wrote:
    > Hi Preston,
    > thank you for your answer.
    >
    > I am trying to use a stubbing feature. Before to stub a mail I need to
    > read and archive all parts of the mail.
    > So, I send an email with embeded objects in RTF format with Outlook and
    > try to read all part of the email with SOAP.
    > I can read message body but I can't get attachments: in response I see
    > hasAttachments=true, but attachments field is empty.
    >
    > If I send mails with attachents without embedded objects I can read
    > message body and attachments without any problems.
    >
    > SOAP trace is:
    >
    > <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s
    > :Header><h:gwTrace xmlns:h="http://schemas.novell.com/2005/01/Grou
    > pWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/ty
    > pes">true</h:gwTrace><h:session xmlns:h="http://schemas.novell.com
    > /2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01
    > /GroupWise/types">yr4stT3y9bKPJXex</h:session></s:Header><s:Body x
    > mlns:xsi="http://www.w3.org/2001/XMLSchema‑instance" xmlns:xsd="ht
    > tp://www.w3.org/2001/XMLSchema"><getItemRequest xmlns="http://sche
    > mas.novell.com/2005/01/GroupWise/methods"><id>4BBC895E.EXDEV‑GW‑SU
    > B DOMÄNE.Postämt 2.100.1723135.1.B2.1@1:7.EXDEV‑GW‑SUB
    DOMÄNE.P
    > ostämt 2.100.0.1.0.1@16</id><view>default attachments attachment
    > message stubbed members</view></getItemRequest></s:Body></s:Envelo
    > pe>
    >
    > <?xml version="1.0" encoding="UTF‑8"?><s:Envelope xmlns:s="http://
    > schemas.xmlsoap.org/soap/envelope/"><s:Header/><s:Body xmlns:xsd="
    > http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/200
    > 1/XMLSchema‑instance"><getItemResponse xmlns:gwt="http://schemas.n
    > ovell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.co
    > m/2005/01/GroupWise/methods"><item xmlns:xsi="http://www.w3.org/20
    > 01/XMLSchema‑instance" xsi:type="gwt:Mail"><gwt:id>4BBC895E.EXDEV‑
    > GW‑SUB DOMÄNE.Postämt 2.100.1723135.1.B2.1@1:7.EXDEV‑GW‑SUB
    DOMÃ
    > „NE.Postämt 2.100.0.1.0.1@16</gwt:id><gwt:sid>178</gwt:sid><gwt:v
    > ersion>3</gwt:version><gwt:modified>2010‑04‑07T11:32:20Z </gwt:modi
    > fied><gwt:container>7.EXDEV‑GW‑SUB DOMÄNE.Postämt
    2.100.0.1.0.1@
    > 16</gwt:container><gwt:created>2010‑04‑07T11:32:14 Z</gwt:created><
    > gwt:status><gwt:opened>1</gwt:opened><gwt:read>1</gwt:read></gwt:s
    > tatus><gwt:msgId>4BBC895E.EXDEV‑GW‑SUB DOMÄNE.Postämt
    2.200.2000
    > 0A8.1.D.1</gwt:msgId><gwt:clientMessageId>4BBC6D3E.955 : 168 : 475
    > 56</gwt:clientMessageId><gwt:source>received</gwt:source><gwt:deli
    > vered>2010‑04‑07T11:32:14Z</gwt:delivered><gwt:security>Normal</gw
    > t:security><gwt:subject>Diagramm6</gwt:subject><gwt:distribution><
    > gwt:from><gwt:displayName>Mouse (Micky)</gwt:displayName><gwt:emai
    > l>[email protected]‑exdev.local</gwt:email><gwt:uuid>A6547C30‑037D‑0000
    > ‑A7CB‑D4A471119EEE</gwt:uuid></gwt:from><gwt:to>Mouse (Micky)</gwt
    > :to><gwt:sendoptions><gwt:statusTracking>None</gwt:statusTracking>
    >
    > Do you have any idea?
    > Thank you!

  • Problems with embedding swfs into Director 11.5

    Hello everyone,
    I am hoping someone can help me and please bear with me - I don't know a lot about director - I can do some Lingo and get around in the program to make things work.
    Right now I am working on an interactive presentation where the user can click a button to view an animation. I am using Director 11.5 for my presentation and have made my animations in After Effects CS3 -- from there I converted my .mov files to .flv files using the Adobe Media Encoder CS4... then I took my .flv file into Flash and published it as a swf file.
    The problem that I am having is that when I play the presentation (within Director and after publishing the .app/projector file) the swf files are playing - but there is all this glitchy-artifact stuff all over them. Does anyone know why this would be happening? When I play the swf files in the flash player they look great. Before, when I was using Flash MX and Director MX, I never had any problems with embedding my swf animation files - and they played great - without any artifact. Any and all help would be much appreciated as this project is due in the next few days and I would prefer to figure out a solution rather than uninstalling Flash CS4 and Director 11.5 - and going back to MX.
    I toyed with the thought that my video card isn't good enough but I tested the .app file on another machine and the glitchy-artifacts were still there. I have attached a jpg showing the artifact that appears.
    I am running Mac OS X 10.5.7
    Dual 2 GHz G5 PowerPC
    ATI Radeon X800 XT
    Thank you!

    Sorry... here is the image again and I think the problem might be my machine -- it is very old (~4+ years) and when I tested my .app on a newer intel mac here it worked fine... but maybe I am missing something -- it seems odd that I can see the swf fine in flash player but it is glitchy when played through director or the .app projector file

  • Problem with inherited Objects

    Hi,
    I have a problem with inherited objects inside Flex using
    wsdl as the source of the object. The AS-classes are generated
    inside Flex Builder 3.
    Inside the wsdl I have 2 complex types:
    <complexType abstract="true" name="PersistentObject">
    <sequence>
    <element name="id" nillable="true" type="xsd:string"/>
    <element name="insertTimeStamp" nillable="true"
    type="xsd:dateTime"/>
    <element name="insertUsername" nillable="true"
    type="xsd:string"/>
    <element name="updateTimeStamp" nillable="true"
    type="xsd:dateTime"/>
    <element name="updateUsername" nillable="true"
    type="xsd:string"/>
    </sequence>
    </complexType>
    and
    <complexType name="Contact">
    <complexContent>
    <extension base="tns3:PersistentObject">
    <sequence>
    <element name="birthday" nillable="true"
    type="xsd:dateTime"/>
    <element name="firstName" nillable="true"
    type="xsd:string"/>
    <element name="lastName" nillable="true"
    type="xsd:string"/>
    <element name="middleName" nillable="true"
    type="xsd:string"/>
    <element name="newPassword" nillable="true"
    type="xsd:string"/>
    <element name="password" nillable="true"
    type="xsd:string"/>
    <element name="title" nillable="true"
    type="xsd:string"/>
    <element name="username" nillable="true"
    type="xsd:string"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    The classes in actionscript seem plausable:
    public class PersistentObject
    * Constructor, initializes the type class
    public function PersistentObject() {}
    public var id:String;
    public var insertTimeStamp:Date;
    public var insertUsername:String;
    public var updateTimeStamp:Date;
    public var updateUsername:String;
    and
    public class Contact extends PersistentObject
    * Constructor, initializes the type class
    public function Contact() {}
    public var birthday:Date;
    public var firstName:String;
    public var lastName:String;
    public var middleName:String;
    public var newPassword:String;
    public var password:String;
    public var title:String;
    public var username:String;
    When I want to retreive an object of type Contact, it seems
    that only a couple of entries are filled. While debugging the flex
    XMLDecoder, I noticed something strange. It seems, like the decoder
    is expecting the result xml data to be in alphabetical order:
    birthday, firstname, lastname, etc. But since the object is
    inherited, the data that is actually received contains elements
    from the parent class: birthday, firstname, id, inserttimestamp,
    The resulting object has just birthday and firstname filled,
    which is somehow wrong. This seems to be a problem inside the
    parser itself. What can I do?

    I am having a problem with an extended class as well.
    When I step through the code, everything is going fine and the decoder (mx.rpc.xml::XMLDecoder) sees that the class is an extension and wants to get the values for the superclass first.  When it gets into getApplicableValues(), it's looking for the values to be in the order of the definition which would be ok if the values collection didn't include the values from the subclass as well!  It goes through the whole definition and doesn't find anything for the superclass because the values aren't where it expects them.  When it pops back up to the subclass and starts to decode those values, it finds them because the definition order and values order match.
    Is this a known issue?  Or, am I misunderstanding something?
    Thanks,
    Chuck

  • Problem with shared objects synchoronization.

    I encountered a small problem with shared objects.
    I'm working on a program that creates chat rooms of a fixed
    size of 30 users. When the 31th user comes, a new room is created.
    The idea is that the client first connects to the first room
    and checks if it's full by connecting to shared objects. If it is
    full, connection is closed and process is reapeated on a new
    instance of the application.
    I use a function to connect to an instance, which takes as a
    parameter a number (1 for instance room_1, 2 for room_2, etc). The
    function itself creates the necessary Netconnection and
    sharedObject objects.
    If a room is full, Netconnections and sharedObjects are
    closed and function is called again with another number.
    I have no problem for connecting to the first room, but after
    closing the first connection and connecting to the new room, there
    seem to be some problems with the shared objects (especially,
    OnSync doesn't seem to execute again after the connection to the
    shared objects of the new instance).
    I was wondering if you had any ideas what could cause this.
    Is it the use of the same variable names for connecting at two
    different shared objects?
    Here is the function :
    function initStreams(room) {
    client_nc = new NetConnection();
    client_nc.connect("rtmp://192.168.0.4/Elearning/room_"+room);
    in_ns = new NetStream(client_nc);
    in_ns2 = new NetStream(client_nc);
    Replay_video.attachVideo(in_ns);
    out_ns = new NetStream(client_nc);
    out_ns2 = new NetStream(client_nc);
    in_ns.play("my_recorded_stream");
    users_name = SharedObject.getRemote("users_name",
    _root.client_nc.uri, false);
    users_name.connect(_root.client_nc);
    users_language = SharedObject.getRemote("users_language",
    _root.client_nc.uri, false);
    users_language.connect(_root.client_nc);
    users_picture = SharedObject.getRemote("users_picture",
    _root.client_nc.uri, false);
    users_picture.connect(_root.client_nc);
    users_finger = SharedObject.getRemote("users_finger",
    _root.client_nc.uri, false);
    users_finger.connect(_root.client_nc);
    I you need more info, I can post more of the code on the
    forum.
    Any help would be really appreciated

    I don't see any onStatus events in the code you posted above.
    If you're defining the onstatus event outside the function, that's
    the problem. When you define the shared object, you also need to
    define it's onStatus event handler.
    Also, you really should wait for the onStatus event of the
    netConnection before you connect your sharedObjects. If you try to
    connect the SO before the netConnection is established, the SO will
    never connect.

  • Problem with activeX objects

    hi all,
    i am having a problem with activeX objects.
    my activeX ( Tree View) is wrking fine with windows2000
    but when i am trying the same code with XP its saying dll missing.
    do these activeX depends on OS also..
    plz help me.

    hey Vishwas!
    did you register the .dll?
    do you work with vb.net?
    which ServicePack do you have in Windows XP?
    greetz
    Matthias

  • Problems with embedding .flv files in DW CS4....

    I inserted an .flv file into my DW CS4 html page. I previewed it in my browser, and it worked for a little bit, but now it's not working in any browser, I'm not sure what happened. I included a screen shot in the attachments of what was happening in all the browsers.
    Thanks for any help,
    Thank you,
    Aza

    Not sure if that was meant for me
    You can tell who was the intended recipient by looking at the header of the message -
    6. Sep 10, 2010 6:50 AM in response to: FordGuy48 <<----
    Re: Problems with embedding .flv files in DW CS4....
    A link to the page would help us diagnose your problem.
    Safari tells me that this file -
    FLVPlayer_Progressive.swf
    is not where you have told the page to expect it.  Did you upload it?

  • What is the problem with converting objects with gradients to gradient mesh?

    What is the problem with converting objects with gradients to gradient mesh?

    slange,
    There may arise some smaller corruption states that may be cured by what you did, as you can see in the list. Sometimes, restarting thrice is needed.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • I have too many problems with UserKeyMD Object

    Hi everybody!!!......
    I've too many problems with UserKeyMD object, this don't work, I have a Application which create the DataBase structure, but when try it for create the user key on "x" field in "ABC" table (x field is present on table, is db_Alpha with 8 chars, subtype is st_None) is raised the problem.
    I try to create this way the key (VB example):
    Dim oUserKeysMD As SAPbobsCOM.UserKeysMD
    Set oUserKeysMD = oCompany.GetBusinessObject(oUserKeys)
    oUserKeysMD.TableName = sTableName
    oUserKeysMD.KeyName = sKeyName
    oUserKeysMD.Unique = BoYesNoEnum.tYES
    oUserKeysMD.Elements.ColumnAlias = sFieldName
    oUserKeysMD.Add '<- here problem is raised
    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserKeysMD)
    I'm work in Delphi .Net and translate the source code of my function to VB.
    P.D.:this source code at least work 2 times, but does not use it until today, I do not know because no longer it works now but. 
    excuse my ingles is very bad
    thanks
    regards
    Francisco Troncoso
    Chile.
    Message was edited by: Francisco Troncoso

    Hi, I using this names for my tables, fields and keys.
    the table name is:
    AOTI
    the fields names are:
    codigo alpha editsize 8
    decrip alpha editsize 40
    tipo   alpha editsize 1 - valid values W, C - Default Value C
    grupo1 alpha editsize 1 - valid values Y, N - Default Value N
    grupo2 alpha editsize 1 - valid values Y, N - Default Value N
    grupo3 alpha editsize 1 - valid values Y, N - Default Value N
    grupo4 alpha editsize 1 - valid values Y, N - Default Value N
    grupo5 alpha editsize 1 - valid values Y, N - Default Value N
    grupo6 alpha editsize 1 - valid values Y, N - Default Value N
    grupo7 alpha editsize 1 - valid values Y, N - Default Value N
    grupo8 alpha editsize 1 - valid values Y, N - Default Value N
    all fields have subtype none and the key name is :
    AOPK1
    ColumnAlias is codigo, when I try to create the table, fields and key with MetaDataOperatios example I have not problems but I try to create with my application I have the error.
    Regards,
    Franciso.

  • Problems with Embedded classes mapping

    Hi,
    I'm experiencing problems for table generation with the following case:
    a class declares two fields; one of them typed as a subclass of the other; both fields annotated with @Embedded; the subclass uses the annotation @AttributeOverride to avoid column names duplication.
    When the tables are generated, one of the field (the most specialized one) is simply omitted by the JPA implementation...
    To illustrate my problem, here is an example:
    @Entity
    public class Bar implements Serializable {
         @Embedded
         protected Foo foo = null;
         @Id
         @GeneratedValue(strategy=GenerationType.SEQUENCE)
         protected long id = -1;
         @Embedded
         protected SubFoo subFoo = null;
         public Bar() {
                    super();
            // getters & setters
    @Embeddable
    public class Foo implements Serializable {
         @Column
         protected String bar = null;
         @Column
         protected String foo = null;
         public Foo() {
              super();
            // getters & setters
    @Embeddable
    @AttributeOverrides({
         @AttributeOverride(name="bar", column=@Column(name="subbar")),
         @AttributeOverride(name="foo", column=@Column(name="subfoo"))
    public class SubFoo extends Foo {
         public SubFoo() {
                    super();
    }The generated table BAR contains only 3 columns: ID, FOO, BAR...
    ...and what I expect is two additionnal columns named SUBFOO & SUBBAR!
    Can someone tell me: if I definitely need to go back to school (I'm obviously not an EJB expert), or how to make it work as I expect...?
    Thanks
    -Jerome

    I found the note in the EJB specs that clearly states that my issue has no solution at this time:
    "Support for collections of embedded objects and for the polymorphism and inheritance of embeddable classes will be required in a future release of this specification."
    EJB 3.0 specs - final release - persistence, page 23, note 10 in section 2.1.5

  • Page Layout Problems with embedded iViews

    Hi all,
    We are having problems with the position of the iviews in the layout page using embedded iviews. Sometime load in one order and other times in another one. I need that the iviews load in the same order always.
    Any idea, please?
    Thanks for all.

    Hi José,
    if in fact this is the case, then I would expect that the single iViews are called via different threads. If this is the case, then I would implement within the iView to wait for some result provided by the iView, which should be loaded first (for example, by putting some certain value into the http session object).
    For deeper discussions on this topic see  and
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Problem With Business Object and printing job

    Hello,
    We are encountering a problem with the application "Business Objects FINANCE", and we would need your help quickly.
    In the application , itu2019s impossible to print Consolidated Subsidiaries nor the Securities Held. If we try so, the application freezes and we can't do anything but killing the application via the task manager.
    Though, other states can be printed without problem.
    We tried on several different PCs, and the problem occured equally on each one.
    The version installed is 10.5, and we can do any tests that you think would be useful to diagnose problem.
    Our society is AUBAY SA, and our credential to enter in your support website are : S0005386617
    In attachment youu2019ll find a screenshot of the event viewer from the server where the application is install.
    Thanks in advance for your answer,
    best regards.

    check the export parameters of the event triggering workflow.
    If there is a problem, try instantiating the object in your wf based on the key.
    Also check if the wf is able to import the data.
    regards,
    Sandeep Josyula

  • Problem with Business object attributes in UWL Workitem description

    Hi All,
    I have developed a workflow which sends the workitem for two level approvals. Once the workflow is triggered workitem sent to the respective user for approval. When user opens the workitem in inbox he can see all the data which comes from the 'Z'  Business object in R/3 and he can approve the same. Everything works fine when this process happens in R/3 system.
    The problem comes when user opens this workitem in UWL or this workitem is sent to user mail ID executing  'SWN_SELSEN' report, all the attributes of the business object are displayed in the workitem description  except 2 . These are the Minimum annual salary(GRMIN) and  Maximum annual salary(GRMAX) fields from 'T510N'  table.
    Regards,
    Vaishali.
    Edited by: vaishali rautray on Dec 24, 2008 7:52 AM

    Hi Saumya,
    Thanks for the quick reply.
    For storing the Minimum and maximum annual salary values I have created two attributes in the business object which are referring to database fields. T510N is a customizing table. I could see the values for the same, if I test the Business Object or Trigger the w/f in R/3 and check the approval work item in R/3. These values disappears only in case of web interfacing i.e. If I send the same work item to outlook mail or check it in UWL.
    I had checked the same and thought if there is any problem with BO or some other processing takes place before these values are retrieved. But I wonder why this happens only if I process the work item outside R/3 system?
    Regards,
    Vaishali.

  • Problem with Persistent Object as Reference Attribute of Persistent Object

    Hello All,
    I have a problem with a persistent class that contains a reference attribute to another persistent class.  I can write the reference object attribute to the DB but when I read the reference attribute back from the DB the object is null.  Allow me to explain...
    I have two tables; one is a data table with one key field of type OS_GUID, the second is a mapping table with several business key fields and two further fields; an instance GUID and a class identifier GUID.  The data table is used to contain all the data for an object.  The mapping table is used to hold a relationship between the GUID assigned in the data table and the business key.  The mapping table has been structured in this way by following the help here:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/df/e785a9e87111d4b2eb0050dadfb92b/frameset.htm
    and the field mapping in persistent class for the mapping table has been mapped following the help here:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/06/f23c33638d11d4966d00a0c94260a5/frameset.htm
    The code I use to create entries in the data and mapping table is:
    <-snip->
      DATA:
        gv_blank_data_guid TYPE REF TO zcl_ps_data,
        gv_data_guid       TYPE        os_guid,
        go_data_ps         TYPE REF TO zcl_ps_data,
        go_data_agent      TYPE REF TO zca_ps_data,
        go_data_map_ps     TYPE REF TO zcl_ps_data_map,
        go_data_map_agent  TYPE REF TO zca_ps_data_map,
        go_exc             TYPE REF TO cx_root.
      go_data_agent = zca_ps_data=>agent.
      go_data_map_agent = zca_ps_data_map=>agent.
      TRY.
    Check if there's already data with the business key on the DB
          go_data_map_ps = go_data_map_agent->get_persistent(
                             i_data_ref     = iv_data_ref
                             i_action       = iv_action ).
    ... if there is then exit.
          EXIT.
        CATCH cx_root INTO go_exc.
      ENDTRY.
      TRY.
    Create the data...
          go_data_ps = go_data_agent->create_persistent(
                           i_root_guid = gv_blank_data_guid
                           i_req_date  = iv_req_date ).
          TRY.
    ... finally, write the new data to the data business key map table
              go_data_map_ps = go_data_map_agent->create_persistent(
                                 i_data_ref     = iv_data_ref
                                 i_action       = iv_action
                                 i_data_guid    = go_data_ps ).    "note1
            CATCH cx_root INTO go_exc.
          ENDTRY.
        CATCH cx_os_object_not_found.
      ENDTRY.
      COMMIT WORK.
    <-snip->
    The fact that it is possible to pass the object GO_DATA_PS in the call to GO_DATA_MAP_AGENT (the line that I've put the comment "note1" on) indicates to me that the reference to the data persistent object can be written to the DB by the mapping persistent object.  After executing the above code the mapping table object and class identifier fields are populated.  Also, if multiple entries are written to the tables then the class identifier field in the mapping table is always the same and the object ID is different as expected.
    However, the problem I have is if I read an object from the DB using the business key with the following code:
    <-snip->
      DATA:
        gv_req_date        type        datum,
        gv_data_guid       TYPE        os_guid,
        go_data_ps         TYPE REF TO zcl_ps_data,
        go_data_agent      TYPE REF TO zca_ps_data,
        go_data_map_ps     TYPE REF TO zcl_ps_data_map,
        go_data_map_agent  TYPE REF TO zca_ps_data_map,
        go_exc             TYPE REF TO cx_root.
      go_data_agent = zca_ps_data=>agent.
      go_data_map_agent = zca_ps_data_map=>agent.
      TRY.
    Read data mapping with the business key
          go_data_map_ps = go_data_map_agent->get_persistent(
                             i_data_ref     = iv_data_ref
                             i_action       = iv_action ).
    ... then read the data.
          TRY.
              CALL METHOD go_data_map_ps->get_data_guid
                RECEIVING
                  result = go_data_ps.
            CATCH cx_os_object_not_found.
          ENDTRY.
        CATCH cx_root INTO go_exc.
      ENDTRY.
    <-snip->
    At no point during this code are the attributes of the object of the persistent class for the data table populated with the contents of the fields of the data table referenced as the attribute of the mapping table.  To clarify, when viewing the object in the debugger all the attributes of the mapping object that are simple table fields are populated with the values of the fields of in the mapping table, however, the attributes of the object that represents the persistent class for the data table are not populated with the fields of the data table.  I had hoped that by reading the mapping table object the data object would automatically be populated.  Is there another step I need to perform to populate the data object?
    I'm sorry if the above is hard to follow.  Without being able to provide screenshots it's difficult to explain.
    If someone has managed to store references to persistent objects in a table and then read the references back could you list the steps you went through to create the persistent classes and include the code that reads the objects please?  The code I have almost works, I must be just missing some subtle point...
    Thanks in advance,
    Steve.

    Hi Andrea,
    The iObject being replicated at item level for Service Complaints is the SAP standard behaviour.
    Generally we raise complaint refering to some sales or service issues. In your scenario you are trying to create a complaint based on an iObject, then you have to mention the corresponding product details. I dont see any business requirement not to copy the iObject product at the item level.
    If you want it then I think only you have to write a Z program for it.
    Hope this helps!
    Regards,
    Chethan

  • Performance problem with recordset object

    Hi,
    I have a performance problem with record set object. Is it true using RecordSet object as argument to the method will cause any perfomance degradation?
    here is my code.
    finStmtList = selectFinancialStatements(rs, shortFormat, latestOnly, true);
    I changed the code by populating the recordset in the method that called the above statement. previously the population of valueobject is within the select FinancialStatements.
    Now the method looks like
    finStmtList = selectFinancialStatements(ValueObject, shortFormat, latestOnly, true);
    Is this fix will result in any performance gain?

    Can any one suggest me that the above RecordSet Object contains large number of records that counts up to 1000 rows and having 30 columns? I tested the application. But the performance varies from time to time.
    Is there any other way to fine tune it?

Maybe you are looking for

  • Using differnent templates for same content

    Hi all, I have an issue where we have a Page Group with lots of pages/sub-pages. There are three different User Groups, Internal, Customer and Supplier. I need to display the same content but with different templates (look and feel), one for the Inte

  • Mail to rfc

    hi   i want to work send the data from mail to rfc...how can i do it... whether i want to create datatype and mapping is needed...plz give me the step by step process of it... thx in advance...

  • Oracle Driver Error.

    hi all i have deploy ojdbc14.jar in VS to connect to an a oracle DB. the parametes im using in CC next: JDBC Driver: oracle.jdbc.driver.OracleDriver Connection: jdbc:oracle:thin:@subuedwd:1521:ddwh User: xxx pass: xxx now. this jar is been used in PE

  • Arrayfield Scroll bar behavior

    Is there a way to allow a scroll bar on an array field to keep scrolling if the user clicks-and-holds one of the arrow buttons. Currently, my users have to click an arrow button multiple times. Any ideas? TIA, Troy Burns Marriott Vacation Club Intl.

  • Mac Book Pro runs slow after Lion 7.2 upgrade

    Ever since I downloaded the Lion 10.7.2 my MBook Pro runs SLOW! Any thoughts or suggestions?