How get BUS2089 into a Java WebDynpro

Hi,
I'm new to Java webdynpro programming.  I have wrapped RFCs and used these but now I want to access attributes and methods on the SAP business object BUS2089.
Is it possible to import (auto wrap) a SAP business object into Netweaver dev studio then access the attributes and call the methods??  I can't find one...
Sorry if this is a 'dumb' question...
TIA
J

Hi,
You can access BAPIs and RFCs with webdynpro by creating a model based on RFC/BAPI. This will generate EJB's that you can use in your application to access the underlying business functionality on SAP. If you are doing this "outside" of webdynpro you can still access the business objects by using JCo (Java Connector).
regards,
Dion

Similar Messages

  • How to include a Bapi or a TCD into my Java WebDynpro

    Hello all,
    Yesterday I finished my first Java WebDynpro Application ("Welcome"). That means, I am a beginner
    But like I mentioned in the subject, I need Information about, how I can <b>include a Bapi or a TCD into my Java WebDynpro</b>.
    This could be any information: verbal statements, Powerpoints, How-To-Guides, *.pdf's or something like that.
    Thank you in advance and regards,
    A. Cetin

    Hello Ay&#351;egül
    You can find some information about webdynpro below link. But I dont understand exactly what do you want to do?  You can call any BAPI easily inside webdynpro java.
    http://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
    http://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/20b6e990-0201-0010-5095-f3a465de5f30
    Kind Regards,
    Rasim

  • How to organize into smaller java files?

    I have a class which basically connects to a database and just about all of its methods query the database and return the results. The problem (which isn't actually a problem) is that the java file is getting so big because there are literally hundreds of methods representing different queries to the database.
    Does anyone has any idea how to break this class into smaller files? Is there a "include" statement of some sort that I can use to include these "sub-java" files?

    Does anyone has any idea how to break this class into smaller files? Is there a "include" statement of some sort that I can use to include these "sub-java" files?Different classes would still mean that user code would need to change.
    The problem (which isn't actually a problem) is that the java file is getting so big because there are literally hundreds of methods representing different queries to the database.Depending on how that is organized that isn't necessarily a problem. For instance if it did nothing but manage calls and not extraction then it isn't a terrible problem.
    If not then as previously suggested you break it by functional block. The closes model to what you have would be to break it into a class per each data model entity and then either add support classes for more complex support or add to one of the matching model entities.

  • MDM Hierarchy Table Into Tree (Java WebDynpro)

    Hello all,
                I have a requirement of showing a MDM Hierarchy Table into Tree UI element.
    These are the steps am following:
    1) MDM Connectivity
    2) Using RetrieveLimitedHierTreeCommand command to retrieve tree structure of the table
    3) Using getChildren() method of each node to get the children
    4) Made a tree ui element with a recursive node
    Now since the Hierarchy table can reach any level of nodes how do i write code for dynamic tree node/leaf generation?
    Please guide me through with detailed steps/code if possible?
    Regards,
    Yogesh Bhatia

    Hi Yogesh,
    After getting the HierNode you have to recursively populate the hierarchy tree using the below code:
      private void createHierarchyTree( parent_element, com.sap.mdm.data.HierNode HierNode)
         if(HierNode != null && HierNode .getChildren() != null)
              for(int iChildCount=0 ; iChildCount < HierNode .getChildren().length ; iChildCount++)
                   IPublic<comp name>.Iparent_element objTreeElement = parent_element.node<Recursive node name>().create<name>Element();
                   objTreeElement.setattr1(HierNode.getChildren()[iChildCount].getDisplayValue());
                   objTreeElement.setattr1_Recid(HierNode.getChildren()[iChildCount].getId().id);
                   parent_element.node<Recursive node name>().addElement(objTreeElement);
    // call the method recursively               
    createHierarchyTree(objTreeElement, HierNode.getChildren()[iChildCount]);
    This will populate the tree, you need to create an action in the tree view and link it to TreeNode Type action property using which you can get the selected value.
    Hope this helps!!
    Cheers,
    Arafat

  • How get photo into iMovie

    I have been trying to get a photo  into iMovie from iPhoto or from my desktop. BUT It won't drop into my movie. What am I doing wrong?

    Thanks much for responding. I have done all of those things, but the photo doesn't even show up in my choices once I click the camera. So it's something perhaps about how the photos are uploaded to iPhoto? They show up when I am in iPhoto, but they won't show up in iMovie when I navigate over to iPhoto. They are jpegs. I'm using iMovie / iPhoto from last year--that is, not the latest version.
    Thanks for any more insight!
    A.

  • How do I get the proper UTF-8 NVARCHAR2 DB Value into a Java String?

    Hello, I have a mixed char 8.1.7 database with UTF-8 as my NLS
    charset. I used SQL Worksheet to enter test polish unicode
    characters 50309,50310... into an NVARCHAR2 column using
    insert...char(nnn using NCHAR_CS) and get the following result
    from DUMP(columnname,1016):
    Typ=1 Len=12 CharacterSet=UTF8:
    c4,85,c4,86,c4,87,c4,88,c4,89,c4,8a.
    Everything looks good.
    Now, how do I get them out into a Java String and verify that I
    have received the correct hex codes?
    I have tried:
    1. CHAR lChr = OracleResultSet.getCHAR(ColumnName, csUTF8); or
    and lChr.characterStreamValue();
    2. InputStream lIStr = arsResultSet.getBinaryStream(ColumnName);
    3. String lStr = (String)arsResultSet.getObject(ColumnName);
    and then:
    lStr.getBytes("UTF-8"); or lStr.toCharArray();
    I always get questions marks and negative byte values or the
    values: 261,262,263,264,265,266.
    I am using the latest 9.0.1. JDBC Thin drivers and the Oracle
    extensions: OracleResultSet, OracleStatement etc...
    Please let me know what class/method I need, to get the Oracle
    NVARCHAR2 unicode string from the result set into a Java string
    and what method to use to look at the underlying hex codes.
    TIA for any pointers.

    If I use in bdInt=sc.nextInt();a substring cannot be used.
    Does anyone know how I solve this question without substring? Perhapse something I've mentioned above
    sincerely h

  • How to upload the document into JAVA Webdynpro screen?

    Hi Gurus,
    I have the requirement where I need offer the document uploading option in my java webdynpro screen to the enduser's through which they will upload the supporting document which can be maximum of size 10 MB.User can upload 2 or 3 documents at a time.
    and another field has to show the number of attachments that are attached with the deleting option as button?
    Then finally,I want to upload file from web dynpro to R/3
    Can you provide me a sample code with respect to Webdynpro Java.
    Thanks in Advance,
    Dharani

    Jasmine,
    There are several methods of uploading documents. Check the following links.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/7a3be0e795664cb1d8cae68042ceb7/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bb/d95a42ea221153e10000000a155106/content.htm
    James

  • How can I pass a value that is selected in a dropDownlist into a java metho

    My explanation is below and heres my jsp and javascript code:
    <form action="" method="post" enctype="multipart/form-data" name="form1">
    <table width="90%" cellpadding="0" cellspacing="0" class="tblProperties">
    <tr class="trBackColor"><td class="tdLayoutTwo"> </td></tr>
    <tr class="trLayout">
    <td class="tdLayout" align="right">Student Name: </td>
    <td width="316">
    <select name="studentID" id="studentID">
         <option value="0" selected>Select...</option>
         <%=frmStudent.createList(appStudent.getStudentID())%>
        </select>
    </td>
    </tr>
    <input class="inputForm" type="submit" onClick="setValues(form1)" name="Submit"  value="Continue">               
    </td>
    </tr>
    </table>
    </form>Javascript code...
    function setValues(frm) {
         var stuID = frm.studentID.value;
         <%=appForm.setStudentID(stuID)%>
         }I need to pass a selected value from the Form Dropdown into a java setMethod() in my jsp page. But I can't seem to figure out how? I used the "setValue" javascript funtion as shown above, that passes the value from Javascript to jsp on a onClick event, but it doesn't work. I did some research on the internet and have learnt that I cannot pass values from Javascript to jsp.
    Is there any other method, may be after I hit the submit button? I need to pass the selected value from a student dropdown list to a jsp setMethod(). So for example if I select, Jon from a Dropdown list which has a ID = 5, then I need to pass 5 to the java method.
    Any Clues?
    Thanks

    hi zub786,
    you have to do following things:
    1) Get the value of the selected index using javascript methods on selection of student ID.
    2) Use hidden tag and pass that index to value of the hidden parameter.
    3) Use that parameter in your next Jsp where you want that id.
    I hope this info might help u.
    Leozeo

  • How to pass thr document from Webdynpro into SAP R/3?

    HI Gurus,
    I have a requirement to offer a Document uploading option through Java webdynpro screen.
    I have referred the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    which has the steps till uploading the document into Webdynpro
    Now my requirement is to pass the document into SAP R/3? is there any RFC for that?
    Please ad

    Refer Oliveri's solution in [this|Re: How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2); thread.

  • How to pass a file into a java method

    I am trying to pass a file into a java method so I can read the file from inside the method. How can I do this? I am confident passing int, char, arrays etc into methods as I know how to identify them in a methods signature but I have no idea how to decalre a file in a mthods signature. Any ideas please ?
    Thanks

    Hi,
    Just go thru the URL,
    http://www6.software.ibm.com/devtools/news1001/art24.htm#toc2
    I hope you will get a fair understanding of 'what is pass by reference/value'.
    You can pass Object reference as an argument.
    What Pablo Lucien had written is right. But the ideal situation is if you are not modifying the
    file in the calling method, then you can pass the String (file name) as an argument to the called method.
    Sudha

  • How can I read cookies in WebDynPro for Java

    Hi,
    in WebDynPro for Java I found a possibility to to get a "request-object" like the standard "HttpServletRequest-object"
    IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    debugEnabled = (request.getParameter("Debug") != null);
    With this request-object I can read request-prameters but I couldn't find a possibility to get cookies from the request.
    There is no method like the "getCookies().method" in the HTTPServletRequest-Interface:-((
    Has anybody an idea, how I can read cookies in WebDynPro for Java ?
    Regards
    Steffen

    Hi,
      This is the latest update I could look for regarding cookies and webdynpro.
    Panic - WebContextAdapter is depracted - no more cookies now?
    Regards,
    Harini S

  • Help! How to read a .txt file into a Java class and make 2D array?

    Hi guys,
    Im a newbie with arrays, just started really using them.. please bear with me if I don't seem to understand much..
    I have a .txt file that contains either a square or rectangle (random width and length).. How can I read each line into a Java class into a 2D array with rows and columns?

    Example :
    import javax.swing.*;
    import java.util.ArrayList;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.File;
    public class ReadInto2DArrayExample {
        public static void main(String[] args) {
            ArrayList array = new ArrayList();
            char [][] twoDimesionArray = null;
            try
                JFileChooser fileChooser = new JFileChooser();
                if (fileChooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)
                    File file = fileChooser.getSelectedFile();
                    BufferedReader reader = new BufferedReader(new FileReader(file));
                    String data;
                    //Read from file
                    while ((data = reader.readLine()) != null)
                        //Convert data to char array and add into array
                        array.add(data.toCharArray());
                    reader.close();
                    //Creating a 2D char array base on the array size
                    twoDimesionArray = new char [array.size()][];
                    //Convert array from ArrayList to 2D array
                    for (int i = 0; i < array.size(); i++)
                        twoDimesionArray[i] = (char [])array.get(i);
                    //Test the 2D Array
                    for (int y = 0; y < twoDimesionArray.length; y++)
                        char [] temp = twoDimesionArray[y];
                        for (int x = 0; x < temp.length; x ++ )
                            System.out.print(temp[x]);
                        System.out.println("");
            catch (Exception ex)
                ex.printStackTrace();
    }

  • How do you convert a jar file into a java file,  ?

    how do you convert a jar file into a java file ?
    I am new to Java ,but have a little experience in C++ and Visual Basic.
    I want to edit and maybe create my own mobile games that are written or converted into jar files.
    At the moment I am using Java NetBeans , and Easy Java( the java pad).
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?

    801283 wrote:
    how do you convert a jar file into a java file ?You generally don't. There exist decompilers, but if you're meant to have the source, you should either have it because you are the author, or you should be able to get it from the author.
    I am new to Java ,but have a little experience in C++ and Visual Basic.Does that experience include turning .exe files into C++ code? Because that's the equivalent of what you're asking
    I want to edit and maybe create my own mobile games that are written or converted into jar files.Eh?
    Are you saying you want to take existing games and modify them? If the creators allow you to modify their source, then they'll provide you with that source (the .java files). If you're allowed to add things but not modify, you don't need .java files. Just documentation, which, again, the creators should be providing.
    Or are you saying you want to create your own games and distribute them in jar files? If so, there's no need to turn jars into .java.
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?Why would you expect there to be one?

  • Inluding java webdynpro apps into portal transport packages

    Hi All,
    Platform: EP7 SPS13, solaris, oracle DB
    I would like to know how to include java webdynpro apps into portal transport packages.
    I was reading documentation but I was not able to accomplish this.
    I have modified Pcd.TransportApplication.Export.ExcludeSystemObjects = false
    in pcdStartup.properties file.
    Transport export includes all my java webdynpro iviews, and export property RESOLVE REFERENCES is set to true in order to setup dependences to be included.
    After importing in QA portal, I can see my java webdynpro iviews, but no webdynpro application exists and iviews won't work.
    Any idea will be appreciated.
    Regards.

    Hi Claudio Roca  ,
    You ca nmove web dynpro applications to different landscapes  in two ways
    1) In NWDS u need to set Message server Port and server port of Quality or production depending on ur requirement
    In NWDS ..In Menu you can find
    Windows->perferenece  there u need to do settings
    and u need to deploy ur webynpro application
    2) you can deploy .ear file in Visual Admingoto  Visual Admin there u can find deployment button click it and deploy ur .ear file
    Please reward points if it is helpful
    Thanks
    Srikanth

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

Maybe you are looking for

  • How can i play youtube videos without quitting my app in iOS 5?

    i'm loading an embed code of a youtube video on a UIWebView and it has being working just fine , but now i'm testing the app on iOS 5 and when i'm in fullscreen mode and i press the pause button the app just frezze .  can anyone help me with this? Th

  • Webcenter Deployment issue - mdsid not found

    I am currently working with Oracle Webcenter 10.1.3.2 and trying to deploy the application to standalone OC4J. I am getting the below error: Error getting MDS MO : mdsId=/oracle/adf/portlet/BIWCPortletProducer_1202175324609/ap/E6default_e73c379b_0117

  • Download multiple files

    hi,all downloading files from server has been discussed for many times, i have known how to download one file after reading some older topics,but now i want to download multiple files,and I want browser prompt "Save As" only one time, then all the fi

  • Japanese HTML

    I'm using Dreamweaver MX, I'm trying to copy Japanese text from a word document and paste it into Dreamweaver. It is not working. Do I need a 3rd party plug in? I called tech support ,they were not helpful and do not support MX. Please help

  • Standby mode info..

    i recently purchased a pearl from us cellular, and i've looked through my user guide and on the cd that came with it to find out info on the standby mode... what exactly can the phone do in standby? does it still ring when a call comes in, alert with