How to link up with a database in NWDS?

Hi all,
I want to build a WD app which can access to a database table for searching, inserting, editing and deleting.
is there an easy solution, that let me map the whole table into an object, which allows me to do things like:
adding:
dataTable.add(oneRowOfData);
searching:
dataTable.searchAgainstID( 1234567) ;
i came from a Ruby on Rails background, it has a very easy machnism to do this kind of data persistence things.
how to do it in Web Dynpro?
Thanks

u can do this via using EJB ...
1)u can go with JDBC n JDO combination.
for thorough info aboutit go through this :[http://help.sap.com/saphelp_nw04/helpdata/en/bf/0d74f651fe48c1a748dea6900b1663/content.htm]
2)u have second option where u can define datasource via data-sources.xml in the META-INF directory. for this u use java dictionary n EJB combination..
as an example u can check this:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca4a9c90-0201-0010-c389-8738cd51a88e]
nw create enterpirse application project i.e. Ear project..
create .ear file for EAr project..deply it..
nw switch to Eaj project nn right click on session bean..it will ask for new Web service ..create
n nw deply .Ear file n test Web service for WsNavigaor...
gio through this doc:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca4a9c90-0201-0010-c389-8738cd51a88e]
in this application save method is used for data insertion into dictionary table using Ejbs...
this application will provide u Query ,whre u can write queries to fetch data..u cn write finder methods...
for thorough info go to thread:[EJB model;
Regards,
Khushboo

Similar Messages

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • How to link ODI with ESB???

    Hi,
    I need to know how to link ODI with ESB(Enterprise Service Bus)....
    should i expose ODI as a web service or is there any other way to link these two...
    please reply me asap its very urgent...
    Regards,

    I'm also interested on this.
    I don't know very much about ODI, but could point the following:
    1 - Your datasource could be exposed as a web service, as you suggested, and be exposed for ESB to consume.
    2 - ESB can connect to your data source (not ODI, but the datasource the ODI act on) using a DBAdapter.
    3 - ESB can send a JMS message that can be consumed by an ODI JMS based datasource (I'm not sure)
    4 - ODI can have a Web Service based datasource that points to a web service exposed by ESB.
    When I see ODI Topology Manager, I can identify these options.
    Denis

  • How can I interact with a Database?

    I've got a project I'm working on in my Java class, and I can't find out how to make the program interact with a database. I was wondering if anybody here could help me out at all? My partners and I have already gotten most of the program figured out (but not programmed), and this is giving us a little bit of trouble. Our books don't have this information, and our teacher told us to check here, so here I am. Any help would be appreciated. Thanks.

    You need to get a jdbc driver for your database. Your vendor should provide you with one. If not then you can try looking for free implementations of that particular database.
    This jdbc driver is used by your program to execute sql statements in the database itself, removing the need for you to handle all the nitty gritty stuff. Kind of like ODBC.
    Like the earlier post pointed out, the tutorials is a good place to look at code samples
    I've got a project I'm working on in my Java class,
    and I can't find out how to make the program interact
    with a database. I was wondering if anybody here
    could help me out at all? My partners and I have
    already gotten most of the program figured out (but
    not programmed), and this is giving us a little bit of
    trouble. Our books don't have this information, and
    our teacher told us to check here, so here I am. Any
    help would be appreciated. Thanks.

  • How to link Product_guid with frg_guid.

    Hi Guys,
            Can someone pls tell me how to relate or link  the product_guid with the settype table field FRG_GUID.
    how the link is made in CRM.
    Regards,
    Vamsi

    Hello Vamsi,
    Check table COMM_PR_FRG_REL.
    Regards,
    Frédéric

  • How to:  Linking Material with Assortment and Plant

    What are the ways to link 0MATERIAL with assortments and 0PLANT?
    Right now I have:  0RT_WRSZ, which links the Plant with the assortment
    How do I link that with 0MATERIAL using the WLK1 table?
    Thanks,
    Chris

    Try 0RT_WLK1

  • How to link bindvariable with ViewAccessor to make it ADF Input with LOV

    I have create a view object by sql query in which i have two bind variables. I want to create a search form by these two bind variables as search criteria so i drag "Execute with Params" operation from Viewobject Data Control to a jspx page as a ADF Search Form. Now i want to create these two parameters as a ADF Input LOV so i changed control type in view Object for these two bind variables but i am not able to fine how to attach viewaccessor with it for data source. Kindly help me.

    Hi,
    in this case - if th ebind variables are not based on an attribute that has a LOV defined - you replace the components in the input form. To do this, remove the input text field and drag the attribute (the argument) onto the form again. Choose select one choice to create a drop down and then map it to the VO that providesthe values. Note that this doesn't create a LOV binding so you use lists for this.
    Frank

  • How to connect JSP with MySql Database?

    HI All...
    I want to know or How to connect Mysql with JSP or JSF any other software is available? please help me.....

    I want to know or How to connect Mysql
    with JSP or JSF any other software isavailable?
    please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
    Edit: And forget the terminator, who needs it?

  • How to connect portal with msaccess database

    we have to develop oracle portal applications with msaccess as a back end.how to connect portal to access.
    thanks in anticipation.

    I want to know or How to connect Mysql
    with JSP or JSF any other software isavailable?
    please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
    Edit: And forget the terminator, who needs it?

  • How to link event with program?

    My program z_report_idoc is called in background job using event ‘OM20000013’ created in SM62.
    Code uses FM: CALL FUNCTION ‘BP_EVENT_RAISE’
    But i dont know how it is linked to program.
    Can anyone have idea how to link program and where i can view this linkage.
    Regards,
    Gurmukh

    1. Go to transaction SWELS and swich on the event.
    2. Then go to vd01 and create customer.
    3. Go to transaction SWELS and swich off the event.
    4. Go to transaction SWEL. it will displays the events regarding your process.

  • How to link to online 9iR2 database documentation on OTN

    I'd like to link to online 9iR2 database documentation on OTN. Just by browsing OTN I got, for example,
    http://www.oracle.com/pls/db92/db92.to_toc?pathname=datamine.920%2Fa95961%2Ftoc.htm&remark=docindex
    which, in turn, redirects to to
    http://download-west.oracle.com/docs/cd/B10501_01/datamine.920/a95961/toc.htm
    Which of these links should I use? Which of them is more stable?

    We recommend the use of this URL:
    http://www.oracle.com/technology/documentation/oracle9i.html
    Cheers, OTN

  • How to link oracle with xml

    i want to know the coding to link oracle with xml.tq.

    You're going to need to expand a little on this question, since I'm not quite sure what you mean by "link". What kind of problem are you trying to solve, so we can help... Thanks.
    If you're just starting out with Oracle and XML, a book like Building Oracle XML Applications or the Oracle XML Handbook might be the right place to start, in addition to our own online documentation at http://download.oracle.com/otndoc/oracle9i/901_doc/index.htm

  • How to link iCal with Outlook for Mac 2011?

    Hello Apple people.
    Just got my MacBook Pro (Late 2011) and am trying to enable Outlook to link with iCal so I can get meeting alerts on my iPhone 4.  I prefer using Outlook for email and calendar usage.  I've linked it with iCal, but can't get information to transfer between the two.  Any thoughts?
    Mota_D

    Greetings,
    Before doing any troubleshooting I would recommend backing up your data (http://support.apple.com/kb/HT1553).  Calendars and contacts tend to be important to people and are complex in nature which increases the chances of mishaps.
    Make sure you have installed all software updates from Apple by going to Apple > Software Update.
    Make sure you have installed all software updates for your Microsoft software (Open Outlook and then go to Help > Check for Updates).
    Restart your computer (Apple Menu > Restart).
    The first thing I would suggest is following all steps in this article: http://support.microsoft.com/kb/2452489.
    Once this is complete you should see the calendars you have added to Outlook when you click the "Calendars" button in iCal under the "On My Mac" section.
    If the calendars do not show up reset Sync Services: http://support.apple.com/kb/TS1627.
    Hope that helps.

  • How make installer java with mySQL database

    How do I create a java installer for windows, because I have a project that uses mySQL database.
    Anyone please help me....

    If you have eg. a desktop application which needs a database, but don't have/ need a database server, which is accessed by several instances of the application (which seems to be the case, otherwise you wouldn't want to install it along with the application), consider an embedded database such as Apache Derby/ Java DB.
    Then all you need is to ship some jars and make sure they are on the classpath.
    If you're using JPA and generate the DB schema, then switching DB vendors should be quite easy. Just reconfigure your persistence.xml.

  • How to link JE with A/R invoice

    I have generated an A/R invoice. After generation I want to give some discount to customer, so I generated a JE for discount.
    I want in customer ageing report the outstanding amount as bill amount less discount.
    How this can be done.
    Is there any way to link the JE to A/R invoice to show the correct outstanding amount.

    Hi Sandeep,
    as mentioned above, in 2007 it's not a problem since partial reconciliation on JE level is fully supported.
    In the lower version you may only reduce the total balance due when using a credit memo standing on the invoice.
    Should you be in a lower version you have several different options:
    1.) Internally reconcile the JE with the invoice
    -> disadvantage: Invoice is closed & will no longer appear in the ageing report
    - hence: Not recommended
    2.) Create the JE with the discounted amount & wait until remainder of invoice is paid, then reconcile partial payment with JE & invoice
    -> disadvantage: a lot of room for user error, a lot of data needs to be held in mind of operator, mistakes almost inevitable.
    -> Advantage: JE will appear in ageing report when run by journal entry.
    - hence: only use for isolated incidents
    3.) In incoming payments window, highlight invoice in question & use form settings to make column'Total discount' visible & active. Enter the discount amount in that field & notice that the amount in 'Total payment' has now been reduced by the discounted amount. Use Ctrl+B to pull this amount into the payment means & add the payment.
    -> advantage: all reconciliations are correct & the discounted amount is posted into the appropriate account.
    - hence: Recommended Procedure.
    In the scenario that you describe I would therefore recommend that you reverse the manual JE already crteated & then proceed according to option 3.
    All the best,
    kerstin
    All the best

Maybe you are looking for

  • Mac Mini Connected to TV Causes Blank Pauses every ten minutes

    I hope someone can help with a small but frustrating issue I'm having. I have a Mac Mini (2011) hooked up to a new 1080p television. The mini goes via HDMI straight to the TV, no adapters. The mini is also connected to a regular computer monitor simu

  • Audio problem with Captivate 7

    Hello All, I've had an issue in the past that when I create an MP4 file in Captivate 7 using a windows PC, the volume is too low when the published mp4 file is played on a MAC.  I was able to use the Audio Processing setting under the Adjust Volume c

  • Can't access my windows dashboard

    Hello, Since few days i can't access my windows store dashboard but can access windows phone dashboard. Is anyone facing such problem? Any solution? -Janak

  • Images jumble when screen size is changed

    when i preview the work (in dreamweaver) that i have done on my website the images and spacing move when I changed the size of my browser screen. it is almost as if the images and text are trying to align themselves with the size of the window screen

  • You can't open the application Start.osx because PowerPC applications are no longer supported.

    what does this error message mean? I am trying to use a disc that came along with a book I ordered for studying. However, when I try and run it, this is the error message I receive. "You can't open the application Start.osx because PowerPC applicatio