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

Similar Messages

  • Problem in assigning value from search help

    Hi experts,
              I have created an elementary search help for the custom field (Say for example YFIELD1) via SE11. Selection method's field name is YFIELD2 with same type as YFIELD1.  
    But when I press F4 on YFIELD1, I could see the values list but when i selected any value, it is not getting assigned to my field.
    What my doubt is whether YFIELD1 and YFIELD2 should have same name?
    Please help me to solve this issue.
    Thanks,
    Peri

    Dear Peri,
    Greetings.
    there should not be any problem if your field names are different.
    While creating elementry search help.... make sure that U check both import (IMP) and export (EXP) parameters and activate the search help once again.
    If Ur EXP parameter is unchecked then U will be able to see the list of entries but  it won't get into the field while creating entries in the main table.
    Hope this helps.
    Sathya

  • Search help to return multiple values

    Hi all,
    I've created a search help and I'd like it to return several values to different fields, I don't want these fields to be seen on the selection screen.
    For example:
    1. User clicks on search help for FIELD1 and selects a value from the pop-up box
    2. Program populates FIELD1 depending on the user selection
    3. Program also populates FIELD2 and FIELD3 which can be used in the program at a later date.
    I can do 1 and 2 but I'm having an issue with 3.  I've tried selecting all fields in the search help as Export, but although that populates the fields in the search help test facility, it doesn't know which fields I want it to populate in my program.
    I've also tried using FM F4IF_FIELD_VALUE_REQUEST but can only get this to return one line in table RETURN_TAB.
    The screen fields are declared as:
    PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP,
                             FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                             FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.
    Any help is appreciated.
    Gill

    Thanks for your suggestion but what I failed to put in my original post was that FIELD1 is a description field and FIELD2 and FIELD3 are the actual key fields for the table which I need.
    So, I can't do your suggestion of populating them based on FIELD1, I need to know which line the user selects to populate these key fields as FIELD1 may not be unique within the table.
    Does that make sense?
    That's why I wanted the search help to return all 3 values then I can populate FIELD2 and FIELD3 from that.

  • 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

  • Passing two export parameter from search help exit

    hi gurus,
    i need your help
    i need  to import two field from search help exit into two screen field.
    eg.
    parameters : p1 type p1 matchcode id s1,
                        p2 type p2,
    on f4 for p1 i am displaying two field in search help output, p1 and p2.
    i am using search help exit FM to pass value from s1, not using any view or table infact extracting data using other function module. i am filling.
    what i want , when i make a selection on f4 for p1, p2 should also be filled from the same search help s1.
    i allready tried memory id-export option in my search help exit at RETURN event but that does not fits well.
    ASAP reply higly appreciated
    will reward point for sure

    thanks a lot it worked out by defining search help for structure which contain these two fields.
    what i was missing was interface link.
    mandy

  • Getting associated values from F4 Help

    Hi all,
    i have already searched about it on SCN but not get any thread where i can resolve my problem so here i am posting it, i have created a screen in which i have provided F4 help, in this F4 help i am showing name and associated number of employeees, when ever user picks any values from F4 help i wants to capture the associated number from the screen, for this what i have done till now is.
    I have created a F4 help and when user enters the values, i have used a PAI event to capture the corresponding values by using translation like shown below. Here ztable-rm_name is the screen field for which F4 help has been provided, and emp_code is the value i have to capture.
    MODULE NUMBER INPUT.
    IF ZTABLE-RM_NAME IS NOT INITIAL.
       IF IT_ZINCEN IS NOT INITIAL.
       SORT IT_ZINCEN BY RM_NAME.
       LOOP AT it_zincen INTO wa_zincen.
           TRANSLATE wa_zincen-RM_NAME TO UPPER CASE.
           wa_zincen1-rm_name = wa_zincen-rm_name.
           wa_zincen1-emp_code = wa_zincen-emp_code.
         APPEND wa_zincen1 TO it_zincen1.
       ENDLOOP.
       READ TABLE it_zincen1 INTO wa_zincen1 WITH KEY RM_NAME = ZSDPROJECT1-RM_NAME.
       IF SY-SUBRC = 0.
         EMP_CODE5 = WA_ZINCEN1-EMP_CODE.
       ENDIF.
    As you can see that i am fetching the emp_code through it_zincen1 which i have already got through the database and it contains the list of all employees
    and its associated numbers, the problem which i am getting is that , while fetching the data by passing rm_name it will provide the emp_code of first matching rm_name, so it will give an ambiguity in result , if there will be more than one employee in the database.
    So, i am looking for any other approach, that will give consistent result , i have done it through DYNP_VALUES_READ also, but not getting proper result, please if someone has the idea about how to achieve it, please tell me the solution.
    Thanks in advance.

    This is the code i have written in my program, please tell me what is wrong with this code
    MODULE GET_VALUES INPUT.
         IF ZSDPROJECT1-TYPE IS NOT INITIAL.
         IF ZSDPROJECT1-TYPE = '1'.
           SELECT EMP_CODE
                  DOJ
                  NAME
                  FROM ZDST INTO TABLE IT_ZDST.
            SORT IT_ZDST BY EMP_CODE NAME.
            DELETE ADJACENT DUPLICATES FROM IT_ZDST COMPARING EMP_CODE NAME.
        s_mapping-fldname     = 'F0001'.
        s_mapping-dyfldname   = 'NAME'.
        APPEND s_mapping TO t_mapping.
        CLEAR s_mapping.
        s_mapping-fldname     = 'F0002'.
        s_mapping-dyfldname   = 'EMP_CODE'.
        APPEND s_mapping TO t_mapping.
        CLEAR s_mapping.
    IF IT_ZDST[] IS NOT INITIAL.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
    *     DDIC_STRUCTURE         = ' '
           RETFIELD               = 'NAME'
    *     PVALKEY                = ' '
          DYNPPROG               = SY-REPID
          DYNPNR                 = SY-DYNNR
          DYNPROFIELD            = 'ZSDPROJECT1-RM_NAME'
    *     STEPL                  = 0
          WINDOW_TITLE           = 'Select the Value'
    *     VALUE                  = ' '
          VALUE_ORG              = 'S'
    *     MULTIPLE_CHOICE        = ' '
    *     DISPLAY                = ' '
    *     CALLBACK_PROGRAM       = ' '
    *     CALLBACK_FORM          = ' '
    *     CALLBACK_METHOD        =
    *     MARK_TAB               =
    *   IMPORTING
    *     USER_RESET             =
         TABLES
           VALUE_TAB              = IT_ZDST
    *     FIELD_TAB              =
          RETURN_TAB             = T_RETURN
          DYNPFLD_MAPPING        = T_MAPPING
        EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3
       IF SY-SUBRC <> 0.
    * Implement suitable error handling here
       ENDIF.
    ENDIF.
    ENDMODULE.

  • Data display from search help.

    Dear All,
    I create a search help from T005 table with 2 parameter LAND1 and LANDX.
    I have a zempinfo table which have a field LAND1.
    when I want to insert data in zempinfo table  I get data for LAND1 from search help. In the meantime I want to display LANDX 's data in a screen by a DISPLAY_ITEM.
    DISPLAY_ITEM is not a zempinfo table field. IT is a screen element only.
    Now help me please, to display data LANDX into DISPLAY_ITEM.
    Thanks
    Rayhan

    Pls try to understand.
    Though land1 landx are same table fields. I want to use only one search help.
    When I enter value in LAND1 from search help, DISPLAY_ITEM automaticaly get data crossponding value of land1 from landx.
    e.g. when we create a SO by tcode VA01. in this screen we enter the MATNR value & crossponding other field display its related data.
    IF any way do this pls help that.
    Thanks for your attention.
    Edited by: Abu Rayhan on Jul 30, 2009 5:50 AM

  • 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

  • How to delete entries from search help for a field

    hi guys
    how r u all doing.
    i have some questions for u.
    1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
    2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
    3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
    any help in this regard,wud be appreciated.
    thanks

    Follow this
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • 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

  • How to delete a field from search help which is delivered

    hi
    I got a requirement to delete a field from search help which is delivered long back
    Regards
    krishna

    Hi
    Whether it exists in DEV system or not?
    Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
    Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
    Regards
    Anji

  • cm:search is not returning any result when logical operator '!' is used.

    <cm:search is not returning any result when logical operator '!' is used.
    I am using BEA 9.1 content management services API. When I run the following query I am not receiving any results. Also no error or exceptions are seen in the weblogic or cmspi log.
    The query is <cm:search id="docs" query="!(object_name like 'Sport*')" />

    HI cam 
    Thanks for your reply, but i found the problem it was because my server administrator password has changed by network guys... and because of it crawler unable to access the content 
    I wrote my solution here i hope it will help other people 
    http://bvs-sharepoint.blogspot.com/2015/03/sharepoint-search-is-not-returning.html
    RB

  • Search Help: Multiple Return Values in WD4A

    Hello,
    I would like to fill more than one fields on my WD4A screen when executing a search help for one input field.
    So I need to manage somehow to get all the export parameters from the search help and post them to a context node.
    Simple example: The customer sales view consists of sales org and customer number. The search help contains both of them as export parameter. So when the user selects one user I need to get and show the sales organization as well.
    In "normal" SAP Dynpro development its quite easy as shown in thread
    Re: Export search help results to more dynpro fields.
    But how can I execute a search help in WD4A to get all the export parameters?
    Thanks for you help!!
    Kind regards,
    Hendrik

    Hi,
    found the answer by myself.
    The solution is:
    - Create a structure which contains the fields for the search help.
    - then create the search help with all required export parameters.
    - Assign the search help to the corresponding field in the structure.
    - Create the context node with reference to the structure.
    All context node attributes are then filled automatically.

  • To populate another alv grid's field with value selected from search help

    Hi,
    I have two fields in alv grid, first column holds code and the second one holds code's description. Also I have a search help includes these two fields. The search help is attached to the first column. The requirement is, when I select a code from the search help, second column should be populated with selected code's description.
    Any help will be appreciated. Thanks..

    Hi,
    have a look into Report: BCALV_EDIT_03.
    Regards, Dieter

  • Values in Search Help

    When I try to search the possible values in the drop-down for a field in Infotype 001 (Pers Area), I get a message that says "No values exist".  In all the other fields the drop-downs contain the list of possible entries.
    It is only in this one field and only for one person.  Other  users do get the correct drop-down, and this person gets drop-downs on the other fields such as Pers Subarea, Cost Centre, etc.  Nothing changed wrt his authorization or wrt to the list of Pers Areas.  The same applies to other Infotypes and reports - just the field Pers Area returns the message of  "No values exist" at the bottom of the screen
    It is possible that a personal list was created in this search help, but now no values are returned and there is no way to get back to the original list.
    Please assist

    Hi Pieter,
    I think you might have authorization issue, if you dont have authorization for for PA then this can be happen.
    you can use T-code  /NSU53 when you in the particular screen then system will give you what authorization object or level your missing. if you sent the screen shot to basis consultant they can find the issue
    or else you can switch on trance for your user ID using T-code ST01 which will give you a log report saying what all authorization your missing while executing that search transacetion or actvities.
    Ask help from basis consultant.
    Regards,
    Dinesh

Maybe you are looking for