How to create a directory in application server

Hi all,
How to create a directory in application server through Progaram??
eg:\tmp - is already existing
I want to create \tmp\fi 
Within \tmp\fi - i should able to store my file,,,
Kindly help me urgent...

Hello San,
Either contact Basis guys at ur end for the same or u can do it dynamically via a piece of ABAP code, i hope it wll help u.
call function 'GUI_CREATE_DIRECTORY'
     exporting
dirname = '//<ip_address>/qfilesvr400/<host>/usr/sap/TST/SYS/Folder1'
     exceptions
          failed  = 1
          others  = 2.
Reward If Helpful.
Regards
Sasidhar Reddy Matli.

Similar Messages

  • How to create clustering on oracle application server on windows

    hi,
    i want to know how can i create clustering on oracle application server on windows machine.
    regards

    I think that you need to configure Web cache for this as a frontend, and two or more servers behind it.
    Try to read :
    Metalink DOC ID 312834.1
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/advancedformsconf-128186.pdf
    Edited by: Marcos_Pawloski on 15/12/2010 00:02

  • How to create sap directories in application server by coding.

    Hi Experts,
    Please tell me how to create a sap directory via coding in application server.
    Please tell me step by step n send the code also.I have tried alot using FM  'SXPG_COMMAND_EXECUTE' but i dont know how to use it n wht are d parameters i need to pass.
    Also, i found that we need to create a external command in SM69 to pass in this FM...i dont know how to create this.
    Please help me out.

    Hi friend,
    1. Goto to Transaction SM69.
    2. Click on F5.
    3. Click on F6.
    4. Enter a name in Command Name box          ex: z_com
    5. Enter a os command in Operating system command box.     ex: mkdir (creating a directory)
    6. Give location in application server in Parameters for operating system command box   ex: /C dir
    7. Click Save.
    Goto SE 38 and develop a report using FM 'SXPG_COMMAND_EXECUTE' .
    Ex:
    REPORT  zawi_demodownload                       .
    data: g_out like BTCXPM occurs 0,
            z_com type SXPGCOLIST-NAME  value 'mkdir'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                         = z_com
      TABLES
        exec_protocol                       = g_out
      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 = 0.
    ENDIF.
    Thanks.......

  • How to create URL in Oracle Application Server ?

    Hello,
    I would like to know how to create a URL in Oracle Application server (LINUX) so that our application can be invoked from each and every machine in our
    local hosting.I expect a quick reply.

    You question is not so clear. Basically, after installing infrastructure and middle-tier instances, you can simple run http://localhost:port/appication from any web browser.
    If not, what is your requirements?
    Jaffar

  • How can I create a directory on my server using FTP in applescript?

    Hi
    I have created a script which successfully uploads files to my server using FTP and a curl command.
    The one thing I haven't worked out how to do is how to create a directory on my server using applescript. At the moment I have to manually create the correct directory for the script to work, but would like to be able to automate everything.
    Would this be possible?
    Thanks
    Nick

    Thanks Bernard.
    I have tried that and still get the error message:
    "curl: Can't open '--ftp-create-dirs'!
    curl: try 'curl --help' or 'curl --manual' for more information
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (9) Server denied you to change to the given directory"
    The other relevant parts of the script are:
    set ftp_url to "ftp.****.org.uk/artists/" & artistName2 & "/assets/"
    set ftp_username to "*****@*****.org.uk"
    set ftp_password to "****"
    set ftp_entire to ftp_username & ":" & ftp_password & " ftp://" & ftp_url
    set outPath to outputFolder & fileCounter & ".jpg"
    and then...
    do shell script ("curl -T --ftp-create-dirs " & outPath & " -u " & ftp_entire)
    Like I said, all works fine when the directories are already in place. I have permissions for the artists folder set to "777", i.e. writable. Because the script is trying to create two directories at once, i.e. "artistName2" and then "assets" under it, I wondered if this was significant, but then I tried with just one new directory, and still got the error.

  • Creating Directory in Application Server

    Hi Friends,
    Can anyone help me on,
    How to create directory in application server.
    Also, I need to create one file in this directory with fixed name, how do we do that?
    Also, tell me how to use transaction FILE in detail...
    I am working on CRM and there is no transaction CB3Z ...
    Kindly help.
    Good answers will be rewarded...
    Cheers!
    Pradeep

    Hi Pradeep
    Refer the Links:
    <b>Creating a directory & subdirectory on Application Server
    API for creating a directory in the application server
    Regards,
    Sree

  • How to create a file in the server?

    Hi,
    I'm making a webservice that has to generate a XML file, sign it using another webservice and return this XML. The problem is that i don't know how to create the file in the server throught webservice.
    I use this code in the webservice to generate the XML and after I return the XML to client in a byte[]
         static void outputDocumentToFile(Document myDocument, String path) {
            //setup this like outputDocument
              try {
                   // XMLOutputter outputter = new XMLOutputter("  ", true);
                   XMLOutputter outputter = new XMLOutputter();
                   //output to a file
                   FileWriter writer = new FileWriter(path);
                   outputter.output(myDocument, writer);
                   writer.close();
              } catch(java.io.IOException e) {
                   e.printStackTrace();
        }But the file is generated in the client-side, how can I generate the file in the server-side?
    Thanks very much.

    Well the File object doesn't create a file it's simply an abstract representation of file and directory pathnames.
    You can try something like this:
    <%
    try
    // get the path to the web server root
    // I read somewhere not to use 'getRealPath' for some reason which I
    // can't seem to remember :S Hopefull someone can enlighten us :)
    String path = application.getRealPath("/project/jsp/demo.txt");
    File file = new File(path);
    PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(file)));
    writer.println("Hello World!");
    writer.close();
    catch (Exception e)
    System.err.println(e.getMessage());
    %>
    Hope this helps :)

  • How to create the folder in presentation server through pop-up(

    Hi Experts,
    Can u give me the solution , how to create the folder in presentation server through pop-up(means dynamically, after executing the program , pop-up has to come to create the folderand path)
    regards
    ram.

    Use the methods -> DIRECTORY_BROWSE & DIRECTORY_CREATE of the class CL_GUI_FRONTEND_SERVICES
    DATA: path TYPE string,
          rc TYPE i,
    dir_name TYPE string value 'HI'.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
        CHANGING
          SELECTED_FOLDER      = path
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    concatenate path '\' dir_name into path.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
        EXPORTING
          DIRECTORY                = path
        CHANGING
          RC                       = rc
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Edited by: Kartik Tarla on Sep 23, 2009 5:54 PM

  • Creating a folder in application server in background.

    Hi experts,
    Is it possible to Creating a folder in application server in background.?
    My requirement is like this , every time a PO is created it has to be saved locally.
    When atlast i manged to do this, i get stuck again by this CR ,
    The PO has to be saved in a folder with the same name as PO number,
    I do not know if it is possible.
    So as always I am looking for inputs/suggestions or knowledge if you had come across scenario like this one.
    Thanks and Regards,
    K

    Hi,
    You could create a system command in SM69 to create a directory and then use the function module SXPG_CALL_SYSTEM to invoke the command and pass in the directory name as a parameter at run time.
    Darren

  • How to save CSV file in application server while making infospoke

    How to save CSV file in application server to be used as destination while making infospoke.
    Please give the steps.........

    Hi
    If you want to load your flatfile from Application server,then you need to trasfer your file from your desktop(Computer) to Application server by using FTP.
    Try using ARCHIVFILE_CLIENT_TO_SERVER Function module.
    You Just need to give thesource path and the target path
    goto SE37 t-code , which is Function module screen, give the function name ARCHIVFILE_CLIENT_TO_SERVER, on click F8 Execute button.
    for path variable give the file path where it resides like C:\users\xxx\desktop\test.csv
    for target path give the directory path on Application server: /data/bi_data
    remember the directory in Server starts with /.
    U have to where to place the file.
    Otherwise use 3rd party tools to connect to ur appl server like : Core FTP and Absolute FTP in google.
    Otherwise...
    Goto the T.code AL11. From there, you can find the directories available in the Application Server.
    For example, if you wanna save the file in the directory "DIR_HOME", then you can find the path of the directories in the nearby column. With the help of this, you can specify the target path. Specify the target path with directory name followed by the filename with .CSV extension.
    Hope this helps
    regards
    gaurav

  • How to create restore point in windows server 2008 service pack1

    hi i am bhaskar ... how to create restore point in windows server 2008 service pack1 and how to restore system from a restore point in windows server 2008 service pack1.. is this option available or not ? what is the difference between shadow copies and
    restore point ? instead of restore point we have this shadow copies option in windows server 2008 ?Bhaskar

    AFIK, Restore Points doesn’t exist in Windows 2008.
    Volume Shadow Copy option can be used to achieve:
    Creating consistent backups of open files and applications
    Creating shadow copies for shared folders
    Creating transportable shadow copies using a hardware provider — for backup, testing and data mining scenarios
    Quickly recovering and restoring files and data
    It is more like a file, data, application backup. 
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX
    Blogs - http://blogs.sivarajan.com/
    Articles - http://www.sivarajan.com/publications.html
    Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara
    This posting is provided AS IS with no warranties, and confers no rights.

  • Topic: How to obtain entity manager in application server?

    Hey,
    How to obtain Entity manger in application server ?
    The class is a simple class (no Ejb), and i can call to this class from Ejb or from inner schdeuler process (not container management)
    I want that if i call to this calss from Ejb , that the entity manager transaction will join to the global transaction.
    Thank you

    Hi,
    entity managers outside EJBs can be created using a javax.persistence.EntityManagerFactory.
    Regards

  • Can any one tell me how to write open hubs to application server?

    Hello Everone,
    I created open hubs and my requirement is to write the file to application server. So, I created logical file name and logical paths as specified in below link.
    http://help.sap.com/SAPHELP_NW04S/helpdata/EN/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm
    That is created 'logical file path defination' in 'FILE' transaction. Used the physical path as - 'bw/FTPOUT/BPR/GM/<FILENAME>' as given in above link..
    In logical file name I used the above logical file path.
    When I run the open hub, I'm getting the ABAP dump  "UNCAUGHT_EXCEPTION
    CX_RSB_WRITE_ERROR
    12/18/2008 09:00:40"
    Can any one tell me how to write open hubs to application server?

    Hi David,
    Goto transaction code - FILE
    1) Create a Logical File Path definition, enter the technical name and description by clicking new entries and save it.(z_ftp)
    2) create a Logical file name definition using cross client,
        enter the logical file name = z_ftp , name = ftp , physical file = ftp_test.txt,
    dataformat = ASC, Appln area = BW and Logical path = z_ftp(created from step 1).
    click SAVE button.
    3) Assignment of physical paths to logical paths, choose your logical path here.
    enter the syntax group = UNIX
    Physical path = /bwftp/....
    Save it .
    In the openhub,
    choose definition type = file
    Check the applicaion sever.
    servername = dev
    type of file name = Logical file
    Applin server file name = z_ftp
    separator = |
    Hope this helps and solve your problem.
    Thanks
    Sat

  • OPEN DATASET create .txt file in application server

    Hi,
    I'm trying to create a .txt into application server. Code as follows:-
    OPEN DATASET gv_filestatus FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc <> 0.
        WRITE: 'File cannot be opened.'.
      ENDIF.
      LOOP AT gt_pdfstatus INTO gw_pdfstatus.
        TRANSFER gw_pdfstatus TO gv_filestatus.
      ENDLOOP.
      CLEAR gw_pdfstatus.
    CLOSE DATASET gv_filestatus.
    But I got the error "GW_PDFSTATUS" cannot be a table, a reference, a string, or contain any of these objects. GW_PDFSTATUS is a work area with 5 fields of different type. I know that I can transfer table type of TLINE but I'm not sure how to convert my internal table gt_pdfstatus as TLINE.
    Please advise. Thanks.

    When transfering data to a file, you should convert the data to type char and then transfer it to the file.
    So, you would need to declare a structure with 5 fields of type c with the corresponding length of the original structure.
    Then move the corresponding fields of work are gw_pdfstatus to the character type structure. And then transfer the new structure to the file (gv_filestatus in your case).
    "for example if all the fields in the gw_pdfstatus  are of lenght 10, then declare a structure as follows
    data : begin of file_wa,
    f1(10) type c,
    f2(10)  type c,
    f3(10) type c,
    f4(10) type c,
    f5(10) type c,
    end of file_wa.
    OPEN DATASET gv_filestatus FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc  0.
        WRITE: 'File cannot be opened.'.
      ENDIF.
      LOOP AT gt_pdfstatus INTO gw_pdfstatus.
        move-corresponding gw_pdfstatus to file_wa.  " Add this
        TRANSFER file_wa TO gv_filestatus.   " Change this line
      ENDLOOP.
      CLEAR gw_pdfstatus.
    CLOSE DATASET gv_filestatus.
    Hope this helps.
    KR,
    Advait

  • How to start and stop Oracle Application Server from ANT

    How to start and stop Oracle Application Server and Web application from ANT
    Thanks in Advance.
    Mani

    Hi,
    You can use: startManagedWebLogic.sh, it is in your domain directory and you have to execute it in this way
    ./startManagedWebLogic.sh managedServerName http://adminServerHost:adminServerPort
    For instance, in my case I use:
    unixserv01:/webportal/domains/appServerWeb/bin>startManagedWebLogic.sh managedServ01 http://pelma3w3per01.mesaperu.next:7001
    You have to run it on the machine where the managed server was installed.
    Best regards,
    Raúl

Maybe you are looking for

  • Issue in Czech character display

    Hi, I am trying to get czech characters as input in JSP and then print them in a pdf..I get all the other characters correct other than � and �, after setting the encoding scheme to ISO8859-2. The string P���ern� �lu�ou�k� gets displayed as P��?ern�

  • Why does my powerbook screen look inverted(256 colors)

    when I powered off my PB after it locked up and re started it goes to the mac OS blue screen and starts loading normally,then all of a sudden it goes goes grey and inverts all images loading on the desktop. When I check the displays screen under syst

  • Is there an External Superdrive dvd burner available for an iBook G4?

    I'd like to make DVDs of a presentation, but my iBook doesn't have a SuperDrive. Should I use the iMovie or iDVD application to create the presentation? Do peripheral external DVD burners or SuperDrives exist? Or is there another way of making DVD co

  • Why wont my itunes card redeem

    why wont my itunes card redeem?

  • ESS Address Overview - Modify BizCardsView

    Hi, I'm having trouble with the following scenario: For sybtype of 4, display BizcardField3 and BizcardField4.  For other subtypes, display BizcardField1, BizcardField2, BizcardField3, and BizcardField4. I tried the following in the wdDoModifyView wi