How to upload a File in the Enterprise Portal (JAVA)

Hi,
i have a Question.
We test the SAPNW2004sJavaSP9 Trial Version and we will upload a File in the SAP Database via the Enterprise Portal user interface.
Where should I just to click...?
How i can create a new Repository in the Folder Management ?
Thanks for your help.
Greetings,
Steve Neubert

Hi Steve,
welcome to SDN and to the KM forums.
Have a look at the KM Wiki section for introduction guides and frequently asked questions:
https://wiki.sdn.sap.com/wiki/display/KMC
This page is dealing with your specific question:
https://wiki.sdn.sap.com/wiki/x/DV
Come back if you need more information,
Robert

Similar Messages

  • How many users have logged in the Enterprise portal

    Hello Expert,
    Please suggest..
    Feature required to monitor as how many users have logged in the Enterprise portal 7.0(Portal is Implemented with MDM), so that utilization can be known.
    Regards,
    Vidhanshi

    Hi,
    You can wirte the following code to get the logged in user's ID
    try {
          IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
          IUser sapUser = wdClientUser.getSAPUser();
          IUserAccount[] acct = sapUser.getUserAccounts();
          String str = acct[0].getDisplayName();
          wdComponentAPI.getMessageManager().reportSuccess("user "+ str);
         } catch (WDUMException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
         } catch (UMException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    You need security api for using it make sure that is present.
    [Find out who is login into the Portal|http://forums.sdn.sap.com/thread.jspa?threadID=1723807]
    Hope This is Help full for you!!!
    Best Regards
    Vijay K

  • How to upload a file to the server using ajax and struts

    With the following code iam able to upload a file ato the server.
    But my problem is It is working fine if iam doing in my system nd when iam trying to
    access theis application from someother system in our office which are connected through lan
    iam getting an error called 500 i,e internal server error.
    Why it is so???????
    Plz help me????????
    It is required in my project.
    I want the code to access from every system.
    My exact requirement is i have to upload a file to the server and retrive its path and show it in the same page from which we
    have uploaded a file.
    Here the file has to be uploaded to the upload folder which is present in the server.Iam using Tomcat server.
    Any help highly appreciated.
    Thanks in Advance
    This is my input jsp
    filename.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <script type="text/javascript">
    alertflag = true;
    var xmlHttp;
    function startRequest(file1)
         if(alertflag)
         alert("file1");
         alert(file1);
    xmlHttp=createXmlHttpRequest();
    var video=document.getElementById("filepath").value;
    xmlHttp.open("POST","FilePathAction.do",true);
    xmlHttp.onreadystatechange=handleStateChange;
    xmlHttp.setRequestHeader('Content-Type', application/x-www-form-urlencoded');
    xmlHttp.send("filepath="+file1);
    function createXmlHttpRequest()
         //For IE
    if(window.ActiveXObject)
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         //otherthan IE
    else if(window.XMLHttpRequest)
    xmlHttp=new XMLHttpRequest();
    return xmlHttp;
    //Next is the function that sets up the communication with the server.
    //This function also registers the callback handler, which is handleStateChange. Next is the code for the handler.
    function handleStateChange()
    var message=" ";
    if(xmlHttp.readyState==4)
         if(alertflag)
              alert(xmlHttp.status);
    if(xmlHttp.status==200)
    if(alertflag)
                                       alert("here");
                                       document.getElementById("div1").style.visibility = "visible";     
    var results=xmlHttp.responseText;
              document.getElementById('div1').innerHTML = results;
    else
    alert("Error loading page"+xmlHttp.status+":"+xmlHttp.statusText);
    </script></head><body><form >
    <input type="file" name="filepath" id="filepath" onchange="startRequest(this.value);"/>
    </form>
    <div id="div1" style="visibility:hidden;">
    </div></body></html>
    The corresponding action class is FIlePathAction
    package actions;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.*;
    public class FilePathAction extends Action{
         public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException
              String contextPath1 = "";
              String uploadDirName="";
              String filepath="";
                        System.out.println(contextPath1 );
                        String inputfile = request.getParameter("filepath");
                        uploadDirName = getServlet().getServletContext().getRealPath("/upload");
                        File f=new File(inputfile);
    FileInputStream fis=null;
    FileOutputStream fo=null;
    File f1=new File(uploadDirName+"/"+f.getName());
    fis=new FileInputStream(f);
         fo=new FileOutputStream(f1);
                        try
         byte buf[] = new byte[1024*8]; /* declare a 8kB buffer */
         int len = -1;
         while((len = fis.read(buf)) != -1)
         fo.write(buf, 0, len);
                        catch(Exception e)
                                  e.printStackTrace();
                        filepath=f1.getAbsolutePath();
                        request.setAttribute("filepath", filepath);
                        return mapping.findForward("filepath");
    Action-mappings in struts-config.xml
    <action path="/FilePathAction"
                   type="actions.FilePathAction">
                   <forward name="filepath" path="/dummy.jsp"></forward>
              </action>
    and the dummy.jsp code is
    <%=request.getAttribute("filepath")%>

    MESSAGE FROM THE FORUMS ADMINISTRATORS and COMMUNITY
    This thread will be deleted within 24 business hours. You have posted an off-topic question in an area clearly designated for discussions
    about Distributed Real-time Java. Community members looking to help you with your question won't be able to find it in this category.
    Please use the "Search Forums" element on the left panel to locate a forum based on your topic. A more appropriate forum for this post
    could be one of:
    Enterprise Technologies http://forums.sun.com/category.jspa?categoryID=19
    David Holmes

  • How to Upload a File on the Server

    Hi,
    I want to upload a file on the server from Windows Mobile Application. Can anyone please suggest me a way to do so?
    Thanks in advance, 
    Saheli Sur

    Following links should also help
    http://blog.anthonybaker.me/2013/06/how-to-upload-file-from-windows-phone.html
    http://stackoverflow.com/questions/19954287/how-to-upload-file-to-server-with-http-post-multipart-form-data/20000831#20000831
    Gaurav Khanna | Microsoft .NET MVP | Microsoft Community Contributor

  • How to bind an IIS to the enterprise portal installed on a linux machine

    Dear all,
    I am very new to the topic of Enterprise Portal.
    Our intention is, to develop .NET IViews and deploy them in the Enterprise Portal.
    The Enterprise Portal Server is set up on a linux machine.
    The Guy who did install the Portal Server, has no idea how to "integrate" the Microsoft IIS to the Portal.
    After deploying my .net Component, i tried to view this component in the portal (by right clicking the mouse on the Component in in the .NET Solutions Explorer).
    This gives me the following error:
    Portal Runtime Error
    An exception occured while processing a request for:
    iView:N/A
    Component Name: N/A
    Could not find portal application com.sap.portal.dotnet.framework.
    Exception id: 02:06.......
    See the details for the exception ID in the log file
    I think that this has something in common with integrating the IIS on the Linux Machine, and maybe additionaly installing the pdk.net on the IIS webserver machine which should be used.
    Thank you for your help.
    Regards

    Hi,
    Welcome to the world of Enterprise portal
    Seems to me like you are trying to use the PDK for .NET. If so - Please read the overview section in the documentation to get a general idea of how it works (for example - IIS is not used at all!).
    See the Visual Studio integrated help or click this https://media.sdn.sap.com/html/submitted_docs/dotnet/index.htm
    there go to "Getting Started" and mostly "Overview".
    Anyway, It seems like the problem is that you didn't deploy the 2 required SDA's to the portal. You should also take a look at the "installation and configuration" guide. Download it here: https://www.sdn.sap.com/sdn/developerareas/dotnet.sdn?contenttype=url&content=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/pdk for .net administrator guides.zip
    Good luck,
    Ofer

  • How to upload many Files in the table of Project Document (Solution Man)  ?

    I have generate some hundreed  PDF-Files and I want to upload this PDF files in the table of  Project Documentation in the Solution Manager.
    In the Solution Manager is it only possible to upload this files single.
    My intention is  to write an abap program that upload all files automatically in this Project Documentation and assign this documents in the right  project.
    Which tables are used in this context ?
    Where I can find the assignment  between documents and projects  in se16, in wich table ?
    Is existing an introduction document to this topic, where i can get more information ?
    Thank you in advance.

    GerdW wrote:
    Hi dimitriev,
    Target: I have a array of cluster in my project in main VI and have lots of VIs which uses this array via reference as global variable.
    When accessing that array from a lot of locations simultanously you will get RACE CONDITIONS. Easily and fast…
    Use a FGV aka AE instead to encapsulate your "data object"!
    Another good option sounds like the Data Value Reference.  Those work really well if you want to keep a reference to pass around to everybody.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How do upload a file to the application server into a directory?

    hi to all,
    i want to upload file into the database..i need upload the file into the application server and save it to a directory..is there any way?where i can read about this?any information?
    ashwiny

    Hello,
    First, we need to determine the terms we are using, in order to avoid confusion. We (including the documentation) are using "upload" to describe storing the file on the server, and "download" to pull it from the server into local machine.
    You can use the "File Browse" item to upload any file you need from your local machine and into a database table. The default APEX configuration (in the dads.conf file) stored the uploaded file in a table called wwv_flow_file_objects$. In your application, you can access this table using a view called APEX_APPLICATION_FILES.
    After you uploaded a file, any user can access it, using the download procedure described in the reference I gave you. The download procedure gives you an option to store the download file anywhere you need, using the "Open/Save" dialog box.
    I believe this is covering everything you need. If you still having problems, please consider posting the relevant application pages on apex.oracle.com. It will be easier to understand and help you.
    Regards,
    Arie.

  • How to upload XML file into the internal table in Webdynpro  ABAP ?

    Hi Friends,
    I am not able to upload the XML file into ABAP,can you please help me in solving this issue with the help of source code.
    Regards
    Dinesh

    Hi Dinesh,
    Try go through this program which I had developed earlier. It takes as input an XML file and then breaks it down into name-value pairs of an intrnal table. You need to pass an XML file as input to this program. (I had hard coded the path for my XML file in it. You need to replace it with 1 of your own or you can just delete it and use the browse button to selet the file on your PC)
    Regards,
    Uday
    REPORT  ZUDAY_XML no standard page heading.
    " Internal table to store the XML file in binary mode
    data: begin of it_xml occurs 1,
            c(255) type x,
          end of it_xml,
    " Name-value pairs table rturned by FM SMUM_XML_PARSE
          it_SMUM_XMLTB type SMUM_XMLTB occurs 0 with header line,
    " Table returned by FM SMUM_XML_PARSE for error handling
          it_bapiret2 type bapiret2 occurs 0 with header line.
    " XSTRING variable to be used by FM SCMS_BINARY_TO_XSTRING to hold the XML file in XSTRING format
    data: I_xstring type xstring, 
    " String variable to hold XML file path to pass to GUI_UPLOAD
          I_file_path type string,
    " Variable to store the size of the uploaded binary XML file
          I_LENGTH TYPE I VALUE 0.
    parameters: P_path type IBIPPARMS-PATH default 'C:\Documents and Settings\c5104398\Desktop\flights.xml'.
    " Get the XML file path from the user
    at selection-screen on value-request for P_path.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          FILE_NAME = P_PATH.

  • How to upload a file on SFTP location in java?

    Hi,
    I have csv file and I need to upload it on some SFTP location, can anybody please help me out?
    I have searched out but din't get such library for SFTP, please help me out.

    Is this a colleague of yours?
    Write a file to SFTP Server

  • How can I upload a file to the server where I save the Java Web Start Files

    Hello,
    Does anyone knows how to upload a file to the directory where I save the JAR files through the Java Web Start program. Thanks you

    ftp

  • Windows Applications in the Enterprise Portal

    Hi all,
    we have EP 6.0 SP10 based on NW04 installed.
    Is there any possibility to integrate Windows Apllications
    (Windows 'exe' files) in the Enterprise Portal.
    Best regards

    With LaunchInIE you use JavaScript to launch the actual applications. What we do is write a Java iView that contains links (we use icons) to programs installed locally on each machine. When the user clicks a link (icon) we run the JavaScript that opens the locally installed 'exe' file.
    If you have a look at the WhirlyWiryWeb link posted earlier you can see how to use LaunchInIE.
    The downside to this is that the .dll has to be installed on each machine and the registry (for each machine) has to be maintained.
    You can just write a java iView that has links to locally installed exe's (file://C:/myfolder/myexe.exe) if you like but that will result in a security warning each time. LaunchInIE stops the security warning.

  • How do I change the default folder that opens when uploading a file to the internet from my mac? (at the moment it automatically defaults to 'Downloads' folder)

    How do I change the default folder that opens when uploading a file to the internet from my mac? (at the moment it automatically defaults to 'Downloads' folder)
    For example...
    I am on a webiste and wish to upload a photo.
    I click on select file on the website
    Finder opens and defaults to 'Downloads' folder (it happens with all wesbites)
    How do I change this?

    I am on a webiste and wish to upload a photo.
    I click on select file on the website
    You are attempting to download the picture to your computer not uploading photo to the website if I am understanding you correctly.
    To change the download direction, you must do so through your browser's Preferences.  If you are using Safari, hopefully, someone who uses Safari will help you and/or post over in their forums.  I do not use Safari.
    If using Firefox>Preferences>General>Save Files to:

  • How to upload a file which may contain text as well as image to the server using windows phone 8 application ?

    How to upload a file which may contain text as well as image  to the server using windows phone 8 application ?

    You're going to need to give way more detail about the situation before we can help.

  • How to Import the Enterprise Portal EAR files in Track.

    Dear All,
    I developing Portal components in local development system (NWDS).Now i need to move into track (NWDI).I checked but i am not getting any option to  move that. I try to create Enterprise Portal component.But that is in disable mode and gray out color( Portal Application Standalone - Error displaying-Software component does not support this development component type. Required DCs are located in an SC that is not visible from the selected one.).what i can do.
    My server version is 7.4 and NWDS tool version is NWDS7.3 SP12
    Please share the information.
    Thank for Advance,
    Thanks,
    Durga Rao.

    Hi Asif,
    Please check this link may help for you.
    Creating a portal webservice in NWDS 7.0.14
    How to Create Web Service iView through Enterprise Portal 7.0 Using an iView - Portal - SCN Wiki
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1b651014-0301-0010-c39a-98d7cd057847?QuickLink=events&overridelayout=true&5003637524035
    The above version 7.0 but same process in 7.4 also.
    Portal Web Services - Portal - SAP Library
    http://help.sap.com/saphelp_nw74/helpdata/en/4b/78f7042bfb41a9e10000000a421937/frameset.htm
    BR,
    Durga Rao.

  • How to upload Excel file in BI using function module in abap program

    How to upload Excel file in BI using function module in abap program?

    Hi Anuj,
    To upload the file , you can try a standard program "RSEPSFTP" .
    while you execute the program , a selection screen appears in which the inputs should be give as
    RFC destination - The target server name
    FTP command- PUT
    local file - your file name
    local directory - path of your local file
    remote file - your target file name
    remote directory - where it has to be stored
    Hope this is useful for you
    Thanks & regards
    Anju

Maybe you are looking for