How to upload an attachment from webdynpro java application.

Hi,
Please assist me to create a View in WEBDYNPRO JAVA, which speaks about how to upload an attachment and save it in SAP
Regards,
Suri

Well , first of all, I think you should search the SDN with keyword such as "upload files ".
Here is the link of an article about upload and download files in WD.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9076a593-2b08-2d10-2890-9a7078246ec4
Hope that can help you.
Regards
Carfield

Similar Messages

  • How to assign the Thems into Webdynpro Java Application

    HI All,
                   I Downloaded the plugin for them editor and i add those plugins and i created the Them. Please any one can help me how to add that Them into Webdynpro java application.

    Hi ep bhargav,
    You can check this link.....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
    Re: webdynpro theme editor
    Thanks.
    Venkat.

  • How to connect to outlook from webdynpro java???

    Can any one tell me step by step process of  how to send an email from my wdjava application ???
      I will have the email id as a link in my wdjava application, an action that link a new window should pop-up and i have to enter the text in the body and then i have send the email....
    Regards,
    Mahesh

    Hi Tobias,
    Thanks for the reply.my requirement is just to calling the default mail, for that i have used the
        String email = "mailto:" + toEmailID; (its opening in a new window in the outlook)
    now i want to give this as a link in the toop tip.Can you please tell me how can i achieve this?
    Is it possible to give the hyperlink in the tooptip?? how can i convert the string to hyperlink in webdynpro java??

  • How to call IAC Iview from WebDynpro java code

    Hi Team,
    I am tring to call IAC Iview from WebDynpro Java code. we are passing value but blank page  displayed and there is no error show on error log.
    Below is Java Code which i am calling.
      public void wdDoInit()
          try {
                String strURL = "portal_content/TestSRM/iView/TestSRM";                           //WDProtocolAdapter.getProtocolAdapter().getRequestParameter("application");
                 String random = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("random_code");     
                 //wdContext.currentContextElement().setRandomNumber(random);
    //below we are call URL           
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/TestSRM/iView/TestSRM?VAL="+random,WDPortalNavigationMode.SHOW_INPLACE,(String)null, (String)null,
                       WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String)null,(String)null, " ");
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    I am passing value from URL.
    http://<host Name>:<port>/webdynpro/resources/local/staruser/StarUser?random_code=111111111
    when we call above URL we getting blank screen.
    Regards
    Pankaj Kamble

    Hi Vinod,
    read this document (from pages 7 ).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
    In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
    It may be helpful for you.
    Best regards,
    Gianluca Barile

  • 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

  • How to run jsp pages  from webdynpro java

    Hi experts
         I want to run the jsp pages present in a webserver like tomcat or weblogic servers from webdynpro.Is there any way to run a jsp from webdynpro environment?
    Thanks and regards
    venkat kalyan

    hi Venkat,
    Check out this threads. They might be helpful
    Re: web dynpro jsp
    Re: Opening a jsp from another server(Weblogic) from webdynpro running on WAS
    Regards,
    Gopi

  • How to open JSP session from a java application or an applet?

    Hi,
    My problem is a bit challenging (at least for me) and its not about JSP but it is about a web application..
    I couldnt find a better place to post this question I am sorry if this is not the right place to post it..
    I need to enable users log into my website by checking username and password and reading and checking the data from a usb device located in client computer.
    I can read from the device thorough JNI using the third party DLL file for the device... I have no problem with that..
    Since I need to make native calls I am planning to develop a java application so I let the users open the application using web start.. Once my application is running on client side after reading the device and getting login password information (assuming login information correct), How can I open a web session for the that spesific user and a web browser and let the user browse the web site on his/her own session?
    I would appreciate any guidance..
    Thanks..

    add the values in the header using...
    response.addHeader("userNmae","XXXX");use it in all ur pages like say..
    if(!request.getHeader("userName")!=null && request.getParameter("userName").equlas(""))
    String username=request.getParameter("userName");
    }

  • Code for  File upload / down load from WD java application

    Hi experts ,
    I am creating a WD java application , I want to add Picture upload and piucture download ( from / To ) KM . I also want to specify the path ( where it has to be uploaded in KM ) and picture name . can i get any code so that i can use it in WD application .
    Regards
    Abhay

    First you need to make sure your web dynpro application has permissions to access the file in the first place, but you could use the standard java.io.File class:
    File file = new File("/path/file.sh");
    file.setExecutable(false);
    file.setReadable(false);
    file.setWritable(false);

  • How to open browser window from standalone Java Application???

    Is it possible to start Internet Explorer from non-applet application?

    Something like that could maybe help:
    Runtime.getRuntime.exec("iexplore http://www.google.com");
    but it's not platform independent + I couldn't let it work in that way. It only worked with Runtime.getRuntime.exec("c:\\windows\\....\\iexplore.exe http://www.google.com");
    But it's surely not platform independent.
    So the answer is in fact 'I don't know'.
    And if you ask why am I writing all that then, the answer is 'I don't know' too.
    And if you ask why...

  • How to execute *.BAT file from  the Java Application

    Hello to all.
    I wants to run *.BAT file form my applicaion.
    Can u give the code of that two-four line,please
    Wating four your replay.
    Yours Friend
    Bhavin Shah.....

    pr = rt.exec("cmd.exe /c start " + yourProgramName)The exec() method executes the command you specify in the argument and returns a process. In this example, it's telling Windows to run "yourProgramName".
    HTH

  • 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.

  • Reg: calling default desktop page of enterprise portal from webdynpro java

    hi Experts
    Here is an scenario where i need to call enterprise portal desktop from webdynpro java application.
    Actually i have designed a custom Home page in  WDJAVA  and this page i have assigned as default  frame work page in enterprise portal ,so once we logon through the portal URL wewill  be getting this custom home page as default page and when i click on next button it should connect to the predefined  SAP given default frame work page.
    The thing is i am able to see the custom page and the button but when i click on the button it is opening the same custom home page only not able to log on to portal default frame work page.
    My question is how can we connect to the predefined page from the custom home page.
    please share your regarding this scenario...
    regards & Thanks
    Deepika
    Edited by: deepika_indian on Mar 3, 2010 6:05 AM

    hi Experts
    you didnt get my point  i vl give in brief
    1) that at first we are going to enter the portal URL.
    2)we are going give userid and password and click  logon button.
    3)so once we click on that button it should open custom page what we have designed in by using web dynpro java.with in this application we will have next button which should connect to the sap given predefined default desktop page.
    i hope you have got my point.
    and more over where can we get the logon action coding in which par file,if so can you give brief information related to it.
    i changed the themes master rule collection there i have assigned this custom home page ,but when i click on next button it is opening the same custom it is not connecting to the default desktop.i think this is not the write approach.
    please share your knowledge and document also related to it.
    Thanking you
    Deepika.

  • Lauching webdynpro java application

    hi gurus
    our scenario is like this..
    when employee fills the educational assistance form (customized webdynpro java application) and clicks on the submit button , it should go for approval..while manager opens the workitem it should lauch the same WD form in display mode with approve and reject button. and when he approves ..it should update the data base & it should sends a intimation mail to the employee that his application has been approved...
    MY QUESTIONS :
    1) how to trigger a event from WD java application to start this workflow ...
    2)  how the values can be passed from WD application container to workflow container .i got some ideas by reading some forums for this i want to use SAP_WAPI_READ_CONTAINER , where i want to use this function module
    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step,  how it can be achieved ?
    4)what all r the other settings i want to maintain .

    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step, how it can be achieved ?
    I would definitely prefer to open a form with "Approve" and "Reject" buttons instead of having it as an attachment in a user decision step. Especially if it is a application where a user never approves without opening the attachment. For example i may not prefer to approve a leave requisition without viewing it! In that case it will just be an overhead for the user to open the form manually everytime before approving. So make a decision on this based on the use of your application.
    Moreover it is not that tough either (atleast from a workflow perspective) to launch the webdynpro from UWL. Create a custom task and create appropriate entries in transaction SWFVISU (hope you are on or above ECC 5.0) to link your task and WD application. Thats it your application should be ready and shud be launched from UWL.
    But definitely in a custom application your webdynpro developers need to do a lot of work (as we did one in our previous projects) irrespective of whether it is launched directly as a task or as an attachment.
    Performacewise providing "Approve" and "Reject" will just increase one RFC call from your application (to complete your workitem).
    Thanks,
    Prasath N

  • Iview Template missing for Webdynpro-Java application

    Hi All,
                I wanted to create an iview out of my webdynpro component . I followed
    the steps given in  the following document ---
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9
       But unfortunately i couldn't find any template to create iview from webdynpro-java
    application . Can any one help me out ? Is there any customization for the same or
    this feature is not available for CE7.1--Sneak Preview version ? Any suggestion will
    be of great help to me.
    Thanks and Regards
    Ashis

    Hi Ashis,
    please refer to thread
    Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?
    and by the way...there is a portal included under ../irj
    greetings jens

  • Template missing for webdynpro-java application  in Iview Creation

    Hi All,
    I wanted to create an iview out of my webdynpro component . I followed
    the steps given in the following document ---
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9
    But unfortunately i couldn't find any template to create iview from webdynpro-java
    application . Can any one help me out ? Is there any customization for the same or
    this feature is not available for CE7.1--Sneak Preview version ? Any suggestion will
    be of great help to me.
    Thanks and Regards
    Ashis

    Hi,
    Did u deployed ur webdynpro application into portal. If not, u cant to create iview based on ur component..
    Regards,
    Senthil K.

Maybe you are looking for

  • Language Display

    Dear all, system details: ecc 5.0 unicode sap aba 16, basis 16,appl 11,hr 19+MSSQL 2000 with collation bin2 (SP4) and windows 2003. I imported arabic with smlt and also imported support package text translation part. If i logon with arabic having sec

  • Beginner's query: How to call a method on close of a frame?

    Hi. I wrote a frame that inherits from JFrame. There I called *"setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)"* (more or less). I now wish that the frame would call a method when it closes. How can I define that? I assume some action listeners shoul

  • How do I reduce the font size & icons for mailboxes?

    I use a LOT of mailboxes and subfolders. In Yosemite, these have become too big. How do I make the mailbox icons and fonts smaller?

  • Username from userid

    Hi, How can we get Username from userid... Foe eg: userid : xyz01             username : Dhananjay Patil. Pls help.

  • How do I get all servers up and running for publishing reports

    I checked it and Adaptive Job Server is enabled and running. But Publication Job Server and Destination Job Server are not enabled. I read SAP Business Objects Enterprose Publisher's Guide and it says that they are mandatory. How do I get them enable