How to use BAPI in webdynpro for java application

Hi all,
Please help in getting started with calling a BAPI in a webdynpro for java application. I have got only the content needed to call a BAPI in a webdynpro for abap application but not in java. Kindly provide me some documents if possible.
Thanks in advance

Hi ,
U have Created One Bapi u want to work with web Dyn pro for java Application Right .
U need the Following
1) NWDS (Netweaver Devloper Studio )
2) jdk1.4 or Above installed in your system .
After Installation of NWDS .
1) Just Take J2EE Enginee Details
  a) Go to Window -> preferences  -> J2ee Enginee - > give ur port number , Host name Details . and click finsh .
Go To Web Dyn Pro Perspective Click onj2EE engine .
Click On Refresh U will see Green Colour button .
Now ur Ready to import Ur BAPI .
1) Go to File -> New -> Project - > Web Dyn pro Project -.
Give Name , pkg Name Click On Finish .
2) Expand ur project hirarchy -> go TO Application -> Right Click -> Create Application - > Give Application name and Pkg name -> Click on Finish .
3) Now ur View And Controller Are Created by Default .
4) Go to Model-> Right Click on it-> Create Model -> Give Model Name & Pkg name Should diff from Application pkg the Click On Next
a) Here u have to Two JCo Destination Name Like Model Data And Meta data & R/3 System Details like System Number , Host name  Etc -> then Click on next .
b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name Click on Search . Ur bapi will be displyed In Down . click on Next .
c) Now Ur model is Importedint into NWDS .Map ur model data To Controller and Controller Element to View Elements .
After ur Model .
Go to -> Project Name -> Right Click -> go to -> Deploy New Archive .
after wards u have to go Apllication -> Right click -> deploy and Run .
ur output will be displyed thru Browser .
Thats it
Regards ,
venkat

Similar Messages

  • How to use spellchecker in webdynpro for java

    Hi
    I need to add the functionality for spellcheck in webdynpro for java...
    Plz help
    Regards
    Dibya

    Hi
    What exectly you want to check(is there any letter drafting / mail functionality in wd dynpro ?)
    Webdynpro itself doesn't have this feature but you can try a workaround .
    1. Use API in External Library project ([Spell check API|http://sourceforge.net/projects/jazzy]).
    2. use this DC in WD component , now when ever user writes , iinvolve this API's method to check.
    (Its  a workaround you have to to the R & D).
    Best Regards
    Satish Kumar

  • How to access(connect) BI Data in webdynpro for java applications

    Hi ,
    is there any way to access and display the BI data in portal using webdynpro for java applications like we did in Visual composer.
    if not how to integrate the BI data in webdynpro applications ?
    Regards,
    Govindu

    Hi,
    Yes there are ways to do it. But may your scenario and the scenario for which I have done may differ.
    You can use openhub to get the data in a flat file and then read it into weddynpro through a java service OR
    You can use DBlink(which i have done).
    Please refer the link below:
    [Link|Data from BW to Oracle.;
    This I have done in NW04s. Not sure whether a better solution is available in the newer release.
    Hope it helps.
    Regards,
    Manoj

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?
    Thanks

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    http://www.sureshotsoftware.com/exej/
    http://www.objects.com.au/products/jstart/index.jsp
    http://www.duckware.com/products/javatools.html
    http://www.ucware.com/jexec/
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/
    http://www.jelude.cjb.net/
    http://thor.prohosting.com/~dfolly/java/index.html
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
    http://www.excelsior-usa.com/jet.html (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

  • How to use BAPI function module for maintaing product type to material

    Hi,
    Can you pls suggest me how to use BAPI Fuction module CCAP_REV_LEVEL_MAINTAIN
    for maintaining the product type for the material using change number.
    Pts will be rewarded.
    Best Regards,
    Padhy

    Hi,
    Can you pls suggest me how to use BAPI Fuction module CCAP_REV_LEVEL_MAINTAIN
    for maintaining the product type for the material using change number.
    Pts will be rewarded.
    Best Regards,
    Padhy

  • How to convert .ear file of webdynpro for java application to webdynpro pro

    Hi All,
    I have a .ear file which belongs one web dynpro for java application.
    I do have other information about the same.
    I need to convert it into a web dynpro project and use it in NWDS to make changes.
    How can I do it? I could not find any solution on SDN.. I hope I get here...
    Thanks and Regards,
    Aditya Deshapnde
    Edited by: Aditya Deshpande on Nov 23, 2010 1:55 PM

    Hi Friend,
    This is almost not possible even if you have Java Decompiler -- WD has a lot compile(design)-time only artifacts that are not exist in generated EAR.
    Hope this is help full for u.
    Regards
    Vijay Kalluri

  • Using dictionary in Webdynpro for Java

    Hello, I'm very newbie in Webdynpro in Java and I have an issue,
    I need that a function returns me 2 fields in 2 variables, but this is not possible in Java, for that reason I have thought to create a structure in the dictionary with 2 fields in order to return one only parameter.
    My problem is that I don't know to declare a strucutre in the implementantion, something like :
    structure TypeData Name{}
    or
    struc{}
    or something like that.
    Do anyone know how to declare structure from the Dictionary in my implementantion's method or any good idea to solve this?
    Thanks in advance

    Hi Jorge,
    What you want to do with the two attributes? If these attributes attached to any UI fields then create two context attributes and assign the values to these attributes in the function. Otherwise, if you want to simply use the values then
    - You can concatinate two values into one string with some special character
    ( ContactID"#"ContacName) and return the string
    - You can return a String array with size 2.
    - Add two values to a ArrayList and return the ArrayList.
    Regards
    Abhilash

  • How to use bapi /external service directly in application service

    Hi
    I have to use BAPI_ALM--RDER_MAINTAIN in my caf application
    i have imported it as external service.As there are problems mapping its input fields to entity service , it has to be consumed directly vai application service.
    But i ahve never done so before.Can someone give me an example as to how t do it.
    If someone can give example of how to code in the application service to call  the bapi , it would be great . as i have some time constraint.
    Thanks ,
    Points assured for help.

    Hi Vivek,
    As you asked for an example to call a bapi directly from Application Service you can follow this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/57fff3b10b3672e10000000a114a6b/frameset.htm">Using Generated External Proxy in Application Service</a>
    Thanks and Regards
    Avijit

  • How to use  third party package in java application

    hi, i am a student , new to java world can any of u tell me how to import third party package in our java application.
    i want to know how CLI is done in java.
    i am going thru this link http://www.codezoo.com/pub/component/5574
    not able to get anything.
    please please help me

    There are two steps -
    1. Import the classes you need from the package(s) using the Java import statement in your classes that need access to them.
    2. include the 3rd part code (one or more .jar files and/or root directories holding the code's package tree and .class files) to your javac and java class path and optionaly to the class path found in your .jar's manifest file.

  • PDF generation from Webdynpro for java application

    Hi all,
    I have a scenario in which a PDF has to be generated from the datils present in a table in the same view, on click of a button. I have found many solutions for generating interactive forms but I need to generate it from the code directly. I have also found an application for generating an excel sheet from the table  data but it is not working with PDF.
    So anybody suggest me how to do it or please refer any applications that have been done.
    Thanks in advance.

    Hi marco,
    Sorry for the late reply.
    I have got an application to generate an excel file and i will paste that code here for your reference.
        byte[] excelXMLFile;
        IWDCachedWebResource cachedExcelResource = null;
        String fileName = dataNode.getNodeInfo().getName() + ".xls";
        try {
          // create Excel 2003 XML data as a byte array for the given context node, attributes and headers       
          excelXMLFile = this.toExcel(dataNode, columnInfos).getBytes("UTF-8");
          // create a cached Web Dynpro XLS Resource for the given byte array and filename
          cachedExcelResource = this.getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.XLS);
          // Store URL and filename of cached excel resource in context.
          if (cachedExcelResource != null) {
            wdContext.currentContextElement().setExcelFileURL(cachedExcelResource.getURL());
            wdContext.currentContextElement().setExcelFileName(cachedExcelResource.getResourceName());
            // Open popup window with a link to the cached excel file web resource.
            this.openExcelLinkPopup();
          } else {
            wdComponentAPI.getMessageManager().reportException("Failed to create Excel file from table!", true);
        } catch (UnsupportedEncodingException e) {
          wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
        } catch (WDURLException e) {
          wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
    In the above code "excelXMLFile" is a byte array in which the data that has to be appended to the pdf (in xml format) is present.
    the toExcel method is used to convert the data in the table(i.e., the data that gets populated in the nodes of the view) in to XML format.
    My Problem is when i change the filename to .pdf extension and the WDWebResourceType.XLS to WDWebResourceType.PDF and execute the application the Acrobat reader is getting opened but it says
    "unsupported file type or the file has been damaged" .
    I mean i am unable to put data into the file.
    So, please help me in this regard.

  • HOW TO USE KRYSALIS BARCODE AS A JAVA APPLICATION

    HI
    I HAVE DOWNLOADED THE KRYSALIS FREE BARCODE GENERATOR. IN SAMPLE CODES THEY HAVE USED THAT AS AN APPLET. BUT I WANT TO GENERATE THE BARCODES USING JAVA APPLICATION WHILE USING KRYSALIS LOG4J LIBRARY...
    SOMEONE PLEASE HELP ME OUT.
    THANKS
    PIYUSH

    You caps lock is on!

  • How to get Sharepoint OAuth clientId for Java application used in any tenant

    I'm developing a web application for Office365 using the SharePoint 2013 REST service.
    This app is hosted by my web server. The development language is Java.
    I plan that users in any tenant use my app via OAuth.
    How can I register my app to get clientId for OAuth?
    I attempted to register my app by seller dashboard, but it seemed like register applications
    to seller dashboard should be developed by .NET. And I couldn't use appregnew.aspx
    because cilentId from appregnew.aspx could use only in one tenant.
    Please let me know any better way to register my app.
    Thanks,
    Tarou

    Hi,
    SharePoint 2013 provide three types of app, SharePoint-hosted app, Provider-hosted app and Autohosted app. Which one do you used?
    Here is an article from MSDN for your reference:
    Guidelines for registering apps for SharePoint 2013
    http://msdn.microsoft.com/en-us/library/office/jj687469(v=office.15).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • WD ABAP: How to use checkboxes in webdynpro for abap

    Hello all,
    I want to use a group of Radio-Buttons in my Webdynpro. If I use the element RadioButtonByKey it will shown three Radiobuttons, how can I use them? I think I have to bind every Radiobutton on an seperate Context-Attribut. But I didn´t know can I do this. And why there are always three Radio-Buttons? I need only two. Is there anywhere a Tutorial which describes the handling of the Radio-Buttons?
    Kind regards
    Axel

    Hi Axel,
      if u need two radio buttons then insert child of type radio button .here is th simple example for creating and binding the buttons to selction key.
    Example:
    Assume that u r having 2 Radio buttons R1 and R2.
    For this u create 3 attributes R1,R2 and Sel.
    For the radio button R1:
    set the element properties as:
    keytoselect---R1
    selected key --Sel
    For the radio button R2:
    set the element properties as:
    keytoselect---R2
    selected key --Sel
    In implementation part :
    public void wdDoInit()
    //@@begin wdDoInit()
    wdContext.currentContextElement().setR1("Pass");
    wdContext.currentContextElement().setR2("Fail");
    wdContext.currentContextElement().setSel("Pass");
    //@@end
    SO from the above code the default radio button R1 will be enabled.
    If u want the second radio button to be default then change sel to
    wdContext.currentContextElement().setSel("Fail");
    so during run time when u select the first one automatically its selvalue changes according to the radio button's value.
    *****Points Please......
    Regards,
    Krishnam Raju.

Maybe you are looking for

  • Burning large QT .mov file to DL-DVD for backup

    Hello To be clear. I am not interested in creating a DL-DVD for playback on a set top DVD player connected to a television. Rather, I haver a 6+GB .mov file that I would prefer to keep intact and burn to a DL-DVD. I need to do this mainly for backup

  • Skype login ui

    hi, could you guys tell me why skype login UI showing like this. and also its not allowing me to login to skype. skype was better previous years but i dont know whats happend now.

  • Getting Blank Screen

    Hi Experts, We has a custom java application which was deployed on Weblogic 8 in 2 JVM Cluster. Recently we have upgraded the Weblogic to version 10MP3. But sometime users are getting blank screens and once they hit F5 the screen comes back. Users ar

  • Convert GUID to RID

    Hi i am going to read in a JSP file an URL which has GUID format and convert it to RID format. The sample shows theURL: <a href="493a20804adfb2be5ba2980b435501a8-989g75632safr4df7ga2980b894742a8"> my link <a/> Know anyone how to do it? The other prob

  • Re: HPNetworkCommunicator.exe

    On a new one-week-old Officejet Pro 8600 Plus, I have had a very similar experience, but a laptop was not involved, but instead 3 desktops WIRE networked.  The first computer does not have the problem, but the second and third computers on which I lo