Mapping time field issue!

Hi,
i have a time field in R/3 which is of length 4 ( numc ).
and in BW side it was decided to be a key figure. so i had created a key figure of type time.
( as i heard key figure time type has length 8 )
is there any problem if i could map these two fields in transfer rules!
Thanks,
Ravi

Hi,
Assuming your R/3 field is hhmm
it will depend what you have chosen in the data type of your key figure:
- if TIMS you'll have to add two 00 at the end of your field.
Routine: CONCATENATE TRAN_STRUCTURE '00' INTO RESULT.
I don't think you will be able to calculate times in queries with this one.
if DEC: then it represent the number of seconds between 0 and your value.
You'll have then to write the code:
DATA: lt TYPE TIMS.
CONCATENATE TRAN_STRUCTURE '00' INTO lt.
MOVE lt TO RESULT. "ABAP will calculate the number of seconds accordingly
hope this helps...
Olivier.

Similar Messages

  • Issue: format / "language" of current Date (in date/time field), javascript only

    Hi,
    I have 2 date fields in my form, which should display the date in differnt format. (yyyy.mm.dd /  dd-mm-yyyy)
    To get the current date I use java script only
    Formular1.p1.date_YYYYmmDD::initialize - (JavaScript, client)
         var date = new Date();
        this.rawValue  =  date.toLocaleDateString();
    My first problem is (red): I get date in English, but I want it in a different language. As it was set in form settings
    My second issue is: how can I format a date/time-filed (not a text field) in javascript with a specific pattern on init-event?
    It seems my code in init-event overrides the pattern configuration of the date/time-field
    Here is my form, if anyone want to check it:
    https://acrobat.com/#d=zeOMyj9MhBdYbVWk8S1pHw

    Hi,
    I think both problems are the same, when setting a date/time field using the rawValue the format always has to be yyyy-mm-dd, if you use any other format the value is just treated as text and displayed without formatting.  
    var date = new Date();
    this.rawValue = util.printd("yyyy-mm-dd", date);
    You can also set the formattedValue if you have a date in the correct format. 
    var date = new Date();
    var currentLocale = xfa.resolveNode("#localeSet.#locale").name;
    var dateFormat = "date("+currentLocale+"){DD MMM, YYYY}"
    this.formattedValue = util.printd(dateFormat, date, true) 
    This code assumes the display pattern is date{DD MMM, YYYY}
    The date format specification is in the XFA Spec http://partners.adobe.com/public/developer/xml/index_arch.html
    Regards
    Bruce

  • Retrieve date, time, guid and user id data from IP u2013wrong mapping of fields

    Hi
    I have used the How to guide Line Items in BI Integrated Planning to implement the functionality to save the username, guid, date and time of who is planning. I do not get any errors but the field 0uname is empty and the guid field gets the username of the planner (0uname). The date and time field get populated correctly. Why does the fieldu2019s username and guid populated incorrectly? Do I have to change the code (I just copied the code from the How to document)? To me the abap code looks correct.
    We use BI 7.0 and SPS 17.
    Kind regards
    Erik

    Try this: Just replace the objects for ...LOGD = date, ...LOGT = time and ...LOGU = User:
    FIELD-SYMBOLS:  <l_chavl> TYPE ANY,
                    <l_curk> TYPE ANY.
    ASSIGN COMPONENT '/BIC/M2PLOGD' OF STRUCTURE c_s_chas to <l_chavl>.
    <l_chavl> = sy-datlo.
    ASSIGN COMPONENT '/BIC/M2PLOGT' OF STRUCTURE c_s_chas to <l_chavl>.
    <l_chavl> = sy-timlo.
    ASSIGN COMPONENT '/BIC/M2PLOGU' OF STRUCTURE c_s_chas to <l_chavl>.
    <l_chavl> = sy-uname.
    Regards,
    Andreas

  • Excise Part 1 updation at the time of issue.

    Hi,
    I am having one requirement regarding RG23 A part 1 updation at the time of issue.
    1) How the register part 1 updated at the time of goods issue.
    2) I purchased one material from two different vendor. One is excise unit & other is non excise.
    At the time of goods issue to shop floor how the system determine that this issue is from excisable material or non excisable material.And accrdingly how will update part 1 entries.
    Every time i will go to J1I5 transaction for updation of RG23 A or it will update automatically.
    Regards,
    Dinesh

    Hi Sathish ,
    In CIN - basic settings - Maintain excise groups there in that outgoing excise invoice Excise invoice during the billing and Create and post inv in single make the both fields un mark.
    Hope this will make you to create invoice and excise invoice separately, or els find if any exit is used earlier.
    Check and revert
    Regards
    Ram

  • Time field in alv list

    Hi all ,
    i want to display alv list with time field . if no data exists in that field its showing 00:00:00 , i have to show it blank. if i change time field as type c in my internal table its showing like this 121314, i need to display it 12:13:14 . if no data it should display balnk . can any one help me out to reslove this issue?

    Hi priya,
    do this:
    declare in your itab a field like sy-uzeit.
    as example.
    move sy-uzeit to itab-uzeit.
    In fieldcat do this:
        MOVE  'X'                        TO   WA_FIELDCAT-NO_ZERO.
    Hope it helps.
    regards, Dieter

  • FM - Budget check at the time of procurement and at the time of Issue

    Hi
    For a Material there is a budget for a procurement ( Check should happen at the time of procurement and a seperate budget for consumption ( Check should happen at the time of issue).How can I map this in FM- BCS.I am thinking of creating two commitmen items one for Procurement , to be derived thorugh matl grp at the time of PR / PO and  One commitment item for consumption to be derived through consumption GL . Does it work , any comments?
    Thanks in advance
    Chris

    Yes you are right , I have to make to sure stock budget doesn't get credited.
    If you remember in one of my other threads, i wanted to derive commitment item from Matl grp, it was for this purpose. I will derive commitment through matl group at the time of procurement / GR etc and assign a dummy commitment item to stock a/cs. Where as i will derive a consumption commiment item from consumption GLs.
    Thank you
    Chris

  • Different G/L code at the time of issue  for projects .

    Dear all;
    here there is requirement :
    Say we are having three different WBS element .for a particular Material ,at the time of issue it should goes to different G/L Code.How to map this in SAP system .
    I have configured in OBYC setting as below :
    GBB
    Valueation Modifier  general Modifier     valueation Class   G/L account
    1101                        VBR                        3000(Raw Mat)    XYZ
    Kindly give me some solut

    Do you mean  that every time you issue for a particular WBS element it should post to a differnt G/L account.
    If thats you requirement then its not possible to post to a new G/L account every time when you are issuing a material.
    The G/L account is determined based on the movement type, and creating new movement type every time to post into a G/L account is not feasible solution.
    What you can do is post into a differnt cost object like a profit center or cost center to track down the costs by posting them at the time of Goods issue.
    Thanks & Regards
    Kishore

  • Mapping of field with MinOccurs 0 in SAP XI 2.0 SP5

    Hi,
    Our Scenario is
    File -> Adapter -> XI -> Idoc Adapter -> SAP
    We are trying to push IDoc and the mapping tool is giving an error. I am providing the error that I am getting.
    The snippet of the XSD for the IDoc is given below:
       <xsd:element name="E1FIKPF" minOccurs="1" maxOccurs="1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                            <xsd:annotation>
                               <xsd:documentation>FI Document Header (BKPF)</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                               <xsd:sequence>
                                  <xsd:element name="BUKRS" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Name of global company code</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="6" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BELNR" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Accounting Document Number</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="10" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="GJAHR" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Fiscal Year</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:pattern value="\d+" />
                                           <xsd:maxLength value="4" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BLART" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Document type</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:maxLength value="2" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
                                  <xsd:element name="BLDAT" minOccurs="0" type="date" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Document Date in Document</xsd:documentation>
                                     </xsd:annotation>
                                  </xsd:element>
                                  <xsd:element name="BUDAT" minOccurs="0" type="date" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Posting Date in the Document</xsd:documentation>
                                     </xsd:annotation>
                                  </xsd:element>
                                  <xsd:element name="MONAT" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                     <xsd:annotation>
                                        <xsd:documentation>Fiscal Period</xsd:documentation>
                                     </xsd:annotation>
                                     <xsd:simpleType>
                                        <xsd:restriction base="xsd:string">
                                           <xsd:pattern value="\d+" />
                                           <xsd:maxLength value="2" />
                                        </xsd:restriction>
                                     </xsd:simpleType>
                                  </xsd:element>
    In this snippet as can be seen the minOccurs for the BUKRS field is 0. But if I do not map the field its giving me following error.
    /usr/java131/bin/javac -encoding UTF8   -classpath .:./system-lib/boot.jar:./system-lib/jaas.jar -extdirs ./additional-lib:./services/deploy/work/applications/ExchangeRepository -d /tmp/9_53_35_27_7_2004 /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java
    /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java:303: ';' expected
    a117.gotoNextContext();tmpValAtr = a117.getValue();if (!tmpValAtr.equals(SUPPRESS)) handler.addAttribute("SEGMENT", tmpValAtr);a117.gotoNextValue();if (!__deflt)a115.gotoNextValue();No mapping for value/FIDCCP02/IDOC/E1FIKPF/BUKRS
                     ^
    /tmp/9_53_35_27_7_2004/com/sap/xi/tf/_MsgMapGcentre2Fidcc2_.java:303: cannot resolve symbol
    symbol  : class No 
    location: class com.sap.xi.tf._MsgMapGcentre2Fidcc2_
    a117.gotoNextContext();tmpValAtr = a117.getValue();if (!tmpValAtr.equals(SUPPRESS)) handler.addAttribute("SEGMENT", tmpValAtr);a117.gotoNextValue();if (!__deflt)a115.gotoNextValue();No mapping for value/FIDCCP02/IDOC/E1FIKPF/BUKRS
    ^
    2 errors
    Compilation error
    Any one having any guesses on why this error is coming. I know this error would vanish if we map the field by an Empty Constant. But then it would start giving error for the next field until all the non mandatory fields are mapped.
    If however I go ahead and map all the fields then the output structure generates all the segments the maxOccurs times. i.e. if a segment is occuring 999 times then that segment is repeated that many time in the output whereas I never needed that segment in the output.
    Can any one suggest as to why this is happening. Am I doing some thing wrong or this is a problem with Mapping Editor in XI 2.0 SP5.
    Ashish

    Hello Ashish,
    this is a bug in the mapping tool. You have to apply the note  730081. It says:
    Symptom                                                                           
    After you import XI20 Support Package 04 or Support Package 05, you can           
    no longer change and regenerate the message mapping (graphic mapping              
    tools).                                                                           
    The following error is displayed during activation or generation: No              
    Mapping for value.......                                                          
    Other terms                                                                       
    Graphic mapping tools, SAPINTSER05, no mapping vor value                          
    Reason and Prerequisites                                                          
    This problem is caused by a translation error.                                    
    Solution                                                                          
    The translation error has been corrected.                                                                               
    As of patch level 1, the correction is provided in the SAPINTSER05_1.sca          
    archive of the INTEGRATION Services 2.0 software component and, as of             
    patch level 2 for Support Package 5, it is provided in the                        
    SAPINTBUI05_2.sca archive of the INTEGRATION BUILDER 2.0 software                 
    component. The archives are available on the SAP Service Marketplace at:                                                                               
    http://service.sap.com/patches                                                                               
    SAP EXCHANGEINFRASTRUCTURE/SAP EXCHANGEINFRASTRUCTURE 2.0                         
    Binary Patches/INTEGRATION SERVICES 2.0/OSINDEP and                               
    ..... /INTEGRATION BUILDER 2.0/OSINDEP                                            
    Import the archives using SDM.                                                                               
    The mapping must be recompiled after deployment.                                                                               
    Regards Franz

  • I am trying to map the fields in R3 system  with the infoobjects in BW.

    I am mapping the fields with in R3 with the infoobjects in BW.
    Can any please let me know the relavent mapping infoobjects and the procedure to find for the following fields.
    Description                          Type          Length
    Purchase Order     VARCHAR2     10
    PO Line Number     NUMBER     10
    Line Item Description     VARCHAR2     60
    Order Quantity          
    Unit of Measure     VARCHAR2     3
    Performance Start Date     DATE     7
    Performance End Date     DATE     7
    Order Date                           DATE      7
    PO Line Extended Amount     NUMBER     14
    PO Line Total Amount     NUMBER     14
    Project                         VARCHAR2     30
    Account ID                         VARCHAR2     15
    Cost Amount                             NUMBER      14
    Prime Contract ID     VARCHAR2     20
    Requisition ID     VARCHAR2     10
    Vendor ID                            VARCHAR2     12
    Vendor Name     VARCHAR2     25
    Entry Date/Time      DATE     7
    Address Descriptive Code     VARCHAR2     10
    Address Line 1     VARCHAR2     40
    City Name                         VARCHAR2     25
    Mail State                          VARCHAR2     15
    Postal Code                         VARCHAR2     10
    Country Code     VARCHAR2     8
    Phone Number     VARCHAR2     25
    Fax Number ID     VARCHAR2     25
    Other Phone Number ID     VARCHAR2     25

    Hi,
    You can find the fields and related infoobject for the datasource as follows
    Step1
    log on to the BW system
    Step2
    Go to SE11 ---> give the table name as RSOSFIELDMAP and execute
    Step3
    give the data source name for OLTPSOURCE field and execute
    Step4
    you will find the mapping between fields and relevent infoobjects
    Hope this helps
    Santosh

  • Add instance on Read only field issue

    I have a subform with two fields , one a date field to capture current system date and time and another is a Text field for some comments.
    Then there are two buttons ,one for Adding the instance for these two fields and another is a Save button which makes these two fields
    The requirement is that once both the fields are filled with data and i click on save button, the fields should become read only ,however when i click on the add instance button the instance is added successfully but the save button click is not making the new instance read only.
    The Code for Add Instance Button is :
    "New1.FileNote.instanceManager.addInstance(true);
    xfa.form.recalculate(true);"
    The code for Save button to make the fields read only is :
    New1.FileNote.DateTimeField101.access = "readOnly";
    New1.FileNote.TextField37.access = "readOnly";
    Please guide me as I am totally blank on how to code the same..Have a rough logic of using a for loop with index of the Add Instance but not getting the way out for the code.
    Thanks a lot for any help and guidance.

    Hi Steve,
    Thanks for your reply..I made it happen using the for loop with Index and resolve node. However there is another issue which occured after that..I have a date/time field in that repeating subform instance.
    The run time property is set to Current Date/Time. Now the issue is whenever i click on save, form.recalculate instance changes the existing time value in the previous subbform instance as well
    Is there a way to retain the existing value in the field of the previous instance ??
    Regards
    Kapil

  • XI Message Monitoring - Mapping custom fields for search in monitor?

    Is it possible to map a reference field so that searching for a specific message is more user friendly?
    For example, we produce hundreds of outbound SHPMNT04 messages each day.  Would it be possible to map a field such as E1EDT20.TKNUM (Shipment Number) to a field in the monitor (SXMB_MONI) such as "Outbound Reference" so we can easily search on this field?
    Currently we use a combination of WE09 and IDX5 to find a specific message.  Obviously, this is cumbersome and time-consuming.
    Thanks in advance.

    Hi,
    of course it is possible in many ways
    there are at least two ways
    the first one is to use Trex search for xi + standard
    the second one is described in this weblog + but remember that
    without indexing this will take long to search like this
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards,
    michal

  • How to compare Date in the TextField or DateTime with Date/Time field?

    Hi All,
    I am facing an issue with respect Date comparinson. I tried to look into entire discussions but failed to get the answer.
    My issue is: I wanted to comparet Date/time field value with Date value which is in TextField.
    The functionality of my form is:
    I have dropdown list which lists the registered customer ids binded to XML Datasource. On selection of the customer id from the dropdown I am displaying customer registration date in the TextField or say Date/Time field as below code in dropdown change event.
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value; (this is TextField control)
    In form I have an Date/Time field in which use will select the date of item purchase. In the validation part I want to make sure that, the purchase date selected in Date/Time field must be greater than the Customer Registraiton Date. I able to compare if the customer selects the date from two different Date/Time fields. But how to compare the dates which one is in Date/Time field and Date is in TextField?
    I have tried using Num2Date and Date2Num with "YYYY-MM-DD"  format to compare but not succeed!
    Can you guys help me in this? Thanks in advance
    Regards.

    Hi,
    Yes, I am able to display the date which I have assigned to the text box. In the message box it show the value as '31/05/2009', since in this format i am assigining the date in the text box.
    Here is the code which I am assigning the value:
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value;
    Do I need to change the format while assigning value in text box?
    You have told that, you have attached your test form, nothing is the reply. Can you repost the file?
    Regards.

  • I'm trying to import contacts to outlook 2011 from a cvs file.  I've followed all the steps, mapped the fields, clicked import -- it shows that it imported my 900 contacts --- but the contact field remains blank and I can't see any information.  Help?

    I'm trying to import contacts to outlook 2011 from a cvs file.  I've followed all the steps, mapped the fields, etc.  It appears to import all 900 contacts, but after finishing nothing appears in my contact list.  Any ideas on why this is not working?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Time out issues

    I have a program which will retrieve the accounting information, the result as like as T-code F.19, but when i execute the program it will caused time out issue, I have not idea how to solve it. Could you help. Here is the source code which cause time out. Thank!
       select * from bsis
          into corresponding FIELDS OF table it_bsis
          where bukrs in so_bukrs and
                budat in so_budat and
                augdt = '00000000' and
                dmbtr ne 0.
        loop at it_bsis.
          select single * from bseg
             where bukrs = it_bsis-bukrs and
                   belnr = it_bsis-belnr and
                   gjahr = it_bsis-gjahr and
                   buzei = it_bsis-buzei and
                   ebeln in so_ebeln and
                   matnr in so_matnr and
                   hkont in so_hkont.
          if sy-subrc = 0.
              MOVE-CORRESPONDING BSEG TO BSIS_TAB.
              BSIS_TAB-WAERS = it_bsis-WAERS.
              BSIS_TAB-BUDAT = it_bsis-BUDAT.
              BSIS_TAB-BLART = it_bsis-BLART.
              IF it_BSIS-SHKZG = 'H'.
                BSIS_TAB-DMBTR = 0 - BSEG-DMBTR.
                BSIS_TAB-DMBE2 = 0 - BSEG-DMBE2.
                BSIS_TAB-DMBE3 = 0 - BSEG-DMBE3.
                BSIS_TAB-WRBTR = 0 - BSEG-WRBTR.
              ENDIF.
              APPEND BSIS_TAB.
          endif.
        endloop.

    Avoid selecting BSEG within the it_bsis loop. BSIS will have huge data and when you do data selection for BSEG inside this loop things will only worsen.
    My points:
    BSIS:
    1. Avoid 'INTO CORESSPONDING FIELDS OF" during the bsis table fetch. Instead define your target structure with the required fields and select only those fields from the BSIS table.
    2. Make sure that only "Key fields" are used in your filter (where condition) for this BSIS table fetch.
    3. I presume your company code in selection (so_bukrs) is a mandatory field. If not suggest for mandatory option.
    BSEG:
    To avoid selection of BSEG inside the bsis loop do the following.
    1. Sort it_bsis by  bukrs belnr gjahr buzei.
    2. Move the contents of it_bsis into a temporary table of same structure, say it_bsis_tmp.
    3. delete adjacent duplicates from it_bsis_tmp comparing bukrs belnr gjahr buzei.
    4. Now use the below selection:
       select <fields required from bseg>
         from bseg
         into table it_bseg
         for all entries in it_bsis_tmp
    where bukrs = it_bsis_tmp-bukrs and
    belnr = it_bsis_tmp-belnr and
    gjahr = it_bsis_tmp-gjahr and
    buzei = it_bsis_tmp-buzei and
    ebeln in so_ebeln and
    matnr in so_matnr and
    hkont in so_hkont.
    if sy-subrc eq 0.
      sort it_bseg by bukrs belnr gjahr buzei.
    endif.
    5. Modify your loop construct as below:
    loop at it_bsis.
      read table it_bseg into wa_bseg with key bukrs = it_bsis-bukrs
                                                                  belnr = it_bsis-belnr
                                                                  gjahr = it_bsis-gjahr
                                                                  buzei = it_bsis-buzei
                                                                  binary search transporting <required fields>.
    if sy-subrc eq 0.
       move the required fields from wa_bseg to your BSIS_TAB.
      BSIS_TAB-WAERS = it_bsis-WAERS.
    BSIS_TAB-BUDAT = it_bsis-BUDAT.
    BSIS_TAB-BLART = it_bsis-BLART.
    IF it_BSIS-SHKZG = 'H'.
    BSIS_TAB-DMBTR = wa_BSEG-DMBTR * -1.
    BSIS_TAB-DMBE2 = wa_BSEG-DMBE2 * -1.
    BSIS_TAB-DMBE3 = wa_BSEG-DMBE3 * -1.
    BSIS_TAB-WRBTR = wa_BSEG-WRBTR * -1.
    ENDIF.
    APPEND BSIS_TAB.
    endif.
    endloop.

  • Missing mapping for field error

    Here is the set up:
    Person extends Party using InheritanceType.JOINED
    Household extends Party_Relationship using InheritanceType.JOINED
    Household has a Set of Persons mapped One to Many unidirectional
    When I use PrimaryKeyJoinColumn on the Person and/or Household to rename the column say to PERSON_POID instead of PARTY_POID and when adding Persons to the Household Set the following error occurs:
    oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: Missing mapping for field [PERSON.PARTY_POID].
    Descriptor: RelationalDescriptor(com.dhsnet.cms.domain.Person --> [DatabaseTable(PARTY), DatabaseTable(PERSON)])
    What am I missing? If I do not use the PrimaryKeyJoinColumn mapping this error does not occur. I am stumped! Any help is greatly appreciated.
    Here are the mappings:
    @Entity
    @TableGenerator(name="party", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party", allocationSize=1)
    @Table(name="PARTY")
    @Inheritance(strategy=InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_TYPE")
    public abstract class Party extends AbstractEntity{
    @Entity
    @DiscriminatorValue("PERSON")
    @PrimaryKeyJoinColumn(name="PERSON_POID")
    public class Person extends Party{
    @Entity
    @Table(name="PARTY_RELATIONSHIP")
    @TableGenerator(name="party_relationship", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party_relationship", allocationSize=1)
    @Inheritance(strategy = InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_RELATIONSHIP_TYPE", discriminatorType=DiscriminatorType.STRING)
    public abstract class PartyRelationship extends AbstractEntity {
    @Entity
    @DiscriminatorValue(value="HOUSEHOLD")
    @PrimaryKeyJoinColumn(name="HOUSEHOLD_POID")
    public class Household extends PartyRelationship {
    On the Household Object:
    @OneToMany
    @JoinTable(joinColumns = @JoinColumn(name="HOUSEHOLD_POID"),
    inverseJoinColumns = @JoinColumn(name="PERSON_POID"))
    protected Set<Person> getMembers() {
    return members;
    }

    This looks to be the same/related issue that has already been entered. See
    https://glassfish.dev.java.net/issues/show_bug.cgi?id=1586
    The alternative like you mentioned, is to not use a PrimaryKeyJoinColumn to rename the column in the joined inheritance case.
    Cheers,
    Guy

Maybe you are looking for

  • Needing a mini to video/audio edit/produce.

    been digging deeper and deeper into video and audio production and editing. currently im running a 24" imac 2.4ghz, 1gb ram, i use it as my everyday computer and i been playing around with some video editing and a good bit of audio production. (im go

  • Dispute Case

    Hi All, I have gone through SAP traning for FSCM Credits, Collections and Dispute mgt. I have few basic questions. Could someone please answer these- 1. Dispute case can be initaited by anyone - either Customer or User/authorized employee of the orga

  • Closed captioning not appearing in video files

    I've been working on producing a number of videos intended to be used as content in an iPad app for a Self-Guided Museum Tour which is under development by a non-profit Museum I work for. Many of the videos are intended to have closed captions for th

  • Question about binary search tree

    i was asked to do a programe that generating 1000 random integer numbers between 1 - 50, storing each unique number and it's corresponding occurrence into a binary search tree and output them in asending order. Therefore, before, adding the new numbe

  • PPCI and PM01

    Hi gurus- My understanding about the TC's PPCI and PM01 is as follows: PPCI- Transaction code for creating custom infotypes in OM. PM01- Transaction code for creating custom infotypes in PA. Is that correct or am I missing something?? Thanks. Ramesh.