Search help for filename+path

Hello,
When i need to get a file name and its path , i use the f.m. "WS_FILENAME_GET" that popup an explorer window.
I'm looking for a search help that do the same, so i can link it to a data element .
Thank you,
koby

Hi Keshav,
I built it!
I made a search help with function-exit.
How do i publish it as a wiki?
The function-exit is:
FUNCTION yf4if_shlp_exit_filepath.
""Local interface:
*"  TABLES
*"      SHLP_TAB TYPE  SHLP_DESCT
*"      RECORD_TAB STRUCTURE  SEAHLPRES
*"  CHANGING
*"     VALUE(SHLP) TYPE  SHLP_DESCR
*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
EXIT immediately, if you do not want to handle this step
  IF callcontrol-step <> 'SELONE' AND
     callcontrol-step <> 'SELECT' AND
     " AND SO ON
     callcontrol-step <> 'DISP'.
    EXIT.
  ENDIF.
STEP SELONE  (Select one of the elementary searchhelps)
This step is only called for collective searchhelps. It may be used
to reduce the amount of elementary searchhelps given in SHLP_TAB.
The compound searchhelp is given in SHLP.
If you do not change CALLCONTROL-STEP, the next step is the
dialog, to select one of the elementary searchhelps.
If you want to skip this dialog, you have to return the selected
elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
either to 'PRESEL' or to 'SELECT'.
  IF callcontrol-step = 'SELONE'.
  PERFORM SELONE .........
    EXIT.
  ENDIF.
STEP PRESEL  (Enter selection conditions)
This step allows you, to influence the selection conditions either
before they are displayed or in order to skip the dialog completely.
If you want to skip the dialog, you should change CALLCONTROL-STEP
to 'SELECT'.
Normaly only SHLP-SELOPT should be changed in this step.
  IF callcontrol-step = 'PRESEL'.
  PERFORM PRESEL ..........
    callcontrol-step = 'SELECT'.
    EXIT.
  ENDIF.
STEP SELECT    (Select values)
This step may be used to overtake the data selection completely.
To skip the standard seletion, you should return 'DISP' as following
step in CALLCONTROL-STEP.
Normally RECORD_TAB should be filled after this step.
Standard function module F4UT_RESULTS_MAP may be very helpfull in this
step.
  IF callcontrol-step = 'SELECT'.
    callcontrol-step = 'DISP'.
   EXIT. "Don't process STEP DISP additionally in this call.
  ENDIF.
STEP DISP     (Display values)
This step is called, before the selected data is displayed.
You can e.g. modify or reduce the data in RECORD_TAB
according to the users authority.
If you want to get the standard display dialog afterwards, you
should not change CALLCONTROL-STEP.
If you want to overtake the dialog on you own, you must return
the following values in CALLCONTROL-STEP:
- "RETURN" if one line was selected. The selected line must be
  the only record left in RECORD_TAB. The corresponding fields of
  this line are entered into the screen.
- "EXIT" if the values request should be aborted
- "PRESEL" if you want to return to the selection dialog
Standard function modules F4UT_PARAMETER_VALUE_GET and
F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
  IF callcontrol-step = 'DISP'.
  PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
                          CHANGING SHLP CALLCONTROL.
    TYPE-POOLS  shlp.
    DATA : i_parameter TYPE     shlpfield,
           i_shlp_tab     TYPE      shlp_descr_tab_t  ,
           i_record_tab     TYPE TABLE OF seahlpres  WITH HEADER LINE   ,
           i_shlp     TYPE     TABLE OF shlp_descr_t WITH HEADER LINE,
    i_callcontrol     TYPE TABLE OF      ddshf4ctrl WITH HEADER LINE.
    DATA: gt_filetab TYPE filetable,
          gs_file TYPE file_table,
          gv_rc TYPE i.
    DATA : l_filename TYPE TABLE OF LINKLINE.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        multiselection = space
      CHANGING
        file_table     = gt_filetab
        rc             = gv_rc.
    LOOP AT gt_filetab INTO gs_file.
    ENDLOOP.
    APPEND gs_file-filename TO l_filename.
    record_tab[] = l_filename[].
    CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
      EXPORTING
        parameter         = 'FILENAME'
      TABLES
        shlp_tab          = shlp_tab
        record_tab        = record_tab
      CHANGING
        shlp              = shlp
        callcontrol       = callcontrol
      EXCEPTIONS
        parameter_unknown = 1
        OTHERS            = 2.
    IF sy-subrc <> 0.
    ENDIF.
    callcontrol-step = 'RETURN'.
    EXIT.
  ENDIF.
ENDFUNCTION.

Similar Messages

  • Search help for filename

    Hi all,
    I want to provide search help for file-name field in the selection screen to specify the path of the file to download the data at the local computer.
    Pls. help with some ideas.
    Thanx.

    Hi,
    You can use the following codes:
    1) Using Function Module:
    PARAMETERS: p_ppath TYPE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ppath.
    Open the Browse Dialog Box on the Desktop
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          program_name  = sy-repid
          dynpro_number = sy-dynnr
        CHANGING
          file_name     = p_ppath
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
    2) Using method:
    DATA: git_tab TYPE filetable,
          gv_subrc      TYPE i.
    Constants: gc_wondowtitle TYPE string VALUE 'Select',
               gc_defaultfile TYPE string VALUE '*.csv',
               gc_defaultdir  TYPE string VALUE 'C:\'.
    Open the Browse Dialog Box on the Desktop
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = gc_wondowtitle
          default_filename  = gc_defaultfile
          initial_directory = gc_defaultdir
        CHANGING
          file_table        = git_tab
          rc                = gv_subrc.
    Assign the selected file name to the file path field
      READ TABLE git_tab INTO p_ppath INDEX 1.

  • Search help for files

    Hello, is there any search help for searching files in local pc?
    I need it for a dynpro.
    Any help?
    Thanks!

    Hi ,
    Try this way...
    PROCESS ON VALUE-REQUEST.
    FIELD <DYNPRO-FIELDNAME>  MODULE F4_filename.
    MODULE F4_filename INPUT.
    * Drop down to retrieve File Path
      DATA: w_lcnt      TYPE i,
            t_lfilename TYPE filetable,
            w_lfilename LIKE LINE OF t_lfilename.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Find File Path'
        CHANGING
          file_table              = t_lfilename
          rc                      = w_lcnt
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
      ENDIF.
      READ TABLE t_lfilename INTO w_lfilename INDEX 1.
      IF sy-subrc NE 0.
        CLEAR w_lfilename.
      ENDIF.
      <DYNPRO-FIELDNAME> = w_lfilename-filename.
    ENDMODULE.
    regards,
    Prabhudas

  • How to Provide search Help for files on Application Server

    Hi Guys,
                   Can anyone tell me How to Provide search Help for files on Application Server. I have put a file name on selection screen. I want to give search help for files on application server.
    Thanks & Regards.
    Harish.

    Hi Harish,
    Use the following code,
    tables sxpgcotabe.
    data: lt_execprot LIKE btcxpm OCCURS 0 WITH HEADER LINE,
            w_filepath(60)       TYPE c, --> length depending on your Directory path.
      SELECT SINGLE *
        FROM sxpgcotabe
             WHERE name = 'LIST_DB2DUMP'
               AND opsystem = sy-opsys.
      IF sy-subrc <> 0.
        SELECT SINGLE *
          FROM sxpgcotabe
               WHERE name = 'LIST_DB2DUMP'
                 AND opsystem = 'UNIX'.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'External operating system command '
                            'LIST_DB2DUMP not found'.
        ENDIF.
      ENDIF.
      sxpgcotabe-parameters = p_filepath. --> provide the directory path.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = sxpgcotabe-name
                additional_parameters         = sxpgcotabe-parameters
                operatingsystem               = sxpgcotabe-opsystem
           TABLES
                exec_protocol                 = lt_execprot 
           EXCEPTIONS
                no_permission                 = 1
                command_not_found             = 2
                parameters_too_long           = 3
                security_risk                 = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry          = 13
                jobcount_generation_error     = 14
                OTHERS                        = 15.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-e01 p_filepath.  "Directory failed
      ENDIF.
    Loop round the directory list, split each line up into a line table
    and get the last data for each line, should be the filename
    Then build the dirlist.
      REFRESH t_dirlist.
      LOOP AT lt_execprot.
        REFRESH t_dirline.
        SPLIT lt_execprot-message AT space INTO TABLE t_dirline.
        DESCRIBE TABLE t_dirline LINES w_nolines.
        READ TABLE t_dirline INDEX w_nolines.
        MOVE t_dirline-data TO t_dirlist-filename.
        APPEND t_dirlist.
      ENDLOOP.
    Here you will get all the files in the directory mentioned in Application server.
    For displaying them as a Search help use the FM '/BMC/ZPOPUP_GET_VALUE'
    Pass the Internal table to this FM.
    Regards,
    Paul.

  • Hi search help for my field?

    Hi friends,
                   I have got a input field in screen painter with name FORMNo.
    Formnos are stored in Zform table.
    I want to create search help for this field please can anyone share me the procedure for createing the search help for my field. Its veru veru urgent please help me with answer.
    points will awarded for helpful answer.
    THks

    hi,
    PARAMETERS: p_filnam TYPE ibipparms-path.
    For value request use the below function
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam. 
    And
    you have to call one functio nmodule
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       program_name        = syst-cprog
       dynpro_number       = syst-dynnr
      FIELD_NAME          = ' '
    IMPORTING
       file_name           = p_filnam-----pass the p_filnam here
    Reward Points if usefull
    Regards
    Fareedas

  • Search help for user field for WBS element

    Hi,
    how can I add a search help to one of the user fields for WBS elements without modification? Is there an exit which I can use? I want to have a search help for field PRPS-USR02.
    Thanks for your help.

    Hi
    Create an elementary serach help using the Table USR01 or USR03
    see the steps
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
    https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
    Regards
    Anji

  • Problem creating a hybrid collective search help for werks,bukrs and ekorg

    Hi All,
    I have to create a collective search help for Org_key field of a custom table.
    This org_key field is a char4 field and can hold the value for plant , bukrs and ekorg.
    I need to create a collective search help which includes
    C_T001                          Collective Search Help for BUKRS (Company Code)
    H_T001W_NEW     Possible Entries for Plants
    H_T024E                         Input Help for Purchasing Organization
    I have added org_key field in the field description , how can i do the parameter assigment ( or declare the field description ) so that if the user press F4 for org_key field ,he is able to see all the search paths corresponding to C_T001,H_T001W_NEW, and H_T024E simultaneously, and corresponding to value chosen ( for plant , werks or ekorg ) the value is passed back to the org_key field.
    Thanks in Advance
    Regards
    Anurag

    Problem resolved. You can hard code values, like the domain name within the search help.
    Although I have found that if you don't use a search help and you have domain values then your drop-down list values will be automatically populated from the domain values for the field. At least in my dynpro it does.
    Jas

  • Search Help for Cost center

    Hi All,
    I have 2 questions
    1) we dont have any default cost center maintained any where in the org-structure (PPOMA_BBP), howeverwhenever I go for shopping I can see a cost center  along with GL account, ( I know GL acct is coming from "determine GL account for prod-cat" settings in IMG), but what about cost center where is it coming from ??
    2) second, when we do search help for cost center's in shopping application, we are able to see all cost centers from the back end which I guess is good, but we can see even those cost centers which are blocked!!!, why is this happening ??,
    Thanks.

    Hello,
    For First::
    In general the CO Area (here: cost center) is derived from R/3 Backend Enterprise
    Structure and should be re-determined if another acc. objects is
    entered that belongs to a different CO Area. Please also check the
    settings in R/3 Backend IMG, path:
    ->Enterprise Structure ->Assignment ->Controlling
    ->Assign company code to controlling area
    The company code is assigned to the CO Area through the following
    assignment:
    ->Materials Management
    ->Assign purchasing organization to company code
    The CO Area is in general the organizational object in
    highest (CO) level. Assignments to other MM/CO objects are located
    in lower Enterprise hierarchy level. Hence, the CO Area does not
    change if a different CO object of a lower level (here: cost center)
    is assigned to a SRM document.
    For Second::
    The only possibility I see is to set the message to error message in
    the customizing in the backend. The message number is KI 170. When you
    look at the long text of this message in transaction SE91 in the
    backend, you will find the description where to look in the customizing.
    When you have set this message to ERROR, then no purchase order will be
    created in the backend. Instead the shopping basket gets the status
    'ERROR' and the administrator will recieve a work item in his inbox.
    Then he can check the backend and either post the purchase orders again
    after solving the problem, or he can delete the shopping baskets.
    Please check the note for more infos or the documentation.
    Setting the message KI 170 to error message will solve your problem.
    See note 333136.  I would think that if you create
    a PO directly in the backend if you do not have the message configured
    as and error you will be able to create the PO.
    I hope this information helps.
    Kind regards,
    Gaurav

  • Creating search help for a field in AdHoc Query

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

  • Search Help for Vendor Feild not getting populated in the Screen Element

    Hi Everyone,
    In transaction Miro, I get a POP-UP for Invoicing Party i.e. Vendor and Users required a custom search help.
    The Search help for Vendor(LIFNR) is KRED_C and i appended a Z search help under this.
    Now that the search help exists and I can drill down the values too but when i select/choose any value,  that value is not getting populated in Screen feild.
    is there any validation I need to do for this.
    Please suggest me... I checked SDN there are many things but i couldn't figure out wat i need to do and where I need to modify.
    Regards,
    Raj

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Search help for SKAT-SAKNR OR SKAT-SAKNR is not working

    Hi All,
    I have created a Search Help for F4 in a dialog program for SKAT-SAKNR OR SKAT-SAKNR. While i click F4 on that field, it displays blank values.
    Here is the module:
    module HELP_FOR_SAPGL_ACC input.
      CLEAR t_SAPGL.
      SELECT  SAKNR TXT20
        FROM  SKAT
        INTO  CORRESPONDING FIELDS OF TABLE t_SAPGL UP TO 1000 ROWS
        WHERE SPRAS = SY-LANGU.
       WHERE L_GL_ACC = v_FIELD_VALUE-FIELDVALUE.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'SAKNR'
        PVALKEY                = ' '
         DYNPPROG               = PROGNAME
         DYNPNR                 = DYNNUM
         DYNPROFIELD            = 'SKA1-SKANR'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = t_SAPGL
        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.
    endmodule.   
    In the above code I am selecting 1000 rows from SKAT table and in the Search Help Popup it is also displaying 1000 rows but all are blank.
    Please help me.
    Regards,
    Avaneet

    Hi check my weblog on search help exit codeing..
    https://wiki.sdn.sap.com/wiki/x/du0
    \* Prepare for output
    CALL FUNCTION 'F4UT_RESULTS_MAP'
    TABLES
    shlp_tab = shlp_tab
    record_tab = record_tab
    source_tab = lt_result
    CHANGING
    shlp = shlp
    callcontrol = callcontrol
    EXCEPTIONS
    illegal_structure = 1
    OTHERS = 2.
    IF rc = 0.
    callcontrol-step = 'DISP'.
    ELSE.

  • How to add a search help for a field in alv?

    HI!Everyone ,
    i want to add a search help created by myself for one field in alv,
    and i want to use this function "HELP_VALUES_GET_WITH_TABLE".
    can anyone help me ?
    thanks!

    HI,Vijay.
    My code like this :
          PERFORM build_fcat.
          PERFORM build_objects.
          PERFORM layo_build.
          PERFORM set_drdn_table .
          CALL METHOD alv_grid->set_table_for_first_display
            EXPORTING
             i_structure_name = 'STU_S'
              is_layout        = s_layo
            CHANGING
              it_outtab        = itab_out
            it_fieldcatalog  = i_fcat
            ."Period
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
    for example, there is a field 'UNAME' IN Structure 'STU_S',
    i want to add a search help for 'UNAME'.
    the 'UNAME'  is not users in SAP R/3 , i want to add some data by myself or from a table .

  • How to add search help for field in ALV object

    Hello,
    In a program, we use ALV object ( container) to create a liste like : field1, field2 .. but when display we do not have search help for this . Could you please help me how to add match code in this case for field 1 and field2, We use set_table_for_first_display
    Thanks,

    Hi,
    when you define your field catalogue you can create data elements with search help in se11 and use them for field 1 and field 2.
    But maybe it is enough to use data elements belonging to a domain with a value help and to set field F$AVAILABL in the field catalogue or to fill the name of the field CHECKTABLE.
    Regards,
    Klaus

  • How to get search help for 2nd  parameter based on the 1st parameter value

    Hi all!
       I have 2 parameters (material no, revision level). I have created a search help for revision level. It has an importing parameter :material no. and one exporting parameter : revision level.When I checked it, it's giving the revision values only for the specified.
    In my report , I have kept these 2 materials in my selection screen.For revision level , I have added the matchcode object which I have created. When I  pressed F4 for revision level, it's giving all the values irrespective of the material no. in the first parameter. How to solve it? Please suggest.

    Hi,
    Try this code filling internal table fields,
    DATA: BEGIN OF values,
            OID TYPE ZCL_OBJECT-OBJECTID,
            ODEC TYPE ZCL_OBJECT-OBJECT_DESC,
           END OF values,
           W_FIELD(10).
    DATA: ZCL_PROJECT-PROJECTID type zcl_project-projectid,
          ZCL_OBJECT-OBJECTID(5).
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr,
          dynpro_values TYPE TABLE OF dynpread,
          field_value LIKE LINE OF dynpro_values,
          values_tab LIKE TABLE OF values.
    CALL SCREEN 100.
    *&      Module  VALUE_PROJECTID  INPUT
          text
    *MODULE VALUE_PROJECTID INPUT.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
               tabname     = 'ZCL_PROJECT'
               fieldname   = 'PROJECTID'
               dynpprog    = progname
               dynpnr      = dynnum
               dynprofield = 'ZCL_PROJECT-PROJECTID'.
    *ENDMODULE.                 " VALUE_PROJECTID  INPUT
    *&      Module  VALUE_OBJECTID  INPUT
          text
    MODULE VALUE_OBJECTID INPUT.
       CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
    W_FIELD = FIELD_VALUE-FIELDVALUE.
      SELECT  OBJECTID
              OBJECT_DESC
        FROM  ZCL_OBJECT
        INTO  (VALUES-OID,
               VALUES-ODEC)
    WHERE PROJECTID = FIELD_VALUE-FIELDVALUE.
       APPEND VALUES TO VALUES_TAB.
    ENDSELECT.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'OID'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'ZCL_OBJECT-OBJECTID'
                value_org   = 'S'
           TABLES
                value_tab   = values_tab.
    ENDMODULE.                 " VALUE_OBJECTID  INPUT
    *&      Module  INIT  OUTPUT
          text
    MODULE INIT OUTPUT.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'ZCL_PROJECT-PROJECTID'.
      APPEND field_value TO dynpro_values.
      IF SY-UCOMM = 'BACK'.
        LEAVE program.
    ENDIF.
    IF SY-UCOMM = 'ANS'.
       LEAVE  TO SCREEN  '0'.
    ENDIF.
    ENDMODULE.                 " INIT  OUTPUT
    START-OF-SELECTION.
    WRITE: / field_value-fieldvalue,
             W_FIELD.
      LOOP AT VALUES_TAB INTO VALUES.
        WRITE / VALUES.
      ENDLOOP.
      if sy-subrc <> 0.
        WRITE / field_value-fieldvalue.
      endif.
    Plzz reward points if it helps

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

Maybe you are looking for

  • Deactivation of Document Splitting

    Hi Gurus, We are doing are integration testing and having document splitting activated. But now i understood that the design which client is having, profit center is required in Profit and loss items and in balance sheets, profit center is not at all

  • Premiere CC 2014 - Magic Mouse issues?

    I know most professionals might prefer not using Apple's Magic Mouse for professional applications, but I happen to kind-of like the mouse. However, since using the latest version of Premiere CC 2014, I've noticed some very erratic behavior with the

  • CRM Survey Suit Tables

    Hi Experts. Can anybody tell me survey tables because I want to generate report for the Questioners that have been designed by using survey builder. I am trying to design the survey reports by using Query.

  • After uninstalling Premiere CS6 using the Windows uninstall programs, Premiere still appears in list

    I'm trying to reinstall Premiere CS6 and I notice that according to the Creative Cloud manager, in the app list, Premiere is still listed as being installed, which is now not letting me reinstall the app. How can I remove Premiere CS6 from this list?

  • Question about Auto Save and Versions

    Hi. I'm running the latest version of Yosemite - 10.10.2 My Mac seems to be auto-saving documents, but when I click the down arrow on a document's title, I don't see the options to "Revert to Last Saved Version" or "Browse All Versions." Since the do