SQ01 local field division problem.

i have a report in sq 01 and i want to divide  two fields
so i pick local field and try to do it..but result not correctly but addition and substraction working fine.
any one tell me how perform division in sq01 local field

I realize this post is very old, but the solution may help somebody else down the road.
Within the infoset, the setting for "Fixed Point Arithmetic" must be turned on (checked).
This is turned off by default when converting an SQVI into a Query within SQ00 or SQ01.
To turn on "Fixed Point Arithmetic".  Go into infoset change mode in SQ02.  Click Goto in the menu path and then Global Properties.  Click on the setting for "Fixed Point Arithmetic" at the very bottom of the pop-up box.  Regenerate the infoset.

Similar Messages

  • ABAP Query: creation of local field (Subtraction between 2 dates)

    Hi,
    I want to create a local field which will calculate the number of days between 2 dates (for example, document date - posting date).
    What I did:
    1) Created the user group in SQ03
    2) Created the infoset in SQ02
    3) I'm stucked at the creation of the Query in SQ01. I'm at the «Create Query: Select field screen». I clicked on Edit --> Local Field --> Create. I selected the «calculation field» attribute. I clicked on the «Complex calculation button», but I don't know how to write my formulate DOCUMENT DATE - POSTING DATE.
    Thanks a lot for your help.
    Julien

    Try these FM's to calculate difference between two dates..
    DAYS_BETWEEN_TWO_DATES
    LEAP_DAYS_BETWEEN_TWO_DATES
    HR_SEN_CALE_DAYS_DATE
    ISB_DAYS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES_2
    FIMA_LEAP_DAYS_BETWEEN_2_DATES
    SD_DATETIME_DIFFERENCE

  • Creation of local field in ABAP Query

    Hi
    Please let me know how to create a local field in ABAP query. I am finding the option inactive in SQ01.
    Regards
    Priyadarshini

    hi priya,
         *__Adding u201CLocal Fieldu201D (user defined field) in SAP Query_ :
    There is also facility to add the user defined fields in SAP query output. Also we can provide calculation formula for calculating values for this user defined field.
    Calculation formula consists of standard fields from standard SAP tables. So the values fetched for particular standard SAP fields from standard SAP tables get calculated as per the calculation formula defined for the user defined field and displays the value accordingly.
    To do this first go to change mode for Query which automatically takes you to screen shown below and click on icon   , as below :
    Then further screen will appears. So select the Field group and again click on the same icon button   .
    Then switch on the Short names for the fields and give the short names to fields which we need to use in Calculation formula.
    Give the short names and then created u201CLocal Fieldu201D, as shown in below screen shot. Also Short names are given to fields, which can be used further for calculation.
    Defining Local Field u201CREM_QTYu201D along with its field type and Calculation formula.
      In this case we have 
      defined field type for new  
      field as similar to
      ORD_QTY and
      Calculation formula is  
      defined.
    Also its possible to have Conditional logic for Local field by putting Condition in u201CConditionu201D line.
    Now activate this newly added Local field for coming it in output screen. To do the same again go to u201CBasic Listu201D and activate the Local Field as shown below :
    i think this will help u
    regards,
    sindhu.

  • ABAP Query - Local field creation error

    Hi,
    In SQ01, I created a query. when i try to create local field EDIT>LOCAL FIELD>CREATE. Its throwing error 'Reference field does not exist' Message no. AQ273.Can anyone please tell me how to create local field then?
    useful answers will be rewarded.
    Thanks
    Shameem.

    Hi,
    When creating a local field in a query, you need to define the type of data it will hold. There is a radio button to select a "reference field" or you can specify the type of data directly. I believe you got this error message because you selected reference field but specified no other field in the query to use as reference.
    RaulV

  • Local field in infoset

    hi,
    I want to check personnel 0008 infotype wagetype amount and scale amount.
    ex. personnel p0008-bet01 = 2000 but from t510 p0008 scale data derives amount 1800,
    To compare these 2 amount, within an ad-hoc query, I added an edditional field to 8 infotype in infoset.
    after that no error appears, when query run frım sq01, if added field selected ad hoc does not run, orherwise ad hoc runs.
    how should I write code for additionbal field.
    here is the code that I added to code part of local field.
    tables:t510.
    get pernr.
    select single betrg from t510 into sklucrt
    where molga = 47 and trfar = p0008-trfar and trfgb = p0008-trfgb
    and trfkz = 1 and trfgr = p0008-trfgr and trfst = p0008-trfst and lgart = p0008-lga01
    and begda le p0008-begda and endda ge p0008-endda.

    Hi Kara,
    first the field BET01 of IT0008 is a repeat field. That means all subsequent values from BET02 ... BET40 are processing in the query using the DO ... VARYING statement.
    Now to your coding.
    You must not use GET PERNR in your code! This is of course automatically added by the query generator and if you add it in your coding the statement will come up twice.
    Second your date comaprison is wrong.
    You always have to select with
    ITx-BEGDA <= ITy-ENDDA  AND
    ITx-ENDDA >= ITy-BEGDA
    to get the correct set. Make a drawing and you will realize why.
    So your coding would look like:
    * first clear the return value
    clear sklucrt.
    * select the value from T510
    select single betrg from t510 into sklucrt
    where molga = 47 and
    trfar = p0008-trfar and
    trfgb = p0008-trfgb and
    trfkz = 1 and
    trfgr = p0008-trfgr and
    trfst = p0008-trfst and
    lgart = p0008-lga01 and
    begda le p0008-ENDDA and
    endda ge p0008-BEGDA.
    You MUST clear the return value first otherwise you get the old value in case nothing is found.
    Tables declaration you also don't need as you make a direkt select into the field SKLUCRT that I assume is your defined additional field in the InfoSet.
    But I wonder why you want to do this as the additional fields available calculate the right amount also in case of indirect evaluation.
    Regards,
    Michael

  • How to display/create Local field in SAP query

    HI All,
    I'm new to abap query. I have to include a local field in the existing query. I know through SQ01->Edit->Local field we can display the Local fields, but the options under Local Fields menu option are disable even in change mode of Query.
    So, later through SDN found that, I have to Switch On the short names menu option. Even the sub-options in Short Names are disabled.
    Can any body please let me know how can we display the local fields to the change the formula and how can we create the new local fields in the existing qeury.
    Hope I'm able to explain my issue clearly.
    Thanks in advance.

    You can create the local fields in the "Select Field" screen. (Third screen after "Title, Format" and "Select Field Group") This option is disabled on the other screens.<br />
    <br />
    <i>Reference : <a class="jive-link-external" href="http://help.sap.com/saphelp_NW70EHP1/helpdata/en/d2/cb4186455611d189710000e8322d00/frameset.htm" target="_newWindow">Defining Local Fields</a> in <a class="jive-link-external" href="http://help.sap.com/saphelp_NW70EHP1/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm" target="_newWindow">SAP Query</a>.</i><br />
    <br />
    Regards,<br />
    Raymond

  • How to use dates/times in the definition of local fields?

    Hello!
    I have few tough questions for which I haven't found an answer. I hope someone is capable to help me.
    1. Is there a transaction to search tables if we know the field?
    2. I'd like to define a local field and need to use dates in the calculation function. So basically I need to calculate the lean-time from the date of the purchase order (field BSTDK) to the date of the final delivery (field PLIFTS) and the result should be displayed in weeks. How can I do this? Or can I?
    3. Can I use the local fields further in my calculations?
    Thank you in advance!
    Maria Kangasniemi

    Hi,
    1. Is there a transaction to search tables if we know the field?
    Tcode:    SE84
    2. I'd like to define a local field and need to use dates in the calculation function. So basically I need to calculate the lean-time from the date of the purchase order (field BSTDK) to the date of the final delivery (field PLIFTS) and the result should be displayed in weeks. How can I do this? Or can I?
    Doing some calculation you can define it.
    3. Can I use the local fields further in my calculations?
    What is local Fields?

  • BTCUSTOMERH fields in Problem (SM 7.1 SP10)

    Hello experts!
    I have SM 7.1 SP10. I created Z fields in BTCUSTOMERH of Incident using AET.
    I want to add created BTCUSTOMERH fields in Problem document, but this BTCUSTOMERH fields are not present in Context:
    How to add BTCUSTOMERH to AIC_PROBLEM_H?

    Hello Dmitry,
    Go to BSP_WD_CMPWB transaction, on field Component write "AIC_IM_REQ_H" and select display.
    Once the next screen is open, on the left side you can see a tree with all reference object related to that component, search and open "Views" -> "AIC_IM_REQ_H/IncidentOV" .
    on the right side you can see      3 tabs, "View Structure" / "RT Rep Details of View" / "Configuration"
    On "Configuration" Tab you can see the current configuration for your view, using an Enhacement I think that you can edit that view as your need.
    I never edit that view so i don't kno how to delete "title 2" block as you need, but maybe if you ask some developer he can do it for you using some code Enhacement .
    Regards,
    Luis

  • Report painter GRR3...Division problem.

    Hi All
    In report painter i have a division problem. I am calculationg Gross profit percentage as
    Gross Profit % = ( Gross Profit / Sales ) * 100.
    So the value should be
    GP % = ( 2523302.56 / 14067690 )*100 = 17.93 ( As per calculator )
    But the SAP is showing the value as 18.09. Can you please guide me what could be the problem?
    Moderator message: not directly related to ABAP development, please post again in the appropriate functional forum.
    locked by: Thomas Zloch on Oct 4, 2010 1:26 PM

    Thanks,
    I didn't chosse the copy function, instead I insert  row 104(other current asset) , but I find the first column (which should be a formula)corresponds to row 104 is empty, and I check all formula ID under formula components, there is no other current asset
    formula ID, what should I do?
    Row 103(current asset) has a formula ID, but new inserted rows can't find formula ID

  • Field order problem I think

    I just burned through 10 dvds and they all look terrible. There are all these wavy lines. Is this a field order problem? If so, how do I correct it. I have missed my deadline and I am in big trouble. Please help.
    Thanks

    I just burned through 10 dvds and they all look
    terrible. There are all these wavy lines. Is this a
    field order problem? If so, how do I correct it. I
    have missed my deadline and I am in big trouble.
    DV formats ALWAYS use field 1 dominance -- LOWER FIELD FIRST!
    Since your content was created in a graphics program and not a DV camcorder, be sure to read through: http://www.greatdv.com/video/fields.htm
    BTW, It's ALWAYS the best idea to create a disk image out of iDVD (an option under FILE). Verify the image plays correctly with Apple's Disk Utility and then make the actual burns to writable media with Apple's Disk Utility or Roxio's Toast. Use quality DVD-R media (Verbatim or Maxell) and burn at 4x speed or lower.
    F Shippey

  • Include command in SapScript to fill in a local field

    Dear all,
    Normally when we are using the INCLUDE SAPscript command, the system is printing the information retrieved.
    My question is, if someone of you know, whether is possible to put the information retrieved into a local field, defined as DEFINE &wa_localfield& := include &tdname& object vbbk ...
    Many thanks in advance !
    Rgds., Anton

    No, that is not possible using the INCLUDE statement.
    Welcome to SDN!
    Regards,
    Rich Heilman

  • Limit MM01 according to field DIVISION (SPART) in "general data" and views

    Hi all,
    we are in a 4.0b.
    Our goal is to authorize some users to create/modify material master data (MM01/MM02) depending from the combination of views (basic data, purchasing, mrp, ..) and field DIVISION (SPART) in the "General Data" frame of "Basic Data 1" label.
    I can imagine 2 possible situations:
    1) for division (SPART) AA, AB, AC only for views K, E, S
    2) for division (SPART) ZX, ZY, ZZ only for views L,G
    From my experience I know that object M_MATE_STA (for manege views) is "stand alone" and cannot be used in join with other authorizatuions objects of class MM_G.
    I have not found any authorization object to filter the field SPART.
    Any idea ?
    Thanks
    Andrea

    Hi Andrea,
    What you ask, is possible but you would have to think of the pro's and con's of developing such business requirements.
    You could always create a Z-object with Division as a field and have the abap code modified - but as i said, do think of the outcome of the action
    My personal experience says, NOT to try tricks with the Material Master.......i am still suffering the after effects of changes made to the ABAP code 8 or 9 years back , and every fortnight we have business meetings on what should and what shouldnt be made available to end users........
    we have a spaghetti of restrictions and possible combinations of users and specifc view access restrictions built in our system - If you believe my word on this, take it for granted - that the plan you have on mind would eventually lead to a disastrous situation (as we currently face) - with business requirements going from restricitons on views for specific users to restrcitions on specific fields. 
    and the fields in material master that come from MARA (Basic Data views) are spread across in different other views and it can lead to a very complex structure to build authorizations
    EX: If you manage to restrict the user on creating or changing on the Division in Basic data, you would still have to give acess to the user to his own sales area to extend the material (object M_MATE_VKO), once the user has this access, he can go to the sales data 1 tab and change the division from A to B, this will get updated to the Basic data tab, although the user might not have access to basic data
    so be careful is what i can say................
    and good luck
    An other quick note: when you restrict users on the Basic data views, the users from Purchase department wouldnt be able to maintain the Manufacturing part number (i dont know if it applies to your company) but the intention is to highlight the difficulties with MM01/MM02
    Edited by: Shekar.J on May 28, 2010 4:16 PM

  • Com.apple.Server.Accounts error 2 - Local Network Group problem

    I am lost :-)
    just to specify, this is not a production server, it is just a learning platform for me.
    I did a format and start over my server configuration
    in order
    DNS
    DHCP
    Open Directory
    Profile Manager
    User and group
    File Sharing
    very basic config.
    Somewhere during user and group something happen
    I did create a new Local Network Group and 2 Local Network User, me and a Directory admin
    but now, when I create a group, it seem I can only create local group
    and I can't edit Local Network Group
    Local Group -> no problem
    I can edit Local Group. I can add member
    or I can go to a member and add it to a Local Group even if the user is a Local Network User
    it work
    Local Network Group -> does not work
    I can't edit Local Network Group, can't add member
    if i go the same Local Network user I added to local group and try to add it to a Local Network group, I get this error
    com.apple.Server.Accounts error 2
    I dont know where I went wrong :-)
    any idea
    Thank you

    I just reformat and restart the configuration :-(   but I might have the same problem again, so i hope to understand why it happened.
    I had the problem on both the server and a client machine.
    Part of the Local Network User and Groups were greyed out, so I could not edit them
    My airport setting for DNS was set to my server, so the client automatically got the local ip of the server for DNS.
    On the server, initially, the formatting DNS IP was so to my airport, then I changed it to the DNS of my Internet provider. 
    but for the self ip 127.0.0.1 i did saw it there at the begining but maybe when did change later it might have been affected.
    I did changed the System Preferences>Network setting to a fix IP even if my airport was set as the DHCP with a fix IP for the Mac Mini.
    I remember not seeing a DNS in that page. I will check for that now that I am about to start again.
    and also, I tried to change the DHCP to be from given from the Mac Mini (like I read in the book) but when I did a
    ipconfig getpacket en0
    it was still showing the airport as the DHCP server
    I will not set it this time.
    Thank you
    I will come back later with some update
    Thank you

  • Division problem in sales order

    Hi all,
    In my company there are at present 6 different divisions. Also I have created a common division as the end user was facing problems of customer extension.
    1. The excise duty rates are different for all divisions.
    2. When I create the sales order and if i select suppose 2 different divisions then the system is accepting. This will definitely pose a problem for me when the I create the inoice as the duty rates will be different.
    Please guide me as to how to prevent the different divisions being entered at the same time in the sales order.
    <b>Settings in VOV8:</b>
    Check division - no dialogue
    Item division - No tick
    Regards,
    Allabaqsh G. Patil

    Hi Patil,
    You can use the check division option to make sure the division of the materials entered in the sales order is the same as the one entered in the first screen of order entry. This way you can avoid materials of two different division entered in the same sales order and hence one excise duty rate would be applicable. The drawback here is you might have to extend the customers to all sales areas apart from the existing reference ones.
    <b>Alternative</b>
    If the excise duty is applied using a condition type with an access sequence then maybe you could include the material division as one field and apply the excise duty accordingly. I'm not with the SAP system hence not in a position to give you the field name for the material division in the sales order document. Just check the item level data you would find a field with the material division.
    Regards
    Nadarajah Pratheb

  • Field mapping problem using EntityManager.refresh(...) and @SecondaryTable

    I am experiencing an exception indicating a missing mapping for a field. My problem is that I have a mapping! I suspect the problem has something to do with the fact the field in question is also the @PrimaryKeyJoinColumn. Am I doing something wrong or is this a bug in the refresh() method code since the find() method works with no problem? Thanks in advance.
    Code and log excerpts follow:
    Calling Code...
    TaxableDescription description = em.find( TaxableDescription.class, cusip );
    if (refreshEntity) {
    {color:#ff0000}em.refresh( description );{color}
    Entity Code..
    @Entity
    {color:#ff0000}@Table( name="f_ISSUE" )
    @SecondaryTable(
    name="f_COUPON_INFO",
    pkJoinColumns=@PrimaryKeyJoinColumn(
    referencedColumnName="issue_id", name="issue_id"
    ){color}
    @NamedQueries({
    @NamedQuery(
    name="TaxableDescription.findByCusip",
    query="SELECT d FROM TaxableDescription d WHERE d.cusip = :cusip"
    public class TaxableDescription
    extends Description implements Serializable
    private long issueID;
    private long fkIssueID;
    private String interestFrequencyCode;
    private Date nextCallDate;
    private double nextCallPrice;
    private Date parCallDate;
    private double parCallPrice;
    private boolean defaulted;
    private String variableCouponType;
    //@Id
    @Column( name="issue_id", table="f_ISSUE" )
    public long getIssueID() {
    return issueID;
    public void setIssueID( long issueID ) {
    this.issueID = issueID;
    @Override
    @Id
    @Column( name="CUSIP_nbr" )
    public String getCusip() {
    return super.getCusip();
    @Override
    public void setCusip(String cusip) {
    super.setCusip(cusip);
    @Override
    @Column( name="maturity", updatable=false, insertable=false )
    @Temporal(TemporalType.DATE)
    public Date getMaturity() {
    return super.getMaturity();
    @Override
    public void setMaturity(Date maturity) {
    super.setMaturity(maturity);
    {color:#ff0000} @Column( table="f_COUPON_INFO", name="issue_id", insertable=false, updatable=false )
    {color} public long getFkIssueID() {
    return fkIssueID;
    public void setFkIssueID( long fkIssueID ) {
    this.fkIssueID = fkIssueID;
    @Override
    @Column( table="f_COUPON_INFO", name="coupon", updatable=false, insertable=false )
    public double getCoupon() {
    return super.getCoupon();
    @Override
    public void setCoupon(double coupon) {
    super.setCoupon( coupon );
    @Column( table="f_COUPON_INFO", name="interest_frequency", updatable=false, insertable=false )
    public String getInterestFrequencyCode() {
    return interestFrequencyCode;
    public void setInterestFrequencyCode( String interestFrequencyCode ) {
    this.interestFrequencyCode = interestFrequencyCode;
    @Override
    @Column( table="f_COUPON_INFO", name="dated_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    public Date getDatedDate() {
    return super.getDatedDate();
    @Override
    public void setDatedDate(Date datedDate) {
    super.setDatedDate(datedDate);
    @Override
    @Column( table="f_COUPON_INFO", name="first_interest_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    public Date getFirstInterestDate() {
    return super.getFirstInterestDate();
    @Override
    public void setFirstInterestDate(Date firstInterestDate) {
    super.setFirstInterestDate(firstInterestDate);
    @Column( name="next_call_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    protected Date getNextCallDate() {
    return nextCallDate;
    protected void setNextCallDate( Date date ) {
    this.nextCallDate = date;
    @Column( name="next_call_rate", updatable=false, insertable=false )
    protected double getNextCallPrice() {
    return nextCallPrice;
    protected void setNextCallPrice( double value ) {
    this.nextCallPrice = value;
    @Column( name="par_call_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    protected Date getParCallDate() {
    return parCallDate;
    protected void setParCallDate( Date date ) {
    this.parCallDate = date;
    @Column( name="par_call_rate", updatable=false, insertable=false )
    protected double getParCallPrice() {
    return parCallPrice;
    protected void setParCallPrice( double value ) {
    this.parCallPrice = value;
    @Column( name="moodys_code", updatable=false, insertable=false )
    public Integer getIntegerMoodysCode() {
    return super.getMoodysCode();
    public void setIntegerMoodysCode(Integer moodysCode) {
    super.setMoodysCode( moodysCode != null ? moodysCode : 99 );
    @Column( name="s_p_code", updatable=false, insertable=false )
    public Integer getIntegerSpCode() {
    return super.getSpCode();
    public void setIntegerSpCode(Integer spCode) {
    super.setSpCode( spCode != null ? spCode : 99 );
    @Column( name="fitch_code", updatable=false, insertable=false )
    public Integer getIntegerFitchCode() {
    return super.getFitchCode();
    public void setIntegerFitchCode(Integer fitchCode) {
    super.setFitchCode( fitchCode != null ? fitchCode : 99 );
    @Override
    @Column( name="principal_amt", updatable=false, insertable=false )
    public double getPrincipalAmount() {
    return super.getPrincipalAmount();
    @Override
    public void setPrincipalAmount(double principalAmount) {
    super.setPrincipalAmount(principalAmount);
    @Transient
    public boolean getDefaulted() {
    return defaulted;
    @Transient
    public boolean isDefaulted() {
    return defaulted;
    public void setDefaulted( boolean defaulted ) {
    this.defaulted = defaulted;
    @Column( name="defaulted", updatable=false, insertable=false )
    public String getDefaultedFlag() {
    return defaulted ? "Y" : "N";
    public void setDefaultedFlag( String defaultedFlag ) {
    this.defaulted = "Y".equalsIgnoreCase( defaultedFlag );
    @Column( table="f_COUPON_INFO", name="coupon_change_indicator", updatable=false, insertable=false )
    public String getVariableCouponType() {
    return variableCouponType;
    public void setVariableCouponType( String variableCouponType ) {
    this.variableCouponType = variableCouponType;
    @OneToMany( targetEntity=com.bondtrac.entities.TaxableCouponStepEntity.class )
    @JoinTable(
    name="f_CHANGE_SCHEDULE",
    joinColumns=@JoinColumn( name="issue_id", referencedColumnName="issue_id" )
    public List getCouponSteps() {
    return super.getCouponStepSchedule();
    public void setCouponSteps( List couponSteps ) {
    super.setCouponStepSchedule( couponSteps );
    @PostLoad
    private void postLoad() {
    if ( interestFrequencyCode != null &&
    interestFrequencyCode.length() &gt; 0 )
    int intFreq = 2;
    try {
    intFreq = Integer.parseInt( interestFrequencyCode );
    catch ( Exception e ) {}
    if ( intFreq &lt;= 0 ) intFreq = 2;
    super.setInterestFrequency( intFreq );
    else {
    super.setInterestFrequency( 2 );
    if ( nextCallDate != null || parCallDate != null ) {
    CallSchedule _callSchedule = super.getCallSchedule();
    if ( _callSchedule == null ) {
    _callSchedule = new CallSchedule();
    super.setCallSchedule( _callSchedule );
    if ( nextCallDate != null ) {
    _callSchedule.addCall( nextCallDate, nextCallPrice );
    if ( parCallDate != null ) {
    _callSchedule.addCall( parCallDate, parCallPrice );
    @PrePersist
    @PreUpdate
    private void preUpdate() {
    switch ( super.getInterestFrequency() ) {
    case 2 : interestFrequencyCode = "2"; break;
    case 1 : interestFrequencyCode = "1"; break;
    case 4 : interestFrequencyCode = "4"; break;
    case 12 : interestFrequencyCode = "12"; break;
    case 99 : interestFrequencyCode = "99"; break;
    default : interestFrequencyCode = "2"; break;
    nextCallDate = null;
    nextCallPrice = 0.0;
    parCallDate = null;
    parCallPrice = 0.0;
    CallSchedule _callSchedule = super.getCallSchedule();
    if ( _callSchedule != null ) {
    Call call = _callSchedule.getNextCall();
    if ( call != null ) {
    nextCallDate = call.getDate();
    nextCallPrice = call.getAmount();
    call = _callSchedule.getNextParCall();
    if ( call != null ) {
    parCallDate = call.getDate();
    parCallPrice = call.getAmount();
    @Override
    public int hashCode() {
    return cusip != null ? cusip.hashCode() : 0;
    @Override
    public boolean equals( Object o ) {
    if ( !( o instanceof TaxableDescription ) ) return false;
    TaxableDescription otherDescription = (TaxableDescription)o;
    if ( cusip == otherDescription.cusip ) return true;
    if ( cusip != null ) return cusip.equals( otherDescription.cusip );
    return false;
    Server log entry...
    [#|2008-11-20T17:41:42.389-0600|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/SUNWappserver/domains/domain1/applications/j2ee-apps/Bondtrac-EE/Bondtrac-EE-pu.jar-BondtracPU|_ThreadID=36;_ThreadName=p: thread-pool-1; w: 44;_RequestID=5b92f658-e52c-4b83-aafc-454a052fc30b;|
    Local Exception Stack:
    Exception [TOPLINK-45] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DescriptorException
    {color:#ff0000}Exception Description: Missing mapping for field [f_COUPON_INFO.issue_id].{color}
    Descriptor: RelationalDescriptor(com.bondtrac.entities.TaxableDescription --&gt; [DatabaseTable(f_ISSUE), DatabaseTable(f_COUPON_INFO)])
    at oracle.toplink.essentials.exceptions.DescriptorException.missingMappingForField(DescriptorException.java:901)
    at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:154)
    at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:899)
    at oracle.toplink.essentials.queryframework.ReadObjectQuery.prepareForExecution(ReadObjectQuery.java:502)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:622)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:692)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:746)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.refresh(EntityManagerImpl.java:389)
    at com.sun.enterprise.util.EntityManagerWrapper.refresh(EntityManagerWrapper.java:511)
    at com.bondtrac.ejb.DescriptionDAOBean.getDescription(DescriptionDAOBean.java:76)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
    at $Proxy197.getDescription(Unknown Source)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.process(OfferingProcessorBean.java:1373)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.processOfferingEntity(OfferingProcessorBean.java:642)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.calculateOfferings(OfferingProcessorBean.java:926)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:77)
    at $Proxy198.calculateOfferings(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    |#]

    What database are you using? My guess is that the database you are using returns field names in Uppercase. While the database may not be case sensitive, most databases will convert the field names to either all upper or lower case when returning the metadata - which associates the fields to the values. In this case, it is looking for a value for "issue_id" in the returned results, when I suspect that the database returned a value for "ISSUE_ID". Try having your column names match what the database will return and see if you still get problems.
    The other part to this problem is that it does not appear mapped correctly. The primarykeyJoincolumn isn't using primary key fields (CUSIP_nbr is specified as the id), and you have a join table also using the "issue_id" field, so it really should be the id. Either way, the Secondary table is specifying f_ISSUE.issue_id to be a foreign key to f_COUPON_INFO.issue_id, and so the getFkIssueID annotation should be marked insertable=true, updateable =true and the annotation on getIssueID marked insertable=false, updatable=false,since it is set through the f_COUPON_INFO.issue_id field. Fixing this will also likely resolve the issue - the error says it can't find a mapping for the f_COUPON_INFO.issue_id but from looking at the code, what I believe it means is that it can't find a writable mapping. Reading this over again, it looks very confusing but I dont know if I can explain it much better. The field f_COUPON_INFO needs to be writeable and set by the application because you have marked it as controlling the field in f_ISSUE. The field in f_ISSUE needs to be read only, because the value is set/controlled by the value in f_COUPON_INFO.
    Best Regards,
    Chris

Maybe you are looking for