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

Similar Messages

  • SharePoint 2013 document library, permissions to upload and view shared document only

    SharePoint 2013 document library I want to give access to client where they can upload and view their uploaded document and can see all documents shared with them.
    I have managed to show all document shared with them only by deactivating a feature but now they can't upload any document, If I create a permission set to allow them to upload documents, they will see all other documents as well which are not shared with them.
    Any suggestions?

    Hi Sharaqat, the best way to handle your situation is to have a separate library or site for the client. You could use item level permissions per Thilosh, but fine-grained permissions become a major headache. You could also use web parts and audience
    targeting, but that's not truly secure.
    cameron rautmann
    I am thinking to have a separate document library for client, where they can upload/view/edit etc, we will upload documents in a "secure" library with a column saying this is a private document or public document, if we mark a document public,
    a workflow will move that document to the client's document library. I don't think there would be a problem to move a document from 1 library to another in a workflow.
    That's the easiest solution I have found so far.

  • Crocodoc HTML5 document viewer:Upload and then display document

    Dear all,
    Did anyone try to upload and then display documents using HTML5 technology. Also recently i came across SAP is using Crocodoc,"an HTML5 documents to display their presentations". I welcome all of your thoughts and suggestions.
    Regards
    Prabaharan

    I have the same need as vudean. I don't understand the security issue. If I type a document using Pages or whatever, why can't I upload the document to a web site? I think Apple should make the standard web "file upload control" available to iPad users.
    I understand that there should be some limitations, but it should be possible to upload standard user files. I can upload them to Dropbox, so I don't se the big difference.
    Does Apple read this? If not, where can I propose this feature to them?

  • FM to upload the Internal table data into application server.

    Hi,
      Could you please give me Function module to Upload the Internal table data into Application server ie., in Tcode AL11.
    I know for downloading the Application server file into itab is "SUBST_GET_FILE_LIST" FM and using open dtaa set we get the data.
    Regards,
    deepthi.

    Hi Deepthi
    Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.
    Here's the code snippet:
    IF tb_alvdisplay[] IS INITIAL.
        MESSAGE e999(/dcsea/zais_msg) WITH text-e01.
      ELSE.
        IF  NOT cb_ufile IS INITIAL  "Download to file
         AND sy-pagno = 0.            "Only down page headers for first page
          PERFORM fm_concatenate_path_name USING    p_path
                                                    p_file
                                           CHANGING v_file.
    *Open file for download.
          PERFORM fm_open_file USING v_file .
        ENDIF.
        LOOP AT tb_alvdisplay.
          IF  NOT cb_ufile IS INITIAL.
    *Passing the values of the respective headings to the structure.
            ws_rec-vend_no     = tb_alvdisplay-vendno.
            ws_rec-vend_nm     = tb_alvdisplay-vendnm.
            ws_rec-title       = tb_alvdisplay-vendtl.
            ws_rec-add         = tb_alvdisplay-add.
            ws_rec-city1       = tb_alvdisplay-city1.
            ws_rec-region      = tb_alvdisplay-region.
            ws_rec-country     = tb_alvdisplay-country.
            ws_rec-pobox       = tb_alvdisplay-po.
            ws_rec-phone       = tb_alvdisplay-telf1.
            ws_rec-extn        = tb_alvdisplay-extn.
            ws_rec-fax         = tb_alvdisplay-telfx.
            ws_rec-zterm       = tb_alvdisplay-zterm.
            ws_rec-remark      = tb_alvdisplay-remark.
            ws_rec-email       = tb_alvdisplay-email.
    *Passing the separator 'PIPE' to the structure.
              ws_rec-sep01  = co_sep.
              ws_rec-sep02  = co_sep.
              ws_rec-sep03  = co_sep.
              ws_rec-sep04  = co_sep.
              ws_rec-sep05  = co_sep.
              ws_rec-sep06  = co_sep.
              ws_rec-sep07  = co_sep.
              ws_rec-sep08  = co_sep.
              ws_rec-sep09  = co_sep.
              ws_rec-sep10  = co_sep.
              ws_rec-sep11  = co_sep.
              ws_rec-sep12  = co_sep.
              ws_rec-sep13  = co_sep.
            TRANSFER ws_rec TO v_file.
          ENDIF.
          AT LAST.
            IF NOT cb_ufile IS INITIAL.
    *Closing the DATASET file.
              CLOSE DATASET v_file.
              IF sy-subrc <> 0.
    *Failure Message.
                MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.
              ELSE.
    *Success message.
                MESSAGE s999(/dcsea/zais_msg) WITH text-t05.
              ENDIF.
            ENDIF.
          ENDAT.
        ENDLOOP.
      ENDIF.
    Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.
    FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.
    Hope this helps.
    Harsh

  • 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

  • Upload and Download Files in an Application

    hi,
    I'm use Application Express 2.1.0.00.39 and the procedure " How to Upload and Download Files in an Application" :
    http://download-west.oracle.com/docs/html/B16376_01/up_dn_files.htm#sthref177
    I do not find the following tables or view:
    HTMLDB_APPLICATION_FILES or wwv_flow_file_objects$.
    which it is my error?
    thanks.
    Luigi

    The documentation was for version 2.2. I could not find a 2.0 version of this howto:
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CIHCFCHF
    However, I did find the correct name of the view for my version, HTMLDB_APPLICATION_FILES
    After following the instructions in the above-mentioned "how to" (uploading and downloading files), I am a getting a html 403 error (You are not authorized to view this page) when I try to download from my custom table using the procedure specified in the howto.
    I've granted execute on the procedure to public only (as specified in the doco).
    err nvm. This has already been answered,
    http://download-west.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/adm_wrkspc.htm#BEJCGJFJ.
    Message was edited by:
    user507810

  • Why can't I upload and view older versions of keynote to iCloud but I can older versions of PowerPoint?

    Why can't I upload and view older versions of keynote to iCloud but I can older versions of PowerPoint? This just seems wrong.

    Try posting in the iTunes Match forum, you'll probably find more knowledgeable folks there.
    https://discussions.apple.com/community/itunes/itunes_match

  • Smartform into PDF and store in folder of  application server

    Hi Gurus,
         I have to solve this issue please help meu2026
    1.Convert Smartform into PDF and store in folder of  application server
    2.print the PDF stored in folder(Application Server) automatically
    Please give suggestion for the above..
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Oct 7, 2011 10:39 AM

    hi uma,
    http://www.kodyaz.com/articles/sap-smartforms-download-as-smartform-pdf-using-ws_download-and-cl_gui_frontend_services.aspx
    check this out...
    thanks,
    ram

  • Migration from Oracle application server from Windowsto Solaris

    Hi Friends,
    I want to migrate Oracle application server from Windows to solaris. Please share the document for this.
    Thanks in advance
    Anil Pinto

    Hi,
    I hope we need to install Oracle Applcation server on Solaris and need to compile windows forms in soalris.
    Thanks & Regards
    Anil Pinto

  • Switch to different application server in ABAP program

    Hello everyone,
    I am currently working on some ABAP objects classes and tool programs for additional user administration functionality. We are runnig a SAP ERP system with distributed application servers and active logon load-balancing for users.
    I'd like to switch to a different application server from within my program in order to get all relevant information for an active user. So far I only found the function TH_SELECT_SERVER (from the function group THFB) for this, but this uses a separate dialog for interactively switching to another application server.
    I could use RFC calls with a lookup table for the destinations of individual application servers, but this would not be as flexible. Also I would have to create some wrapper code for standard functions which are not defined as RFC-usable. So I would rather like to switch to the other server instead.
    What I'd like to do instead is switching to another server from a user-related server list without any additional interaction in order to run a function locally on the other server. Does anybody know some function, object method etc. which will do the trick?
    Greetings,
    Markus.

    Hello Thomas,
    Bingo !!!
    I debugged the report program RSM51000_ALV & found the sub-routine SM51_USER_CMD.
    The SY-UCOMM for our purpose is 'RLOG'. and it utilises the FM 'TH_REMOTE_TRANSACTION' )
    Hope this will be of some help to the thread starter.
    BR,
    Suhas

  • Starting application server from IDE

    I'm trying to start the application server from an evaluation copy of
    Visual Cafe 4.5 Enterprise Edition. When I choose Project -> Start
    Application Server from the menu, a window briefly opens with "Start
    Application Server" as its title and a logo of a spinning W. After
    the W spins about one time the window close, with no error message
    reported.
    I would like to know what I should do in order to start the
    application server (A developer's license of WebLogic is included)
    from the IDE.

    Look at the weblogic.log file
    (%BEA_HOME%\wlserver6.0\config\mydomain\logs\weblogic.log) to see if
    there are any error messages printed there. If not, it is probably a
    license issue in that the license.bea file must be in the CLASSPATH used
    to start the app server.
    Tom Ewall wrote:
    I'm trying to start the application server from an evaluation copy of
    Visual Cafe 4.5 Enterprise Edition. When I choose Project -> Start
    Application Server from the menu, a window briefly opens with "Start
    Application Server" as its title and a logo of a spinning W. After
    the W spins about one time the window close, with no error message
    reported.
    I would like to know what I should do in order to start the
    application server (A developer's license of WebLogic is included)
    from the IDE.

  • How to migrate application server from Tomcat to WebSphere?

    Hi,
    I installed BO XI 3.1 32 bit in environment:
    - AIX 5.3 64 bit
    - Deployed Tomcat 5.5 from installing BO
    - Oracle client 10G
    I need to migrate application server from Tomcat to WebSphere 6.1 and WebSphere 6.1 Server 32 bit in Windows platform.
    Could you someone give detail steps
    Many thanks in advance and best regards,

    I tried manually to deploy web applications, but not successful. This is my deployment step following:
    AIX 5.3: BOE XI 3.1 :
    Copy all <INSTALLDIR>/bobje/enterprise120/java/applications/  to Windows Websphere D:\BO_WAS
    WebSphere 6.1 location & IP (windows) :
    C:\Program Files\IBM\WebSphere\AppServer1\
    IP: 192.168.69.10
    Log in to WebSphere Applicaton Server Administrative http://192.168.69.10:9060/admin
    1. Under the Applications heading of the console navigation menu, click
    Enterprise Applications on the left navigational pane.
    2. Click the Install button and navigate to the location of the WAR file to
    deploy. If deploying from a remote file system, select the Remote File
    System option.
    3. Enter a context root for the WAR file (e.g. /CmcApp for CmcApp.war)
    (this format (/CmcApp) for Unix OS, have different in Windows ? Could you give me fully path?)
    and
    press the Next button, followed by Continue.
    4. In "Step 1", give a unique name for your web application and proceed to
    "Step 2".
    5. Highlight the server you created (or highlight server1 if you didn't create
    your own) from the Clusters and Servers and enable the Select
    checkbox. Proceed to "Step 3".
    6. Select the virtual host you created (or default_host if you didn't create
    your own) from the Virtual Host drop-down list. Proceed to "Step 4".
    7. Review the summary page, and press Finish when done.
    8. Click Save to Master Configuration.
    9. Click the Save link, then the Save button.
    Finally the output is not available.
    Many thanks in advance and best regards

  • How to upload  and download a files into AL11 directory in ABAP

    Hi,
                   How to upload  and download a files into AL11 directory in ABAP
    thanks
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 21, 2011 9:18 AM

    You should try one of these forums for an answer to your question:
    http://swforum.sun.com/jive/forum.jspa?forumID=116
    http://community.java.net/netbeans
    http://linux.java.net

  • Security Error while trying to deploy my project to the application server from jDeve

    Dear All,
    I'm trying to deploy my project to the application server from jDeveloer but i got the following error :
    Invoking Oracle9iAS admin tool...
    D:\Oracle\OUIHome\jdk\jre\bin\javaw.exe -jar D:\Oracle\OUIHome\j2ee\home\admin.jar ormi://M-AMIN:3101/ admin **** -deploy -file D:\Oracle\OUIHome\jdev\mywork\Portal\UserManager\userRegister.ear -deploymentName userRegister
    Security error: This operation was denied. The admin.jar utility can not be used to perform operations against OPMN managed OC4J instnaces. Please use Enterprise Manager or dcmctl instead. Refer to the Oracle9iAS Admin Guide or the OC4J User's Guide for more details.
    Exit status of Oracle9iAS admin tool (-deploy): 1
    #### Deployment incomplete. #### Sep 10, 2002 4:16:53 PM
    Any help will be appreciated
    Regards,
    Mohammed Amin

    In JDev 9.0.2, to deploy to the full 9iAS server (instead of just Oracle9iAS Containers for J2EE [OC4J]), you have to use Enterprise Manager or DCM to deploy your application.
    In JDev 9.0.3 Preview, there is a way to have JDev perform a deployment via DCM for you, if you install a DCM Servlet into 9iAS that comes with JDeveloper.
    By JDev 9.0.3 Production, if you also use Oracle9iAS 9.0.3 Production, it should be possible to deploy to iAS 9.0.3 out-of-the-box.

  • How to upload and down load Document from Server in Webdynpro Java

    Hi,
    I have to upload and download document to the server and from the server.
    The examle and the sample application which is available in SDN is not helpful as its about uploading and downloading from the application context.Please let me know how to upload/download from teh server.
    Sandip

    Hi sandip,
         I have same requirement.If u get any source please let me know.
    reagrds,
    Anuradha

Maybe you are looking for

  • SRM Purchase order form?

    Hi SRM Purchase order form As we are implimenting SRM 7.0  for of the project,We have one of the scenario called :SRM Purchase order form So we need to find the actual content of the Po from.? Can any one can give the Actual content of the PO form ?

  • Badges missing in Lightroom 1.1

    Badges and the "curled page" indicator for virtual copies are missing in the filmstrip. Flags do appear properly. Note that I have read other posts where the solution was to make the filmstrip larger. I have made it the largest possible size and stil

  • Static Methods & Switch Statement

    Need help with a switch statement and static methods. My program offers the user a menu to choose what they want to practice. I want to use a switch statement to process the selection. Selecting 1, 2 or 3 causes the program to go to one of the follow

  • Java Program Call from PLSQL

    First I have created two Java files FileName1-TestPLSQL.java package TestJava; public class TestPLSQL {   * @param args   public static void main(String[] args) {   // TODO Auto-generated method stub   test2.world(); FilaName2-test2.java package Test

  • I accidentally deleted the Reminders only on mac section in the reminders.app on mountain lion. How do I get it back?

    I accidentally deleted the Reminders only on mac section in the reminders.app on mountain lion. How do I get it back? I checked @ http://www.apple.com/osx/whats-new/features.html#reminders and it says under Multi Accounts: "Reminders works with CalDA