Dictionary project to j2ee prospective

hi,
i developed the dictionary project and deployed into server it created .sda file .
now i want to operate the this table by writing ejb methods .
what are the steps  i need to follow to insert and update table with data.
how to configure.
is there any tutorials or any documents ,
i want build the application which is contain the table and write in java code .
plz help me on this

Hi Eshwar,
please chk the "Creating a J2ee-based  Car Rental application" which you can find in your NWDS help- SAP WebAS documentation-Webdynpro application.
You can also this link, to find any article matching your requirement.
https://www.sdn.sap.com/irj/sdn/articles-topic?rid=/webcontent/uuid/7082f9fc-070d-2a10-88a2-a82b12cea93c
Regards
Priyanka

Similar Messages

  • How to use another database schema in Dictionary project

    Problem description:
    1)     I want to use Developer Studio to create my own J2EE project. Then I have to use Dictionary Project to maintain my database.  My database is Oracle.
    2)     I created tables in Dictionary project and deployed to database
    3)     After that I found my tables were deployed into SAPSR3DB schema.
    Question:
          What can I do if I want to deploy my tables into another schema other than SAPSR3DB?  In real cases I want to separate my tables from the WAS system tables.

    Hi Chaoran,
    If you want to use external database with Java dictionary tables..
    Right click on the Java Dictionary Table, from the menu select <b>Create DDL script</b>, then select to which data base you want to generate scripts. It will generate .sql scripts, use this scripts in your database to create tables. But the same time you need to create Data sources in Visual Administrator for your oracle system.
    Regards
    Abhilash

  • Java Dictionary Project with Tables already Existing

    Hi@all,
    is there a possibility to define a Dictionary Project in Developer Studio with Database Tables already existing? I tried to rebuild them manually in a project though there is no import possibility.
    But it doesen't seem to work with the frameworks requiring Java Dictioniary such as CMPs and SQLJ
    Best
    Uwe

    I forgott to mention the AppServer: it is a WebAS with J2EE (4)
    Developer Studio 7.0.11
    WebAS 7.00

  • Dictionary project

    Hello,
    In order to map CMP Bean to a table we need to have a dictionary project. But how do we create a dictioanry project on an external database like Oracle or SQL server and map it to an Entity bean.

    Hi Sudhakar,
    After dictinary project creation , when u deploy it , actually what is happening is that it is creating the tables corresponding to your dictionary project in the database , where your SAP J2EE WAS is running.
    i think u can only use the tables which are already present in the database or create new , where the current J2EE WAS is running .
                             Regards
                               Kishor Gopinathan

  • Unable to undeploy a dictionary project

    Hi,
    I have  a DC that is of the type Dictionary project. I have my tables defined in this. How do I undeploy this DC.
    I tried it from the SDM and it is greyed out and does not allow me to undeploy it.
    So if I have it in my SDA it does not deploy as it says it already deployed.
    Can you please help.
    thanks
    Padmaja

    Hi,
    I have a system that I am using to test my created SCA files. I had an earlier SCA that I had deployed. I wanted to delete everything so that I could deploy the new SCA.
    Here it would not allow me to undeploy the dictionary DC using SDM.
    I then deleted the tables in the database. so that all my data would be gone.
    Then installed the sca. Here the dictionary project had not changed.
    When I deployed using the SDM it ignored the dictionary project saying it was installed.
    So I had to go to NWDS to be able to recreate my tables.
    Is there a better way to recreate my tables?
    thanks for all your help
    Padmaja

  • How to store/manipulate Date and long text fields with Dictionary project

    I am able to save string values into my backend (SQL Server) database in my web dynpro project but I am getting errors dealing with my date string and my long text (comments) field. 
    I want to figure out both how I need to define the fields in the dictionary project, how to define the context variables in web dynpro, and how to code the statements to pull the values out of the context and into fields I can use in my SQL insert. 
    Currently I have the date defined in the dictionary project as "date" and the comments as a 256-character string. 
    In the web dynpro context I have the date field defined as "date" and the comments field defined as "string".  Should I define a 256-character string type and use that as field type??
    In the code I am using the following to get the values:
         String s9 = (String) wdContext.nodeReceipt().getElementAt(wdContext.nodeReceipt().getLeadSelection()).getAttributeValue("Comments");
    String s5 = (String) wdContext.nodeReceipt().getElementAt(wdContext.nodeReceipt().getLeadSelection()).getAttributeValue("DateReceived");
    SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/yyyy");
         try {
         Date dt = sdf.parse(s5);
         } catch (Exception e) {
              e.printStackTrace();
    I then try to insert all of my values with the following code:
    InitialContext ctx = new InitialContext();
      javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("jdbc/SAP/BC_JMS");
      java.sql.Connection con = ds.getConnection();
      java.sql.Statement stmt = con.createStatement();
      stmt.executeUpdate("insert into AVD_GEN_REC(VENDOR,DATE_RECEIVED,TOTAL_PIECES,LOGGED_BY," +
           "ADDRESSED_TO,BLDG_NO,CARRIER,TRACKING_NO, COMMENTS) values('s1','s5','s2','s6','s3','s7','s4','s8','s9')");
       } catch (Exception e) {
             wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Exception "+e.getMessage());
    Any help/ideas would be appreciated...

    The comment error seems to have resolved itself but I still get an error with the date field:
    Exception The SQL statement "INSERT INTO "AVD_GEN_REC" ("VENDOR","DATE_RECEIVED","TOTAL_PIECES","LOGGED_BY","ADDRESSED_TO","BLDG_NO","CARRIER","TRACKING_NO","COMMENTS") VALUES ('s1','d5','s2','s6','s3','s7','s4','s8','s9')" contains the semantics error[s]: type check error: new value (element number 2) is not assignable to column "DATE_RECEIVED" 
    The DATE_RECEIVED is defined in the data dictionary as "date", the context variable "DateReceived" is also a "date", and the statement to pull d5 is being stored to a "Date".  Is there a difference between the "Date" and "date"?
    Date d5   = wdContext.currentReceiptElement().getDateReceived();

  • Java Dictionary Project + create autonumber for KEY field?

    Hi there,
    I would like to create a Java Dictionary project that has a table with an AUTONUMBER as the key field.
    I know exactly how to do this in SQL Server using the IDENTITY field but cannot see an option when using the Java Dictionary project?
    Any ideas?
    Thanks for the help
    Lynton

    Has there been an update to this recently?  I am in need of exactly the same information.  The FAQ lists this:
    <i>Can I deploy a Java Dictionary table along with the table content?
    Yes. You can deliver the Java Dictionary table along the table content. There are two possibilities:
    Export from a reference database
    Specification of the table entries in an XML file (since SP5)
    Note that there is no modification support for table entries that are delivered in this way. Therefore, you can deliver table entries with program character or for examples, but not for templates or customizing data.</i>
    Now, I may be reading the note incorrectly, but it makes it sound like if you do populate a table with a XML file, the records cannot be modified thereafter.  Is this true?
    I'd also like to know how to develop the XML and where to put it, etc.  I've had no luck searching for this information.
    Thanks!

  • Creating dictionary project in other than default datasource

    I want to create a dictionary project in other than default datasource . Every time I create a dictionary project and create archive and deploy it ...It creates tables in SAP default datasource MAXDB . I have created another datasource pointing to MSSQL in visual admin . I want dictionary project to be deployed to this datasource without making MSSQL  as default datasource . Can anyone please let me know how to do this ?
    Thanks in advance
    Bhat

    Hi Alka,
    from your post, it is not entirely clear to me what you are atempting to do.
    1) Do you need help with accessing tables in a non-default schema?
    2) Do you want to determine all tables in the default schema?
    If 1), please follow the hints given by Vladimir Pavlov.
    If 2), currently, the method DatabaseMetaData.getTables() is unfortunately not supported in Open SQL/JDBC. We are currently preparing a new download of the NetWeaver Java EE 5 edition. In this version, the getTables() method will be supported.
    Or do you just want to check for the existence of a specific database table in the default schema?
    I hope this helps,
    Best regards,
    Adrian

  • Unique IDs in Dictionary Project (NW Developer Studio 7.0)

    Hi all,
    I am working with NWDS 7.0 and creating a table in Java Schema with a Dictionary Project.
    What I need is a unique ID field with auto-increment value. How do I create such a field? Is this possible at all? Before we use workarounds such as java.rmi.server.UID, creating tables with Oracle, utilizing stored procedures, etc. we would like to know if this can be achieved with a standard dictionary project.
    Any comments will be appreciated and rewarded.

    Hi,
    if you use entity beans for O/R Mapping and your unique id will be the primary key you could also try and use automatic primary key generation. The documentation can be found here:
    http://help.sap.com/saphelp_nw04s/helpdata/en/b3/b238bfd13a8f408958d70a6989d001/frameset.htm
    However, I think you do not have much influence on how the keys will be generated.
    Another possiblity  if you use entity beans is the Entity Bean Primary Key Generator from Floyd Marinescu:
    http://www.theserverside.com/patterns/thread.tss?thread_id=220
    These solutions both do not rely on any special database requirements.
    Best regards,
    Stefan Brauneis

  • Need suggestions to use a dictionary project.

    Hello Experts,
    I am working on a webdynpro application.
    In this application I need some basic config data to process a transaction.
    This basic config data(table data) is fetched from R/3 through a BAPI.
    This bapi is executed every time for every transaction, which makes application very slow.
    Is there a chance where we can execute this bapi once and store the data in this application (structures or dictionary associated to this application),
    and this data is used for each and every transaction. (this might reduce the turnover time to execute BAPI).
    If we can you a dictionary project / if there is any other source, please help me with the procedure to acheive the same,
    Thanks in advance,
    Sai.k.k

    Hi ,
    In case the values for EVS does not change during the lifetime of the application , just creating value set once.. and populating the values would suffice.. You need not call the RFC again or create a property file.. during this apps lifetime.
    In case , the values changes often , you need to access them only through RFCs.. Or change the data source itself as a DB or a property file.. every time you want to insert a piece of data into the RFC.. update it also in the property file.. so that property file and RFC both are in sync.. If you can achieve this , you can just use a property file and fill the value set..
    Regards
    Bharathwaj

  • How to undeploy dictionary projects?

    Hello!
    Does anybody know how to undeploy the Dictionary-Projects generated by the CAF-Framework?
    When I undeploy this dictionary do I also delete all associated entity-Data and schemes in the Database?
    Thank´s for your help.
    Jörg

    Hello Austin!
    Unfortunately that does not work. I also tried that before. Anyway it is a little bit mysterious. When you choose the undeployment tab without selecting the Deployment-Tab before you cannot see any Dictionary-project. But if you choose the deployment tab at first and then the undeployment tab then you can also see the Dictionary projects. But when you select (button select) one of them it is not shown in the right window that shows the the SDA for undeployment. That´s not good.
    Possibly I do something wrong?
    Best regards,
    Jörg

  • Can't create dictionary project in eclipse as in Netweaver Studio

    Hi All,
    I was able to create a dictionary project in netweaver studio of SAP. I was able to create tables and archive it to create SDA.
    Similarly I want to create the same in eclipse. Do we need any special plugin for this in eclipse? Or do we have any option in creating this?
    Regards,
    Vara

    Have you set the JAVAFX_HOME environment variable as specified?
    Maybe it should have been set by the JavaFX installer, but otherwise, I don't see that as a kludge from the Eclipse plug-in point of view, as if it is not set, I don't see how it could guess the location.
    And well, if you are afraid of bugs and workarounds, you should avoid JavaFX, indeed, at least until next year... :-)
    The platform is still a bit green; some even say it is still beta but I find it, and lot of other people too, already very usable.

  • How to deploy Dictionary project on Oracle \ MSSQL ?

    Hi Guys,
    <i>SAP NetWeaver \ Dictionary Perspective</i> provides a possibility to deploy DB tables on build-in MaxDB, but how can I change the underlying DB - Oracle or MSSQL ?
    Through <i>Visual Admin \ JDBC Connector</i> I managed to create a 'MY' DataSource to Oracle \ MSSQL, but how to change\redirect the deployment to those DBs.
    Thanks in advance
    -Alex

    Hi Alex,
    1) When you install the WAS you choose the DB (SQL Server, Oracle, MaxDB etc) However, you can always create DataSource to another DB. See this link:
    Creation of database in WbDynpro application
    Also, you can look for 'jdbc' in the forum.
    2) As far I know a dictionary project is simply SQL's
    "CREATE TABLE" function in the WAS DB scheme.
    The WAS DB is like any other DB. Once you have its connection string you can connect to it in any DB tool.
    Adding tables to the WAS DB scheme or using another scheme is really up to you.
    Hope it helps
    Omri

  • Importing dictionary project from SDA file?

    Is it possible to import an SDA file (containing a dictionary definition) into a dictionary project? I have lost the original project I was working with, but stil have the SDA.
    Thanks,
    Martin

    Hi Martin,
    Not sure if you are aware but you can open the SDA using a zip tool and import the contained par.
    Cheers
    Daniel

  • How can i deploy dictionary project manually

    Hai,
    Any body tell me how to deploy the dictionary project manually using command prompt.
    regards,

    Hi there,
    think you landed in the wrong forum.
    Sry & regards,
    Roland

Maybe you are looking for

  • How can I use Bluetooth on my iPhone to discover other phones?

    I recently tried turning on Bluetooth on my iPhone to try to discover my wife's phone. My wife has a Samsung Eternity phone. Her phone was in discoverable mode and my iPhone never could discover it. I also tried this with my friend who has an iPhone

  • No arkwork and songs out of order

    ok i think im not the only but i want this say to me in lameman terms lol, ok so i have everything checked with the artwork on my ipod and it wont let me load any artwork on my ipod, it shows up in my librey and my music part of itunes but when i dis

  • HP Support Assistant not responding: Red Exclamation Mark+ Important action needed

    I am using HP PC model Phoenix H9 1325in with windows 8. HP support icon is showing red exclamation mark with a message Important action needed but when I click nothing works and no options are given. Next button is not working. How to resolve this i

  • Error on ALL CS3 Products: "You cannot use this product at this time..."

    Hello all, I woke up this morning and attempted to launch Adobe Photoshop CS3. I received the following error: "You cannot use this product at this time. You must repair the problem by uninstalling..." At the same time I tried opening Photoshop, my A

  • Upgrade BW 7.3X or 7.4 - Compatibility IE10

    Hello experts, we want to upgrade BW from 7.01 to 7.3 or 7.4. The version final is not decide yet, we search the side effect. Today, our versions browsers are IE10 32 and 64 bits with windows 7 32 and 64 bits. SAP BW 7.3 and BW 7.4 PAM define IE10 64