Access Dictionary Tables in Webdynpro

Hi
I have created a database table in Dictionary Perspective.
Also i have created a dc for webdynpro. I need to access the data and insert the data in the database tables from webdynpro application.
How can i do that. Pls help.
Regards
Sonal Mangla

Hi Sonal,
               Check this
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/69/f9bc3d52f39d33e10000000a11405a/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/69/f9bc3d52f39d33e10000000a11405a/frameset.htm</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194</a>
regards
Sumit

Similar Messages

  • Accessing dictionary tables from dynpro?

    Hi all
    As far as i know, there are 4 approches to access dictionary tables from webdynpro.
    -entity bean
    -sqlj
    -jdbc
    what are the advantages and disadvantages for all above?
    and which one to go for?

    Hi swathi
    See the persistence API--Adv and Disadvantages what ever you mentioned come under the persistence API
    Relational Persistence
    =================
    SQL-based coding: expressive!
    SQLJ: for static SQL, checked at design time,
    recommended
    JDBC: for dynamic SQL, can be combined with SQLJ
    =======================
    Object-relational Persistence
    ======================
    SQL-free! Portable!
    JDO: light-weight object persistence, Java-like dynamic
    query language
    EJB CMP: part of J2EE standard, relatively heavy-weight,SQL-like static query language
    Regards,
    Venkata Kalyan Karanam

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
    Hope this is useful.
    Regards,
    Seema Rane.

  • How to access SQL tables from WebDynPro ABAP application ?

    Hi,
    I am trying a scenario, where I need to send an user ID to SQL server table (update/modify/delete) from webDynpro ABAP application.
    Basically ,I am trying to know:---
    a>How to write a SQL Connection from ABAP code within webdynpro ABAP application
    b>What are the ways to do it.(by code or any other API/mechanism)
    I appreciate if anybody knows this.
    Thanks
    Praveen

    Hi,
    The EXEC CONNECT ... is usually used in the procedural ABAP code. For this you can refer to the ABAPDOCU.
    I dont have any sample code on the classes I listed try to check out them for the parameters and the methods they have.
    In WD for Java, we have these connection classes to connect to any databsae server.
    Or try to create an RFC with DESTINATION for this
    Pls check out this link for this -
    Pull data from another r3 server using abap dynpro
    Regards
    Lekha

  • Can we access PI tables from WebDynpro Java via PI 7.1 to display inPortal?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi
    For that tables any if RFC are created if created it's possible with WD for Java technology.
    Suggestable is backend is R/3 right, advisable is use all SAP standard tech
    Regards
    -SS
    Edited by: Sridhar S on Apr 14, 2009 11:12 AM

  • Accessing portal dictionary tables from Web Dynpro project

    Hi
    Am a new to whole portal and webdynpro thing, and I hope that you can help here
    I created a new dictionary project through NWDS and created a table with columns and I successfully deployed it
    I also created a web dynpro project and I added a TABEL UI to the layout
    how can I connect or access the table I created in the dictionary project from the Web dynpro project so I can query all data to fill the TABEL UI  in the web dynpro ?
    is there a driver that I can use like JDBC where I can just write regular SQL queries ?
    regards

    Hi swathi
    See the persistence API--Adv and Disadvantages what ever you mentioned come under the persistence API
    Relational Persistence
    =================
    SQL-based coding: expressive!
    SQLJ: for static SQL, checked at design time,
    recommended
    JDBC: for dynamic SQL, can be combined with SQLJ
    =======================
    Object-relational Persistence
    ======================
    SQL-free! Portable!
    JDO: light-weight object persistence, Java-like dynamic
    query language
    EJB CMP: part of J2EE standard, relatively heavy-weight,SQL-like static query language
    Regards,
    Venkata Kalyan Karanam

  • How to access internal table data from webdynpro to Flex application.

    Hi Connoisseur
    The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and  Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
    There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
    i tried to do pass internal table value  to flex-datagrid.but its not work.
    i would like to know
    1.how to access internal table data from webdynpro to Flex application.
    2.how to pass the internal table to flex-datagrid.
    2.how to pass dynamically in ADOBE flex.
    3. how to do Flex is receiving the wd context data?
    4. how can we update WD context with FLEX data.
    Ple give me sample example and step by step procedure.
    Regards
    laxmikanth

    Hi Laxmikanth,
    Please refer this...
    Flash island: update complex type from flex
    Cheers..
    kris.

  • Java dictionary table access

    HEllo all,
    I have to access a table created using the java dictionary perspective . I know how I do it by means of creating an ejb and sharing a reference.
    But how do i acess the table if i have to do it using the jsp dynpage model.
    Thank you

    Hi,
    do you use JSP or Web Dynpro?
    - In JSP the procedure is the same as with EJB
    (lookup the jdbc data source via JNDI, using a resource reference you map to the jndi name in deployment descriptor)
    View an example "Getting Started With Open SQL) existing in the examples folder of your SAP NW Developer Studio,
    and the corresponding tutorial in the Docu:
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/b127af68234e868cfd4e9f440aa0bf/frameset.htm
    - In Web Dynpro resource references are not available so you use the JNDI name of the data source in the lookup string.
    Regards, Katharina

  • Accessing Dictionary devlopment component in Web dynpro component

    Hi
    I want to access a table created in the java dictionary development component in webdynpro. I dont want to use the EJB for doing this.
    Regards
    NagaKishore V

    Hi,
    there are several possibilities to achieve that.
    For example
    - JDO
    - SQLJ
    - direct access to the database via JDBC from your WD Controller (not recommended).
    For more information about JDO see at
    /program files/SAP/JDT/eclipse/examples
    There you will find the tutorial J2EE_GettingStartedJDO
    For general information about Java persistence have a look at
    http://help.sap.com/saphelp_erp2004/helpdata/de/61/fdbc3d16f39e33e10000000a11405a/content.htm
    Regards
    Helmut

  • Short dump while accessing the table

    There is a report ppioa0000, when executing the report it is going for short dump,  error analysis showing that
    <b>when accessing the attributes of dictionary table IOSOPER meaningless values are found.</b>
    and ABAP run time error showing that  DDIC_FIELD_ACCESS_ERROR
    suggest me,
    thanks and regards
    krishna

    The database is damaged, links between SAP dictionary and actual database seems to be broken. Try to use SE14 to adjust database.
    Regards

  • How to create dictionary table using web dynpro?

    Dear Experts,
    Please clarify my doubts.Im new in this EP development.
    Im using EP6 portal with NWDS6 for dev.
    My Doubts are :
    Im trying to develop a web dynpro application which captures some data and insert/update in Table.
    => If we create a structure Dictionary in web dynpro application will that automatically create the table in Portal database?
    => If it is automatically created how to insert or update that table.
    can any one plz help.
    thanks and regards,
    Viswes.

    Hi Visweswara
    This will use the concept of EJB.
    Refer these for creating Dictionary tables...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    As far as answer to your second question is concerned,
    => If u create a structure Dictionary in web dynpro application  it will not create the table in Portal database..
    You can access that table via creating a web dynpro iview in Portal..
    Only application can accessed after deployment via iviews in Portal..
    Thanks...
    Rewards Appreciated...

  • Unable to fetch database table from webdynpro application

    Hello,
    I have a Webdynpro application trying to fetch data from the database table. I have used the following code to get the connection to the database and execute the sql statement.
              InitialContext dbInitContext = new InitialContext();
              Properties sysProperties = System.getProperties();
              String sysname = sysProperties.getProperty("SAPSYSTEMNAME");
              String dbName = "jdbc/" + "SAP" + sysname + "DB";
              DataSource dataSource = (DataSource) dbInitContext.lookup(dbName);
              Connection conn = dataSource.getConnection();
              String SelectStmt = "Select * from INV_CUSTOMER";
              PreparedStatement stmt = conn.prepareStatement(SelectStmt);
              ResultSet resultSet = stmt.executeQuery();
    I logged into the database using user superdba in sqlcli, and created the table "INV_CUSTOMER". I am trying to run this application in my sneak preview java installation which comes with maxdb 7.6. But when I run the app, it always throws up the error:
    The SQL statement "SELECT * FROM "INV_CUSTOMER"" contains the semantics error[s]: - 1:15 - the table or view >>INV_CUSTOMER<< does not exist
    I am new to this concept, so any help would be appreciated.
    Thanks,
    Ajay

    >
    Ajay Singh wrote:
    > Hi Isaias,
    >
    > I created a dictionary project with the same structure, and used it in my app. Right now, everytime I run my app, the old data I entered is lost. I need to store data in the table, and reuse those records the next time I run the app. How do I do this?
    > Another question I have is, I have created Database Tables inside Local Dictionary of my dictionary project. Does this create a table in the actual database?
    > Forgive me, but I am new to this topic.
    >
    > Thanks,
    > Ajay
    Hi,
    It seems to me like there is more than one issue here. Let me try and help you out with some details.
    1.) If you have created the Dictionary project and the code in your original post is not giving you problems then it's good. However, the problem of the data disappearing from your Java Dictionary seems little bit wierd. You need to ensure that you are not running any "delete" command and ensure that the select statement (of it has and conditions) is correct.
    2.) As far as where the tables actually reside: When you create the Dictionary tables in a Dictionary Project-  this will actually create a script that will be run on the server that has an installed database (like Oracle, MSSQL Server or MaxDB, UDB). This means that the dictionary tables are just an abstraction of actual database tables.
    In order to ensure that you are not deleting the data - debug your Web Dynpro Application or EJB so that you can go through it step by step and see whether all the database statements are correct. Sometimes you may not get an SQL error due to a NullPointer in the dynamic queries as well - so keep a check on that as well.
    If you require a more detailed solution - please give us a small piece of code that we can analyse.
    Hope that helps.
    Thanks.,
    p256960.

  • Accessing Java tables of XI within GUI/Java mapping

    Hi,
    I am looking for a way to access tables of a java dictionary within java/GUI mapping. Specifically, if it is possible some simple API to access  java tables within user-defined functions.
    I know you can access tables via JDBC/RFC lookups. But, this way more applies to external to SAP XI tables. Is there a more simpler way to access java native tables inside SAP XI.
    Thank you in advance,
    Dmitriy Mindich

    Hi Stephan,
    I agree that first case should not be implemented. But, I would like to disagree on the second case. I am not talking about storing application data, but interface-related intformation, such is file generation id or date generation. This information is interface-specific, and unfortunately XI does not provide a way to store persistent variables inside XI.
    There are a couple of options:
    1. Use SEEBURGER's functionality. Unfortunately, I dont have the need to use EDI functionality of SAP, thus I dont want to buy SEEBURGER's license.
    2. Use ABAP Mapping and store it inside tables inside ABAP-stack. However, as I said before this step would be performance intensive for me, since the majority of mapping in my case is done in Java/GUI mapping.
    Based on these cases, I was thinking there should be an easier way to store/retrieve interface related information inside XI tables. And, since most of my mappings are Java-based, I was thinking I can use Java-stack to store persistent variables.
    Would you agree, Stephan?
    Regards,
    Dmitriy Mindich

  • How does oracle accesses v$ tables or views in mount state

    Hi All,
    I want to know how oracle accesses fixed tables/views while the database is in mount state.
    I did the following:
    1. Started the database in mount state.
    2. Query v$database ,v$datafile--Successful
    3. Queried dba_data_files.---ERROR
    SQL> select * from dba_data_files;
    select * from dba_data_files
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    As per my understanding goes,all these tables are a part of Data Dictionary which is stored physically on system tablespace.
    Now since the database is mounted ,it cannot access any part of system tablespace's data.Am I right??
    So how does it queries v$ tables and other fixed database tables in mount state???
    Thanks in advance
    Saket Bansal

    the v$(dynamic) view comes from instance
    the dba(static) views comes from dictionary
    but there is only one view can be look while instance is in nomount mode
    and that is
    v$instance ,,,
    BUT ONLY THING I DON KNOW IS WHY WE CAN STILL DESCRIBE THE V$ VIEWS WHILE INSTANCE IS IN NOMOUNT MODE,,,
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1248576 bytes
    Variable Size 75498176 bytes
    Database Buffers 205520896 bytes
    Redo Buffers 2945024 bytes
    SQL> desc v$datafile;
    Name Null? Type
    FILE# NUMBER
    CREATION_CHANGE# NUMBER
    CREATION_TIME DATE
    TS# NUMBER
    RFILE# NUMBER
    STATUS VARCHAR2(7)
    ENABLED VARCHAR2(10)
    CHECKPOINT_CHANGE# NUMBER
    CHECKPOINT_TIME DATE
    UNRECOVERABLE_CHANGE# NUMBER
    UNRECOVERABLE_TIME DATE
    LAST_CHANGE# NUMBER
    LAST_TIME DATE
    OFFLINE_CHANGE# NUMBER
    ONLINE_CHANGE# NUMBER
    ONLINE_TIME DATE
    BYTES NUMBER
    BLOCKS NUMBER
    CREATE_BYTES NUMBER
    BLOCK_SIZE NUMBER
    NAME VARCHAR2(513)
    PLUGGED_IN NUMBER
    BLOCK1_OFFSET NUMBER
    AUX_NAME VARCHAR2(513)
    FIRST_NONLOGGED_SCN NUMBER
    FIRST_NONLOGGED_TIME DATE
    SQL> desc v$tablespace;
    Name Null? Type
    TS# NUMBER
    NAME VARCHAR2(30)
    INCLUDED_IN_DATABASE_BACKUP VARCHAR2(3)
    BIGFILE VARCHAR2(3)
    FLASHBACK_ON VARCHAR2(3)
    ENCRYPT_IN_BACKUP VARCHAR2(3)
    HOW DOES THIS COME FROM ????
    Edited by: jignesh kankrecha on Jul 6, 2009 8:12 AM

Maybe you are looking for