CMR 1:M with compound keys?

Pardon a possible repost, my original post disappeared.
I've got two tables with compound PKs. Does OC4J 9.0.3 support CMR for CMP beans with compound keys?
Thanks!

April,
I built a simple CMR Employee -> TimeCards (empno, timecardno as composite PK)
Here is the orion-ejb-jar.xml that demonstrates the ampping:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar>
<enterprise-beans>
<entity-deployment name="Employee" data-source="jdbc/OracleDS" table="EMP">
<primkey-mapping>
<cmp-field-mapping name="empno" persistence-name="EMPNO" persistence-type="NUMBER(4)"/>
</primkey-mapping>
<cmp-field-mapping name="empno" persistence-name="EMPNO" persistence-type="NUMBER(4)"/>
<cmp-field-mapping name="ename" persistence-name="ENAME" persistence-type="VARCHAR2(10)"/>
<cmp-field-mapping name="job" persistence-name="JOB" persistence-type="VARCHAR2(9)"/>
<cmp-field-mapping name="mgr" persistence-name="MGR" persistence-type="NUMBER(4)"/>
<cmp-field-mapping name="hiredate" persistence-name="HIREDATE" persistence-type="DATE"/>
<cmp-field-mapping name="sal" persistence-name="SAL" persistence-type="NUMBER(7,2)"/>
<cmp-field-mapping name="comm" persistence-name="COMM" persistence-type="NUMBER(7,2)"/>
<cmp-field-mapping name="deptno" persistence-name="DEPTNO" persistence-type="NUMBER(2)"/>
<cmp-field-mapping name="timecard_empno">
<collection-mapping table="TIMECARDS">
<primkey-mapping>
<cmp-field-mapping>
<entity-ref home="Employee">
<cmp-field-mapping persistence-name="EMPNO" persistence-type="NUMBER(4)"/>
</entity-ref>
</cmp-field-mapping>
</primkey-mapping>
<value-mapping type="debu.cmr3.TimecardLocal">
<cmp-field-mapping>
<entity-ref home="Timecard">
<cmp-field-mapping>
<fields>
<cmp-field-mapping name="empno" persistence-name="EMPNO" persistence-type="NUMBER(4)"/>
<cmp-field-mapping name="timecardno" persistence-name="TIMECARDNO" persistence-type="NUMBER(10)"/>
</fields>
</cmp-field-mapping>
</entity-ref>
</cmp-field-mapping>
</value-mapping>
</collection-mapping>
</cmp-field-mapping>
</entity-deployment>
<entity-deployment name="Timecard" data-source="jdbc/OracleDS" table="TIMECARDS">
<primkey-mapping>
<cmp-field-mapping>
<fields>
<cmp-field-mapping name="empno" persistence-name="EMPNO" persistence-type="NUMBER(4)"/>
<cmp-field-mapping name="timecardno" persistence-name="TIMECARDNO" persistence-type="NUMBER(10)"/>
</fields>
</cmp-field-mapping>
</primkey-mapping>
<cmp-field-mapping name="timecardno" persistence-name="TIMECARDNO" persistence-type="NUMBER(10)"/>
<cmp-field-mapping name="workhours" persistence-name="WORKHOURS" persistence-type="NUMBER(4,2)"/>
<cmp-field-mapping name="timecarddate" persistence-name="TIMECARDDATE" persistence-type="DATE"/>
<cmp-field-mapping name="employee_empno">
<entity-ref home="Employee">
<cmp-field-mapping persistence-name="EMPNO" persistence-type="NUMBER(4)"/>
</entity-ref>
</cmp-field-mapping>
</entity-deployment>
</enterprise-beans>
<assembly-descriptor>
<default-method-access>
<security-role-mapping impliesAll="true" name="&lt;default-ejb-caller-role>"/>
</default-method-access>
</assembly-descriptor>
</orion-ejb-jar>

Similar Messages

  • Crystal Report with Compound Key

    Hi,
    I have Characteristic with Compound Key in SAP BW 7.0. This Characteristic use to store the Purchase Order Item Line. The Compound Key is the Purchase Order Document.
    So I will have the following fields created for this Characteristic:
    Compound Key (Purchase Order Document) 5600001982, Purchase Order Item Line 10
    I created a Query for this Characteristic and I have the following as result:
    10 ...
    20 ...
    30 ...
    All works fine.
    Now I created the Crystal Report from this Query. When I display this Characteristic in Crystal Report, I have the following:
    5600001982/10
    5600001982/20
    5600001982/30
    Is this a bug or Crystal not support the Compound Key?
    Please advise, thank you.

    Hello,
    Did you get this resolved.
    Were you able to display characteristics in Crystal without the compounding characteristic.
    Thanks.

  • Crystal Report and InfoObject with Compound Key

    Hi,
    I have Characteristic with Compound Key in SAP BW 7.0. This Characteristic use to store the Purchase Order Item Line. The Compound Key is the Purchase Order Document.
    So I will have the following fields created for this Characteristic:
    Compound Key (Purchase Order Document) 5600001982, Purchase Order Item Line 10
    I created a Query for this Characteristic and I have the following as result:
    10 ...
    20 ...
    30 ...
    All works fine.
    Now I created the Crystal Report from this Query. When I display this Characteristic in Crystal Report, I have the following:
    5600001982/10
    5600001982/20
    5600001982/30
    Is this a bug or Crystal not support the Compound Key?
    Please advise, thank you.

    a

  • CMR with Compound Keys

    Is it possible in S1AS7 to have a CMR with two entity beans that are each composed of compound keys?
    For example:
    Bean A:
    Primary key: variable1 & variable2
    Bean B:
    Primary key: variable1 & variable2 & variable3
    CMR is 1-N (Bean A has many of Bean B) and associated on variable1 and variable2.
    Any help would be grateful.
    Matt

    Hi Matt,
    You can map your beans like:
    <entity-mapping>
    <ejb-name>Schedule</ejb-name>
    <table-name>SCHEDULE</table-name>
    <cmp-field-mapping>
    <field-name>runner</field-name>
    <column-name>SCHEDULE.RUNNER</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>scheduleName</field-name>
    <column-name>SCHEDULE.SCHEDULENAME</column-name>
    </cmp-field-mapping>
    <cmr-field-mapping>
    <cmr-field-name>scheduleRunDefinitions</cmr-field-name>
    <column-pair>
    <column-name>SCHEDULE.RUNNER</column-name>
    <column-name>SCHEDULERUNDEFINITION.RUNNER</column-name>
    </column-pair>
    <column-pair>
    <column-name>SCHEDULE.SCHEDULENAME</column-name>
    <column-name>SCHEDULERUNDEFINITION.SCHEDULENAME</column-name>
    </column-pair>
    </cmr-field-mapping>
    </entity-mapping>
    <entity-mapping>
    <ejb-name>ScheduleRunDefinition</ejb-name>
    <table-name>SCHEDULERUNDEFINITION</table-name>
    <cmp-field-mapping>
    <field-name>runner</field-name>
    <column-name>SCHEDULERUNDEFINITION.RUNNER</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>scheduleName</field-name>
    <column-name>SCHEDULERUNDEFINITION.SCHEDULENAME</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>runDay</field-name>
    <column-name>SCHEDULERUNDEFINITION.RUNDAY</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>runNumber</field-name>
    <column-name>SCHEDULERUNDEFINITION.RUNNUMBER</column-name>
    </cmp-field-mapping>
    <cmr-field-mapping>
    <cmr-field-name>schedule</cmr-field-name>
    <column-pair>
    <column-name>SCHEDULERUNDEFINITION.RUNNER</column-name>
    <column-name>SCHEDULE.RUNNER</column-name>
    </column-pair>
    <column-pair>
    <column-name>SCHEDULERUNDEFINITION.SCHEDULENAME</column-name>
    <column-name>SCHEDULE.SCHEDULENAME</column-name>
    </column-pair>
    </cmr-field-mapping>
    </entity-mapping>
    Please let me know, if you have further questions!
    -- markus.

  • Problem With Compound Primary Key

    Hello Experts,
      i am facing some probelm with copound primarykey.
      the Probelm is
    i have data base table which has compound primary key  for that one i have created the entity bean(CMP) and primary key of type compound.using this i am able to insert record into databse but for updation i am using
    <b>findbyPrimarykey()</b> method ,for that methos i am passing
    primary key object with compound key values.
    when i am executing this methos it is throwing <b>nosuchobject exception.</b>
    what might be the problem
    any help will be appriciated
    thanks in advance
    With Regds
    Naidu

    Hi,
    Is ur compound primarykey class is something like this?
    public class PrimaryKey implements java.io.Serializable {
          public String id = "";
          public int no = 0;
          //a default constructor is required:
          public PrimaryKey() { }
          // optional constructor fo clients:
          public PrimaryKey(String id, int no) {
               this.id = smsId;
               this.no = no;
          public String toString() {
               return id + "" + no;
         public boolean equals(Object obj) {
              if (obj == null || !(obj instanceof PrimaryKey))
                      return false;
                   else if ((((PrimaryKey)obj).no == no) && (((PrimaryKey)obj).id.equals(id)))
                      return true;
                   else
                      return false;     
          public int hashCode() {
                return id.hashCode() + no ;

  • How to use the Compounding Key in BPC10NW like BW info objects?

    Hi experts.
    We are longing the suitable solution in BPC-NW 10.0 to deal with compounding key like BW info objects.
    We want to define the dimension with compounding key MATERIAL and PLANT, but BPC-NW 10.0 doesn't support it. Therefore we just defined the dimension "PLANT" as entity and "MATERIAL" as user-defined dimension with concatinated key "Material code-Plant code" as ID.
    For instance:
    -[Dimension PLANT] as type-E (entity)
    ID
    1000
    2000
    3000
    -[Dimension MATERIAL] as type-U (user-defined)
    ID        ENTITY MATNR
    1000-AAAA 1000   AAAA
    1000-BBBB 1000   BBBB
    2000-AAAA 2000   AAAA
    2000-CCCC 2000   CCCC
    3000-BBBB 3000   BBBB
    3000-CCCC 3000   CCCC
    (ENTITY and MATNR were defined as properties, and ENTITY filled the each member including dimension Plant)
    Now we built a input form with following conditions:
    -Page axis : ACCOUNT=Revenue, etc...
    -Row axis : ENTITY=1000 or 2000, MATERIAL=all
    -Column axis : TIME=Jan, Feb, Mar...
    The result report came out as follows:
    Revenue
    PLANT  MATERIAL   Jan Feb Mar ...
    1000   1000-AAAA  0   0   0   ...
    1000   1000-BBBB  0   0   0   ...
    1000   2000-AAAA  0   0   0   ...
    1000   2000-CCCC  0   0   0   ...
    1000   3000-BBBB  0   0   0   ...
    1000   3000-CCCC  0   0   0   ...
    2000   1000-AAAA  0   0   0   ...
    2000   1000-BBBB  0   0   0   ...
    2000   2000-AAAA  0   0   0   ...
    2000   2000-CCCC  0   0   0   ...
    2000   3000-BBBB  0   0   0   ...
    2000   3000-CCCC  0   0   0   ...
    But we expected to have a report restricted MATERIAL with their property on specified PLANT in member selector such as:
    Revenue
    PLANT  MATERIAL   Jan Feb Mar ...
    1000   1000-AAAA  0   0   0   ...
    1000   1000-BBBB  0   0   0   ...
    2000   2000-AAAA  0   0   0   ...
    2000   2000-CCCC  0   0   0   ...
    How do we obtain the expected result? Please give us the good solution!
    Best regards,
    Masa

    Hi Vadim.
    GREAT! Our requirement is fulfilled by that way you described. Special thanks for your help!!!
    Best regards,
    Masa

  • Problem with update of BLOB field in a table with compound primary key

    Hi,
    I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
    ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
    Unable to process row of table ZPRAVA.
    OK
    Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
    In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
    Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
    Thanks in advance.
    Zdenek

    Is there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
    Scott

  • JPA compound keys in entities

    Hi, just a small question on how the compound keys work.
    I'm developing an app using EclipseLink2.0. If I try to build an entity with a compound key composed by primitive types (such as String, int, java.sql.Date...) all is fine, but when I put in it a user-made Entity i get this error:
    Exception [EclipseLink-7149] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: The composite primary key attribute [idnomeCategoria] of type [null] on entity class [class entities.Sottocategoria] should be of the same type as defined on its primary key class [entities.SottocategoriaPK]. That is, it should be of type [entities.Categoria].where the entities are the following:
    @Entity
    @IdClass(SottocategoriaPK.class)
    @Table(name = "sottocategoria")
    public class Sottocategoria implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        private Categoria idnomeCategoria;
        @Id
        private String nomeSottocategoria;
        public Sottocategoria() {
        public Sottocategoria(Categoria idnomeCategoria, String nomeSottocategoria) {
            this.idnomeCategoria = idnomeCategoria;
            this.nomeSottocategoria = nomeSottocategoria;
        public Categoria getIdnomeCategoria() {
            return idnomeCategoria;
        public void setIdnomeCategoria(Categoria idnomeCategoria) {
            this.idnomeCategoria = idnomeCategoria;
        public String getNomeSottocategoria() {
            return nomeSottocategoria;
        public void setNomeSottocategoria(String nomeSottocategoria) {
            this.nomeSottocategoria = nomeSottocategoria;
    public class SottocategoriaPK implements Serializable {
        private Categoria idnomeCategoria;
        private String nomeSottocategoria;
        public SottocategoriaPK() {
        public SottocategoriaPK(Categoria idnomeCategoria, String nomeSottocategoria) {
            this.idnomeCategoria = idnomeCategoria;
            this.nomeSottocategoria = nomeSottocategoria;
        public Categoria getIdnomeCategoria() {
            return idnomeCategoria;
        public void setIdnomeCategoria(Categoria idnomeCategoria) {
            this.idnomeCategoria = idnomeCategoria;
        public String getNomeSottocategoria() {
            return nomeSottocategoria;
        public void setNomeSottocategoria(String nomeSottocategoria) {
            this.nomeSottocategoria = nomeSottocategoria;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (idnomeCategoria != null ? idnomeCategoria.hashCode() : 0);
            hash += (nomeSottocategoria != null ? nomeSottocategoria.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            if (!(object instanceof SottocategoriaPK)) {
                return false;
            SottocategoriaPK other = (SottocategoriaPK) object;
            if ((this.idnomeCategoria == null && other.idnomeCategoria != null) || (this.idnomeCategoria != null && !this.idnomeCategoria.equals(other.idnomeCategoria))) {
                return false;
            if ((this.nomeSottocategoria == null && other.nomeSottocategoria != null) || (this.nomeSottocategoria != null && !this.nomeSottocategoria.equals(other.nomeSottocategoria))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "entities.SottocategoriaPK[idnomeCategoria=" + idnomeCategoria + ", nomeSottocategoria=" + nomeSottocategoria + "]";
    @Entity
    @Table(name = "categoria")
    public class Categoria implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @Basic(optional = false)
        @Column(name = "nomeCategoria", nullable = false, length = 70)
        private String nomeCategoria;
        public Categoria() {
        public Categoria(String nomeCategoria) {
            this.nomeCategoria = nomeCategoria;
        public String getNomeCategoria() {
            return nomeCategoria;
        public void setNomeCategoria(String nomeCategoria) {
            this.nomeCategoria = nomeCategoria;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (nomeCategoria != null ? nomeCategoria.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Categoria)) {
                return false;
            Categoria other = (Categoria) object;
            if ((this.nomeCategoria == null && other.nomeCategoria != null) || (this.nomeCategoria != null && !this.nomeCategoria.equals(other.nomeCategoria))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "entities.Categoria[nomeCategoria=" + nomeCategoria + "]";
    EntityManagerFactory emf=Persistence.createEntityManagerFactory("tryPU");
    EntityManager em = emf.createEntityManager();
    Categoria c = new Categoria("prova");
    Sottocategoria s = new Sottocategoria(c,"riprova");
    em.getTransaction().begin();
    em.persist(c);
    em.persist(s);
    em.getTransaction().commit();
    em.close();If, instead of Categoria entity as part of the compound class, I put
    String nomeCategoria;all is fine.
    I wasn't able to figure out why... or where's the error.
    Any suggestion on how to proceed?
    My provvisional solution then is to use simple keys by putting an extra field as key of the entity (Sottocategoria in this case). Is that fine?
    Thanks for the answers!
    Edited by: muganz on Feb 25, 2010 10:37 PM

    The JPA specification does not allow the use of Entities as PKs. In the specification the PKs must be primitive values or PK classes derived from related entites.
    --Gordon                                                                                                                                                                                                                                                                                                                                                           

  • Problem with compound objects in IP input-ready queries

    Hi, gurus!
    I have following problem:
    In IP input-ready query I have 2 restricted key figures (KF1 and KF2):
    KF1 restrictions:
          Char1 = X1
          Char2 = 100
    KF2 restrictions:
          Char1 = X2
          Char2 = 100
    Char2 is compound with Char1, so KF1 should be restricted as Char2 = X1/100.
    That query in example doesn't work, all cells are grey. But, If I'll change restriction of Char2 in any key figures everything will be fine. It looks like the system ignores Char1 restriction. E.g.
    KF1 restrictions:
          Char1 = X1
          Char2 = 101
    KF2 restrictions:
          Char1 = X2
          Char2 = 100
    (Ok)
    I think it is some kind of system error, but can't find the related Nota. Maybe somebody already solved the same problem?
    Edited by: Mikhail Sychev on Jun 28, 2011 8:54 AM

    Hi Mikhail,
    This is typical issue with compounded infoobjects.
    I can think about 2 solutions.
    1) Create a hierarchy on the compounded infoobject and restrict the KFs by hierarchy nodes rather than direct filter values on the infoobject.
    2) If not, create an nav attribute on the compunded infoobject, in which you have to concatenate values of both the character values like 'X1100'. You this navigational attribute in the keyfigure filter.
    Thanks,
    Krishnan

  • BroadcastOutputAdapter: monotonic compound keys - possible?

    I'm trying to architect my app to use BroadcastOutputAdapter.
    I'd like to use compound keys to be able to identify events based on timestamp and a custom property. I'm also trying to use monotonic approach as my key is based on a timestamp and have only a custom value to differentiate one from the other (like the accountId sample from the cep developer guide).
    However, when implementing the key based on the "Example 21–25" of CEP Dev Guide, I got an error saying my compound key class must implement Comparable.
    That's where my doubt is: how can I implement comparable and still take into account the custom property in the comparison as the comparable is just about bigger, smaller, and equal? Seems that if I use only the timestamp value, my custom property would be ingored and I would compare just based on the timestamp and I could end up comparing timestamp from key of accountId = A with timestamp from key of accountid = B.
    Thanks,
    Daniel

    Hi Junger,
    The point is that I may have the following events being output:
    ID TS
    A 9
    A 10
    B 7
    B 8
    In this case, I'm interested in all messages for A and B however, seems to me (please, correct me if I'm wrong) that if I compare only the timestamp, I'll consider timestamps 7 and 8 to be smaller than the timestamps 9 and 10, however they are output for different IDs and the events for ID B would be pruned and I can't afford that.
    Am I right?
    Thanks
    Daniel

  • Compound key values

    Hi,
    I define ITEM NO as main infoobject and compound key fields as Branch, Location, lotno, and fiscal year. When I select ITEM NO in the report I am getting all key field values.For example sample data: BRAN1/LOC1/LOT1/200604/ITEM01 but I want only ITEM01 as output. What I did I put the Branch, Location, Lot no, fiscal year under Filter still its giving whole key values when I select ITEMNO. Can anybody have any idea?
    Thanks in advance
    Randy

    Hi,
    this is the usual behaviour for compunded characteristics.
    If you drilldown the coumpounding chars of your ITEM, they will disappear from the display.
    One nice way to avoid this behaviour in to add a navigational attr in your char which you'll populate with the same value then the value populating your ITEM.
    By doing this you'll be able to see your ITEM value "detached" of its coumpounding characteristics values...
    hope this helps...
    Olivier.

  • One-to-many Relationships for entities with compound PK

    Hi,all,
    I am wondering how the behavior of a setter method would be for one side of the 1-to-many relations Base on EJB spec 2.x ,if we use the setter method to set a new collection,then the old relations are "clear" before the new relationships are established. which means the old referential integrity are removed from the respective tables in Database .But what if the referential table is with a compoud pk.Here
    is one example:
    Two entitybeans,say A and B , where their underlying tables are Table A and B in the Database.For A the primary key is Pk_1,but the B's primary key is (Pk_1,B1),where B1 is another column in table B. we have a setter method in entitybean A for the relationship of bean B,say setB(Collection collectionOfBs),.My questions is based on EJB spec, is container supposed to perform "clean" job, which dissassociate those old rows in table A with Table B before set the those new relationships when we call the setter to set a new relationships.
    Thanks

    My questions is based on EJB spec, is
    container supposed to perform "clean" job, Yes, I think so. EJB spec says nothing special about compound keys in this case.
    which
    dissassociate those old rows in table A with Table B
    before set the those new relationships when we call
    l the setter to set a new relationships.
    Thanks

  • Master data  deletion -  text with compounding

    HI All,
    I have " 0PYMT_METH" Info object which is having "0PYMT_METH_TEXT" Data source.  " 0PYMT_METH" Info object is having text and  0country with compounding attribute.
    - First , I did not load this master data , I loaded transactional data. so some values for key are loaded without text and country in master data.
    - Later i came to know we need text for paymnt method, then i loaded again master data. but i am not able to delete previous entries which have blank text.
    -i deleted data with SIDS and deleted all the transactional data , still i am getting that entries with blanks.Because of this in report output i am getting # value for the text.
    How to solve this? Is it because of compounding attribute ? If so can u please suggest regarding this ASAP?
    Thanks in advance,
    Jo

    Hi,
    Please check the data load for the text as you must be loading
    MAster Data CHAR , Country , LANGUAGE and TEXT as fields in your data source.
    As the Text can be over written so if the porper key fields are matched the text should be modifyed everytime.
    SO please check what combination you r  loading .
    ANyway if that is one time , and very less data you can manually maintain th text for master data .
      In order to delete teh data you use SE14 use the text table there to delete the data. PS : This is not recommended solution .

  • User Exit  for Compounded Key

    I have written a FM that was included in a user exit.  The purpose of my user exit is to restrict  certain  Accounts that my Query uses.  The problem that I run into is that the  Account is a numerical value which is NOT a key.  For example, I could have one  account that exists in two different reporting divisions such as Africa and Asia and might not want to restrict Africa.  If I don't take into consideration the divison, then I will be eliminating required  Accounts.  I thought about creating a seperate user exit for the reporting division but then I might run into the problem of eliminating certain  Accounts that are associated with that division.  I'm thinking that If I create another user exit for the division, then I will somehow have to link the two(not sure how this would work). Secondly, the divison and account is a compounded key in my InfoCube.  There is not InfoObject that holds the compounded key so I can not create a variable of this type.
    I'm not sure what would be the best way to solve this problem so any input you can give is greatly appreciated.
    Thanks,
    Nyrvole

    Hi Reddy,
    This user exit can creating & activating in project by using CMOD Transaction code.
    AFAR0002 is Enhanc for external determination of depreciation.
    Thank you
    Anil

  • Compound Key

    Creating a master list that selects an update/insert form is quite simple if the tables have a primary key which is one column. I have many tables (doesn't everyone?), that are dependent tables and therefore require a compound key (i.e., parent key/child key), where there is one parent with many children.
    The ADDT Create Dynamic List Wizard has a place to specify the primary key; however, it is only one column. How do I tell it that it needs to pass both the parent and child keys to the form, and how do I specify in the form that it is to look at both URL parameters?

    Hi T A K
    Thanks for confirmation.
    So I would say all the Compound Keys is normally updated by the Attribute datasource, correct?
    I have another question, if I would like to put in the coding in the Routine like:
    If 0GL_Account is >= 100000 then
    Chart of Account = "EURO
    Else
    Chart of Account = "USTX"
    End if.
    I would like this coding to be place in the Routine of Transfer Structure of the 0GL_Datasource Attribute Datasource.
    Do you know if this possible?
    Can you please provide me real abap coding with correct syntax?

Maybe you are looking for

  • 10.4.6 Upgrade Problem - Hard Disk

    hi, i just installed the 10.4.6 update and my computer got as far as the white screen with the gray apple on it. it's been sitting this way for over 45 minutes. i powered down to restart and now i can't get past the gray apple screen. i tried to boot

  • Sub: code for accessing  4  webcams from the usb ports

    sir , i want to connect 4 webcams in the system and access these four cams symultaneousely . how can i do that using java... by ,johnpaul

  • Internet sales query

    Hello Friends, Can anybody give me the list of J2EE components, which needs to be deployed for ISA B2B Scenario and User Administration? Thanks in advance. Best Regards Kushal

  • Multitouch with SynPS/2 Synaptics TouchPad

    Hi, I am trying to enable multitouch on Samsung n220 netbook. I'm sure this netbook supports multitouch (works on windows 7). Mousepad type is SynPS/2 Synaptics TouchPad. I copied synaptics fdi file from /user/share/hal/... to /etc/hal/policy/... and

  • Resource calenders

    Dear All, i have the situation where i have multiple resources with different calenders (working shift) in the same organization , let say resource A work 24 hour and resource B work 12 hour , i have made 2 calenders Calender 1= 24 hr and calender 2: