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.

Similar Messages

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • Want to see the previous file name in the selection screen field

    Hi,
    I am working with flat file upload. Now my problem is in the selection screen field when i press space bar or backspace i want to see the previous file path which i have taken before. How to do this functionality.
    Thanks in advance,
    Vijay.

    Hi,
    Hope the following code will help u.
    PARAMETER: in_file type ibipparms-path MEMORY ID FID.
    at selection-screen on value-request for in_file.
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          mask      = ',CSV,*.csv,'
        changing
          file_name = in_file.
    But here when u give a path and execute and come back or executing it again the previous path will automatically come to the in_file field.
    Just check this code.
    Thanks.

  • Check the file extension in the selection screen

    hi,
    in the selection screen i am giving a file path. the file should be of type PDF only.
    how to validate it ?
    i am splitting the file path at "." and checking for the last three letters , if it pdf or not.
    but it is throwing error for pdf format also.
    throw some light on it and let me know.
    thanks  and regards.
    suki

    hi,
    You need to pass only COMPLETE_FILENAME
    say C:\ABC\A\ABC.TXT
    data  : v_filename type PCFILE-PATH.
    v_filename = "C:\ABC\A\ABC.TXT".
      CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
           EXPORTING
                COMPLETE_FILENAME = v_FILENAME
           IMPORTING
                DRIVE             = v_DRIVE
                EXTENSION         = v_EXTENSION
                 NAME              = v_name
                 NAME_WITH_EXT     = v_namewithtxt
                PATH              = PATH_VALUE
            EXCEPTIONS
                 INVALID_DRIVE     = 1
                 INVALID_EXTENSION = 2
                 INVALID_NAME      = 3
                 INVALID_PATH      = 4
                 OTHERS            = 5.
    you will get the output as
    DRIVE                           C     
    EXTENSION                   TXT   
    NAME                            ABC   
    NAME_WITH_EXT          ABC.TXT
    PATH                            \ABC\A\
    Hope this helps.
    Regards,
    Richa

  • Clear download path in the selection screen

    Hi All,
    Im facing the problem in the selection screen.
    User wants to clear the selection screen download path when they are changing the radio button one to another another radio button. this is as below
    PARAMETERS::pa_werks like ekpo-wekrs,
                             pa_path like string.
    PARAMETERS:rb1 RADIOBUTTON GROUP g01 USER-COMMAND radio,
                  rb2 RADIOBUTTON GROUP g01,
                  rb3 RADIOBUTTON GROUP g01.
    ex:first default is rb1 radio button,so they will select the download path based on F4 help. then they will choose rb2,now the download path has to clear. cause they want choose F4 according to second radio button RB2.
    Thank you very much.
    Anu.

    Hi Anitha,
    Please try this code.
    PARAMETERS: P_FNAME LIKE RLGRAP-FILENAME.
    PARAMETERS:RB1 RADIOBUTTON GROUP G01 USER-COMMAND RADIO,
    RB2 RADIOBUTTON GROUP G01,
    RB3 RADIOBUTTON GROUP G01.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF RB1 = 'X'.
          CLEAR P_FNAME.
        ELSEIF RB2 = 'X'.
          CLEAR P_FNAME.
        ELSEIF RB3 = 'X'.
          CLEAR P_FNAME.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SY-REPID
          DYNPRO_NUMBER = SY-DYNNR
          FIELD_NAME    = 'PATH'
        IMPORTING
          FILE_NAME     = P_FNAME.

  • 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.

  • Assign Logical file name for the physical file path through Program

    Hi all,
    I am having a physical file which is getting generated dynamically. It is having the date and time stamp in its name which is added at runtime.
    Now I need to assign a logical file name for the physical file path through the program.
    Is there any FM or any other method to assign the same.
    Gaurav

    I think it is not possible. becuase the date & time added at runtime. so if you check the table  PATH you can find filename and their definitions

  • Reg: calling selection screen from the second list

    Hi all,
    How can we call the selection screen from the second screen.
    Can any one help me to solve this problem.

    HI RJ,
    Try .....
    case sy-ucomm.
    WHEN '&F03'.
    LEAVE TO SCREEN '0'.
    endcase.
    after the FM for grid-display
    i m using the same .....
    i hav selection-screen..then alv grid screen 1  then again another screen with alv grid display..
    bt in my code for first alv grid ...i m using REUSE_ALV_GRID_DISPLAY_LVC
    as
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
          EXPORTING
            i_callback_program       = sy-repid
            i_callback_pf_status_set = 'SET_PF_STATUS'(303)
            i_callback_user_command  = 'USER_COMMAND'(304)
            i_grid_title             = 'Reconcilation Report'(305)
            is_layout_lvc            = it_layout
            it_fieldcat_lvc          = gt_fieldcat3[]
          TABLES
            t_outtab                 = gt_msg[].
    here i musing set_pf_status to add one pushbutton to the screen. in ur case u can avoid that...
    after that
    *&      Form  set_pf_status
          text
         -->EXTAB      text
    FORM set_pf_status USING extab TYPE slis_t_extab.           "#EC NEEDED
      SET PF-STATUS 'STANDARD_FULLSCREEN'.
    *get back to Selection Screen
      case sy-ucomm.
        WHEN '&F03'(328).
          LEAVE TO SCREEN '0'.
      endcase.
    ENDFORM.                    "set_pf_status
    its working for me..
    Thnx
    Rohit...
    Edited by: Rohit Kumar on Oct 29, 2008 3:20 PM

  • How to get back to Selection Screen from Drill Down Screen in ALV

    Hi All
              How can I come back directly to the Selection Screen from the drill down screen of an ALV Report i.e. in an Interactive ALV Report when sy-lsind > 1.
    Thanks
    Kulpreet

    Try to use ....
    SET SCREEN 0.
    LEAVE SCREEN.
    Regards,
    Rich Heilman

  • A column in a table has physical file path (I want to get file size of those docs from the OS)

    Experts!!
    I have a table that holds the physical file path of files in one of its columns. It does not give a link, just the physical file path.
    For example,---- C:\bu\test.pdf   and let us say the file size is kb according to the OS.
    Is there any way I can obtain the file size of the files from the physical path?
    for example, the file size of the test.pdf file in the example here using t-SQL?
    Much Appreciation
    ebro

    Hey there... thanks for the response......I found the following as a solution for my problem. But my problem is the SP created using the method needs a directory as a parameter. How can I pass the directory from a table that holds my directory?
    EXEC  [dbo].[GetListOfFileWithSize](@Dir)
    How do I pass the directory from my table?
    http://stackoverflow.com/questions/7952406/get-each-file-size-inside-a-folder-using-sql/7958070#7958070
    ebro

  • Table or function module from for complete physical file path?

    Hi All,
    I know the Logical file and Logical path name, i can see the complete path also from logical path name i.e. the physical file address through transaction FILE, e.g. /USR/TMP/ , but i want to display this path in one of the report output,
    so please help me with the table or the function module which can give me the complete physical file path.
    I checked the the table ADMI_FILES but it contains the file name or the Logical path name but the complete physical file address e.g /USR/TMP?, like this is not available. More over i tried function module file_get_name, still the physical address is not correct one, it is giving same address for all logical paths.
    Kindly Guide me for this
    Regards,
    Nikesh Kumar

    try sth like this:
        CALL FUNCTION 'FILE_GET_NAME_AND_LOGICAL_PATH'
          EXPORTING
            LOGICAL_FILENAME = LDS_NAME
                IMPORTING
            FILE_NAME        = sfile
            LOGICAL_PATH     = pth
          EXCEPTIONS
            FILE_NOT_FOUND   = 01.
        IF SY-SUBRC NE 0.
          MESSAGE E300(BD) WITH LDS_NAME.                         " TODO MG
        ENDIF.
                                                                                    SELECT single PATHEXTERN FROM path INTO expth
               where pathintern = pth.
        replace '<FILENAME>' with space into expth.
        concatenate expth '/' sfile into sfile.
        open dataset sfile for output in text mode encoding default.
    A.

  • How to get the file name dialog on the selection screen

    Hi All
    I have a selection screen in which there is a parameter where I need to enter file name. Instead of typing filename in the parameter I would like to give a path from presentation server ( I am downloading Data to presentation server ).
    How to achive this functionality in case of a parameter on the selection screen. I need to have File open Dialog box like Windows here and then it should show the filename and it's path in this parameter after selectiong from the dialog box.
    Amol

    Hi..,
    Use the function module <b>F4_FILENAME</b> or <b>WS_FILENAME_GET</b> in the event
    <b>AT SELECTION-SCREEN ON VALUE REQUEST FOR P_FILE.</b>
    Parameters p_file type rlgrap-filename.
                AT SELECTION-SCREEN ON VALUE REQUEST EVENT            
    at selection-screen on value-request for p_file.
      perform value_request.
    *&      Form  value_request
          This subroutine proposes the possible input values             *
    There are no interface parameters to be passed to this subroutine.  *
    form value_request.
      call function 'WS_FILENAME_GET'
       importing
         filename               = p_file
       exceptions
         inv_winsys             = 1
         no_batch               = 2
         selection_cancel       = 3
         selection_error        = 4
         others                 = 5.
      check sy-subrc eq 0.
    endform.              
    Reward all helpful answers !!
    sai ramesh

  • 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

  • Unable to Upload data from text file into BEx Analyzer selection screen

    Hi,
    No response from BEx Analyzer when I am trying to upload around 40,000 material from text file into BEx Analyzer selection screen using "Upload selections" options. But I am able to upload only 10,000 material from text file.  I never faced same kind of issue when I am using BEx Analyzer 3.x.  Please let me know I have to change any settings related to BEx or any other.
    Thanks
    Sri Krishna Ponnada.

    Hello
    It seems you are reaching the .NET memory limitation informed in note 1040454.
    Because 3.5 does not use .NET it can work that.
    Regards,
    Ricardo

  • Selection parmeters in the selection screen to upload a file to applserver

    what are the  selection parmeters in the selection screen to upload a file to applserver

    hai bharat,
         There are two steps in the solution of this problem.
    1. Create an internal table to get the required data based on the given selection parameters.
    2. Download the data from internal table to file on the application server.
    In the first step,
    you should create the internal table with the required structure.
    (ii) Use select statement if you want to retrieve data from database with required logic.
    In the second step,
      Create a string with max. length you required in the report program with some intial value
    (ii) Open a dataset by using
    OPEN DATASET filename for output in text mode encoding default
    to open a file on application server.
    (iii) Transfer data from internal table to file opened in first step on application server.To do that
    a) Use
          Loop at itab1 into w_itab(workarea).
            transfer w_itab to filename.
          endloop.
    (iv) close the data set by using
          CLOSE DATASET filename.
    After this step, the file with filename was created on the application server with selected data based on the selectionj parameters.
    If you feel, this is useful , reward points.
    by
    prasad g.v.k

Maybe you are looking for

  • Restore on 10.3.9

    i've just bought a macbook which came with leopard 10.5 to replace my old ibook g4 which is running 10.3.9. I want to pass the ibook onto my younger brother and ideally, i'd like to re-install the osx so that the ibook will be as close to 'new' as po

  • Differnce between java script xml dom and Java Xml dom

    Hi, In my application For client side in Java Script for craetion of DOM MIcrosoft Activex object is used. USing that one they are buiidng DOM. And they are saving as XML. In server side i have to write one servlet which will parse that xml and i hav

  • Preparing Captivate 5 SWF ready for Moodle

    Hello - I'm a bit of a noobie with all things Captivate and I was wondering someone can advise me on what I have done so far: I have 6 Captivate SWF exported movies, the final movie being a quiz. All the SWF's do not have reporting enabled except for

  • Question about ADF JClient applications

    I have a View object based on an Entity object that represents an activity done and that has an ID of a worker that does it as a foreign key. I would also like to show the worker's name on the form, but that is an attribute not included in the View o

  • Where I can find user exit MCP20021 for SOP

    Hi, I was just navigating through SPRO to find out the user exits for SOP. But not finding all the user exits available. For eg. I couldnt findout the user exit MCP20021 mentioned anywhere in SPRO navigation. Anybody has the information where can I f