Choosing a directory from the selection-screen

Hi,
regarding: select-options
There is a function module to choose a file (on value request F4) from the harddisc =>KD_GET_FILENAME_ON_F4
I want the user to choose his path(folder) from the selection screen.
Is there any function module to choose only the <b>directory(path) not the file</b>?
Thanks and Regards.

Hi Ashok,
You can alternatively do the following. Call the method of class CL_GUI_FRONTEND_SERVICES as follows.
Call Method CL_GUI_FRONTEND_SERVICES-->DIRECTORY_BROWSE
     Exporting
      WINDOW_TITLE    =
      INITIAL_FOLDER  =
      SELECTED_FOLDER =
Hope this helps.
Please reward some points if it helps you.
Regards,
Amit M. Mishra

Similar Messages

  • Retrieve input values from the selection screen

    I have a requirement to retrieve the variable value or values inputed from the selection screen and label the worksheet tab to replace the tab name 'Sheet1' from the Excel. The only way to do this would be to write a macro to label the sheets but how would I retrieve the value(s) from the selection screen criteria? Is the value of the selection screen entered by the user stored in some table? How would I write the macro to retrieve this value?
    For example, I want to retrieve the company code entered from the selection screen and lets say the company code entered as 10; I would want to replace the worksheet from 'Sheet1' to '10' . Texts would be more recognizable.

    Use the option Layout->Display Text Elements->Variables from the BEx toolbar. This will display Variable screen user input on your workbook in a fixed location. Then you can use your macro to name the worksheet with the cell reference.
    Thanks
    Vineet

  • Issue In Providing 255 Charcters From The Selection Screen Select-Option

    Dear Guru,
    I am searching for table field with having length = 255 character.
    which i want to use in select-option for proving data from the selection screen.
    I have found the table myhlp and it associated field allvals which is having length = 255.
    I am using it as below in my selection screen for the value to be provided 255 character long.
    SELECTION-SCREEN : BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECT-OPTIONS   : s_mlbody FOR myhlp-allvals  NO INTERVALS.
    SELECTION-SCREEN : END OF BLOCK b3.
    Now when i am going for the multiple selection option --> It is providing me the Multiple selection popup and giving me the provision of provide multiple line .
    But the issue is that --> For a particular single value line in the popup i am able to enter only 45 charcters not 255 character.
    But i need to put 255 charcter for particular line in a single value..
    Please give me some guideline how resolve this or any other alternative way of reading the 255 charcter from the selection screen
    Thanks & regards
    Saifur Rahaman

    Hi,
         As said by A@s selction screen with table control will be a good option.
    design a custom screen with SUBSCREEN as screeen attribute using tcode se51.
    For table control sample - go through Tcode ABAPDOCU - abap user dialogs-screens-complex screen- table control
    Try Following,
    REPORT Zsample .
    controls: tc type tableview using screen 200.
    parameters: p_user type myhlp-username.
    data: begin of itab occurs 50,
          field1(255) type c,
          end of itab.
    data: i_out type standard table of myhlp.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK MAX FOR 22 LINES.
    SELECTION-SCREEN TAB (25) TABS1 USER-COMMAND UCOMM1
             DEFAULT SCREEN 200.
    SELECTION-SCREEN END OF BLOCK MAX.
    start-of-selection.
    select * from myhlp into table i_out for all entries in itab
              where username eq p_user
                    and allvals = itab-field1.
    MODULE READ_ITAB INPUT.
    insert itab index tc-current_line.
    ENDMODULE.                 " READ_ITAB  INPUT

  • How to Remove the underline from the selection screen parameter

    How to remove the underline from a selection screen parameter ?

    >
    Anoop Menon wrote:
    > hi Avinash,
    >
    > I am not able to understand the use of the 'comment line properly.
    >
    > The last part of the statement which says modif id is confusing.
    >
    > Please clarify..... I am unable to activate my code when I put the selection screen commebnt statement.
    Use this and update it to your requierement !
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 1(30) comm.
    PARAMETERS test(1) type c.
      SELECTION-SCREEN end of line.
    INITIALIZATION.
      comm = 'test'.

  • How to get the variant name from the Selection Screen

    Hi Friends,
                       I have a Selection Screen with Variants.In the Report which is classical,i need to get the <b>name</b> of the variant which is used in the selection screen..Can anyone help me in this?

    You can use system variable
    SY-SLSET
    Thanks
    Seshu

  • Select option values disappearing from the  Selection screen

    Dear experts
    I have a selection screen in a report which has push button in the Application toolbar . When I press the button in the application toolbar it should get the count of the output just like in se16 and display it as message.
    I have added the button and I am processing the same in the AT-SELECTION_SCREEN event
    ie
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FC01'.
        PERFORM get_query_count.
      ENDIF.
    FORM get_query_count .
      CREATE OBJECT g_model.
    l_query_count  = g_model->get_query_count(
      MESSAGE s078  WITH l_query_count .
    ENDFORM.
    Here the problem is I am getting the message but the selection screen values are disappearing after the same .Now the strange thing I just hardcoded the l_query_count without going in to the class method , but then the selection screen values  are not disaapearing?
    Is there any limitation for using classes at AT SELECTION SCREEN event

    Hi,
        Try to write changing in perform.
    AT SELECTION-SCREEN.
    IF sscrfields-ucomm = 'FC01'.
    *PERFORM get_query_count changing p_count.*
    ENDIF.
    *FORM get_query_count changing l_query_count .*
    CREATE OBJECT g_model.
    l_query_count = g_model->get_query_count(
    MESSAGE s078 WITH l_query_count .
    ENDFORM.
    Regards,
    Srini.

  • Filter off all the unwanted org elements from the selection screens

    Hello all,
    The client does not want to see  SAP predelivered organization elements in the production system.
    Is there a way to achieve this globally, by some kind of filter applicable to selection screens of all transactions?
    Just to be clear-  i do not want to do this for every transaction separately. neither will security set up help, because it becomes voluminous.
    Highly appreciate your inputs in this regard.
    best regards,
    Srini

    Use a searchhelp exit for the relevant search helps. There are manyy but less than transactions
    Matthias

  • Choosing a folder from the hard drive

    Hi
    I need to allow the user to choose a directory to save a logfile to from a Business One form that should get launched when they click on a browse button. I have currently got the below code which is located within the the ItemEvent.
    Dim FolderWindow As New Windows.Forms.FolderBrowserDialog
    FolderWindow.RootFolder = Environment.SpecialFolder.MyComputer
    FolderWindow.ShowDialog()
    The FolderBrowserDialog window does appear however there is nothing shown where the folder directories should be so therefore not allowing for a directory to be chosen. If I however copy the exact same code and place it into the sub Main for example it works OK.
    I've had a look around the forum and theres a couple of people who look as if they've also had this problem but there's no fixes given. Does anyone know why the folders aren't being shown or another way I can allow the user to choose a directory from the Hard Drive?
    Thanks
    Steve

    Hello Steven
    In the last year i have published a solution in c# and vb.net which is working properly.
    you can donwload a simple source from:
    http://www.progi-tech.hu/ShowFileOpenDialog.zip
    before you call the browser window, you can tell the .NET to Acess to the filesystem by the following .NET code
    Dim f As New FileIOPermission(PermissionState.None)
    f.AllLocalFiles = FileIOPermissionAccess.AllAccess
    Regards
    J

  • How to get rid of the loop in ALV output from At selection screen event?

    I have several push buttons on a selection screen.
    Clikc on a button, then it pops up an editable ALV report. (This gets triggered AT SELECTION SCREEN event.). REUSE_ALV_GRID_DISPLAY_LVC..
    On the ALV output, I enabled F4 for a couple of fields. Once I click on the F4 button, ONF4 method gets triggerd and a pop up appears with custom search helps.
    choose a line and it fills the cell.
    Upto this it works fine.
    Now I click on the BACK button at the ALV output, it takes me to the selection screen. I click on the button again, it show the editable ALV. Now when I click on the F4 button, the pop up comes up twice and the cell gets filled from the second pop - up.
    How to control this?
    Probably I am not refreshing something?
    (I am using REUSE_ALV_GRID_DISPLAY_LVC and tooks ome code for ONF4 event from BCALV_*DATATYPES (forgot the exact name) program.)
    Thanks,
    Ven

    Hi,
    FORM refresh_grid USING  pw_grid TYPE REF TO cl_gui_alv_grid.
    *Work area
      DATA : wal_stable TYPE lvc_s_stbl.
      CHECK NOT pw_grid IS INITIAL.
      wal_stable-col = c_check.
      wal_stable-row = c_check.
    *Method to refresh grid
      CALL METHOD  pw_grid->refresh_table_display
           EXPORTING
             is_stable      = wal_stable
             i_soft_refresh = c_check
           EXCEPTIONS
             finished       = 1
             OTHERS         = 2.
    ENDFORM.                    " refresh_grid
    Thanks,
    Sree.

  • Need multiple 'MAIL' Icons.   Have two mail accounts and i want to keep them separate but want to EASILY switch back and forth from the main screen instead of going through, Settings, Mail, and selecting account. Major pain

    Have two mail accounts and i want to keep them separate but want to EASILY switch back and forth from the main screen instead of going through, Settings, Mail, and selecting account. Major pain the butt.  This has been a request from Apple users for many years.    it's great you can now combine all emails into one, but some people want them kept separate and have separate icons on the main page.   They could easily do this by having one "MAIL" account as white and another red.  Or put MAIL 1 and MAIL 2.    Or an actual label that the mail accounts are called on the ICONS!!  
    Help!

    eshghoolak wrote:
    ...I could switch back and forth between accounts while in the mailbox, with one button.  I think that is what you are referring to?  Whoever said it's just a simple switching - you obviously haven't had the pleasure of using an Android device.  It's not that quick to go back and forth - definitely not efficient...
    Not that it matters a lot, Android vs iPhone interface is largely a matter of personal preference and what you know... I'm not sure which one you're saying is not efficient...
    In any event...
    I currently have two email accounts setup.  My iPhone main page Mailbox settings reads:
    Mailboxes
    Inboxes
    All Inboxes
    Gmail
    [email protected]
    Accounts
    Gmail
    [email protected]
    I wish there an efficient way to move back and forth while in the "Inbox" between accounts.  Also, Why does one gmail account show as "Gmail" and another as the actually address?
    The names are based on the names you gave the accounts when you set them up.
    Settings>Mail, Contacts, Calendars.
    Tap the account you want to re-name. Go to the "Description" field and put in what ever you want.
    Second, there is no way to quickly choose a bunch of emails to delete. I have to manually go into each one and move it to the Trash folder.
    If you tap the edit button in the upper right while in mail, you can select multiple items to move, delete or mark (flag).
    I don't want any of the condescending remarks, that I've read here and in other forums.  I'm honestly looking for a solution, which I think you are too!  One thing I realized is that iPhone users in these forums are really defensive and quick to say "that's how it is, live with it, if you don't like it go away"  Um...the only thing that tells me is you are pretty bitter and have kept telling yourself that, to force yourself to like your device.  I prefer to express my issues, and find solutions.  There is ALWAYS a solution...
    I think what you will find is that many people here, myself included, tend to get a bit short with people who start off with attacks or whining about how something has been asked for for years and should be easy, rant about things that have already been beaten to death multiple times in the forums, talk about how much better Android or BB are at something (really... if it's that much better, why did they buy an iPhone to begin with?), etc., or continue to ask questions that could easily be answered with a simple search, or even just by looking back at the last dozen posts to the forum, half of which probably asked the EXACT SAME question.
    I don't think any of us go out of our way to be rude or uncivil.  That said, attacking the people who are attempting to help you is much more likely to generate a response of 'if you don't like it, go away', than it is to generate something that will be truly helpful.

  • I am trying to delete pages from a PDF file. I opened the bookmarks, selected the pages to delete and choose Edit Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    I am trying to delete pages from a PDF file. I opened the bookmarks in the PDF file, selected the pages to delete and choose Edit > Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    Resolved

  • How to display data from internal table in the SELECTION-SCREEN

    Hello Experts,
    My requirement is to display the data's from an internal table in the selection screen. I tried using selection-screen comment. But it is working only for a single record. Can anyone please tell me how to do this?

    Hi Ritika,
    we cant use write statement inside selection-screen.
    see my coding.
    SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE TEXT-456.
      SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1
                                          NO INTERVALS.
        SELECT-OPTIONS SEL1 FOR SY-DATUM.
        PARAMETERS     PAR1(10).
    <b>** I WANT ALL RECORDS FROM AN INTERNAL TABLE HERE ONLY</b>
        SELECTION-SCREEN END OF BLOCK BL1.
      SELECTION-SCREEN PUSHBUTTON 2(10)  but1 USER-COMMAND cli1.
      SELECTION-SCREEN PUSHBUTTON 20(10)  but2 USER-COMMAND cli2.
    SELECTION-SCREEN END OF SCREEN 123.

  • Is there anyone having an issue with the apple tv when selecting music from the home screen?

    Is there anyone in the community having an issue playing music from the home screen of the apple tv? When selecting the music app my apple tv restarts. If anyone else is having the same issue and has corrected the problem please share the solution.

    Working fine here, and have not seen any other reports. I would restore your unit
    Apple TV (2nd and 3rd generation): Restoring your Apple TV - Apple Support

  • F4 help in the selection screen from a int table

    I collected the datas from the function module. and the internal table is populated.
    the internal table contains manny fields.
    among these fields i need to take only one field and this field value to be used for F4 help in the selection screen ( not a dynpro)
    for example : in the selection screen
    I have to select the PO.
    based on the user i have filtered the PO. (determined dynamically by using the user name this i have done it)
    then i have to assign the PO the selection screen.
    which FM will be better to use  for this type of scenario and help me out with some example codes particularly for my req
    Thanks

    Hi ,
    use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'
    This example is for search help for material type .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_mtart-low .
    select all material types you want to display in search help into table i_mtart.
    PERFORM select_material_type.
    PERFORM help_material_type.
    *& Form help_material_type
    text
    --> p1 text
    <-- p2 text
    FORM help_material_type .
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    retfield = 'MTART'
    PVALKEY = ' '
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    dynprofield = 'S_MTART-LOW'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    value_tab = i_mtart
    FIELD_TAB =
    RETURN_TAB =
    DYNPFLD_MAPPING =
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " help_material_type
    Regards,
    Balaji.

  • Physical file path on the selection screen from AL11 Tcode

    Hi All,
    Please let me know some body how do we give only physical file path(only directory not the file names) on the selection screen?I need to see when I press F4 only the physical file directories of the application server.
    Thanks in advance.
    Mahesh

    Hi,
    This FM will be helpful.....
    F4_dxfilename_toprecursion
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
    * EXPORTING
    *   I_LOCATION_FLAG       = ' '
    *   I_SERVER              = '?'
    *   I_PATH                =
    *   FILEMASK              = '*.*'
    *   FILEOPERATION         = 'R'
    * IMPORTING
    *   O_LOCATION_FLAG       =
    *   O_SERVER              =
    *   O_PATH                =
    *   ABEND_FLAG            =
    * EXCEPTIONS
    *   RFC_ERROR             = 1
    *   ERROR_WITH_GUI        = 2
    *   OTHERS                = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Mdi.Deeba Najam.

Maybe you are looking for