Opening Photo from application server

hi all
I've installed the webutil successfully and now i want client machine to open a images stored in the application server.
I'm using application server 10g.
and i don't know if it should use the webutil or not in this task.

So you should check why the link doesn't work. When you enter the url in a blank browser-window, does it show the image? Also, you should check if the subdirectories are spelled correctly.
the sub directory spelled correctly but it doesn't open any files when i copy the url in a blank browser.
this is how i create the url for the file and i don't know if it's true or false.
example for file location
C:\IAS9I\forms90\java\GPD_DOCS\FN13\COMP1MF3926\L8602.tif
and app_server and port is 172.27.1.20:7777
so the URL will be
http://172.27.1.20:7778/forms90/java/GPD_DOCS/FN13/COMP1MF3926/L8602.tif
I've tried to change it to be
http://172.27.1.20:7777/forms90/java/GPD_DOCS/FN13/COMP1MF3926/L8602.tif
or
http://172.27.1.20:7778/IAS9I/forms90/java/GPD_DOCS/FN13/COMP1MF3926/L8602.tif
or
http://172.27.1.20:7777/IAS9I/forms90/java/GPD_DOCS/FN13/COMP1MF3926/L8602.tif
or
http://172.27.1.20:7777/c:\IAS9I/forms90/java/GPD_DOCS/FN13/COMP1MF3926/L8602.tif
or
http://172.27.1.20:7778/c:\IAS9I/forms90/java/GPD_DOCS/FN13/COMP1MF3926/L8602.tif
i don't know what's is the problem.
does the web.showdocumet need specific  configuration in the application server .
thx all

Similar Messages

  • File open error from Application Server

    Hello friends,
    I am able to open a file from the foreground mode.
    However when i run the program in background am unable to open it.
        OPEN DATASET fp_asfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    I have alos tried to change the user with the back groung user ID. but it again failed.
    Can any one tell me why.
    Ster

    Hi,
    Ok..go to SM51 in your system...and then check how many application servers are there..
    if there are more than one..do the following..
    In the background mode...the program might be running in a different application server....than the one which you used in the your foreground session..
    check this..
    1)
    In your foreground session...go to system -> status...get the application server..
    2)
    when you define the job in SM36...there is a field in the initial screen.."Exec. Target"...which says in which application server you want to run this job...Give the application server that you got from step 1...Then release the job...now your program should work fine..
    Thanks,
    Naren

  • Incorrect entries from application server file read dataset .

    As i am using below code for fetching file data from application server to internal table in custom report.
    data in internal table in inconsistent is there any another way to do in?
    report zparoman.
    TYPES: BEGIN OF ty_bkpf,  " STRUCTURE DEFINATION bkpf
             belnr TYPE belnr_d ,
             bukrs TYPE bukrs,
             gjahr TYPE gjahr,
             bldat TYPE bldat,
             cpudt TYPE cpudt,
             waers TYPE waers,
             blart TYPE blart,
             budat TYPE budat,
             xblnr TYPE xblnr1,
             bktxt TYPE bktxt,
      END OF ty_bkpf.
    DATA: it_bkpf TYPE STANDARD TABLE OF ty_bkpf INITIAL SIZE 0, " INTERNAL TABLE it_BKPF
           wa_bkpf TYPE ty_bkpf.                                   " work area wa_bkpf
    TYPES: BEGIN OF ty_bseg,
           belnr TYPE belnr_d,
           bukrs TYPE bukrs,
           buzei TYPE buzei,
           bschl TYPE bschl,
           umskz TYPE umskz,
           hkont TYPE hkont,
           zterm TYPE dzterm,
           wrbtr TYPE wrbtr,
           kostl TYPE kostl,
           prctr TYPE prctr,
           mwskz TYPE mwskz,
           sgtxt TYPE sgtxt,
           zuonr TYPE dzuonr,
           zlspr TYPE dzlspr,
           zlsch TYPE schzw_bseg,
       END OF ty_bseg.
    DATA: it_bseg TYPE STANDARD TABLE OF ty_bseg INITIAL SIZE 0, "internal table it_bseg
           wa_bseg TYPE ty_bseg.                                   "work area wa_bseg
    TYPES:BEGIN OF ty_final,                                    " final structue defn
            header TYPE c LENGTH 3,
            belnr TYPE c LENGTH 10,"belnr_d,
            bukrs TYPE c LENGTH 4,"bukrs,
            gjahr TYPE c LENGTH 4,"gjahr,
            bldat TYPE c LENGTH 8,"bldat,
            cpudt TYPE c LENGTH 8,"cpudt,
            waers TYPE c LENGTH 5,"waers,
            blart TYPE c LENGTH 2,"blart,
            budat TYPE c LENGTH 8,"budat,
            xblnr TYPE c LENGTH 16,"xblnr1,
            bktxt TYPE c LENGTH 25,"bktxt,
            buzei TYPE c LENGTH 3,"buzei,
             bschl TYPE c LENGTH 2,"bschl,
             umskz TYPE c LENGTH 1,"umskz,
             hkont TYPE c LENGTH 10,"hkont,
             zterm TYPE c LENGTH 4,"dzterm,
             wrbtr TYPE c LENGTH 13,"wrbtr,
             kostl TYPE c LENGTH 10,"kostl,
             prctr TYPE c LENGTH 10,"prctr,
             mwskz TYPE c LENGTH 2,"mwskz,
             sgtxt TYPE c LENGTH 50,"sgtxt,
             zuonr TYPE c LENGTH 18,"dzuonr,
             zlspr TYPE c LENGTH 1,"dzlspr,
             zlsch TYPE c LENGTH 1,"schzw_bseg,
      END OF ty_final.
    DATA: it_final TYPE STANDARD TABLE OF ty_final INITIAL SIZE 0, " final internal table it_final
            wa_final TYPE ty_final.                                  " work area wa_final
    TYPES: BEGIN OF temp_str,
    wa_string(5000) TYPE c,
       END OF temp_str.
    DATA:it_str TYPE TABLE OF temp_str,
           wa_str TYPE temp_str.
    DATA: gv_file   TYPE rlgrap-filename.
    gv_file = 'E:\USR\SAP\ECS\SYS\CSL_FIGL_TRANS_DATA_04172014162215.TXT'.
    OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.     "Opening file from Application server
    IF sy-subrc EQ 0.
    *  DO 2 TIMES.
       DO.
         READ DATASET gv_file INTO wa_str.
         IF sy-subrc = 0.
           APPEND wa_str TO it_str.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
       ENDIF.
    *   WRITE:/ 'HELLO'.
    LOOP AT it_str INTO wa_str.
        split wa_str at ' ' into
           wa_final-header
            wa_final-belnr
            wa_final-bukrs
            wa_final-gjahr
            wa_final-bldat
            wa_final-cpudt
            wa_final-waers
            wa_final-blart
            wa_final-budat
            wa_final-xblnr
            wa_final-bktxt
            wa_final-buzei
             wa_final-bschl
             wa_final-umskz
             wa_final-hkont
             wa_final-zterm
             wa_final-wrbtr
             wa_final-kostl
             wa_final-prctr
             wa_final-mwskz
             wa_final-sgtxt
             wa_final-zuonr
             wa_final-zlspr
             wa_final-zlsch.
                                             " Split the string separated by SPACE
         append wa_final to it_final.
    ENDLOOP.

    Hi ,
    Try to open the file with encoding UTF-8 :
       Open dataset file for INPUT in TEXT MODE ENCODING UTF-8 .
    Regards

  • Show a picture from Application server

    Let me reframe my question i asked earlier in this post.
    I want to show a picture which is stored in Application server in my report/dialog program/smartform.
    How do i do that? I don't want to upload the photo using SE78 for Smartforms. Any ways of directly picking the photo from application server, and showing it in the report / dialog program? I have other data in the program too besides the photo. So actually the output is a combination of lots of text and one photo in a corner, like a CV.
    Thanks in Adv.

    Hi,
    You can certainly display a Picture on a dialog screen with the class CL_GUI_PICTURE using a custom control on the screen.
    Read the following link on How to play with the custom picture controls on a screen.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIIMAGE/BCCIIMAGE.pdf
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully
    To display picture like comapany logo on ALV list header see the standard SAP example program BALVST03_GRID. In place of the Standard SAp logo you can place yourown by creating one with the following steps.
    Regards,
    Nagaraju Chidurupalli
    Message was edited by: Nagaraju Chidurupalli
    Message was edited by: Nagaraju Chidurupalli

  • Use of Open and close data set in to pick up files from application server

    Hi,
    As per my earlier posts i m making a programm which will pick excel sheet from application server and make auto PR by bapi and this all process will be handle by background processing (SM36, SM37). My concer is all proces are working fine but my files are not been picked by application server , when run on my own machine everything is working fine.I never used OPENDATA SET command before , so i have no idea how it will be used , can anyone provide me details with my set of codes where it should be used ....
    sou_dir_name = 'Y:\Sucess\'.
    tar_dir_name = 'Y:\destination\'.
    Open dataset sou_dir_name for input in text mode encoding default.
    if sy-subrc eq 0.
       do.
           read dataset sou_dir_name into file_table.
       if sy-subrc ne 0.
         exit.  " end of file.
    enddo.
    endif.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
          endat.
      endloop.

    Parsing XML data:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    or alternatively check out ABAP online help for "CALL TRANSFORMATION".
    For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
    Thomas

  • How to delete the Generated files from application server(open hub)?

    hi experts,
    when i try to execute process chain the DTP it is giving below dump. Exception CX_RSBK_REQUEST_LOCKED logged.
    when i execute the DTP manually and trying to delete the previous request, it is giving for dump ITAB_DUPLICATE_KEY.
    so to delete the generated file from application server, how to delete it for specific dates?
    Information on where terminated
    Termination occurred in the ABAP program "GPD6S3OE0BCVGC6L9DBNVYQARZM" - in
    "START_ROUTINE".
    The main program was "RSBATCH_EXECUTE_PROZESS ".
    In the source code you have the termination point in line 2874
    of the (Include) program "GPD6S3OE0BCVGC6L9DBNVYQARZM".
    The program "GPD6S3OE0BCVGC6L9DBNVYQARZM" was started as a background job.
    and when i check the dump it is point out at below code
    " Populate the lookup table for 0STOR_LOC
    SELECT * from /BI0/TSTOR_LOC
    into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
    FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
    STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
    but the programme is syntactically correct only.
    how to rectify the issue.
    regards
    venuscm
    Edited by: venugopal vadlamudi on Sep 28, 2010 1:59 PM

    hi experts,
    We have written start routine to get the storage location text and sending to File located at Application server through OPEN HUB.
    here is the code written in the Transformations
    In the global section
    Text for 0STOR_LOC
        DATA: l_0stor_loc_text TYPE HASHED TABLE OF /bi0/tstor_loc
              WITH UNIQUE KEY stor_loc.
        DATA: l_0stor_loc_text_wa TYPE /bi0/tstor_loc.
    and in the code to get the text
    " Populate the lookup table for 0STOR_LOC
        *SELECT * from /BI0/TSTOR_LOC*
          into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
          FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
                  STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
    im sure there is problem with the Routine only. i think i need to change the code if so please provide me the modified one.
    thanks
    venuscm
    Edited by: venugopal vadlamudi on Sep 29, 2010 9:37 AM

  • Open documents/files from Application Server in forms 6i

    Hello All,
    Our requirement is to open files that are in Application server( We do not want to upload them into database).
    Is there a way to open this files from forms 6i.
    I am wondering how the "View Output" or View log button works on the concurrent program submission form. Its the doing the same thing i.e pulling the file from Application server and showing up.
    Please let me know if anyone has any ideas on how to get this done.
    Thanks
    Sunil

    I assume you are using Forms 6i in web mode here. Then it is just a URL to the file if you properly map to a directory where you store the files:
    web.show_document('http://...../myfile.pdf');
    But it also looks like you are using Oracle Apps, so might want to ask it in the e-Business Suite.

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

  • "Open file..." dialog from Application Server (Unix)

    Hi all you experts.
    I have a simple ABAP program that reads input files from Application Server (Unix), at this moment the users have to enter manually the name of the file(s) in a parameter text field. I would like to add value to this program by helping the user select the file using an "Open file..." dialog or something similar that enable them to chose the file on behalf of writing the complete name (including the path).
    Do you have any idea about how to implement it?
    Many thanks in advance.

    Hi,
    Try function module F4_DXFILENAME_TOPRECURSION or F4_FILENAME_SERVER (for a specific directory) within the at value-request event for the filename.
    Cheers,
    Darren

  • Delete data from application server

    Hi All.
    I have created file in application by using OPEN DATA SET, I need to delete from application server after some validation ,  how to delete?
    Please guide me.
    Thanks in Advance.

    Hi,
    DATA FNAME(60) VALUE 'file'.
    OPEN DATASET FNAME FOR OUTPUT.
    OPEN DATASET FNAME FOR INPUT.
    IF SY-SUBRC = 0.
      WRITE / 'File found'.
    ELSE.
      WRITE / 'File not found'.
    ENDIF.
    DELETE DATASET FNAME.
    OPEN DATASET FNAME FOR INPUT.
    IF SY-SUBRC = 0.
      WRITE / 'File found'.
    ELSE.
      WRITE / 'File not found'.
    ENDIF.
    The output appears as follows:
    File found
    File not found
    Use cane Also Use Function Modue: EPS_DELETE_FILE
    Regards,
    Gurpreet

  • File from application server -Read and process and delete the file .

    Hi All,
             I writing a ZEE program which will read the file from application server(file will be in text delimat format) and moving the data to internal table and uploadind data base.The part which iam facing problem is -
    > I hve read the file from application server like below ,
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
    Spliting part i having problem .i need to seperate each field which is seperate from tab delimite and pass it into respective fields of internal table .
    Second if another file come to the appicaltion server , wether my first file will be there ? or should i need to delete the first file after redaing how should i proceed further ?.
    Regards
    SRIRAM...
    THANKS In ADVANCE

    HI,
    1.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    DO.
    CLEAR: wa_string, wa_uploadtxt.
    READ DATASET ld_file INTO wa_string.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    SPLIT wa_string AT cl_abap_char_utilities=>horizontal_tab INTO wa_uploadtxt-name1
    wa_uploadtxt-name2
    wa_uploadtxt-age.
    APPEND  wa_uploadtxt TO itab.
    ENDDO.
    CLOSE DATASET ld_file.
    ENDIF.
    2. If the another file get's generated in the application server with same file name then the data in old file get's over written with the new data. You are not required to delete the file.

  • The dialog box open twice when open file from the server

    I use the following code to download/open file from the server:
    <%
    String filename = "MengxianhuiDocTest.doc";
    String filepath = "D:\\";
    response.setContentType("APPLICATION/OCTET-STREAM");
    response.setHeader("Content-Disposition",
    ??attachment; filename=\"" + filename + "\"");
    java.io.FileInputStream fileInputStream =
    new java.io.FileInputStream(filepath + filename);
    int i;
    while ((i=fileInputStream.read()) != -1) {
    out.write(i);
    fileInputStream.close();
    out.close();
    %>
    If the application runs, the Open or Save dialog box display.When I select open the file,
    the dialog box will display twice.
    Pls help me.
    Thanks.

    thx
    but I tried it and it did't work.
    The dialog box also display twice.

  • Regarding Reading the file from Application Server

    Hi,
    I am trying to read data from Application Server but due to special characters it is getting dumped out.
    US24,Q,Acero (Carbon),AA,0010,0001,01,Ver Mir para dimension#
    US24,Q,Acero (Carbon),AA,0010,0002,01,Area rectificada sin da#os ra
    US24,Q,Acero (Carbon),AA,0010,0003,01,Ver Mir para dimension#
    US24,Q,Acero (Carbon),CD,0010,0001,01,ITPE Soken para verificacion
    US24,Q,Acero (Carbon),CD,0010,0010,01,No se permite desprendimiento
    US24,Q,Acero (Carbon),CD,0010,0002,01,"Vernier, cinta metrica"#
    In the last line it is going into dump due to special character ".
    Please suggest.
    Thanks
    Priyanka.

    Hi,
    You can check the mode in which you are reading the file
    from application server that is
    Open Dataset in Binary or Text Mode.
    Hope it helps
    Regards
    Mansi

  • Unable to read file from application server

    Hi guys,
    I am reading file(could be any extension) from application server,but some time i am successfuly able to read file and sometime unable to read,why its happening .
    my code is here
    OPEN DATASET E_FILE FOR INPUT IN  BINARY MODE . "
      IF SY-SUBRC = 0.
        DO .
          READ DATASET E_FILE INTO GS_PDF_TAB.
          IF SY-SUBRC = 0.
            APPEND GS_PDF_TAB TO GT_PDF_TAB.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        CLOSE DATASET E_FILE.
      ENDIF.
    Thanks
    Ankur Sharma

    Hi,
    What actually happens?  Do you get a short dump?  Do you get a return code ne 0?  Does it run fine but you get no data in your table?
    We aren't mind-readers and can't help much without more information.
    Try using transaction AL11 to see if you access the files you are trying to open.
    Gareth.

  • Uploading and reading file from application server

    Hi
    My problem is when am uploading a file to application server it is getting stored in
    usr/sap/transyp1/prod/in   directory
    after that i want to read that file from application server to update database
    when  using below code it is showing some other directory in f4 help
    DATA: lv_hostname TYPE msxxlist-name.
    DATA: lv_server TYPE bank_dte_jc_servername.
    PARAMETERS: p_file TYPE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'BANK_API_SYS_GET_CURR_SERVER'
    IMPORTING
    e_server = lv_server.
    lv_hostname = lv_server.
    CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
    EXPORTING
    dynpfield_filename = 'P_FILE'
    dyname = sy-cprog
    dynumb = '1000'
    filetype = 'P'
    location = 'A'
    server = lv_hostname.
    experts could you please help me out
    Thanks & Regards
    Nagesh.Paruchuri

    User Transaction file. You will get all logical file path names.
    used following fucntion module to read file name and use command open dataset to read the file.
    CALL FUNCTION 'FILE_GET_NAME'
           EXPORTING
                CLIENT           = SY-MANDT
                LOGICAL_FILENAME = C_LOGICAL_FILENAME
                OPERATING_SYSTEM = SY-OPSYS
                PARAMETER_1      = P_IN_FILENAME
           IMPORTING
                FILE_NAME        = P_OUT_FILENAME
           EXCEPTIONS
                FILE_NOT_FOUND   = 1
                OTHERS           = 2.
    OPEN DATASET P_OPEN_FILE ENCODING UTF-8 IN TEXT MODE FOR OUTPUT.
      IF SY-SUBRC <> 0.
        MESSAGE E000(38) WITH 'Error in Opening file: ' V_PHY_FILENAME.
      ENDIF.

Maybe you are looking for