FTP_COMMAND: creating sub folders

Hi groups
Iam using FTP_Connect, FTP_command , FTP_R3_TO_SERVER and FTP_disconnect to transfer dat file to FTP server.
to create sub folder in ftp server
      CONCATENATE 'mkdir'
                 p_filpth
                 INTO l_dir
                 SEPARATED BY space.
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          handle        = g_handle
          command       = l_dir
        TABLES
          data          = i_result
        EXCEPTIONS
          tcpip_error   = 1
          command_error = 2
          data_error    = 3.
using FTP_COMMAND can we creater 2 or more subfolders at a time? 
Ex: In p_filpth let the file path be like this 1/2/3. 1 and 2 subfolders already exist.now by using the above code iam able to create folder '3'.
but if the filepath is 1/2/3/4. then iam not able to create subfolders 3 and 4. At a time only one sub folder is created.
please suggest me how to create 2 or more subfolders at a time? it's urgent

thank u for the response  
let p_filpath be '/new/efmp/filo/fi/'
Already folders new, efmp are present in the server.
Now  iam trying to created two new folder 'filo' and 'fi' at a time.
CONCATENATE 'ls'
                 p_filpth
                 INTO l_dir
                 SEPARATED BY space.
CONCATENATE l_dir 'struct' into l_dir.
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          handle        = g_handle
          command       = l_dir
        TABLES
          data          = i_result
        EXCEPTIONS
          tcpip_error   = 1
          command_error = 2
          data_error    = 3.
if sy-subrc eq 0.
***l_fname = '/new/efmp/filo/fi/test.csv'
  CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
      handle               = g_handle
      fname                = l_fname
  BLOB_LENGTH          =
     character_mode       = c_x
   TABLES
  BLOB                 =
     text                 = p_i_final_csv
   EXCEPTIONS
     tcpip_error          = 1
     command_error        = 2
     data_error           = 3
     OTHERS               = 4
endif.
after using ftp_command, filepath('/new/efmp/filo/fi/) is being created (i.e 2 new folders 'filo' and 'fi' are created but  CALL FUNCTION 'FTP_R3_TO_SERVER' is failing.

Similar Messages

  • HT201320 Does my email service provider have to provide the ability for me to create an IMAP email account in order for me to create Sub-folders within Apple Mail?

    Hi, Apple Mail provides a function to create sub-folders within my mailbox so that I can group emails of similar subjects or from the same sender. My service provider only provides POP email protocol and the New Folder button does not appear in my Apple Mail account for that service provider. Icloud provides the opportunity for the iPad user to select between POP and IMAP. I can select IMAP and the New Folder button appears allowing me to create sub-folders within the icloud email account. Does this mean I cannot create sub-folders in my email account unless my service provider provides customers with the option of creating an IMAP email account?
    This appears to be a problem for quite a few Apple Mail users, but service providers appear reticent to provide a response other than 'use Microsoft Exchange / Hotmail, Google GMail, or some other third party email service provider'. This is why I have chosen icloud as my email service provider. It is Apple and therefore Apple supports it. I have been a Telstra customer for over 15 years and they informed me today, strongly, that they support their own products and services, not Apple products, even though Telstra sell them. When I asked the Telstra Customer Support Manager whether they support Telstra customers, I was informed 'no, because the Telstra customer is not a Telstra product or service'. I have since cancelled my Telstra email account and am in the process of cancelling all of my Telstra services.

    Apple Sceptic wrote:
    Does this mean I cannot create sub-folders in my email account unless my service provider provides customers with the option of creating an IMAP email account?
    Yes. That is what it means. You need an IMAP account in order to create sub folders on the iPad.

  • Create sub folders in "local" - Map a network drive.

    I am using Docs2Go and when I save a document, a see an option to save on "local"; thats where I save them. finding these documents is becoming difficult. How can I create sub folders in local disk so that documents can be organised.
    Secondly, after connecting through VPN, Can I map a network shared drive.

    Can't be done.

  • When importing photos it always creates sub folders.  I do NOT want that.

    How do I stop it from creating sub folders every time I import photos?

    Have a look at thei video on importing: http://tv.adobe.com/watch/getting-started-with-adobe-photoshop-lightroom-5/lightroom-5-imp orting-your-images/

  • How do I create sub folders for imported pictures in iPad albums?

    I have imported some photos to my iPad for a presentation. The pictures were in different folder under the main folder. After I import the main folder the sub folders are deleted and now all the picture are in one folder. How can I keep the original main folder with sub folders when importing pictures in iPad photo?

    Not within the Photos app, but there are other photo management apps in the App Store which allow you to create albums within albums e.g. Photo Manager Pro - that app lets you copy photos to/from the Photos app and copy photos via iTunes : Photo Manager Pro help pages.

  • I have created sub-folders under one email address but can't find the sub-folders. Can you tell me where they are please.

    The sub-folders aren't visible but when I created a second sub-folder with the same name, a box appeared advising me that a sub-folder of the same name had been created so could not be called that. Please let me know where I can find it.

    Are you describing "mailboxes" in Apple's Mail app?  That's odd, since this is the forum category for iPods.
    The location of a new mailbox is determined by your Location selection when you created the new mailbox.  In the panel that appears when you give command to create a new mailbox, there is a drop-down selection field for Location.  Click that field.  That is probably where you put your previous mailbox, so if the new one with the same name is duplicated at that location, that's the location you need to look.
    If this question is about iPod (or iTunes), please post back with more details.

  • Is there a way to create sub-folders or sub-events

    I like iPhoto very much but my big complaint has always been that there is no way to create a sub folder or sub event. Or has this changed and I just can't see how to do it.
    I have about 6,000 pictures in my iPhoto library and a large number of them are "Home and Family". What I really want is to be able to create folders or events within the "home and Family" folder or event. So for example I open the Home and Family event (or folder) and there are sub folders for each year or each part of the family etc. Organizing and looking for photos would be far easier if this is possible.

    I think I must be going senile. I tried dragging an existing album/folder into another but it will not go in. I tried creating a new folder then dragging it to an existing folder. That wouldn't go in. I tried selecting the folder I want as the parent folder then creating a new folder. That was created outside and I can't get it into the parent folder. I tried creating an empty folder on the desktop and dragging it into the pictures of the parent folder. That didn't work.
    I don't know what else to try.
    I realize I may be asking a stupid question but can somebody please tell me how to actually put one folder inside another?

  • Dynamically Creating Sub Folders using ECMA

    Hi,
    I have a requirement to create a a folder and then  a sub folder in that and set its Name and Title dynamically. I am able to crate the folder however not the sub folder. Please suggest any technical way.
    Thanks,
    Debasis Roy

    No worries - I located another thread that provided the answer.  I rather think it may be better for me - with the number of folders and sub-folders I have in my Pictures Library - to use the tree facility under Folders in Organizer. 

  • Pages cannot create Sub- folders!

    Boy! Ami disappointed! Apple's Pages software cannot support Sub-folders! I wanted to use ipa for everything and now I realize I cannot. I wanted to create a folder for Recipes with sub folders for desserts entrees etc. but since Pages does not support the sub folder I guess I will have to go back to my PC and Word! Anyone else had this dilemma ? That's a bad oversize by the software fols!

    Can't be done.

  • Creating Sub-folders

    I have two email accounts, call them email A and email B. There are sub-folders for each for inbox, sent, drafts and trash.
    I would like to create a saved folder for each of the two accounts; however, it seems that in can only be attached to "On My Mac". Is there no way to "attach" one to each of the two accounts?

    That's what I thought. After a few months of Mail and now that Thunderbird has released v3.1 I'm back to TB.
    Thanks

  • How do you create sub-folders in Mail?

    Hello, thanks for reading.
    I have several domains and email accounts relating to different businesses and each account needs various associated archive folders for receipts, licences, customers, sales, newsletters, and so on...
    With a sub-folder for each email kept for future reference on each account, this is a total of around 100 folders over 4 email accounts. Mail folders treat emails like songs in iTunes and that just doesn't work. The ideal solution is to have sub-folders within each mailbox.
    If sub-folders aren't an option, can anyone suggest a way around this?! I might be able to slim it down to 20 folders but that would make finding an old email a little harder, especially if I don't know the email account it relates to or the sender.
    I did all this easily on Outlook Express, which I think is available for Mac, right?

    I've got tons of sub-folders in Mail.
    I think the key is to understand that a mailbox is represented by a folder icon.
    If you select a folder (mailbox), when you choose Mailbox/New Mailbox, the new folder appears inside the folder you highlighted. If not, you can drag it inside another folder as mentioned previously.

  • How do I create sub folders in my email inbox

    Hi, I wanted to keep my email empty and have sub folders for the emails I would like to sort.  Can mac do this ?
    if so, please tell me how.  Just purchased macbook pro and first time mac user. thank you

    Launch Mail.
    Click "Mailbox" in the Mail menu bar.
    Select "New Mailbox" from the dropdown.
    Select "Location" and give a name in the dropdown sheet that appears.
    Click OK.
    Right click the message you want to copy or move to the new Mail folder.
    When you move the mouse pointer over move or copy popup
    will open up with the folder name. Select that.

  • How to create sub-folders containg my announcment list item's images , instead of saving all the images insdie a share folder

    Today i have found this issue which i was not aware of. i have a team site collection, and inside this site collection i have an announcement App. now when users create announcement items and they insert pictures inside the items , all the images are going
    to be saved inside the site asset folder , under the following shared folder :-
    Site Assets>>Lists-->>"List Name"-->>AllItems
    so in this case users might be adding images that have the same names and select to override existing file ,, so images in this way will start conflicting with each others. so is there away to force my announcement list to create sub-folder for each item
    , and to store all the item related images inside it ?
    for example in enterprise wiki site collection, each wiki page will have a sub-folder containing all its images... so can i have the same behavior inside my announcement list ?
    Thanks.

    Also i have noted something interesting , now when users attached files or images there are going to be stored under this directory:-
    .../Attachments/41/
    where 41 is the issue tracking item ID. so for attachments each item will have separate location so files with the same name inside different items will not conflict, which is great.
    while if the user insert a picture inside the issue item such as:-
    , it will be stored inside the shared folder under the "Site Assets" folder
    Site Assets>>Lists-->>"List Name"-->>AllItems
    ,, so images with the same name from other items will get conflict between each others.
    so attachments are being managed in the correct way, as each item will have separate location to store its attachments . while images inserted inside the item description, from all items are going to be stored inside the same folder !!! can anyone advice
    ??? this is a bug in SharePoint 2013 ?

  • PE10 Foto Downloader: Creating Sub Folders

    Hi,
    I'm new to PE10 and I want to choose a new concept for managing my photos.
    Subfolders like Year Month from the creating date of the photo (JJJJMM - I need the german date format. JJJJ is for the year )  and a costum file name. I've no problem to set up the file name. But i can't find my desired sub folder option.
    Is there anyone that can help me? With the subfolder option YYYYMMDD I'm afraid of, that I got to many folders in my directory.
    Thx

    You can use Create Subfolder option, then from the drop down select Custom name.
    Hope this resolves your problem.

  • How do I stop iTunes from creating duplicate entries and sub-folders?????

    I am SOOO SICK AND TIRED of iTunes deciding to create sub-folders all the time. I just want to have one big folder and throw all my music into it. I have now spent several weeks trying to re-create my music library after my hard drive crashed, and iTunes keeps messing everything up.
    If I let iTunes do what it wants, I end up with two or three copies of each song. If I try to consolidate my files by deleting extra copies of songs, suddenly iTunes can't "find" anything.
    When I go looking for the "missing" songs, iTunes creates endless fractal layers of folders within folders.
    I AM SICK OF THIS!
    I AM ABOUT TO ABANDON ITUNES AND GO BACK TO WINDOWS MEDIA PLAYER.

    CodeVII wrote:
    Why when you have a large number of files it is better to have them in sub-folders???
    Unchecking both those options still doesn't stop Itunes from putting files in Artist and Album folders..
    The problem I see with putting music files in folders is if you want to move them or change the file properties with just the Operating System they take longer to access. So quicktime seems like something I'd try but....
    I'd like to have the option to have my files in one Folder/Directory.
    iTunes really wants you to use iTunes to manage the iTunes library. If you use the operating system or third party tools to modify tags, iTunes won't detect the change until it has some reason to access the tag, e.g. during playback. In contrast WMP will sniff out changes in your tags and update itself automatically.
    Once you've got your media in iTunes why do you need to access it again at the folder level? As it happens I'm quite obsesive over the structure of my files both logical and physical (see grouping & scripts) but I strongly recommend others to avoid the temptation to waste too much time over the physical layout and leave iTunes to get on with it...
    Many other programs have offered choices for folder structure, invalid character replacement etc. over many years without iTunes joining in. I suspect that the developers of iTunes have long since decided that extra choice in this area isn't necessary since "it just works", though by all means drop a line to iTunes Feedback.
    tt2

Maybe you are looking for