Selected value in search help cannot be returned

Hi experts!
When I select value in search help, selected value is not returned to the field.
I did like this.
1. I enhanced BP using EEW.
2. I created a new view and display an enhanced field via BSP workbench.
(an enhanced field is assigned to a check table)
3. I created GET_V_XX method as follows.
method GET_V_ZZBUT000000102.
  DATA:
    ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
    lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
    lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
  ls_map-context_attr = 'STRUCT.ZZBUT000000102'.
  ls_map-f4_attr      = 'KEY'.
  APPEND ls_map TO: lt_inmap, lt_outmap.
  CREATE OBJECT rv_valuehelp_descriptor
    TYPE
      cl_bsp_wd_valuehelp_f4descr
    EXPORTING
      iv_help_id                  = 'CRMST_HEADER_OBJECT_BUIL-ZZBUT000000102'
      iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
      iv_input_mapping            = lt_inmap
      iv_output_mapping           = lt_outmap.
endmethod.
Does anyone know what is wrong?

Hi Yohei,
You could resolve your issue by changing the value of the "ls_map-context_attr" to the attribute value seen on the F2 help on WebUI screen.
If you change the value   ls_map-context_attr  to   'ZZBUT000000102' , then F4 help would work properly.
Hence the correct code would be:
method GET_V_ZZBUT000000102.
  DATA:
    ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
    lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
    lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
  ls_map-context_attr = 'ZZBUT000000102'.
  ls_map-f4_attr      = 'KEY'.
  APPEND ls_map TO: lt_inmap, lt_outmap.
  CREATE OBJECT rv_valuehelp_descriptor
    TYPE
      cl_bsp_wd_valuehelp_f4descr
    EXPORTING
      iv_help_id                  = 'CRMST_HEADER_OBJECT_BUIL-ZZBUT000000102'
      iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
      iv_input_mapping            = lt_inmap
      iv_output_mapping           = lt_outmap.
endmethod.
Regards,
Pratik Gandhi

Similar Messages

  • Z search help cannot be returned.

    Hi all,
    I have redefined the method GET_V_TAXTYPE:
          DATA:
            ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
            lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
            lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
          ls_map-context_attr = 'STRUCT.TAXTYPE'.
          ls_map-f4_attr      = 'KEY'.
          APPEND ls_map TO: lt_inmap, lt_outmap.
          ls_map-context_attr = 'STRUCT.DESCRIPTION'.
          ls_map-f4_attr      = 'VALUE'.
          APPEND ls_map TO: lt_inmap, lt_outmap.
          CREATE OBJECT rv_valuehelp_descriptor
            TYPE
              cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id                  = 'ZCL_SEARCH_HELP_TAXTYPE'
              iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback
              iv_input_mapping            = lt_inmap
              iv_output_mapping           = lt_outmap
              iv_object_ref               = me
              iv_trigger_submit           = abap_true.
    And create a new class ZCL_SEARCH_HELP_TAXTYPE to fill my search help:
      DATA: ls_ddlb         TYPE shsvalstr.
      ls_ddlb-key = 'BR1'.
      ls_ddlb-value = 'CNPJ'.
      APPEND ls_ddlb TO ct_results_tab.
      ls_ddlb-key = 'BR3'.
      ls_ddlb-value = 'Inscrição Estadual'.
      APPEND ls_ddlb TO ct_results_tab.
      ls_ddlb-key = 'BR4'.
      ls_ddlb-value = 'Inscrição Municipal'.
      APPEND ls_ddlb TO ct_results_tab.
      MOVE 'Tipo' TO ev_key_title.
      MOVE 'Denominação' TO ev_value_title.
    But when i selected the value on search help the value cannot returned to the field, what is wrong?
    Thanks,

    Hi,
    I guess you do not have any problem with the search help. It is getting displayed properly, right?
    You just cannot populate the value selected in the search-help to your UI field. Isn't it?
    If that is the case then insert the following code in the GET_P method of your attribute:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.
          IF owner->view_in_display_mode( ) = abap_true.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_text.
          ELSE.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
          ENDIF.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'SELECTED'.
      ENDCASE.
    This will trigger the event SELECTED when you click on the value help entry.
    Then you can write code in your view cotroller method EH_ONSELECTED to set the entry to your attribute.
    Regards
    Prasenjit

  • How can I to obtain the value selected in a search help?

    Hi Gurus,
    I have a search help and it has a "search help exit" (a FM).
    At FM search help exit I am calling the standard FM RHF4_RFC_FIELD_VALUE_REQUEST to another system ( assigning the corresponding "destination" ).
    The FM RHF4_RFC_FIELD_VALUE_REQUEST display a screen where the search is done. When a field is selected returns the values in the internal table RETURN_TAB.
    At FM search help exit I assign the selected value ( in RETURN_TAB ) to internal table's field RECORD_TAB-STRING.
    The search help is assigned to a table field and when I want to obtain a value through search help in SM30 transaction, the screen created by FM RHF4_RFC_FIELD_VALUE_REQUEST appears, but when I select a value, this is not "copy" to the table field.
    In what am I wrong? What am I omitting?
    Thanks

    Hi,
    Probably you are not mapping the right fields from source to destination structures.
    plz check RETURN_TAB-STRING(this is an example) assigned to RECORD_TAB-STRING.
    put a break point at this line and check.
    Thanks,
    Sree.

  • Dynamically passing the values to search help

    hi
    can I pass some values dynamically to search help input field.
    If I select a profit centre value from a drop down in separate field it should reflect the corresponding values in
    search help which is cost centre input field ( i/p fields is in a column of a UI element table).
    If I add one more row also the corresponding column should bears the search help...
    thanx in advance.......

    Data dictionary based search helps can have multiple importing parameters within Web Dynpro.  There are few rules that are documented in the online help however:
    Be aware that import and export parameters for the search help are determined only within the same context node (see also Transport of Values for the Input Help), and even then only if a Dictionary structure is assigned to the node.
    http://help.sap.com/saphelp_nw70/helpdata/EN/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm

  • F4 help in selection fields of search help

    Hi all,
    I've created a elementary search help for sold to party and appended it to collective search help.
    Now my problem is i need F4 help in one of the selection fields of search help.
    How can i get it.
    I m using selection method where ive created a view which fetches all data..
    Thanks in advance
    Palak

    Hi,
    1)Double click on the dataelement of your field on which you want f4 help then in the first tab itself you will find two option one for attaching the search help you have created(Elementry/ Collective) and second option is the parameter ID.
    You have to look for the first option to attach the search help.
    2) You can create f4 help for your Parameter or Selection screen by using the event.
    AT SELECTION-SCREEN ON VALUE-REQUEST for PARA/Selection screen.
    Further you can use the FM mentioned above F4_INT.....
    Hope it is clear now.
    Vikas Badhan

  • Restricting the Value of Search help in MIRO based on vendor

    Dear all,
    I had a problem in resticting the values of search help for vendor in the Po reference tab.  the Seach help is KRED  .  I had written a search help exit in it but i dont know how to restrict the vaues. I have to restict the Vendors Which starts with 1 series like 10000001,1000002 etc.
    Can any one help me out where to write the code in search help exit like CALLCONTROL-STEP = 'SELONE' or 'SELECT' or 'DISP' and what logic i need to use.
    Thanks & regards
    sreehari p

    Hi Sreehari,
    Write your Select query inside  IF callcontrol-step = 'DISP'.
    Use below code.
    *Types
      TYPES: BEGIN OF l_ty_tab,
             lifnr TYPE lifnr,
             END OF l_ty_tab.
      DATA: l_t_tab TYPE TABLE OF l_ty_tab,
            l_wa_tab TYPE l_ty_tab,
            l_wa_recordtab TYPE seahlpres.
    *Before displaying hitlist
      IF callcontrol-step = 'DISP'.
        REFRESH: record_tab[],l_t_tab[].
    SELECT LIFNR FROM lfa1 INTO TABLE l_t_tab WHERE lifnr LIKE '1%'.
    IF NOT l_t_tab[] IS INITIAL.
    *Pass hitlist to standard table record_tab
        LOOP AT l_t_tab INTO l_wa_tab.
          l_wa_recordtab-string = l_wa_tab.
          APPEND l_wa_recordtab TO record_tab.
          clear l_wa_recordtab.
        ENDLOOP.
      ENDIF.
      ENDIF.
    Thanks,
    Sap Fan

  • Difference between 'Selections from' and 'Search helps' in some HR program

    Hi,
    I notice at the top portions of some programs like Payroll Driver and pre-DME program there's two separate pushbuttons, 'Selections from' and 'Search helps'. What's the diff between the two?
    Because to me, both seem to have same functionality, i.e. to further filter the records.
    When I create customized programs, usually I use logical database pnp, and by that, we are adding 'Selections from' at the selection screen to help further select.
    So my questions:
    1. Why is there another button to help filter? Since both have same functionality to filter.
    2. What's the diff between the 2?
    3. Can somebody confirm the 'Search helps' is really for filtering?
    Thank you.

    Hi,
    If this spool is being generated internal to your program, then sy-spono should have the value.
    Regards,
    Lijo Joseph

  • Skip standard select method in search help exit

    Hi experts,
    how to skip standard select method in search help exit? Currently I'm selecting my custom data with select statement in 'DISP' section, but still text: 'more than 500 results were found' is shown. I just want to skip/disable standard selection. Thank you.
    BR
    Paul

    Hi check my weblog: https://wiki.sdn.sap.com/wiki/x/du0

  • Values from Search help not returned to UI

    Hi,
    For a field on Web UI, i have to open a popup which would be configured from a search help created in transaction SE11. The search help uses a Searchhelp Exit. On the UI, I am getting the popup but the value i select is not reflecting on the UI. The moment i select the value, the popup closes. The 'Get_XXX' method of the attribute also does not triggered. Following is the code which i am using to call the search help in the GET_V_XXX method of the attribute.
      DATA:
      ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
      lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
      lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'STRUCT.ZZSTORAGE_LOC'.
      ls_map-f4_attr      = 'STORAGE_LOC'.
    APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZOFI_SHLP_STORAGE_LOC2'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    I have tried various approaches suggested in the forum, but none could solve the issue. Please guide.
    Thanks and Regards,
    Radhika

    Hi,
    The client wants to use the search help method only. i am using the following code to call the serach help.
    DATA:
      ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
      lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
      lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      CLEAR ls_map.
      ls_map-context_attr = 'EXT.ZZSTORAGE_LOC'.
      CONDENSE ls_map-context_attr no-GAPS.
      ls_map-f4_attr      = 'STORAGE_LOC'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'EXT.ZZPLANT'.
      CONDENSE ls_map-context_attr no-GAPS.
      ls_map-f4_attr      = 'PLANT'.
      APPEND ls_map TO: lt_inmap, lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZOFI_SHLP_STORAGE_LOC2'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    this code is written in the GET_V of the field ZZSTORAGE_LOC.The ZZ Storage_Loc field is getting saved but the field ZZPLANT does not. Please provide your inputs.
    Thanks,
    Radhika

  • How to pass the default value to search help selection screen

    Hi
    I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
    Could you please let me know how can we do this?
    When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this  default value based on condition.
    Regards
    Anil

    Hi Arun
    I'm using SE11 search help.I'm giving you my code for your reference here.
    DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lr_qs           TYPE REF TO cl_crm_bol_dquery_service,
        lr_current     TYPE REF TO if_bol_bo_property_access,
        lv_category    TYPE STRING.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'ATTRIBUTE'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'SERVICE_LINE'.
      APPEND ls_map TO: lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZATTR1'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_trigger_submit           = abap_true
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
    Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
    1.'ATTRIBUTE'
    2.'SERVICE_LINE'
    3.Description of 'SERVICE_LINE'  and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
       a condition.
    However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
    ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field  and the same value is being copied to
    'SERVICE_LINE' field in the popup.
    Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
    Best Regards
    Anil

  • Need selection screen values in Search help user exit in same report

    Hi Experts,
    I am using Logical Data Base PNP.
    Created a custom search help to validate the records for IT000 based on the selection screen dates.
    Enter the DATEs for Data Selection Period and Person selection period in the selection screen.
    When I for search help for PERNR field in the same report, I need the selectin screen DATE values to be in user-exit of search help.
    This will help me in validating the records for specific employees within the date range of given DATE in selectin period.
    As of now it's picking the employees based on the DATE selection of selection screen,
    Regards,
    Prasad

    Hi,
    Go Ahead as mentioned by Satyesh T - (Option two).
    Reading Select Options from DYNP_VALUES_READ
    reffer the above link for getting more clarity for using  'DYNP_VALUES_READ'
    Regards.
    Arun

  • How to restrict the values for selection in the search help..

    hi,
    i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
    i used the standard search help it holds some 15 values for selection...
    when i click on the  search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
    waiting for ur reply...
    Uday.
    Edited by: uday13 on May 31, 2010 9:17 AM

    Hello,
    Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             bukrs TYPE bukrs,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      PERFORM f4_bukrs_help USING p_bukrs.
    *&      Form  f4_bukrs_help
    FORM f4_bukrs_help USING p_bukrs.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             v_belnr TYPE belnr.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'Z_F4' "program name
          dynumb                               = '1000' "screen number
        TABLES
          dynpfields                           = tb_dynpfields
      IF sy-subrc NE 0.
      ENDIF.
    READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        v_belnr = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BURKS' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BUKRS' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " f4_bukrs_help
    Hope this helps you.
    Regards,
    Tarun

  • Values of F4 help are not returned.

    Hi,
    I had a requirement to add a F4 help  for batches in VL02n transaction.
    It is using a collective search help MCH1for the F4 help .
    I created 1 elemntary search help ,with a necessary view.
    I then added my elementary search help to the collective helpp MCH1.I dint write any search help exit for this.
    Everything is working fine ,but the F4 help values does not return back.
    I do F4 on batches , it gives me  the dialog screen and returns the batches,I select the batch and the pop up goes off.
    The batch selected doed not return.
    Please suggest.
    Thanks,
    Suchi.

    You must link the parameter of your elementary search help to those of the collective search help, the minimal action is to link the exported parameter of the collective search help - map at least MCH1 CHARG parameter to the batch number exported in your Z_STOCK_SERHLP search help.
    Read the documentation
    - [Creating Elementary Search Helps|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee5f446011d189700000e8322d00/frameset.htm] to define export parameter
    - [Creating Collective Search Helps|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/frameset.htm] to link export parameter in elementary and collective search help
    Position the cursor one after the other on each allocated search help and choose Parameter assignment.
    In the next screen, enter the parameter names of the elementary search helps to which the corresponding parameters of the collective search help should be assigned in the field Reference parameter.
    You can select the parameters contained in the included search help using the input help. Create a proposal for the assignment with Proposal.
    Regards,
    Raymond

  • Hiding Hit list popup and getting multiple values in Search help

    Hi,
    I have a special requirement where I am using a search help for filtering data. My requiremetn is the data which I am getting in Hit list popup, I want all that data in a internal table for further processing also I dont want that hit list popup. Is there any method or something which can be used in search help exit to hide the hit list popup dialog and returning all the records which is fetchec in the record_tab.
    Thanks
    Tanmaya
    Edited by: Tanmaya31 on Dec 16, 2011 6:52 AM

    Hi,
    I dont think you can make thru search help. Instead, I can advise you:
    Instead of using a search help for multiple selection, have a button placed at the table control, so that once you press that, you get the desired values(just as in SH) in an ALV display. Then you can make multiple selection and call the table control again and pass the values to the internal table used for the table control, so that the table is filled with the desired values.
    Hope this helps you.
    vamsi

  • Error while selecting values for f4 help.

    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
    SELECT-OPTIONS: CCG for setnode-SETNAME.
    SELECTION-SCREEN END OF BLOCK B1.
    At Selection-screen on value-request for ccg-low.
      Select setname from setnode into corresponding fields of table i_setnode where setclass = '0101'.
       Sort i_setnode by setname.
       Delete adjacent duplicates from i_setnode.
      Perform F4_Help_ccg_low.
    FORM F4_Help_ccg_low .
    data: prog like sy-repid , scrno like sy-dynnr.
    prog = sy-repid.
    scrno = sy-dynnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
         RETFIELD               = 'i_setnode-setname'
         DYNPPROG               = prog
         DYNPNR                 = scrno
         DYNPROFIELD            = 'CCG-low'
         VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = i_setnode
    ENDFORM.
    The field which i select from the f4 help is not being diaplsyed on select-option. I have attached the code written above. Please check and if i have done anything pls correct me.
    Regards,
    Phyrose.

    Hi
    check with  this code
    TYPES : BEGIN OF ST_OBJID_SH,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
            END OF ST_OBJID_SH.
    DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
    DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    *SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
    SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
    SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.
        SELECT OTYPE OBJID FROM HRP1000
                     INTO TABLE IT_OBJID_SH
                     WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
                 DDIC_STRUCTURE         = ' '
            RETFIELD               =  'OBJID'
                 PVALKEY                = ' '
           DYNPPROG               = SY-REPID
           DYNPNR                 = SY-DYNNR
           DYNPROFIELD            = 'S_OBJID'
                 STEPL                  = 0
                 WINDOW_TITLE           =
                 VALUE                  = ' '
           VALUE_ORG              = 'S'
                 MULTIPLE_CHOICE        = ' '
                 DISPLAY                = ' '
                 CALLBACK_PROGRAM       = ' '
                 CALLBACK_FORM          = ' '
                 MARK_TAB               =
               IMPORTING
                 USER_RESET             =
          TABLES
            VALUE_TAB              =  IT_OBJID_SH
                 FIELD_TAB              =
                 RETURN_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.
      ENDIF.
    <b>Reward if usefull</b>

Maybe you are looking for