File Write error in application server

Hi All,
             I am getting an error for writing data to a file in application server.
Is there any way or transaction where in I can check Read or write access to a file?
Please help.
Thanks in advance
Sanu

Hi Raja,
              Thanks for your reply.
I have checked the program and file path in AUTHORITY_CHECK_DATASET FM.
Everything is ok.
But still I getting an error while uploading data to application server.
My query is, are there any transactions wherein we can view or maintain read / write authorization to a file or directory.
Can you please put some more of ur thought in to it?
Thanks,
sanu

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

  • Program error accessing application server

    Hi, I jus tried to write a simple code to write data into application server and read tht file . But this program keeps runing in the background . whn i try to see process overview thro the transaction SM50, i can still see the program running. Can anyone tel me whether the program is correct and y am getting this background job running? its very very urgent pls help me
    REPORT  Zreport.
    DATA: BEGIN OF ITAB_CUST OCCURS 0,
          FRSTNAME LIKE KNA1-NAME1,
          LASTNAME LIKE KNA1-NAME2,
          ORTO1 LIKE KNA1-ORT01,
          END OF ITAB_CUST.
    data: itab_CUST1 LIKE STANDARD TABLE OF ITAB_CUST WITH HEADER LINE.
    PARAMETER: P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\usr\sap\DEC\SYS\global\itab1.xml'.
    START-OF-SELECTION.
      PERFORM GETDATA.
      PERFORM DOWNLOADDATA.
      PERFORM UPLOADDATA.
    *&      Form  GETDATA
          text
    -->  p1        text
    <--  p2        text
    FORM GETDATA .
      SELECT NAME1
             NAME2
             ORT01 FROM KNA1 INTO TABLE ITAB_CUST WHERE kunnr eq '0000000033'.
    ENDFORM.                    " GETDATA
    *&      Form  DOWNLOADDATA
          text
    -->  p1        text
    <--  p2        text
    FORM DOWNLOADDATA . "DOWNLOAD DATA INTO APPLICATION SERVER FROM INTERNAL TABLE
      OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE
                                       ENCODING DEFAULT .
      LOOP AT ITAB_CUST.
      TRANSFER ITAB_CUST TO P_FILE.
      ENDLOOP.
      IF SY-SUBRC NE 0.
      WRITE: /'NOT DONE'.
      ELSE.
      WRITE: 'DONE'.
      endif.
      CLOSE DATASET P_FILE.
      ENDFORM.                    " DOWNLOADDATA
    *&      Form  UPLOADDATA
          text
    -->  p1        text
    <--  p2        text
    FORM UPLOADDATA . "UPLOAD DATA INTO INTERNAL TABLE FROM SERVER
    OPEN DATASET P_FILE FOR INPUT IN TEXT MODE
                                     ENCODING DEFAULT.
    DO.
    READ DATASET P_FILE INTO ITAB_CUST1.
    IF SY-SUBRC = 0.
    APPEND ITAB_CUST1.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET P_FILE.
    LOOP AT ITAB_CUST1.
    WRITE: / ITAB_CUST1-FRSTNAME,
    ITAB_CUST1-LASTNAME.
    ENDLOOP.
    ENDFORM.                    " UPLOADDATA

    Hi,
    Just add few validations
    OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE
    ENCODING DEFAULT .
    <b>IF sy-subrc NE 0.
    ..error
    ENDIF.</b>
    OPEN DATASET P_FILE FOR INPUT IN TEXT MODE
    ENCODING DEFAULT.
    <b>
    IF sy-subrc NE 0.
    ..error
    ENDIF.</b>
    Regards,
    Atish

  • How to send the file contents in the application server to ftp server

    Hi,
    how to send the file contents in the application server to ftp server.
    regards,
    sree

    Test SAP FTP functions
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
           HOST            = 'servername'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
         EXPORTING
           HANDLE = MI_HANDLE
           COMMAND = 'dir'
         TABLES
           DATA = MTAB_DATA
         EXCEPTIONS
           TCPIP_ERROR = 1
           COMMAND_ERROR = 2
           DATA_ERROR = 3
           OTHERS = 4.
    IF SY-SUBRC = 0.
      LOOP AT MTAB_DATA.
        WRITE: / MTAB_DATA.
      ENDLOOP.
    ELSE.
    do some error checking.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
         EXPORTING
           HANDLE = MI_HANDLE
         EXCEPTIONS
           OTHERS = 1.
    Execute external commands (FTP Scripts)
    The following code shows the syntax of the FM 'SXPG_COMMAND_EXECUTE'. You pass it the external command created within transaction SM69 and it will execute it.
    DATA: ld_comline 
    LIKE sxpgcolist-name,
            ld_param    LIKE sxpgcolist-parameters,
            ld_status   LIKE extcmdexex-status,
            ld_output   LIKE btcxpm OCCURS 0 WITH HEADER LINE,
            ld_subrc    LIKE sy-subrc.
      REFRESH ld_output.
      MOVE 'FTP_DATA_IN' to ld_comline.         "Maintained using trans SM69
    Execute external command, contained in 'ld_comline'
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = ld_comline
              additional_parameters   = ld_param  "Params passed to script
              operatingsystem              
    = 'UNIX'
           IMPORTING
                status                        = ld_status
           TABLES
                exec_protocol                 = ld_output
           EXCEPTIONS
                no_permission
                     = 1
                command_not_found
                 = 2
                parameters_too_long          
    = 3
                security_risk                
    = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry
              = 13
                jobcount_generation_error
         = 14
                OTHERS                       
    = 15.
      IF sy-subrc NE 0.
      ENDIF.

  • Files are stored in application server,

    Files are stored in application server, I am using Open dataset to write to a file in unix box.would like to convert my itab into tab delimted and download. Please let know
    is there any function?

    You should do a search to get the right ascii value (you can get an
    ascii chart, you can google a bit, you can visit the group's page and
    search for tab delimited... ) and replace 09 by the right value. And
    that's it.. The technique (which is what it matters) is right.
    Another tip:: you could download in two steps: first you use
    gui_download or ws_download to create a tab delimited file in your pc or
    in a network. Then you upload this file (using gui_upload or ws_upload
    into an internal table and the final step is to use open dataset -
    transfer - close dataset to write down this last itab to your app
    server.

  • Backup failed with tar file write error (10054)

    Hi
    I have got the issue with the online backup.
    Database: Oracle 9.2.0.7
    SAP : 4.7
    Backup Server: Netbackp
    When ever i trigger the backup on few of my SAP Servers, it runs for a while and then at a point just get struck.
    Where for other systems it is running fine.
    Error:
    Incident:1
    http://80.00 18:52:28 INF - Waiting for mount of media id A00201 on server mk2sapp001-b.
    http://80.00 18:53:42 INF - Beginning backup on server mk2sapp001-b of client mk1sap01-b.
    http://80.00 18:55:10 FTL - tar file write error (10054)
    Incident:2
    http://80.00 12:05:50 BKR - G:\oracle\VWD\sapdata1\btabd_41\
    http://80.00 12:05:53 INF - Beginning backup on server mk2sapp001-b of client mk1sap01-b.
    http://80.00 12:08:13 FTL - tar file write error (10054)
    http://80.00 12:08:13 INF - Client completed sending data for backup
    After the step mentioned in bold it just get struck,
    There is no issue with the space at OS level
    I can see all process will still be running in task manager
    such as backint.exe, brbackup.exe, brconnect.exe
    But
    I don't find bpbkar32.exe Process, after the backup got struck.
    I have asked Network guys as well and they said every thing is fine from their side(such as Speed, Full Duplex)
    Its very important, please assist.
    Thanks in advance

    yes , i am using symantec netbackup,
    but every thing is fine from their side as well(settings).
    i have reinstalled the client as well.
    it runs for 1 hr and then it throws error.
    yesterday i scheduled two backup at two different time(at the interval of 1 hr) but they both failed (struck) at the exact same time(even seconds were same).
    So what do you say??

  • How to store a JSP file in the SAP Application server ?

    Hello All,
    My reqt. is as follows :
    1. I need to store a JSP File on the SAP Application server .
    How can I do this ?
    2. I want to call the uploaded jsp file from the server and call this jsp from abap to view the result of it .
    How can I achieve this ?
    First of all is this possible ?
    Regards,
    Deepu.K

    Hello Mike,
    Thanks for ur reply.
    I've imported the JSP as a mime object into the BSP.
    Now I've created the page to show that Mime Object as an image.
    But nothing is coming as an output.
    But then,there is an option for that mime object. i.e when I right click on the mime object there is an option called " convert to BSP".
    I selected that option and it created a view in my BSP .( My BSP is a page with flow logic application )
    Now how should i make this view to be an output ?
    I guess this shud be posted in the BSP Forum ...but still taking a chance here :)-
    Regards,
    Deepu.K

  • Reading the data from excel file which is in application server.

    Hi,
    Iam trying to read the data from excel file which is in application server.
    I tried using the function module ALSM_EXCEL_TO_INTERNAL_TABLE. But it didn't work.
    I tried just reading using open data set and read data set it is giving junk characters.
    Please suggest me if you have any solution.
    Best Regards,
    Brahma Reddy

    Hi Narendra,
    Please see the below code I have written
    OPEN DATASET pa_sfile for INPUT in text mode ENCODING  DEFAULT MESSAGE wf_mess.
    CHECK sy-subrc = 0.
    DO.
    READ DATASET pa_sfile INTO wf_string.
    IF sy-subrc <> 0.
    EXIT.
    else.
    split wf_string at wl_# into wf_field1 wf_field2 wa_upload-field3
    wa_upload-field4 wa_upload-field5 wa_upload-field6 wa_upload-field7 wa_upload-field8
    wa_upload-field9 wa_upload-field10 wa_upload-field11 wa_upload-field12 wa_upload-field13
    wa_upload-field14 wa_upload-field15 wa_upload-field16 wa_upload-field17 wa_upload-field18
    wa_upload-field19 wa_upload-field20 wa_upload-field21 wa_upload-field22 wa_upload-field23
    wa_upload-field24 wa_upload-field25 wa_upload-field26 wa_upload-field27 wa_upload-field28
    wa_upload-field29 wa_upload-field30 wa_upload-field31 wa_upload-field32 wa_upload-field33
    wa_upload-field34 wa_upload-field35 wa_upload-field36 .
    wa_upload-field1 = wf_field1.
    wa_upload-field2 = wf_field2.
    append wa_upload to int_upload.
    clear wa_upload.
    ENDIF.
    ENDDO.
    CLOSE DATASET pa_sfile.
    Please note Iam using ECC5.0 and it is not allowing me to declare wl_# as x as in your code.
    Also if Iam using text mode I should use extension encoding etc.( Where as not in your case).
    Please suggest me any other way.
    Thanks for your help,
    Brahma Reddy

  • F4 help for file path in the Application server

    Hi All,
    i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0
    Regards
    Shekhar

    Hi
    Copy paste the following code and see the result
    Here you can see 2 types of open dialogs
    1. Directory View
    2. File View
    Use any one as per your requirement.
    DATA : l_filetable TYPE filetable,
           l_rc TYPE i.
    DATA: l_folder TYPE string,
          l_file TYPE string.
    PARAMETERS: p_folder(100) TYPE c,
                p_file(100) TYPE c.
    *Provide a Dialogue box for getting a folder path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_folder.
      CALL METHOD cl_gui_frontend_services=>directory_browse
        EXPORTING
          window_title    = 'Select Folder Path'
          initial_folder  = 'D:\'
        CHANGING
          selected_folder = l_folder.
      p_folder = l_folder.
    *Provide a Dialogue box for getting a file path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select a Text File'
          initial_directory = l_folder
        CHANGING
          file_table        = l_filetable
          rc                = l_rc.
    Reward points generously
    Regards
    Akshay Chonkar
      READ TABLE l_filetable INTO p_file INDEX 1.
      CHECK sy-subrc <> 0.

  • How to read list of all files in folder on application server?

    How to read list of all files in folder on application server?

    Hi,
    First get the files in application server using the following function module.
        CALL FUNCTION 'RZL_READ_DIR_LOCAL'
          EXPORTING
            name     = loc_fdir
          TABLES
            file_tbl = int_filedir.
    Here loc_fdir contains the application server path.
    int_filedir contains all the file names in that particular path.
    Now loop at int_filedir.
    OPEN DATASET int_filedir-name FOR INPUT IN TEXT MODE ENCODING  DEFAULT MESSAGE wf_mess.
    MESSAGE wf_mess.
        IF sy-subrc = 0.
          DO.
            READ DATASET pa_sfile INTO wf_string.
            IF sy-subrc <> 0.
              EXIT.
    endif.
    close datset int_filedir-name.
    endloop.

  • ORA-29285: file write error

    Hi,
    We are getting this error ORA-29285: file write error while writing to a text file using utl_file.putf package.
    Using fopen funtion in code to open file as below:
    V_FILEHANDLE:=UTL_FILE.FOPEN(v_file_path,'ABC','W', max_linesize);
    Here max linesize = 32000, so as far as I think, limitation on length of records while writing the file is not an issue.
    Further code is written as:
    UTL_FILE.PUTF(V_FILEHANDLE, v_text1||'|'||v_text2||'|');
    UTL_FILE.NEW_LINE(V_FILEHANDLE);
    UTL_FILE.FFLUSH(V_FILEHANDLE); -- This is called after every 500 lines are written to the file.
    UTL_FILE.FCLOSE(V_FILEHANDLE);
    We are encountering this error every now and then, and strangely this gets resolved when we re-run the program and file gets written successfully.
    Can someone please help on this please?
    Oracle database 11g, version: 11.1.0.7.0
    Thanks,
    Sonam

    Not enough information.
    964643 wrote:
    Hi,
    We are getting this error ORA-29285: file write error while writing to a text file using utl_file.putf package.
    Using fopen funtion in code to open file as below:
    V_FILEHANDLE:=UTL_FILE.FOPEN(v_file_path,'ABC','W', max_linesize);And what value has v_file_path got? Is this the name of an Oracle Directory Object as it should be?
    Here max linesize = 32000, so as far as I think, limitation on length of records while writing the file is not an issue.
    Further code is written as:
    UTL_FILE.PUTF(V_FILEHANDLE, v_text1||'|'||v_text2||'|');
    UTL_FILE.NEW_LINE(V_FILEHANDLE);
    UTL_FILE.FFLUSH(V_FILEHANDLE); -- This is called after every 500 lines are written to the file.
    UTL_FILE.FCLOSE(V_FILEHANDLE);
    We are encountering this error every now and then, and strangely this gets resolved when we re-run the program and file gets written successfully.
    Can someone please help on this please?Not without seeing complete code so that we can try and reproduce the problem or spot where you may be going wrong.

  • Regarding the File Format on the application server

    Hi,
    I would like to know the file format (ANSI, UTF-8, UTF-16, UTF-32) of the file placed on the application server in my program. Can anyone help me with the Function Module or Class or any other way which will retrieve this information.
    Thanks
    Sarves S V K

    Hi
    You can try the standard class CL_ABAP_FILE_UTILITIES and the method
      CALL METHOD cl_abap_file_utilities=>check_utf8 
        EXPORTING 
         file_name = filename 
        IMPORTING 
         bom       = file_bom 
         encoding  = file_encoding. 
    Check the possible values returned by encoding and BOM:
    NO_BOM
    BOM_UTF8
    BOM_UTF16_BE
    BOM_UTF16_LE
    ENCODING_UTF8
    ENCODING_7BIT_ASCII
    ENCODING_OTHER

  • How i access file which stored at application server .? Is there any fm ?

    Hi,
    How i access file which stored at application server . Is there any function module which provide same funtinality.
    Regards,
    Gurprit Bhatia

    Hi ,
            U need to use datasets for reading data from application server.Do a f1 on dataset,u will get to know rest of the things.
    TRY.
        OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING UTF-8.
      ENDTRY.
      IF sy-subrc = 0.
          READ DATASET file INTO <wa_data> MAXIMUM LENGTH 200.
               move the data in to internal table
        close dataset
    Edited by: A kumar on Aug 21, 2008 1:37 PM

  • Encountering ORA-29285: file write error

    Hi. I am running a simple code and got this error? ORA-29285: file write error
    I swear this is working yesterday and and all my write to text code =(
    Error starting at line 1 in command:
    Declare
    v_file utl_file.file_type;
    v_dir_folder varchar (30) := 'DATA_PUMP_DIR';
    BEGIN
    v_file := UTL_FILE.FOPEN(v_dir_folder,'Test.txt','w');
    UTL_FILE.PUT_LINE(v_file, 'text1');
    UTL_FILE.FCLOSE(v_file);
    END;
    Error report:
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 77
    ORA-06512: at "SYS.UTL_FILE", line 690
    ORA-06512: at line 8
    29285. 00000 - "file write error"
    *Cause:    Failed to write to, flush, or close a file.
    *Action:   Verify that the file exists, that it is accessible, and that
    it is open in write or append mode.

    989873 wrote:
    Hi. I am running a simple code and got this error? ORA-29285: file write error
    I swear this is working yesterday and and all my write to text code =(
    Error starting at line 1 in command:
    Declare
    v_file utl_file.file_type;
    v_dir_folder varchar (30) := 'DATA_PUMP_DIR';
    BEGIN
    v_file := UTL_FILE.FOPEN(v_dir_folder,'Test.txt','w');
    UTL_FILE.PUT_LINE(v_file, 'text1');
    UTL_FILE.FCLOSE(v_file);
    END;
    Error report:
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 77
    ORA-06512: at "SYS.UTL_FILE", line 690
    ORA-06512: at line 8
    29285. 00000 - "file write error"
    *Cause:    Failed to write to, flush, or close a file.
    *Action:   Verify that the file exists, that it is accessible, and that
    it is open in write or append mode.Does "Test.txt" now exist?
    If so, which OS user owns this file?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How to trigger a Report when a file is placed in Application server

    Hi All,
    How to triggger a Report and get executed when a new file is placed in the application server.?
    It will be helpful if a Navigation is provided for the EVENT.
    Thanks in advance
    Chakri

    Hi,
    Check what is the frequency of the file coming to the application server.
    Schedule your program in SM36 giving data and time make it periodic . select the check box Periodic Job
    and then select the period values and give the period values as per the frequency of the file coming to app server.
    Thanks,
    Harini

Maybe you are looking for

  • TS2776 songs in my itunes are not on my itouch

    Even though my songs are checked off in itunes they are not visible on my itouch after syncing.

  • Change language for router setup page

    Hello Lynksys im using older model and havent gotten around to buying a new wireless router, i was wondering is i do decide to get a newer model will my site be in english. currently i have the site in german and it will not for the love of my life t

  • Error in Inbound Transportation

    Hi, Im working on inbound transportation. Theseq of t codes followed is as followed. Me21n VL31n VT01n VI01 VL32n (PGR) The FRB1 condition type in ME21n is set the Condition type field to B = Delivery costs and In addition, marked with  the Transfer

  • Reader X compatible with Acrobat 9 shared review

    I need to know if I can initiate a shared PDF review with Acrobat 9 and include reviewers running Reader X and Reader 9. If anyone has info on this, it would be greatly appreciated. Thanks

  • Could not print "whatever file name" because of a disk error ???

    Hello, I am running Snow Leopard 10.6.4, and Adobe CS5 suite, whenever I try to print to my printer I get this error from Photoshop, which is rather annoying. I have the scratch disk set to an empty 1tb hdd, and obviously the primary drive works just