Folder or File path when f4 option on selection screen is clicked

can any one please let me know if there is a function module which can fetch folder name form the directory path when f4 option of selection screen field is selected. Currently I am able to get the file name using FM F4_DXFILENAME_4_DYNP but the requirment is like I have to select either folder name or the file name depending on user selection.

HI
use the following
FORM GETFILE.
  CALL FUNCTION 'WS_FILENAME_GET'
   EXPORTING
    DEF_FILENAME           = ' '
     DEF_PATH               = '.'
    MASK                   = ' '
    MODE                   = ' '
    TITLE                  = ' '
   IMPORTING
     FILENAME               = TXT_FILE
    RC                     =
  EXCEPTIONS
    INV_WINSYS             = 1
    NO_BATCH               = 2
    SELECTION_CANCEL       = 3
    SELECTION_ERROR        = 4
    OTHERS                 = 5
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
<b>TMP_GUI_DIRECTORY_LIST_FILES</b>
Retrieve all of the files and subdirectories on the Presentation Server (PC) for a given directory.
Example:
data:  lc_directory         like bdschko16-target_dir value 'C:\TEMP\',
       lc_filter(20)        type c default '.'.
       li_file_count        type i,
       li_dir_count         type i,
       ltab_dir_table       like sdokpath occurs 0 with header line,
       ltab_file_file_table like sdokpath occurs 0 with header line.
call function 'TMP_GUI_DIRECTORY_LIST_FILES'
  exporting
    directory        = lc_directory
    filter           = lc_filter  importing
    file_count       = li_file_count
    dir_count        = li_dir_count
  tables
    file_table       = ltab_file_table
    dir_table        = ltab_dir_table
  exceptions
    cntl_error       = 1
    others           = 2.
regards vijay

Similar Messages

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How do I get my "flagged photos" folder to show up as an option on my screen saver choices?

    How do I get my "flagged photos" folder to show up as an option on my screen saver choices?

    There are quite a number of such add-ons, some examples (or search on AMO):
    [https://addons.mozilla.org/en-US/firefox/addon/7161/ Bookmarks Tab] displays bookmarks on new tabs
    [https://addons.mozilla.org/en-US/firefox/addon/4239/ SessionPage] shows opened tabs from last session in a single page
    [https://addons.mozilla.org/en-US/firefox/addon/5721/ Fast Dial] is another way to quickly navigate bookmarks (very popular)
    [https://addons.mozilla.org/en-US/firefox/addon/1027/ AiOS] is an alternative method, using the Sidebar for various tasks
    ... I could go on, but search yourself: https://addons.mozilla.org/en-US/firefox/
    Please let us know how above works out, and if we can be of further assistance. Detailed feedback is appreciated and helps us to help you better, plus enables us to better help other users with similar issues.

  • To add Language selection option on Selection Screen

    Hi All,
    I have one Report Writer Report.
    In that Report I have created Basic Sets, Single sets and Multi Sets for G/L Account.
    I need to output this Report in two different language.
    1) Engish
    2) Chinese
    But I need to put the option on Selection Screen for Language Selection (whether English or Chinese).
    How to add this option on Selection Screen. Please Guide me soon.
    Regards,
    Rishi

    Hi Ashok,
    But when I hev created the sets, I have given the description of G/L Accounts in English. But when I will run the Report using Cinese as Logon language, how output will come in Chinese.
    1) Is there a need to maintain /L Accounts in Chinese language.
    2) or Shall i create the sets by giving description for G/L Accounts in Chinese If Yes then how to hadndle at run time..
    please guide I am new to Report writer.
    Regards,
    Rishi

  • I plugged in my iphone 4 for the first time to my computer to back everything up. but when i got to the screen to click on "new phone" or restore to the "same phone" i clicked "same phone by accident. now i have all of my old stuff from my G3s on my new

    i plugged in my iphone 4 for the first time to my computer to back everything up. but when i got to the screen to click on "new phone" or restore to the "same phone" i clicked "same phone by accident. now i have all of my old information from my G3s on my new iphone 4. how can i reverse this? please help.

    Hi, raneth's boyfriend!
    Unfortunately, iTunes was told to restore all data from an old backup onto the new phone, and that cannot be undone.
    However, prior to this, iTunes 10 would have also asked to make a backup of the phone before doing the restore.  If the user elects to say "yes" to perform the backup, then iTunes would have backed up the phone before erasing it.
    Hopefully, that backup will still be available in iTunes, and if so, it would be backed up under the new phone's name prior to it being erased and restored (if the name of the new phone is different to the name of the old phone).
    To check if iTunes has a backup of the phone prior to the restore, look in the Devices category in iTunes Preferences.  All backups made are timestamped and are identified with the iPhone's name at the time of the backup.  Look for:
    • a backup of the phone using the new phone's name prior to the erase and restore, or
    • a backup with the same date and time as that when the phone was erased and restored (not the date and time AFTER when the phone was erased and restored!).  This may be the case if the new and old phones have the same name.
    If a backup is available, you can erase and restore again using that backup. The phone will be restored with what would hopefully be the original image of the new phone.
    If no backup was made prior to erasing and restoring the phone initially, then there is no way to
    undo it, meaning your phone's original data has been lost.
    --tonza

  • Layout Option on Selection Screen For Zreport

    Hi All,
           Plz explain how to do coding for using Layout option  on selection screen of
    report. Also i should be able to save and create new layout on selection screen.
           Thnaks in advance.
    Aniket Dayama

    hi,
    creation of sub-screens.
    selection-screen begin of tabbed block <name of the tab> for < height of the tab in no's> lines.
    eg;
    selection-screen tab(20) l1 <data element> user-comand <name of the funcion code>
    selection-screen end of block <name of the tab strip>.
    eg;
    selection-screen begin of tabbed block mytab for 10 lines.
    selection-screen tab(20) l1 user-command tab1.
    selection-screen tab (20) l2 user-command tab2..
    selection-screen end of block mytab.
    Under initialization.
    data element = text-01.
    data element = text=02.
    How to initialize the tab with default screen.
    <name of the tab> - prog = sy-repid.
    <name of the tab>- dynnr = '<subscreen no>'.
    <nane of the tab>-activetab = '<user-command for the strip>
    if this has solved ur problem then dont forget to reward with points.
    with regards,
    madhuri.

  • Length of select-options in selection screen.

    Hi,
    I was able to give the lemgth of select-options only upto 8 characters.
    Select-options :S_Mtrial for mara-matnr.
    But my requirement is I want total name which is more than 8 characters.
    Select-options:Material_numberl for mara-matnr.
    Can any one help how to do.
    Thanks in advance.

    The Statement...
    Select-options :S_Mtrial for mara-matnr
    The selection screen length depends on the type that you are assigning to it. Since the length of type
    mara-matnr is less, the selection option S_Mtrial  will be displayed with short length in the selection screen.
    The alternate to do this is...
    selection-screen begin of line.
    selection-screen comment 2(10) text-001.
    select-options : <ur select option name>
    selection-screen end of line.
    Text element,text-001 contains the select option text to be displayed in the screen
    Hope it helps.

  • Side by side select options in selection screen

    Hai Gurus,
    In a report, I need to place Period From and Period To date select-options in selection screen.
    In one line (i.e side by side).
    Appreciate your immediate response.
    Thanks and Regards,
    Kiran.

    Thanks to all,
    I got it.
    my code here.
    SELECTION-SCREEN: BEGIN OF BLOCK sel1 WITH FRAME TITLE text-sel.
    PARAMETERS: SUMMARY AS CHECKBOX USER-COMMAND SUMMARY.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(13) text-pfr.
    SELECT-OPTIONS: VALID_FR FOR ZZUTIL_RATE-VALID_FR MODIF ID RAM no intervals NO-EXTENSION. "changed
    SELECTION-SCREEN COMMENT 30(13) text-pto.
    SELECT-OPTIONS: VALID_TO FOR ZZUTIL_RATE-VALID_TO no intervals NO-EXTENSION. "changed
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN: END OF BLOCK SEL1.

  • PS:Copy of MBBS report with Date(GR) selection option in selection screen.

    Hi,
    We are developing a report, which is Copy of MBBS report, addition as Date(GR) selection option in selection screen to view historical data {i.e.Project Stock(Q) on back dates}.
    MBBS is showing Project Stock w.r.t. WBS. So pls suggest Table, which can fulfill the requirement to show the Project Stock from GR w.r.t. Purchase and Production order in back date w.r.t. that WBS.
    Pls do the needful.
    Thanks,
    Amit Jain.

    Hi Amit ,
    The Project Stock Table is MSPR , and the Project stock history table is MSPRH .
    Though not through with your actual requirement , There is a standard Report MB5B -- Stock on Posting Date . In the selection screen , we can have the Special Stock Q (Project Stock ) .
    If you can develop copying this report instead of MBBS , it would take care of receipts as well as issues ,and from the material Document you can build a relation to the account assignment  WBS/Network Activity through MSEG Table .
    Hope it helps .
    thanks and regards
    Kish

  • Printer option in selection screen (Input Parameter)

    Hi All,
    I want to give printer option in selection screen.
    Please do needful help.
    Regards.

    Hi,
    in the PF-STATUS if u enable the Printer Icon on Application Tool Bar and in the PAI Event in the
    User Command Module get the FCODE and apply the following FM ALINK_PRINT_FRONTEND
    Hope this works ....
    Best of luck!!
    Thanks
    Ravi

  • ITunes on macbook pro - resetting music file path when not on my network

    Hi there!
    I suspect I know the answer to this already, but I hope I'm wrong! :-D
    I have my macbook a while now, but I've only recently started using iTunes properly.
    I have a home network, which consists of my macbook pro, a dell laptop running XP, a Nintendo Wii, a Sumvision Netbox NAS 1TB drive and a Logitech Squeezebox Boom.
    I'm using the NAS as my music storage, iTunes rips music and stores it here.
    This is all good.
    The Squeezebox Boom (for anyone who doesn't know) is a neat little Wifi radio/mp3 player, it streams radio from the web, and also music from the NAS.
    The software that controls it is called the Squeeze center.
    At the moment I have this software linked to iTunes, so when I add music to my library via iTunes the squeeze center automatically scans the music library and updates itself taking in music details, play lists, art work and all, it's a great system.
    The problem I have is when I take my laptop anywhere, iTunes changes the iTunes music folder location automatically to the internal hard drive, which means when I get home again I have to reset the file path and iTunes then has to scan the folder and organise everything again.
    not only that, as soon as the squeeze center sees the file path has changed it points at the new location (on the macbook hard drive) and looses the library.
    so when I reset iTunes, the squeeze center has to rescan everything again also.
    It's quite annoying.
    I have a work around in that I can tell the squeezecenter not to look at iTunes and hard wire it to the location, but I'd rather not do that.
    Is it possible to get iTunes to keep the NAS music folder as the iTunes Music folder location even when the macbook isn't on the network?
    Or will it always change the folder when I leave the network.
    Many thanks for your help.
    Paul.

    I've had this problem for ages, only now it seems as though iTunes is no longer restoring my music folder to the NAS if I start it when the NAS is connected. This is proving a pain in the a** because I keep forgetting about it, going online and buying a load of music from the store and then I find I've got a gig to consolidate when I realise my music folder has filled up! Funnily enough, I've downloaded and edited an applescript that automatically checks every half hour whether or not I'm on my home network, if I am it mounts my network drive for me. I really miss the airport disk utility's automatic mount feature. What I think I'l do is create another one for iTunes, to serve as a shortcut to iTunes, but when it's run it will check to see if you're on your home network, if so mount the NAS (if it isn't already), if not, or if it can't mount it will ask you whether you want to run iTunes after warning you that your NAS isn't connected. The only potential problem I could see is when iTunes runs as a result of you opening a music file in Finder. However I'm sure we could associate the applescript 'shortcut' with music instead of iTunes? I'll post here if and when I'm successful.

  • Full file Path when using FormFile in struts

    hi,
    i am uploading an excel file. All is doing fine but whatever file is selected by user by clicking the browse button, its does not retreive full path it retreives only the file name selected......
    JSP page
    <html:form action="uploadFile.do" method="POST" enctype="multipart/form-data">
         <html:file property="fileName" title="Browse" />
         <html:hidden property="methodtoinvoke" value="uploadFile" />
         <html:submit value="submit" />
    </html:form>when i retrieve this filename and convert it to String its only shows file name and not the full path, as a result it always pick this file name from the current working directory.
    how can i get the selected file path ????
    Pls help
    thanx

    What would do a server side program that processes the file upload do with the client side path of the file?
    The server side process (your Action class) would receive a stream of bytes (multipart data) that contains the file's contents as well as other info like size, content type etc.
    ram.

  • How to specify the database file path when create FDM application

    Dear All,
    How to specify the database file path (MSSQL) when create FDM application?
    Right now, all data file are placed in the D:\ . I want to specify the database files (log and mdf file) in other place. How to do it?
    Thanks.

    Where is the highS2.xml located on the disk? If you add it to your project you should set its Build Action to Content and its Copy To Output Directory to Always in Visual Studio:
    Please remember to close your threads by marking helpful posts as answer once your issue has been solved and then start a new thread if you have a new question.

  • Error code -43 - unable to get file path when burning DVD

    I just installed Tiger on my son's iMac 500. Borrowed a Lacie DVD r/w and tried to burn the contents of a user folder to a DVD-R. It burned part of it, but failed with the following error:
    The operation can not be completed because one or more
    required items an not be found. (Error coed -43).
    Could not open the dat fork of "<unable to get file path>" (-43).
    I was able to burn a CD on the drive, but that was for another user directory that fit on a CD-R. The folder I was trying to burn to the DVD was about 1.1 G.
    Thanks,
    Alfredo

    I just installed Tiger on my son's iMac 500. Borrowed a Lacie DVD r/w and tried to burn the contents of a user folder to a DVD-R. It burned part of it, but failed with the following error:
    The operation can not be completed because one or more
    required items an not be found. (Error coed -43).
    Could not open the dat fork of "<unable to get file path>" (-43).
    I was able to burn a CD on the drive, but that was for another user directory that fit on a CD-R. The folder I was trying to burn to the DVD was about 1.1 G.
    Thanks,
    Alfredo

  • Invalid EFI file path when dual boot

    I'm trying to dual boot arch linux with windows 7.
    I have windows 7 and my plan for partition is
    sda 4:0 128g <- SSD
    ├─sda1 4:1 0 70g 0 part <- windows 7 already installed.
    ├─sda2 4:2 0 4g 0 part <- /swap
    ├─sda3 4:3 0 500m 0 part <- /boot
    ├─sda4 4:4 0 40g 0 part <- /, /usr, /usr/local, /opt
    sdb 2:0 500g <- HDD
    ├─sdb1 2:1 0 150g 0 part <- windows D drive
    ├─sdb2 2:2 0 350g 0 part <- /var, /home, /tmp
    Also, my motherboard supports UEFI boot.
    Following Beginner's guide, I formatted sda2, sda3, sda4, sdb2 typing
    # mkfs.ext4 /dev/sda2
    # mkfs.vfat -F32 /dev/sda3
    # mkfs.ext4 /dev/sda4
    # mkfs.ext4 /dev/sdb2
    and I mounted /boot on sda3.
    After installing grub,  I typed
    # grub-mkconfig -o /boot/grub/grub.cfg
    Then to make windows7 menu on grub, following Linux menu entry , I modified /etc/grub.d/40_custom file as
    #!/bin/sh
    exec tail -n +3 $0
    # Windows 7
    menuentry "Windows 7" {
    set root="(hd0,1)"
    chainloader +1
    Finishing arch installation and rebooting,  I could see the windows 7 section  on grub boot menu,
    but if I choose windows7, it prints error
    error: invalid EFI file path
    press any key to continue...
    Actually, there was one more error message at first line,
    but seeing this error message and reinstalling again and again,
    I think something was twisted, and now I can't boot windows either...
    So I'm reinstalling windows.
    What is the correct way to dual boot windows and arch?
    Last edited by hermite (2015-02-04 00:54:00)

    It looks like your Windows system was booting in non-EFI mode and so does not have a bootloader on the EFI system partition.
    When you have re-installed Windows, check the partition table from the Arch ISO (`parted -l`) -- if there is no EFI system partition (type EF00) then you should install Arch in non-EFI mode (don't use FAT for /boot) and install GRUB using:
    # grub-install --target=i386-pc --recheck /dev/sda
    https://wiki.archlinux.org/index.php/Be … therboards

Maybe you are looking for

  • Express won't print to printer

    Well technically it will but the printer has to be on. I have a canon printer which in all other circumstances including shared printer on a server it will auto power on when a Job goes through, yet the express will not allow this to happen, so basic

  • My serial number for my PS elements 7 isn't working?

    I have had it for a really long time now. It had it on my old desktop and my old laptop but those both broke a while back. I figured out how to install it to my new computer but it keeps telling me that my serial number is wrong, any ideas?

  • Everything about CATS

    < MODERATOR:  All points have been UNASSIGNED and the message locked.  Please do not share email addresses, documents, or links to copyrighted or company confidential information on these forums. > Can you please explain me everything related to CATS

  • Macbook Air (1st Generation) is crazy slow - running on 10.6.8

    A friend just gave me his old macbook air (1st generation) to see if I can get it into working condition. It currently works and is running on 10.6.8, however it is EXTREMELY slow.. I am wondering if it is possible/recommended to revert to 10.5.6 - s

  • Portal920_solaris32.bin: Invalid argument

    I am trying to install on Solaris 10 X86 0606. Any ideas? bash-3.00# chmod a+x ./portal920_solaris32.bin bash-3.00# ./portal920_solaris32.bin bash: ./portal920_solaris32.bin: Invalid argument bash-3.00# bash-3.00# sh # ./portal920_solaris32.bin ./por