Application Server file Accessing problem

Hi all,
    In my program  i am writing data to the application server file ( temp.txt ) in Appending mode.
I am having 1000 records to write. In the mean time ( while temp.txt have 200 records ) i am running the same program using same application server file ( temp.txt ) same client but different user. That time writting option for both programs are successfully done.
But in my case i have to restrict the file writing at that time only one user.
Is there any way to lock the application server file for particular user while writting.
Thanks in Advance,
Florian.
Edited by: Florian Thiruselvan on Dec 22, 2008 6:51 AM

Hi Kishan Singh,
      You are exactly write. Its working but i got some more problem in that.
      Importing Parameter
      VOLDIR_SET    TYPE   TXW_LOCK2-VOLDIR_SET
      VOLDIR_SET     TXW_VOLSET    CHAR     10     0     Data file directory set
But the Data file directory set length is more than 10.
What shall i do? do you have any idea please suggest me.
Thanks
Florian

Similar Messages

  • Problem in accessing application server file using open dataset

    Hi All,
    I am trying to access application server file using open dataset command, its working fine for normal path which imention. But when i am giving path of XI server file, its not working. How to access XI server file using open dataset. Please let me know.
    Thanks in advance.
    Regards,
    Vishal

    Hi Vishal,
    You need to verify if the location where you are trying to save the file is in the same server of SAP. In case that the location is in other server you need to map that directy into the same server of SAP.
    You need to point always to a location in the same server of SAP, in order that the open dataset could work.
    Regards,
    Eric

  • Error  while accessing the application server file

    Hello,
    When I try to load the data from CSV file to PSA , I am getting following error message
    "Error  while accessing the application server file"
    "Errors in source system"
    I gave the right file path
    I am not sure about this error message.
    Thanks,

    Hi ram,
    if you have more than one application server running in your BI system (see at transaction SM51) be aware that your infopackage will be executed on the right one. Each application server has its own file system and your job need to run on the server your file is stored on.
    Also check if the os user of the SAP system itself (<sid>adm on Unix) has rights to read that file.
    Bye
    Frank

  • How to check whether the Application Server file has already been opened?

    Hi Experts,
    I have a query related to Application Server file. I am using multithreading concept to process the data and write it in to a single file.
    For example, I have 4 workprocesses. Each workprocess will process the data and whenever it has a record available it will access the file and write it directly.
    Problem is the statements that are written in the workprocess is same and I want to check the status whether the file has been opened or not ?
    Thanks in advance!!!
    Thanks,
    Babu Kilari

    Depends on the structure, and whether the data needs to be sorted in some way in the final file.
    In any case, I don't think there will be a significant performance difference between using OPEN DATASET again and getting funny with Unix commands.
    If you don't need to sort the final file, you can use strings to read, concatenate and write the data even without line-based DO ENDDO loops, this works pretty fast.
    I hope we are not talking about GBytes of data
    Thomas

  • JBOSS  4.0 Application Server start up problem?

    1. JBOSS Application Server start up problem?
    I have installed the JBOSS 4.0 application server in eclipse 3.4(Ganymede) in order to work with the adempiere open source ERP.When I start the JBOSS server,It displays the message &ldquo;Server started in Xm:XXs:XXXms&rdquo; in the console window.But the progress bar in server window is still running.Once the time out is over,it displays the message server cannot be started.
    What should I do in order to make eclipse know that the server is started(message in console as server started) and set its status to &ldquo;Started&rdquo;?
    2.Is it possible to copy and paste the .war created in eclipse 3.4 using JBOSS 4.0 to Glassfish v2 which requires archive file .ear form in NetBeans IDE 6.1?

    i also noticed when I start the server some times the first line it display in the container will be starting Microcontainer some times it diaplays microkernel?You can find out reason based on that also?
    Actually I was using 8080 port for my Oracle 10g Express Edition.Even when I change the port in server view,I had same problem.In order to recover from the problem,I finally changed my database port,My Jboss 4.0 has started succesfully. When I access the JBOSS in URL http://localhost:8080/jmx-console,i got the error can you tell me what can i do?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    Apache Tomcat/5.0.28

  • Validate  application server file

    Hi,
      I have to validate the application server file path on selection screen.
    I am using following code :
    form VALID_APP_FILEPATH   using    p_filpath TYPE FILENAME-FILEINTERN.
      data : l_fname(60).
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          LOGICAL_FILENAME = p_filpath
          OPERATING_SYSTEM = SY-OPSYS
        IMPORTING
          FILE_NAME        = L_FNAME
        EXCEPTIONS
          FILE_NOT_FOUND   = 1
          OTHERS           = 2.
      IF SY-SUBRC ne 0.
          MESSAGE 'Enter the valid file path'(e01) TYPE 'E'.
      ENDIF.
    endform.                    " VALID_APP_FILEPATH
    but if i choose correct file path from F4 help also.
    It displays error message.
    Sy-subrc always equals 1.
    Help me out

    Hi,
    I have implemented the code mentioned by you and am not having any problems even when I use F4 to get the fle name.
    Pls recheck and get back if the error persists.
    Reward if found helpful.
    Warm Regards,
    R Adarsh

  • Application Server : File writes only 255 characters

    Hi Friends,
    I am trying to writes data to application server file .
    My line size is 1100 charqacters.
    When I use open dataset for output in text mode encoding default
    and transfer contents to file.
    I am only able to write contents upto 255 characters.
    Whatever is beyond that I do not see it in AL11.
    Is there a way to write more than 255 characters.
    I tried CG3Y to view files but it also shows only 255 characters.
    Please help.

    Hi,
    Just find the string length.
    In 4.6C version there is a limit of 1500 characters i. e. U can transfer max of 1500 characters in a single transfer. For that we applied below solution. Check this it may help u.
      l_len = strlen( p_data ).
      DO.
        IF l_len LT 1500.
          TRANSFER p_data+l_offset(l_len) TO p_file.
          MOVE 0 TO l_len.
        ELSE.
          TRANSFER p_data+l_offset(1500) TO p_file.
          SUBTRACT 1500 FROM l_len.
          ADD 1500 TO l_offset.
        ENDIF.
        CHECK l_len EQ 0.
        EXIT.
      ENDDO.
    p_data has the content to be trasfered of around 6000 characters and the length is dynamic.
    Also download the data using CG3Y with BIN to .txt file and see.
    If problem is still there then paste ur code of OPEN DATASET, TRANSFER statements.
    Try to open the file in TEXT MODE.
    eg: OPEN DATASET l_file IN TEXT MODE.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 25, 2008 12:34 PM

  • Application Server file Validity

    Hi Experts,
    I have one query. I wanted to check the validity of file in application server. The scenerio is like in my selection screen I will provide application server file name.
    I wanted to validate whether that file is existing or not. If file is not existing then I need to display an error message.
    Can anybody will suggest me how I can achieve this requirement?
    Thanks,
    Neha

    Hi Neha,
    To access the files on Application server we use DATASET operationsd like open, read, close etc.
    Now in your case use opendataset as:
      open dataset   ds_name for output in text mode encoding default.
      IF sy-subrc NE 0.
         //write your message here.
      ENDIF.
      CLOSE DATASET ds_name.
    Where ds_name = logical path name of your file, or if you want to check for just one file, hard code the path.
    Better practice is to use logical path name.
    Also declare ds_name as
    DATA: ds_name          LIKE rfpdo-rfbifile.   
    Close dataset is used in case file exists you need to close it.
    Revert back if you wantto know abt logical file name.
    Regards,
    Sana.

  • Erroneous row-lines in application server file

    Hello,
    There are some erroneous row-lines in application server file. Some part of data is repeating on a single line. I could not able to figure out if this is new record or part of same line. I have checked the code. Internal table is correctly written on application server using TRANSFER statement.
    This problem is occurring only in Production environment as per description. So, I am not able to simulate the case in development environment.
    When I downloaded file into notepad I get following text on single line:-
    7411NC00101 GASNW 49223004 ESSENT NETWERK NOORD (GAS) GASNW 49223004 ESSENT NETWERK NOORD (GAS)  871694840014102760
    Correct record should be:-
    7411NC00101 GASNW 49223004 ESSENT NETWERK NOORD (GAS) 871694840014102760
    Can anyone please suggest me possible causes of the problem?
    Thanks in advance,
    Minal

    Hi,
    Just check the code in debugging  where the "GASNW 49223004 ESSENT NETWERK NOORD (GAS)" portion is generated and written to text area. This is happening because of the loop or not refreshing the variables.
    With regards,
    Sunil

  • Need utilities class for application server file system (i.e. unix etc)

    I need to do things to directories and files on the application server.
    Is there an SAP class with methods for the application server file system (i.e. unix or whatever) with functionality similiar to what is provided by the methods of CL_GUI_FRONTEND_SERVICES for the presentation server?
    Is there a group of SAP functions for this task?

    You may have a look at Thomas Jung article: [sdn contribution : ABAP Server Side File Access, by Thomas Jung|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/7a13f367-0401-0010-47ba-eab0b15cf31c]
    Moreover, in release 7.10, it could be possible that SAP introduced input and output stream classes (to mimic java classes), so I guess there could be the ones for application server file system.

  • DMS Application Server file Upload

    Dear all,
    There is any FM that uploads a file to a DMS Object from the application server?
    Kind Regards,
    Vasco

    hi all,
    if your files are located on a network file server and you want to upload in background you have to do the following things:
    1. create a link on the sap application server to access the network file server. the application server needs to have access to the network share.
    2. use SAPHTTPA or SAPFTPA to access the network file server via the sap aapplication server.
    example:
    your files are located on //.
    check in files using the link as DOCPATH
    "/link/file1.pdf".
    use BAPI_DOCUMENT_CREATE2 if you want to create a document info record and check in a file.
    use BAPI_DOCUMENT_CHECKIN2 if your document info record already exists and you want to add a file to it.
    i hope this helps.
    greets,
    lars
    Message was edited by: Lars Verbüchels

  • Application server file path vaidation

    I have written the code for application server file path validation.
      DATA : l_fname TYPE filename-fileintern." type c.
      DATA : l_filpath TYPE filename-fileintern,
             l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
    l_fname = p_sucfil.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        logical_filename              = l_fname
       OPERATING_SYSTEM              = SY-OPSYS
      PARAMETER_1                   = ' '
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
       WITH_FILE_EXTENSION           = 'X'
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
    IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
       FILE_NAME                     = l_filpath
    EXCEPTIONS
       FILE_NOT_FOUND                = 1
       OTHERS                        = 2
    IF sy-subrc <> 0.
      message 'Invalid file name' type 'E'.
    ENDIF.
    But always i will get Invalid file name.
    Y is it so.
    pls help me.

    Praveen,
    I have checked ur code and I found that if i give a logical file name from
    tran. FILE under folder 'Logical file name definition, cross client' then ur code works. Pl. check.
    Regards,
    Joy.
    DATA : l_fname TYPE filename-fileintern." type c.
    DATA : l_filpath TYPE filename-fileintern,
    l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
      l_fname = p_sucfil.
      CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      logical_filename = l_fname
    operating_system = sy-opsys
      with_file_extension = 'X'
      IMPORTING
      file_name = l_filpath
      EXCEPTIONS
      file_not_found = 1
      OTHERS = 2
      IF sy-subrc <> 0.
        MESSAGE 'Invalid file name' TYPE 'E'.
      ENDIF.

  • Application Server File

    Hi,
    Could any one please answer my question.
    How to archive application server file?.. What is the function module used for that?.
    And my second question..
    How to scan application directory.. after scanning I must be able to know how many files the source directory contians, and the file properties
    Thank you..

    1 . use CG3Z transaction or use OPEN dATASET statement
    2 . use FM EPS_GET_dIRECTORy_LISTING

  • Application server file lentgh

    Hi,
    I am trying to read an application server file using open dataset in Binary Mode..
    I want to find the file length of the file read.(number of bytes transferred as in the GUI_Download FM parameter Filelength)
    How can i achieve it.
    Appreciate ur ideas.
    Rgds.
    stck

    Hello,
    Use the FM EPS_GET_FILE_ATTRIBUTES passing the file name and the directory name and get the file_size.
    Vikranth

  • Application server file formats.

    Hi,
    I have one query regarding the application server file formats, when we are creating a file we give some extension (.txt, .dat),what is the use of different extensions.
    When we are downloading the file from appl server using CG3Y we have two options(ASC and BIN ) what is the use of these options.
    Thanks in advance.

    Hi,
    A text file is a kind of computer file that is structured as a sequence of lines.
    A .dat  file is a computer file which stores data for use by a computer application or system.
    A character encoding consists of a code that pairs a sequence of characters from a given character set (sometimes referred to as code page) with something else, such as a sequence of natural numbers, octets or electrical pulses, in order to facilitate the storage of text in computers and the transmission of text through telecommunication networks.
    ASCII and BINARY codes are used for internal representation of data.
    The major difference between ASCII and BINARY is that when ASCII mode is used then the READ DATASET stmt starts at new line each time and in case of BINARY it reads character by character ( or some characters).
    Thanks and regards.

Maybe you are looking for

  • J2se 1.4 + J2EE 1.3 and weblogic 10 server

    hi we have an application written in J2SE 1.4 and J2EE 1.3 . we currently have the app in WL 8.1 if we migrate to WL 10 server, are there any issues that we have to address. or will the backward compatibility of J2SE and J2EE take care of them Thanks

  • Error installing Mavericks on Macbook.

    I have downloaded the Mavericks installer and prepared my Mac by removing TM backups, turning off TM and rebooting.  I have a qualifying macbook running 10.6.8.  When I try to activate the installer, I get a error saying that the drive is used for Ti

  • Help for Perfect technology selection

    Hi, I want to create a City Navigator by using the maps of that city and not GPS which technology would be suitable for this software. As I want to include Shortest Path facility, etc... Thanx and Regards sweety

  • Printing from iMac G4 to HP Photosmart 7760 – Colors are heavy on pink side

    Hello~ We have an iMac G4 Flat Panel using OS 10.3.9 and are connected to the HP Photosmart 7760 Printer. When we print directly from our camera card, the printer prints fine. True colors. When we print using any software application, (ie Photoshop,

  • Web dispatcher re-direct

    Hello all, We need to setup webdispatcher to forward the traffic to two web application servers. We create the webdispatcher service with profile. We don't know how to redirect the traffic to the application servers. We have installed SAP in a Micros