How to map primary table for CMP?

I am using the SunONE studio EE and trying to deploy a CMP Entity bean and get the following error:
Validation failed for board.ejb.user.UserBean. Verify that all fields are mapped.
CMP Mapping Error in bean User:: Warning: The bean pcImpl0.moduleComp0.board.ejb.user.User is not mapped.
Set the primary table for the bean.
I have the CMP resou4rce set to the JNDI name of my database connection but I can't figure out hpw to set the primary table for the bean. Any help would be apprecieated.

You will need to do the mapping via the UI available on the bean (in the context of the module).
If you expand the ejb-module, you can select a bean that is in that module.
There are two SunONE App Server specific tabs added to the property sheet for a vselected CMP bean.
Entering data for these properties will do the mapping and resolve the error you are encountering.
Note: The current implementation does not conjure up tables for the entity beans (unlike the RI).

Similar Messages

  • Where to set Mapped Primary Table

    I am using sunOne studio 4 update 1, EE.
    I have created a schema by doing New->Database->Database Schema, all OK.
    I have then created related ejbs by doing New->J2EE->Related CMP Entity EJBs, all OK.
    Now I want to view the mapping information so
    I look at the CMP bean entry properties under the EJB module but I see no mapping information in Sun ONE AS Mappings tab. !!!
    When I try to edit the protected field I get warning indicating that bean must have a valid Mapped primary table. It tells me to set a Mapped Primary Table in the main properties sheet for this bean.
    My problem is I can not find this sheet
    Please help before I go crazy
    Thanks in advance
    Tex...

    OK I know where to set these fields now.
    It is set in the Sun ONE AS tab pane.
    However, here comes the next problem.
    The Wizard generated schema does not recognise the primary key fields so I can not map CMP to any table :-)
    I think this is a bug because I have generated schemas from 3 different databases (IBM, MySWL, SAP) and the tables have primary key fields.
    When I get a connection in Runtime Pane under Database node, I can see the primary fields are highlighted with red color.
    However, when I obtain the schema using, New->Database->Database Schema, there are no key fields generated.
    Anyone have any ideas, work around?
    Thanks
    Tex...

  • How to check with table for cursor..?

    How to check with table for cursor..?
    Here I have Table temp_final_plan
    Here i want to update if already exit...below is the procedure....
    CREATE OR REPLACE PROCEDURE spu_final_profit_plan
    AS
    -- Constant declarations
      ln_errnum number := 0;
    -- Variable declarations
       ls_errmsg app_errors.err_msg%TYPE;
       ls_appmsg app_errors.app_msg%TYPE;
       ls_appid  app_errors.app_id%TYPE;
    -- Cursor declaration for final_update_el
    CURSOR cur_final_update_el IS
        select '910' ent,
               '9127316' center,
               post_acct,
               sum(avg_mtd_01) sum_avg_mtd_01,
               sum(avg_mtd_02) sum_avg_mtd_02,
               sum(avg_ytd_01) sum_avg_ytd_01,
               sum(avg_ytd_02) sum_avg_ytd_02
          from mon_act_cypy
         where rec_type = 'A'
           and sum_flag = 'D'
           and yr = '2008'
           and substr(ctr_or_hier, 1, 2) = 'el'
           and ent || sub_ent in
               (select ent || sub_ent
                  from ent_ref
                 where roll_ent || roll_sub_ent = '999100')
         group by post_acct
        having sum(avg_mtd_01) <> 0
            or sum(avg_mtd_02) <> 0
            or sum(avg_ytd_01) <> 0
            or sum(avg_ytd_02) <> 0;
    -- Cursor declaration for final_update
    CURSOR cur_final_update IS
        select b.plan_ent b_plan_ent,
               b.plan_ctr b_plan_ctr,
               a.post_acct a_post_acct,
               sum(a.avg_mtd_01) sum_avg_mtd_01,
               sum(a.avg_mtd_02) sum_avg_mtd_02,
               sum(a.avg_ytd_01) sum_ytd_mtd_01,
               sum(a.avg_ytd_02) sum_ytd_mtd_02
          from mon_act_cypy a,
               plan_unit_tbl b
         where a.ent || a.ctr_or_hier = b.ent || b.ctr_or_hier
           and a.rec_type = 'A'
           and a.sum_flag = 'D'
           and a.yr = '2008'
           and b.hier_tbl_num = '001'
           and a.ent || a.sub_ent in
               (select ent || sub_ent
                  from ent_ref
                 where roll_ent || roll_sub_ent = '999100')
         group by b.plan_ent, b.plan_ctr, a.post_acct
        having sum(a.avg_mtd_01) <> 0
            or sum(a.avg_mtd_02) <> 0
            or sum(a.avg_ytd_01) <> 0
            or sum(a.avg_ytd_02) <> 0;
    -- Begin the procedure body
       BEGIN
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update_el IN cur_final_update_el
       LOOP
       EXIT WHEN rec_final_update_el%NOTFOUND;
       IF rec_final_update_el. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,       
           WHERE ent = rec_final_update_el.ent
             AND center = rec_final_update_el.center
             AND post_acct = rec_final_update_el.post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
                                             rec_final_update_el.center,
                                             rec_final_update_el.post_acct,
                                             rec_final_update_el.sum_avg_mtd_01,
                                             rec_final_update_el.sum_avg_mtd_02,
                                             rec_final_update_el.sum_avg_ytd_01,
                                             rec_final_update_el.sum_avg_ytd_02);
       END IF;
       END LOOP;
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update IN cur_final_update
       LOOP
       EXIT WHEN rec_final_update%NOTFOUND;
       IF rec_final_update. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update.sum_avg_ytd_02,       
           WHERE ent = rec_final_update.b_plan_ent
             AND center = rec_final_update.b_plan_ctr
             AND post_acct = rec_final_update.a_post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update.b_plan_ent,
                                             rec_final_update.b_plan_ctr,
                                             rec_final_update.a_post_acct,
                                             rec_final_update.sum_avg_mtd_01,
                                             rec_final_update.sum_avg_mtd_02,
                                             rec_final_update.sum_avg_ytd_01,
                                             rec_final_update.sum_avg_ytd_02);
       END IF;
       END LOOP;
    -- EXCEPTION handling section
       EXCEPTION
    -- Fire OTHERS Exception case by default
       WHEN OTHERS THEN
    -- ROLL BACK Transaction, if any failure
       ROLLBACK;
       ln_errnum := SQLCODE;
       ls_errmsg := SUBSTR(SQLERRM, 1, 100);
    -- Log the ERRORS into APP_ERRORS table using SPU_LOG_ERRORS procedure
       spu_log_errors(ln_errnum, ls_errmsg, ls_appid, ls_appmsg);
    -- End of the stored procedure
    END spu_final_profit_plan;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I'm not sure what you mean by, 'How to check with table for cursor..?' but I'll offer a comment on your Code Snippet. I think you want to know how to check if a record exists so you know if you need to perform an INSERT or an UPDATE.
    Here is a snippet of your code. I'll put my comments in "Comment" style in your code.
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update_el IN cur_final_update_el
       LOOP
    /* There is no need to test for %NOTFOUND since you are using Cursor FOR Loop! 
    ** This construct automatically exits when the last record is processed. */
       EXIT WHEN rec_final_update_el%NOTFOUND;
    /* Is this where you would like to know how to Check if the record already exist??
    ** I asked this because, 'rec_final_update_el.' is not valid syntax.  Are you looking for
    ** an Cursor Attribute or Method you can check here? 
    ** I would suggest a Primary Key or Unique Index on ENT, CENTER, and POST_ACCT
    ** on the TEMP_FINAL_PLAN table. Then simply perform an INSERT and code an
    ** Exception to UPDATE when you get a DUP_VAL_ON_INDEX exception.  Otherwise,
    ** you will need to simply run an Implicit or Explicit Cursor to test if the row exists and
    ** use this return value to determine if you should INSERT or UPDATE.  */
       IF rec_final_update_el. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,       
           WHERE ent = rec_final_update_el.ent
             AND center = rec_final_update_el.center
             AND post_acct = rec_final_update_el.post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
                                             rec_final_update_el.center,
                                             rec_final_update_el.post_acct,
                                             rec_final_update_el.sum_avg_mtd_01,
                                             rec_final_update_el.sum_avg_mtd_02,
                                             rec_final_update_el.sum_avg_ytd_01,
                                             rec_final_update_el.sum_avg_ytd_02);
       END IF;
       END LOOP;I hope I've answered your question, but if I haven't please provide more details so we can better understand your request.
    Craig...

  • How to desighn a table for below logic

    Hi all,
    Could  any body help me , how to design a table for below requirements
    Ticketing Status
    Departure Date/Time
    Domestic Point of Sale
    International Point of Sale
    Yes
    Outside of 24 hours
    Immediate
    Immediate
    Yes
    Inside of 24 hours
    Immediate
    Immediate
    No
    Outside of 24 hours
    24 hours after Project review or 20 hours prior to departure, whichever is earlier
    72 hours after Projectreview or 20 hours prior to departure, whichever is earlier
    No
    Inside of 24 hours
    4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hours
    4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hours

    CREATE TABLE [dbo].[POS_Table](
    [POSID] [int] IDENTITY(1,1) NOT NULL,
    [Ticketing Status] [varchar](3) NULL,
    [Departure Type] [varchar](7) NULL,
    [Departure DateTime Hr] [int] NULL,
    [POSType] [varchar](15) NULL,
    [POSAfterProject Review Hr] [int] NULL,
    [PriorToDeparture Hr] [int] NULL,
    [Immediate Hr] [int] NULL,
    CONSTRAINT [PK_POS_Table] PRIMARY KEY CLUSTERED
    [POSID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    The rows will look like as below,
    POSID
    Ticketing Status
    Departure Type
    Departure DateTime Hr
    POSType
    POSAfterProject Review Hr
    PriorToDeparture Hr
    Immediate Hr
    1
    Yes
    Outside
    24
    Domestic
    0
    0
    0
    2
    Yes
    Inside
    24
    Domestic
    0
    0
    0
    3
    Yes
    Outside
    24
    International
    0
    0
    0
    4
    Yes
    Inside
    24
    International
    0
    0
    0
    5
    No
    Outside
    24
    Domestic
    24
    20
    0
    6
    No
    Outside
    24
    International
    72
    20
    0
    7
    No
    Inside
    24
    Domestic
    4
    4
    4
    8
    No
    Inside
    24
    International
    4
    4
    4
    Regards, RSingh

  • How to create internal table for a structure in BSP

    hi ,
    I have created a Structure in BSP.I want to create an internal table for that Structure. But in my coding ie.
    <% data: begin of itab_1 .
                     include type zuvendstr.
                     data:end of itab_1.
                     data wa_str like line of itab_1.
                     loop at itab_1 into wa_str. %>
                    <tr>
                     <td><%=wa_str-name%> </td>
                           <%endloop.%>
    In this zuvendstr is Structure ,wa_str is workarea and itab_1 is an Internal table.But it is showinng an error that itab_1 is unknown.But we cannot define internal tables for an Structure in Page Attributes.So,please resolve how to create internal table for Structure in BSPS

    Hi,
    You can define itab_1 like this (assuming zuvendstr is a structure type):
    DATA: itab_1 TYPE TABLE OF zuvendstr.
    Regards,
    Tanguy

  • How to map import process for items

    Dear All,
    can anyone guide me how to map import process for items for our customer
    what i understand is this process in B one
    Raise PO
    GRPO
    Landed Cost
    AP Invoice
    I want to know whether this is correct. Also in this process their are clearing agents who perform the formalities at customs office and then raise bill to client for the same

    Hi,
    The process looks correct.  For cost related to clearing agents who perform the formalities at customs office, use landed cost.
    Thanks,
    Gordon

  • How to map 2 tables together into a new one, like an Union?

    Hi.
    I am new in Oracle Data Warehouse Builder and what I'm wanting to do could be simple.
    My question is: How to map 2 tables into a new one? That is, what I need is to do a Union.
    See the following tables:
    What I have is:
    ---------------+ ---------------+
    | A | B | | A | B |
    |--------------- |---------------
    | 10 | 34 | | 13 | 39 |
    ---------------+ ---------------+
    Table 1 Table 2
    What I wish is:
    ---------------+ ----------------------+
    | A | B | Original table |
    |--------------- ----------------------+
    | 10 | 34 | 1 |
    |--------------- ----------------------+
    | 13 | 39 | 2 |
    |--------------- ----------------------+
    Then, I need put all data together into a new table and this new table should has a new column showing the original source of data to each record.
    Can I do such thing?
    I'm using the Oracle Warehouse Builder and trying to do a map in this way.
    Any hint will be very helpful. I also will appreciate an indication of some document which can show how to do it.
    Thanks .
    Rodrigo Pimenta.
    Brazil.

    Use the SET OPERATOR. That should help i guess.

  • How to know the tables for a datasource like 2lis_17_order

    Hi,
    How to know the tables for a data source like 2lis_17_order, i have checked in Extract structure of that data source, only fields are visible but how will i know that these fields are getting extracted from so and so tables?
    pls respond. thanks in advance

    Hi,
    Go to RSO2 at source system, Enter data source and click on display.
    if its table based then you can see table name there it self.
    if its view based then notedown the view name and go to  SE11, provide view and click on display. see joined table names there.
    Thanks

  • How's this partition table for my server?

    How's this partition table for my server?  Web/DNS/DHCP/Mail Server.
    hdd1: ~8gb total
    /boot - 100mb
    swap - 1gb
    / - rest of drive
    hdd2: ~155gb total
    /var - whole drive
    This is a Compaq ProLiant 5500 server with 10 drives.  Will most things be installed inside /var or what?

    Zetsumei wrote:Web/DNS/DHCP/Mail Server.
    Web = /srv
    DNS = /var
    DHCP = /var
    Mail = Depends which package you use. I use postfix and told it to use /srv
    I would half your swap, reduce /var and put the extra space into /srv
    Also create a separate /tmp and /home to prevent accidental or deliberate DoS attacks by filling your / partition
    Here's what I use on my Web / DNS / FTP server:
    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda 493M 176M 317M 36% /
    /dev/xvdc 31M 674K 29M 3% /boot
    /dev/lvmData-home 62M 26M 34M 44% /home
    /dev/lvmData-usr 2.0G 848M 1.1G 45% /usr
    /dev/lvmData-tmp 496M 20M 451M 5% /tmp
    /dev/lvmData-srv 1.5G 769M 667M 54% /srv
    /dev/lvmData-var 496M 231M 241M 49% /var
    /dev/lvmData-pacman 384M 303M 82M 79% /var/cache/pacman
    /dev/lvmData-backup 5.5G 4.6G 565M 90% /mnt/backup

  • How to find an table for storing the employee salary

    hi,
           how to find an table for storing employee salary .. In which table those details are stored .. Please reply me.
    regards,
    kumar

    Hi,
    You can see the basic salary details from table -pa0008.If you can see the payroll data,then its not stored in transparent table.its in cluster.For viewing that,you can see through transaction code - pc_payresult.
    Regards,
    Manoj.

  • How to find Related Tables for the Tcode given.

    How to find Related Tables for the Tcode given. (master data)
    Thanks in advance.

    Hi Sridhar,
    Welcome to SDN.
    The tables for a given transaction can be seen in the transaction SE80.
    First goto SE93.
    Give ur Tcode and find the program name.
    Now goto SE80. select program in the first dropdown and give the program name in the second box. U can find the list of tables used.
    One more way is : use ST05.
    and One more is using FM 'get_tables'
    Thanks,
    Shailaja
    Edited by: Shailaja on Jul 11, 2008 12:33 PM

  • How to Fill Setup tables for MAP (IS- Retail)

    Hello,
    I am working on MAP scenario, I found the following data sources as a part of it. Can anybody please tell me how to fill the setup tables for these and what are the base tables for it??
    2LIS_40_REVAL
    2LIS_40_S202
    2LIS_40_S207
    2LIS_40_S208
    Your reply is highly appreciated.
    Regards,
    Naresh

    Hi Naresh,
    We cannot fill setup tables for each data source.
    ORISBW -- This is the t-code to fill the setup tables for all the data sources which are related to application component 40.
    If you want setup tables names of your data sources please check below.
    2LIS_40_REVAL      ---   MC40RP0REVSETUP.
    Comes to your second post.
    2LIS_40_S202
    2LIS_40_S207
    2LIS_40_S208   these are LIS data sources, whic are replaced with LO data sources in SAP BI 7.0
    If you are using LO data sources then no need to use LIS data sources.
    Regards,
    Venkatesh

  • How to find Primary Key for a particular SAP Databse Table?

    Hi Guys,
                  How to find Primary Key and foreign key  for Particular SAP Databse table ?for Ex : EKKO , EKPO , EKKN , EKBE , EKBEH  , EKET and EKETH.
    Thanks,
    Srinivas.

    Use transaction SE11 to display the table. Put the cursor on the field you want to display the check table and click 'Foreign key' push button (a key with an bottom point arrow), then it will show the check table of the foreign of a field.
    Or by just simple double click on the field, a pop-up window of all the attribute (including the foreign key and the check table if exists) will show too.
    <i><b>Please reward point for helpful answer.</b></i>
    Minami

  • How to genarate Primary Key for each record in XI  Mapping

    Hi,
    I need to genarate primary key for each record in the paylod in mapping..
    Eg: if i have a 10 reacords i need to have a primary key for each record..starting with the
    Record      Primary key
    First            001
    Secound      002
    Tenth         010
    If i need to write any user defined funtion... can any one provide the code for it.
    Thanks
    Amaresh

    Hi Bavesh,
    I will explain with the example:
    XML:
    <Record 1>
    <Primary key>
    <value1>
    <value2>
    </Record 1>
    <Record 2>
    <Primary Key>
    </Record 2>
    like above i will be getting n number of recored and in each record i need  to genarate primary key in XI.and the key sould be in sequence...
    like for the first record 1 secound 2 like that primary key should add to the privous Primary key.
    and this is for each payload.
    Thanks
    Amaresh

  • How to mapping domain tables

    Hi,
    I am new one to Kodo and have a question about how to mapping with FK of the domain tables. For example, the magazine table has a fk refering to publisher table. So, the Magazine object has mag_id (pk) and publisher (fk, object of Publisher). The Publisher will have pub_id as pk. What kind of mapping it needs? By the way, the database has fk constraints on.
    Thanks in advance,
    Michael

    pk means primary key and fk means foreign key. I use kodo-jdo-3.4.1.
    You are right, the example is similar to the example in the user guide. Table magazine has mag_id as pk, publisher_id, a foreign key constraint with table publisher, and other columns. So, the publisher table is a domain table. The database has non-deferred foreign key constraint.
    I define the following classes:
    class Magazine
    String mag_id; //pk
    Publisher pub;
    class Publisher
    String pub_id; //pk
    I use one-one mapping at field pub of Magazine to publisher as Column.PUB_ID = "PUB_ID" in mapping file. However, it doesn't work.
    When I try to insert a new magazine record into magazine table, the database will check table Publisher for foreign key constraint, and then the kodo will automatically try to insert a new record into publisher table.
    I know something wrong in my mapping. What should I do?
    Thanks,
    Michael

Maybe you are looking for

  • Caching Problem in openSSO

    Hello, I'm having a problem with OpenSSO caching user attributes on login and not expiring the cache until I restart the web container. For example, if I go and change the mail attribute in LDAP (user datastore), OpenSSO will display the old mail att

  • Two Bluetooth Adapters on Mac Mini

    Is it possible to use two bluetooth adapters with the Mac Mini? If not, is it possible to disable the internal adapter and use an external USB bluetooth adapter? If you're curious, here is what I'm trying to set up. upstairs: Mac Mini with keyboard,

  • Acrobat X standard pb pour modifier le texte d'un document

    Je n'arrive pas modifier le texte d'un document sous acrobat X standart qui a été crée à partir de acrobat distiller 7.0.5. Message d'erreur: le texte accumulé dans la zone de seléction tentée a subi une rotation ni horizontalement ni verticale. L'ou

  • Run tool.. and stop on mouse and keyboard movements!!

    Hello frnds, I would like to share a problem with all of you..!!.. and need some advice!! I have a tool "optimizer" which takes a hell lot of time in optimizing images.. I have to pass some arguments to it.. (the optimizer script.. and output path)..

  • TouchSmart button does not launch program

    The "home" touch button on front of the HP TouchSmart does not launch the HP TouchSmart software anymore. It has worked the first day, I am sure of. When the system is in sleep I can wake it with the button so it is not the hardware. I assume it must