Documents on Application Server

We have an application which has lots of attachments. At present we have the document table on application server and one table in database, which connects to document table on the server.
My problem is we are running out of room on the app server, so I want to load the documents to file share server instead of Application server. Has antbody done that? How do I do that?
I would really appreciate the help.
Thanks
Yagna

I don't see any performance decrease by using the db to store the files (and I store many many doc in the db!). But OK if it's one of your requirements and you are aware of the implications of storing the file data away from the control data you need to find the file data, you can still use the sample. Just change the storing and reading the data from/to the db in storing and reading the data from/to the file system.
One problem you have to solve, if you don't want to upload the files (to the file system), is how to get the files to the server. You normally don't have access to the filesystem of the production server or can dictate where to store them. You have to make the access path to the files configurable so that the application can read the files from a path which can be altered by the admins how deploy the app and put the files somewhere on the server.
Keep in mind that such a solution will not scale very well. You have to guarantee that each cluster server can access the files in the file system.
Timo

Similar Messages

  • Attach document from application server using BAPI

    Hi,
    I am trying to attach files to Document Info Record using BAPI
    BAPI_DOCUMENT_CHECKIN_REPLACE2. When i execute the z program that calls this BAPI on
    presentation server in foreground by giving path of documents which are locating on local pc it works
    fine and check in the file in document infor record
    But when i run program in background and file path is of application server.It gives error that
    Program no longer started via RFC. No return possible.
    I want to know the cause of this error.
    Please help.

    i think u need to pass Storage category  = FILESYSTEM.
    check the documentation of data element -
    DE CV_STORAGE_CAT
    but i'm not 100% sure abt it.
    regards
    Prabhu

  • Uploading and view an document in application server from abap

    Dear SDN users,
    I have a similar requirement:
    i need to upload a docuement into SAP  under a particular system generated unique No.
    My basis team has given a file path in application server.
    So i need to upload and view(Not Downloading) that uploaded document at any time in future.
    Note : Each System generated no is having different documents.
    Thanks in advance.
    Regards
    RAJ
    Moderator Message: Do not dump your requirement. Get back to the forums in case you've any specific issues.
    Edited by: Suhas Saha on Jan 14, 2012 3:50 PM

    Dear Prakash,
    As i Said  i have to  upload and Just view the documents.
    its an urgent requirement.
    i want to upload multiple documents and i have to raed with file name.
    Note : currently it is downloading only last uploaded one.
    following is the code:
    DATA: V_DSN(40) VALUE '\usr\reports\fico\',
          V_STR(1673) TYPE C.
    FORM UPLOAD .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = L_FNAME
    FILETYPE = 'BIN'
    IMPORTING
    FILELENGTH = LENGTH
    TABLES
    DATA_TAB = ITAB.
      OPEN DATASET V_DSN FOR OUTPUT IN BINARY MODE..
      LOOP AT ITAB INTO V_STR.
        TRANSFER V_STR TO V_DSN LENGTH 1673.
      ENDLOOP.
      CLOSE DATASET V_DSN.
      IF SY-SUBRC EQ 0.
    MESSAGE S001(ZSD) WITH 'Sucess'.
      ENDIF.
    EndForm.
    FORM DOWMLOAD .
    CLEAR WA_DEMO.
    OPEN DATASET V_DSN FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET V_DSN INTO ITAB-FIELD MAXIMUM LENGTH 1673.
    IF SY-SUBRC = 0.
    APPEND ITAB.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = DWN_FILE
    FILETYPE = 'BIN'
    BIN_FILESIZE = LENGTH
    IMPORTING
    FILELENGTH = LENGTHN
    TABLES
    DATA_TAB = ITAB.
    endform
    Regards
    MNR
    Edited by: mnr4sap on Jan 14, 2012 1:54 PM

  • How to open word document from application server?

    hello ,
    I want to open a word document that is placed on the application server.
    the function module 'ws_execute' works fine for displaying documents placed on ur local file system. But if i want to open from application server, what needs to b done?
    i m referring to the following demo program 'SAPRDEMOOFFICEINTEGRATION'
    is this the correct reference or there is some other way to do the same?
    kindly help.
    Regards,
    Roshani

    Hi Roshani,
              The solution is like this.
    1> Execute - this is the solution to your program. The file is generated and put in the Application Server for the data to be sent by some means to the intended Place.
    2> To Display/View - This is for the person (who runs the program) to view if the output generated is correct or not.
             So to accomplish this use the same internal table for both Open Dataset and Gui download.
    Open dataset puts data onto the Application server and Gui_download puts the data onto the Desktop or Presentation server for the user to see the data thats fetched.
    So use them as directed to achieve the desired output.
    Reward Points.
    Thanks,
    Tej..

  • Download spool to PDF document on application server

    Hi,
    I am using function CONVERT_OTFSPOOLJOB_2_PDF to convert a sapscript spool and then downloading the internal table provided to a pdf file on the application server. The sapscript form contains company logos.
    After transferring the file from the application server to PC and then opening the pdf document I get the following message:
    "There was an error while trying to parse an image."
    The PDF doc contains everything except the company logo.
    I noticed that this works (i.e. company logo is present in the downloaded file) when I transfer the internal table that contains the PDF contents onto my PC using GUI_DOWNLOAD using mode 'BIN'. However, when I transfer the contents of the same internal
    table to a file on the application server using abap statement:
    'Open Dataset <filename> FOR OUTPUT IN BINARY MODE'
    I get the problem described above.
    I noticed that SAP has provided standard program RSTXPDFT4 to convert a spool and download it into a PC file. However is there a similar program that downloads a spool onto the application server? Perhaps there is a 'special' way in downloading PDF documents onto the application server?
    I don't this problem with sapscripts that do not have a company logo.
    Is there a certain restriction on 'Open Dataset'with transfering logos in PDF documents?
    Any help would be greatly appreciated in the form of reward points.
    Thanks
    Liam

    Hi,
    We convert some of our spools to pdf and store them on the app server using following high level process.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid = p_spool
                no_dialog   = 'X'
                dst_device  = 'LOCL'
           TABLES
                pdf         = lt_pdf
           EXCEPTIONS
                OTHERS      = 0.
    Write PDF file
      CALL FUNCTION 'GUID_CREATE'
           IMPORTING
                ev_guid_32 = l_guid.
      CONCATENATE '/your_path_goes_here/'
                  l_guid
                  INTO l_filename.
      CONCATENATE l_filename '.pdf' INTO l_filename.
    Store
      OPEN DATASET l_filename IN TEXT MODE.
      IF NOT sy-subrc IS INITIAL.   " only write pdf if new
        LOOP AT lt_pdf.
          TRANSFER lt_pdf TO l_filename.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET l_filename.
    If it doesn't work, I would 1st try and play with image type. I'm wondering if it's tripping on image conversion. Perhaps revert to 1st principles and try monochrome bitmap and a few variations thereof. I stand by my code above. Definitely works. HTH, Dave

  • Reading a document from application server / opening in SAP session

    Hi guys,
    we  have a requirment has follows , please help me with your inputs.
    We have list of documents available in the DMS server....(XLS,DOC,PDF)
    1. How to get the list of file names ( available in the DMS server )  into the internal table.
    2. i need to open these documents by clicking - into the same sap session itself. (it should not open in windows)
    Please Note : Many of our forum friends earlier to open the file in windows.
    regards
    Giri

    Hi,
        You can show any  doc that is uploaded in DMS using the URL of the doc . the doc will be shown in a container. You can refer the std prog . SAPRDEMOPIVOTINTERFACE.. or some thg like that ( i dont remember the exact name ) .
    You need to pass the Class name . object type and object name to  find the URL.  Check transaction OAER and enter class as SSOFFICEINTEGRATION ,  type as OT and name as SSOFFICEINTEGRATION.
    Hope this helps.

  • Opening a file stored at application server

    Experts,
        I have put a document on application server using DATASET .
       Now I want to open the same file from there only.
       ho to do that.
    Thnx in Advance
    Chetan

    Hi Chetan ,
    U can use following code to open the file u created in application server.
    1.
    data: <dataset_name>(25)  value '.\tmp\file_sarang_01.txt'.
    open dataset <dataset_name> for input in text mode encoding UTF-8
    read dataset <dataset_name> into itab_wa.
    Append itab_wa to itab.
    close dataset <dataset_name>
    loop at itab.
    write: itab-field1 , itab-field2 .
    endloop.
    2.  U can use transaction CG3Y  , to save file from application server to presentation server directly.(A short cut for u)
    I hope this solves ur problem
    Reagrds.
    Note: Reward if useful

  • Broken link in "Oracle9i Application Server Portal Error Messages"

    Hi,
    the following link to "Troubleshooting Issues in Oracle9iAS Portal Architecture and Performance"
    http://portalstudio.oracle.com/servlet/page_pageid=478&_dad=ops&_schema=OPSTUDIO&
    is bad in the document "Oracle9i Application Server Portal Error Messages" which can be found at http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/ERRORMESSAGESHTML/CH_902.HTM
    Rgds
    Sol

    After installing the Oracle9i Application Server ,Oracle8i 1.7 Database,I visit the link"http://localhost" ,then click "Jsever (demo)". Then ,there appears "500 Internal Server err".
    The log file:
    mod_jserv.log
    [24/01/2002 09:25:32:031] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
    [24/01/2002 09:25:32:031] (EMERGENCY) ajp12: connection fail
    [24/01/2002 09:25:32:031] (ERROR) an error returned handling request via protocol "ajpv12"
    Please help me.Any help appreciated!

  • Create a Document with an original file stored on application server

    Hello,
    I start with document managment system : i am able to create new document (CV01N) manually, add a local file and check-in this file.
    Now we need to store file which are stored on the SAP Application Server.
    Firstly, in the GUI of transaction CV01N, i don't know how to browse file on application server. All files i can't attach as original, are files i can access from my computer.
    Is it possible to access also on application server files ?
    Moreover, i have to define function module which have to
    - Create a document (DMS)
    - Attach an orginial file which is stored on application server
    - Check-in the file
    This function module will be called from a web application
    I define this kind of function and run it correctly with a local file (stored on my computer) : i call BAPI "BAPI_DOCUMENT_CREATE2" and "BAPI_DOCUMENT_CHECKIN2"
    But i don't how to do with a file stored on application server. I see also note 504692 and try a program like ZZUZTEST_TEST_CHECKIN which use FM CVAPI_DOC_CHECKIN but it return an error Error uploading  E:\usr\sap\TD1\DVEBMGS00\data\FACTURE.txt" (this path and file exist on application server and is really the file i want to checkin)
    Please could you confirm what i search, is possible or not.
    If possible, could help me with some explanations and guidelines and perhaps a sample ?
    Thank you very much.
    Regards,
    Eric
    The function used
    FUNCTION Z_TEST_CHECKIN.
    Checkin the first original of a document info record *
    from the application server and/or in the background *
      data   : w_host like BAPI_DOC_AUX-HOSTNAME.
      data: lf_line(255).
      data: ls_draw like DRAW,
            ls_message_cvapi like messages,
            lt_files_cvapi type standard table of CVAPI_DOC_FILE,
            lt_files_cvapi_header like CVAPI_DOC_FILE.
      data: lt_originals LIKE cvapi_doc_file OCCURS 0 WITH HEADER LINE,
            vo_originals LIKE cvapi_doc_file OCCURS 0 WITH HEADER LINE.
      ls_draw-dokar = 'ZFT'.
      ls_Draw-doknr = '0000000000000004500000032'.
      ls_Draw-dokvr = '00'.
      ls_Draw-doktl = '000'.
    Read Originals contained in the document info record
      CALL FUNCTION 'CVAPI_DOC_GETDETAIL'
        EXPORTING
          pf_batchmode    = 'X'
          pf_hostname     = ' '
          pf_dokar        = ls_draw-dokar
          pf_doknr        = ls_draw-doknr
          pf_dokvr        = ls_draw-dokvr
          pf_doktl        = ls_draw-doktl
          pf_active_files = 'X'
        IMPORTING
          psx_draw        = ls_draw
        TABLES
          pt_files        = vo_originals
        EXCEPTIONS
          not_found       = 1
          no_auth         = 2
          error           = 3
          OTHERS          = 4.
      IF sy-subrc <> 0.
        WRITE 'Error returned by CVAPI_DOC_GETDETAIL'.          "#EC NOTEXT
        EXIT.
      ENDIF.
    Check if we can really access the file from the application server
      read table vo_originals index 1.
      open dataset vo_originals-filename for input in text mode ENCODING DEFAULT.
      if not sy-subrc is initial.
        message e500(26) with vo_originals-filename 'not found'.
      endif.
      read dataset vo_originals-filename into lf_line.
      if not sy-subrc is initial.
        message e500(26) with vo_originals-filename 'read error'.
      endif.
      lt_originals             = vo_originals.
      lt_originals-STORAGE_CAT = 'SAP-SYSTEM'.
      append lt_originals.
      w_host = sy-host.
      CALL FUNCTION 'CVAPI_DOC_CHECKIN'
      EXPORTING
      PF_DOKAR = ls_draw-dokar
      PF_DOKNR = ls_draw-doknr
      PF_DOKVR = ls_draw-dokvr
      PF_DOKTL = ls_draw-doktl
    PS_DOC_STATUS =
      PF_FTP_DEST = 'SAPFTPA'
      PF_HTTP_DEST = 'SAPHTTPA'
    *PF_HOSTNAME =  w_host
    PS_API_CONTROL =
    PF_REPLACE = ' '
    PF_CONTENT_PROVIDE = 'SRV'
      IMPORTING
      PSX_MESSAGE = ls_message_cvapi
      TABLES
      PT_FILES_X = lt_originals
    PT_COMP_X =
    PT_CONTENT =
      IF ls_message_cvapi-msg_type CA 'EA'.
        ROLLBACK WORK.
        MESSAGE ID '26' TYPE 'I' NUMBER '000'
        WITH ls_message_cvapi-msg_txt.
      ELSE.
        COMMIT WORK and wait.
      ENDIF.
    ENDFUNCTION.

    This is a bit tricky. I spent lots of hours about this .
    You have to set PF_HOSTNAME with your name of your AS and gives the path to the file on the server.
    You wrote
    *PF_HOSTNAME = w_host
    But beware: if you have more thän one AS you have to fix one AS for upload or you have to find the servers name of the file. A better way can be to share one folder by each AS.
    You also have to decide between HTTP or FTP.
    You wrote:
      PF_FTP_DEST = 'SAPFTPA'
      PF_HTTP_DEST = 'SAPHTTPA'
    You must define only one ! Then you have to check your settings in SM59 about working right.
    Pls rate, if this was helpful.
    Regards,
    Markus

  • Capacity sizing document for Forms on iAS(Oracle Application Server)

    Hi,
    I need to know from where I can get Capacity planning document for Forms on Oracle Application Server for Intel/Solaris/Aix arch.Please Advise.
    Regards,
    Noman

    Hi,
    we have several developers working with developer suite 10g. Our OAS runs on Linux as yours. All our developers work locally using windows-pc's. We have a samba share we use to move the developed sources to the linux box. On the linux box with have some scirpts to compile the sources and move them to the runtime-directory.
    The final integration test in then done using the installed application on the oas.
    This works without having any problems for more two years now.
    btw: Be aware of the problems you will run into when moving an application from windows to linux:
    -> All filename ar Case-sensitive
    -> the writing of module-names in OPEN_FORM, NEW_FORM, CALL_FORM must match exactly the filename (in other words: call_form, open_form and new_form is also case-sensitive
    -> Attached librarys are also case-sensitive, even if there are shown in uppercase in the module-navigator.
    hope this helps.
    Edited by: aweiden on 08.11.2008 18:05

  • URGENT ! Oracle application server document link doesn't  work...

    we can't download these document for 3 day.
    http://download-uk.oracle.com/docs/cd/B10468_04/docs.htm.
    Whole library can be dowloaded as zip file but zip file curropted and doesn't work.
    we are at migration stage of application server and we need these documents upgently.
    (we are from turkey)
    Thanks...

    Hi Ali,
    Our Apologies, the file was indeed corrupt.
    However, the developers spotted the issue and new files are currently being externalized for this Documentation Library. They should be live by 17:00 GMT at the same link on OTN.
    Regards,
    Les

  • Installing Application Server 10g (10.1.3) on Windows Server 2008 Document

    Basically, I need to find out if 10.1.3 application server Enterprise Edition can be installed on Windows Server 2008 with a 64-bit operating system. A yes or no is helpful, but I would like to have a link to the documentation. I'm assisting on an install and have been asked to find this info.
    I've done some searching, but haven't yet been able to find anything on 2008. I found this ( [http://download.oracle.com/docs/cd/B25221_04/win.1013/install/reqs.htm#sthref62] ), which is from this ( [http://download.oracle.com/docs/cd/B25221_04/getstart.htm] ), but the documentation found there only mentions as high as Windows Server 2003. Our DBA would like to see it say Windows Server 2008 64-bit, not just Windows Server 2003 and up (before we make an order on hardware).
    Does anyone have a link that specifically says windows server 2008 / 64-bit is possible?
    Thanks in advance!

    Since Windows 2008 was released after the 10.1.3 release, the Installation Guide does not include Windows 2008. In this case, the Certification should be checked before proceeding.
    Oracle Application Server 10g Release 3 (10.1.3) Certification Information
    [http://www.oracle.com/technology/software/products/ias/files/oracle_soa_certification_101310.html]
    From here, you will find that 10.1.3 is certified on Windows 2008 and that you should also see the following document for more details:
    Oracle Application Server 10g Release 3 (10.1.3) Installation Requirements for Microsoft Windows (Doc ID Note 444112.1)
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=444112.1
    (requires login)
    reference:
    How to Find Certification Details for Oracle Application Server 10g and Oracle Fusion Middleware 11g (Doc ID 431578.1)
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=431578.1
    (requires login)
    ...Ken

  • Can any one help me sending Oracle application server Cloning  document 9.0.4 version

    Can any one help me sending Oracle application server  Cloning document 9.0.4 version (Mail id removed by moderator)
    Many Thanks in advance
    Deepak

    Hi Deepak,
    In first place application server 9.0.2 is desupported since 30th June 2007.So oracle would always recommend its customer to be on the latest versions.
    Please follow the below URL for cloning Appplciation Server 9.0,.4
    Cloning Application Server Middle-Tier Instances
    Regards,
    Prakash.

  • Application server 8.1 alternative for Setting the Document Preferences

    hi All,
    I used to do the following under application server 7 to set the Document preferences:
    To use the Administration interface to set the document preferences, follow these steps:
    1. In the left pane, for the application server instance, open HTTP Server.
    2. Open Virtual Servers.
    3. Click the name of the virtual server you want to edit.
    4. Click the Doc Handling tab.
    5. Click Doc Preferences.
    6. Choose the appropriate field values, as discussed in the following sections.
    7. Click OK.
    I need to do the same thing in application server 8.1 how can i do that?
    What is the alternative procedure?
    I want to have multiple indexes under the same instance which hosts multiple applications
    Thanks,
    Scotty

    hi,
    Can anyone please guide me to the correct solution?
    I have a project and i dont know whether i am stepping right?
    I read in the docs about "welcome-file-list" that is found in the default-web.xml file and it pointed that i can design my application's web.xml to include "welcome-file-list" to point to my customized index.html
    If this is the case, then how can i point my browser to the server is it by the context root only?
    Your quick reply is really appreciated.
    Thanks,
    Scotty

  • Posting documents from application/jsp server to web server

    I need to allow users to upload documents (ie. pdf, doc, ppt, etc) on the application I am building. I am using the FileUpload classes from Jakarta's commons fileUpload. The application that the commons-fileupload-1.0.jar resides on is on the application server. The directories where the documents need to post to are located on the Web Server. Does anyone have any methods or resources for doing this?

    You could specify a remote directory for upload... the one on the web server.

Maybe you are looking for

  • Itunes 11.0.2.26

    Dear Friends I have recently updated my itunes 11.0.2.26 When I get apps or update my previous apps from App Store with my iPad and I want to sync my iPad to my PC ( Windows 7) the new apps and updated ones won't transfer to my pc folder. it means if

  • Mail wont open after snow leopard update

    Mail refuses to open after update,when initated it flashes in the tray then disappears,has apple a fix for this problem? Or admits it exists. Thanks

  • Table.Location error running Windows Vista (IIS 7)

    Post Author: surfhound CA Forum: Crystal Reports I am using crystal reports with ASP.NET 2 and I am trying to set the table location using the following code reportTable.Location = reportTable.Location.Substring( reportTable.Location.LastIndexOf(".")

  • GroupWise intall on Mac OS 10.8.5

    Anyone have advice what to troubleshoot on a GroupWise 8 client install on Mac Book Pro using OS 10.8.5. The client installs but the issue is with startup. The GW client asks for un/pw and when it is provided the application just hangs there. We end

  • I can't get the print sizes I want in iPhoto 6

    Got the new iMac about three weeks ago, and have installed iLife '06. I've just tried to print a photo out 4 x 6 and the preview shows the photo in the bottom right of the screen (which is how it used to be on iLife '04). However, when printed, the p