Folder creation in a given path

Hi all,
i would like to create folder dynamically in the given path(This is a selection screen field) and this should be irrespective of operating system.If any methods or function modules which serve this purpose
please let me know.
Thanks,
Ram.

Hello,
I think the FM given by Rahul is available on SolMan servers and not plain ECC servers.
You can try using the code below.
DATA: COMMAND(200).
DATA: BEGIN OF TABL OCCURS 0,
LINE(255),
END OF TABL.
command = 'mkdir C:\temp\team1'.
CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND ID 'TAB' FIELD TABL-*SYS*.
It is specific to a Windows App server. But you can put the appropriate unix command for Unix servers
The OS type can be checked with sy-opsys

Similar Messages

  • Creation of logical file path

    hi, i am very new to this field and i need this urgently.. please help..
    i am not able to create a physical file from a logical file say for eg "zlogic".. i have been given a certain "Pathintern" for the physical file.. e.g. Pathintern = zobj.. the syntax group is 'unix' but, what do i fill in the physical path..  and i also have used the function module file_get_name but i dont know the changes to be made in the function module.. please help..

    Sorsingh,
    try this search result (are you new to the search field?).
    [SAP: creation of logical file path|http://www.google.co.jp/search?hl=en&q=SAP%3Acreationoflogicalfile+path&btnG=Search&aq=f&oq=]
    Let us know which part of the online help you can not understand.
    Regards,
    Clemens

  • Robocopy not copying the folder creation date

    We migrate the data between 2  Windowsfile servers using robocopy and it works finew ith issues. Only issue is it doesnt copy the folder creatiopn date from source to destination server, it does copy the file creation date without any issues. Command
    we use is as below.
    robocopy.exe %1 %2 /COPYALL /MIR /ZB /R:10 /W:2 /TEE /DCOPY /LOG+:robocopy_%3.log
    This command is called using a batch file where we specify the source and destination using the below syntax.
    call Robocopy_Module.bat "C:\Backup" "C:\Restore"
    Kindly advise if this is normal behaviour , if not what is the correct command used to copy the Folder creation dates.

    I was using like this
    Go to CMD prompt,
    RUN as Administrator
    Type  
    robocopy "source path" "destination Path" / MIR
    It will copy including time stamps.
    or create seprate folder in a destination place and copy everything into that folder.
    It will work.

  • Home Folder Creation w/Active Directory

    If this has been asked a million times, just point me to the url for the answer...
    I have done the leg work and have the "magic triangle" working - I can login and auth to AD and get my preferences from OD. I want our user's home folders to reside on our Windows server. I have shared out \\server\students on the Windows server and in AD I am pointing their home folder to our Windows server, but I can't get the permissions right. When I point a new user's home folder in AD to our Windows server, it creates the folder \\server\students\jtest.
    When the user logs in, none of the subfolders are created. Can someone give me some pointers on how permissions need to be set so the subfolders are created on first login?
    This is all pretty new and I'm happy that I got the triangle to work - if I can get this all important piece, I'll be set.
    Thx in advance!

    Hi
    A lot of this depends on how many OUs you have; how deep they go; and how many directories you have nested in each OU or the particular OU the directory for home folder creation is within. The accepted 'recommendation' is not more than 3 deep - generally. Having said that I have made it work with OUs 7-10 deep. Gets trickier after that.
    In my experience the non-creation of expected directories is generally down to permissions not being assigned properly - as you've guessed. Essentially users must be given read/write access all the way down the nested directories. I have seen permissions assigned correctly to a parent folder, with a set of different permissions applied to the next folder down and the next one along again with the correct permissions applied. Folder creation fails when permissions are set in this way.
    What is interesting is the log-in does not fail though you are greeted with the usual "the home folder exists on an SMB or AFP Server etc" dialog box when getting to the desktop. You sometimes get this at the log-in window as well. Although you can also see the message for other reasons - usually down to poor DNS configuration.
    You should be able to log in as the local admin and look at the system.log in Console. You should see an error starting with 'NSurl etc etc. . . ' listed. If you do that's an indication it's a permissions problem.
    Beyond this and without being there it's difficult to tell?
    Hope this helps, Tony

  • Need New for Read Access except Folder Creation

    Hi,
       I have some problem which is as follows:
    I have created the folder <b>ABC</b> in KM Content -> documents -> ABC and given the Read Rights to the user <b>user1</b>, then created the KM Navigation iView.
    Now user1 can see the ABC folder and the documents under it. The problem is that now I want to have New in the context menu and in New except folder creation, all are needed.
    How I can achieve it, please help me on this.
    Regards,
    Deep

    Hi,
    From previlages perspective If user1 should create folders under ABC, then he need more than just READ rights!!
    If you need a context menu New Folder, then you should set <b>new_folder</b>
    UICommand to your KM Navigation iView's Layoutset's Collection Renderer. The Collection Renderer property is <b>Collection  Command Group  </b>
    So have a new UI Command group and add the <b>new_folder</b> UICommand to it.
    http://help.sap.com/saphelp_nw70/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • HOw to create a text file in the given path and delete it after the use?

    Hi all,
    I am trying to create a text file at the given path and delete the created file after the use.
    I am using following code.:
    import java.io.*;
    // write binary data as characters
    public class RanIO {
                                            public static void main(String f[])
                                                      // First illustrate append
                                                      String lineSep = "\n";
                                                      try {
                                                                     File temp= new File("C:/Ash","cute.txt");
                                                      boolean ch=temp.createNewFile();
                                                      if(ch)
                                                           System.out.println("file created");
                                                      else
                                                      System.out.println("file Not created");
                                                      //writing to file
                                                 /*     PrintWriter p = new PrintWriter(new BufferedWriter(new FileWriter("cute.txt",true)));
                                                      p.print("Emp NO");
                                                      p.close();*/
                                                                // Open fileWriter in append mode
                                                                               FileWriter fos = new FileWriter(temp, true);
                                                                               BufferedWriter bw = new BufferedWriter(fos);
                                                                               PrintWriter pw = new PrintWriter(fos);
                                                                               double d=550;
                                                                          // lineSep = System.getProperty("line.separator");
                                                                          pw.print("Hello");
                                                                          //pw.print( lineSep );
                                                                          pw.print( d );
                                                                          pw.close();
                                  boolean det=temp.delete();
                                                 if(det)
                                                      System.out.println("File deleted");
                                                 else
                                                      System.out.println("File not deleted");
                                                 } catch (IOException ioe)
                                                                System.out.println( "Append IO error:" + ioe );
    My problem:
    1)
    I am not able to write to the file. I want to know, where i am going wrong.
    It is giving error message like
    "Canot resolve Symbol: temp,"
    But, FileWriter Constructor should accept a File type parameter.
    here temp is a file parameter.
    If i am not using file=new file();
    i can't delete the file after the use. i.e if i use
    PrintWriter p = new PrintWriter(new BufferedWriter(new FileWriter("cute.txt",true)));
    how can i delete cute.txt after the use?
    2)
    I am not able to write to the text file. file is created but, a blank file.
    "Hello" is not written into the text file.
    can anyone help me in this regard
    Thanks in advance
    Ashvini

    Thank you Ram,
    But, i want to create a text file in Append mode.
    for that i used
    FileWriter fos = new FileWriter(temp,true); But, it is not accepting FileWriter constructor in
    this format. if i use
    FileWriter fos = new
    FileWriter("c:/ash/cute.txt",true); it works fine. !!!!!Here's the javadoc
    public FileWriter(File file,
    boolean append)
    throws IOExceptionConstructs a FileWriter object given a File object. If the second argument is true, then bytes will be written to the end of the file rather than the beginning.
    Parameters:
    file - a File object to write to
    append - if true, then bytes will be written to the end of the file rather than the beginning
    Throws:
    IOException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason
    Since:
    1.4
    Are you using jdk.13 or lower ?
    >
    ONe more doubt, Does flush method deletes a file?
    if not, then i need to use
    File temp=new File("c:/ash/cute.txt");
    FileWriter fos = new FileWriter(temp,true); //which
    is again a problem
    if(temp.delete())
    out.println("File is deleted");
    }I don't know whether i am taking it wrong ! or
    anything wrong with my coding ! but, after creating
    and writing data into a text file. I must delete it
    as it contains confidential informations.
    Regards,
    Thanks.'flush' writes to a file immediately. Else you should explicitly call 'flush' to write contents from buffer to underlying source.
    javadoc again
    PrintWriter
    public PrintWriter(Writer out,
    boolean autoFlush)Create a new PrintWriter.
    Parameters:
    out - A character-output stream
    autoFlush - A boolean; if true, the println, printf, or format methods will flush the output buffer
    cheers,
    ram.
    Question; What do you gain by opening a file, writing to it and deleting it in the same program ?

  • Generating hashes for multiple shares in one folder using BranchCache Publish-BCFileContent -Path

    When using Publish-BCFileContent to generate hashes for multiple shared directories that are all within the same parent directory, can I just specify the parent directory as the "-Path" parameter or do I need to run the cmdlet for each share
    separately?
    For example:
    My file server has 3 separate shared folders:
    E:\Shares\Documents
    E:\Shares\Music
    E:\Shares\Pictures
    (E:\Shares is not directly shared)
    To generate hashes for all 3 shared directories to export to a remote hosted cache computer could I run the Publish-BCFileContent cmdlet just once with just E:\Shares as the -Path parameter?
    Publish-BCFileContent -Path E:\Shares -StageData
    Or do I need to run the cmdlt 3 separate times as below?
    Publish-BCFileContent -Path E:\Shares\Documents -StageData
    Publish-BCFileContent -Path E:\Shares\Music -StageData
    Publish-BCFileContent -Path E:\Shares\Pictures -StageData

    Hi CharlesPool,
    If there are only these three subfolders under the directory E:\Shares, you can try the cmdlet:
    Publish-BCFileContent -Path E:\Shares -StageData -Recurse
    Use the recurse parameter to specify that hashes are created for content in subfolders. If you do not use this parameter, then hashes are created only for content in the top folder and no hashes are created for content in subfolders.
    If there are other folders under D:\Shares, you need to run the cmdlet separately, and you can also use the cmdlet foreach to loop every folders (E:\Shares\Documents, E:\Shares\Music, E:\Shares\Pictures):
    $folders = "E:\Shares\Documents","E:\Shares\Music","E:\Shares\Pictures"
    Foreach($folder in $folders){
    Publish-BCFileContent –Path $folder –StageData}
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Number of records in given path of application server

    How
    to find number of records in given path of
    application server

    I think that this almost works.
    report zrich_0001.
    data: begin of itab occurs 0,
          rec(1000) type c,
          end of itab.
    data: wa(1000) type c.
    data: number_of_files type i.
    data: number_of_records type i.
    data: tot_size type i.
    data: tot_number_of_records  type i.
    data: p_file type localfile.
    data: ifiles type table of  salfldir with header line.
    data: file type string.
    parameters: p_path type salfile-longname
                        default '/usr/sap/TST/DVEBMGS01/data/'.
    call function 'RZL_READ_DIR_LOCAL'
         exporting
              name           = p_path
         tables
              file_tbl       = ifiles
         exceptions
              argument_error = 1
              not_found      = 2
              others         = 3.
    loop at ifiles.
      clear itab. refresh itab.
      concatenate p_path ifiles-name into file.
      catch system-exceptions dataset_read_error  = 1.
        open dataset file for input in text mode.
        if sy-subrc = 0.
          do.
            read dataset file into itab.
            if sy-subrc <> 0.
              exit.
            endif.
            append itab.
          enddo.
        endif.
        close dataset file.
      endcatch.
      if sy-subrc = 0.
        number_of_files = number_of_files + 1.
        describe table itab lines number_of_records .
        tot_number_of_records
            = tot_number_of_records  + number_of_records .
        tot_size = tot_size + ifiles-size.
        write:/ ifiles-name, ifiles-size,  number_of_records.
      endif.
    endloop.
    Regards,
    Rich Heilman

  • Back ground job to download data into excel in the given path on sel-screen

    Hi Friends,
      I have 2 radion buttons on the selection screen 1. Online 2. Back ground.
    If i select the back ground radion button all program should run in back ground only, and finally the data should be downloaded to excel file on the given path in selection screen.
    Does any one have code for this.
    Thanks in advance
    Ajay
    Edited by: Ajay kumar on Aug 30, 2010 11:03 AM

    Hi Ajay,
    try this way..
    If sy-batch = 'X' . "background Job
    *   Submit report in background and creating spool
      SUBMIT (w_rname) USING SELECTION-SET p_var
          TO SAP-SPOOL WITHOUT SPOOL DYNPRO
          SPOOL PARAMETERS wa_pri_params AND RETURN.
      COMMIT WORK AND WAIT.
    *   To fetch the spool number from TSP01 table
      IF sy-subrc EQ 0.
        SELECT rqident
               FROM tsp01
               INTO p_spool
    *             UP TO 1 ROWS
               WHERE rq2name = wa_pri_params-plist.
        ENDSELECT.
      ENDIF.
    ENDIF.
    * Fetching Spool data into internal table
      CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident              = p_spool
        TABLES
          buffer               = t_Excel_data.
    "Now format the Data into excel format or Comma seperated format and download to Appl server.
    Prabhudas

  • The Given Path Format is Not Supported in MenuI'ds of Add-on

    Hi Experts,
    Im working on Add-On with Visual Studio 2008 and Database Sqlserevr2008,BidSetup with version 2.1.Afetr Building the Addon and After Registering the Addon .My Screens are Not Gettin Opened all the Screens(Menus) are throwing the Error with The Given path format is not supported(Here,Im Using Xml Conversion)To the open the screen..How do i solve this problem..
    Help would be appreciated
    Regards,
    Vijay Kumar

    Hi ,
      Can you explain load xml coding so we can get actual problem

  • Lotus Notes Folder Not Found in Server Path..

    Hi..
    I am new to portal development..:)..
    Want to ask about Lotus Notes in PDK..
    I've downloaded the latest PDK thinking in the Portal Server, they not yet install and configure the PDK.
    But, when i checked in the server, actually there is already PDK installed..
    But, the problem is..
    Now, i want to do Lotus Notes Portlet..
    There is no Lotus Notes folder in the server..
    so, i am not sure how to follow the step in the userguide..
    "$IAS_HOME(MID_TIER)/j2ee/OC4J_PORTAL/applications/lotusnotes/lotusnotes/WEB-INF/lib directory. "
    How do i created a new Folder "lotus Notes" like the path above?
    Could anybody help me here?...plzz...

    The PDK you are seeing in your server installation must be an old version that comes along with the Oracle9iAS installation. The Lotus Notes Portlets come with the latest PDK download. need to upgrade the existing PDK installation to thios latest one to get the lotusnotes installed. Please follow the instructions in the upgrading.9020x.to.90240.html doc available in the PDK download extract at PDK_extract_dir\pdk\pdk\jpdk\v2 directory. Please feel free to get back if you havce any further issues.

  • Automating Folder Creation

    Here's what I want to do. I'm trying to automate client folder creation. I have a directory called clients. Every time I create a new folder in the clients folder, I'd like for it to automatically ask me what I'd like to name the folder, then I would like it to create 6 directories inside the created folder titled "legal" "spec files" "correspondence" "modules""graphic design" and "archived materials".
    How would I go about that with automator?

    A couple of options. The first uses automator and a shell script, but you would run the workflow which asks for a folder name instead of you creating it first, as you requested. The second uses Folder Actions so that when you create a new folder in your clients folder it will ask for a name and create the folders.
    Automator Method:
    1) From Files and Folders, drag over a "New Folder" action.
    2) Enter a default name for the folder in the Name: field (or leave blank)
    3) Select your Clients folder in the Where: field
    4) Click the "Options" button and tell it to "show this action when the workflow runs"
    5) From the Utilities, drag over a "Do shell script" action
    6) Select the /bin/bash shell
    7) in the Pass input field select "As arguments"
    8) Enter this code mkdir -p $1/legal/ $1/spec files/ $1/correspondence/ $1/modules/ $1/graphic design/ $1/archived materials/
    Save this workflow and run it when you want to create the new folder. If you have quick keys, launch bar, Quicksilver, or the like, you could set up a shortcut...or, you can use cmd-space to call up spotlight and search for you workflow name and launch it from spotlight.
    For the Applescript option:
    I had some glitches with it in that it seemed to re-run the script after I changed the name. I couldn't figure out if the name change drove the script to run again. Also, after creating the new folder, you have to wait a few seconds for it to trigger. Kind of annoying, I thought.
    First, copy this script to a new Script Editor script (Applescript folder).
    property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Finder"
    set theFolder to item 1 of added_items
    set response to display dialog "Please enter a folder name:" default answer "New Client"
    if button returned of response is not "Cancel" then
    set the name of folder theFolder to (text returned of response)
    make new folder at folder theFolder with properties {name:"legal"}
    make new folder at folder theFolder with properties {name:"spec files"}
    make new folder at folder theFolder with properties {name:"correspondence"}
    make new folder at folder theFolder with properties {name:"modules"}
    make new folder at folder theFolder with properties {name:"graphic design"}
    make new folder at folder theFolder with properties {name:"archived materials"}
    end if
    end tell
    on error theErr
    display dialog theErr
    end try
    end adding folder items to
    Save it as a script in your user/Library/Scripts/Folder Action Scripts/ folder. Run the Folder Actions Setup script in the Applescript folder and attach this script to your "Clients" folder:
    1) Click on the Enable Actions checkbox
    2) Click the "+" button in the left pane and find your clients folder
    3) Click the "+" button in the right pane and find your script you just saved.

  • Folder creation in server

    Hi Everybody,
    I have requirement to create folders/ sub folders dynamically in a given path (server) and copying a pdf in the created path. Client is using ORACLE 10G AS with Windows.
    Thanks in Advance
    Satyam

    What kind of application (Java, Forms, PL/SQL etc.) you have that you need to have this created/copied from?

  • Folder creation in UCM

    Hi All,
    There is on security group eg:-New Profile,if any new profile check-in ucm automatically the folder structure will create on that perticular profile.
    The folder structure should be ---root folder EMPID_EMPNAME(Emp001_ABC)
    Inside root folder 5 sub-folders like -----Emp Resume,Education details, Experience Details,Salary,Administrator
    Let me know is there any possibility to create automatic folder creation when the new profile check-in inside UCM.
    Give me your valuable suggestions on this issue.
    Thanks.

    hi,
    Actually through mine custom page of mine component in which suppose there is two text box like
    Parent folder
    Child folder
    when i submit the name a new folder should be created under contribution folder with child folder name.
    Scenario is that suppose a project comes and on mine custom page when i enter the project name a folder with same name should be created under contribution folder by calling new folder creation service.
    Plz if u can help me out.
    Thanks once again...

  • Custom property not displaying at folder creation or Details screen

    Hello everyone
    I have created a custom boolean property that I need to have displayed both at folder creation and in the Details screen of a folder after it's created.  The property is in the default namespace, and is in the Custom group.  I have created a properties file for the label and created the necessary meta data extension.  The folder validity pattern is " / " and the Resource Type listed is "normalct" so that it's active for folders only.
    Then I went to Property Groups and listed my new property in the Group Items field of the Custom group.  The Custom group is a part of "all_groups" so that group is displayed both when a new folder is created in KM and when the Details screen of a folder is displayed.
    <i>However,</i> my custom property isn't displaying under the Custom tab when I go to create a new KM folder, nor when I view the Details screen of an existing folder.  What configuration am I missing?  Do I have to develop a custom property renderer for each new property I need to create?  I was hoping I could achieve this result with configuration changes only, but I must be missing something.
    Any help would be greatly appreciated and rewarded. 
    Thanks in advance,
    Fallon

    Hi Fallon,
    actualy, if you want this property to be displayed only for folders and not for documents, you don't need to specify the resource type for folders. Setting "/" or "/**" for "Folder Validity Patterns" and "" (empty) for "Document Validity Patterns" should be enough.
    If you sill experience problems, you have to check all settings, for example with the settings suggested in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2654">weblog</a>. If you use the "default" Property Group in the property settings, you don't have to enter the <b>Property ID</b> in a special Property Structure Group that in turn is integrated in the all_groups Property Structure Group.
    Hope this helps,
    Robert

Maybe you are looking for

  • What is new in Remote Desktop Client Update 3.8.2 v1.1?

    What is new in Remote Desktop Client Update 3.8.2 v1.1? Also, how can we tell if clients are on 3.8.2 v1.1 and not 3.8.2 from ARD? Apple isn't providing us with detailed information so I am reaching out to the community. THanks, Andrew

  • Import Problem

    Hi all, I am creating an import routine that runs from 10g oracle form. In the form I create scripts and a par file to create the user, and grab details then use HOST to run the scripts and then call . It all works fine apart from the actual import (

  • Opening other programs, like ftp.exe

    Hi, I have a trigger that writes to a text file, which is then ftp'ed onto a web server. I originally set up a scheduled task (in windows) to ftp the text file every couple of mins, but would now like to be able to ftp the contents whenever the trigg

  • Display problems in html5, dps,

    I can't get the feedback boxes to display correctly on the ipad in html5 output, either to be viewed once uploaded to a server or when viewew on the ipad after creating an app in dps...just to make sure I wasn't missing something basic i tried creati

  • Xmldom, xslprocessor package and namespace

    Hello, First as I'm a newbie, is there a complete documentation on XML DB for developpers in oracle.com ? Now my problem : I'm using in PLSQL xmldom, xslprocessor package with XPATH method to retrieve some information. I have tested the code and it w