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

Similar Messages

  • 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

  • Attaching Search Help to a field

    HI All,
    Can anybody please tell me how to attach search help to a particular field??
    Thanks.

    hi
    good
    Attaching to a Table Field or Structure Field
    The search help can be used by all screen fields that refer to the table field or structure field. The search help parameters and the fields of the table or structure must be assigned to one other in this type of attachment.
    If an export parameter of the search help is assigned to a table field, the contents of this parameter are returned to the corresponding screen field as soon as the user has selected a line of the hit list in the input help. If an import parameter of the search help is assigned to a table field, the field contents are used for the value selection (see Value Transport for the Input Help).
    Normally some parameters of the search help cannot be assigned to a table field. The assignment is thus left open for some search help parameters. A constant or any other field that is searched for in the module pool when the input help is called can also be assigned to a search help parameter.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/63/1b70bfc32111d1950600a0c929b3c3/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/63/1b70c2c32111d1950600a0c929b3c3/content.htm
    thanks
    mrutyun^

  • Further action after leaving search help without event "onEnter"

    Hi,
    I created an iView with an input field to select an employee with search help PREM. Everything works well, so I can search by several match codes.
    And here's my problem: I need the name of the employee in an output field of my iView whenever I select a result of the search help without pressing the enter key (just to make the user sure to use the right employee).
    Is there the possibility to call a customer function and afterwards to bind the element? Ok, I think I need an interaction – but how can I do this without the event onEnter? I just want to select an employee with the search help and -when returning back- displaying his name.
    We substituted an html-application with this iView. The html-appl used a piece of java script in which we used the "on blur"-function, so when we left the input field we called a function to select the employee's name. This way was fine...
    Ok folks, who has an idea/solution?!
    Steffen

    hi steff........
               what you can do is... instead of a standard search help, you can use ovs... so in the coding part you can fill other details too with respect to the selected value... or
            try filling the output field  in the wddomodify method.
    ---regards,
       alex b justin

  • Search help for screen fields in module pool

    Hi All,
    I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
    These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
    So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
    I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
    I require it this way as user wants to select based on * selection.Ex: as then every this related to that should be popped up.
    Pls help ASAP
    Thanks,

    This is how i got.
    data:l_shlp type SHLP_DESCR,
    l_rc type sy-subrc,
    w_DDSHRETVAL type DDSHRETVAL ,
    ls_shintf LIKE LINE OF l_shlp-interface,
    t_DDSHRETVAL type TABLE OF DDSHRETVAL.
    DATA: dyname LIKE d020s-prog,
    dynumb LIKE d020s-dnum.
    DATA: BEGIN OF dynpfields OCCURS 3.
    INCLUDE STRUCTURE dynpread.
    DATA: END OF dynpfields.
    CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
    EXPORTING
    SHLPNAME = 'YTESTDMSSB'
    SHLPTYPE = 'SH'
    IMPORTING
    SHLP = l_shlp .
    ls_shintf-valfield = 'X'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SNNTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBRTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBSTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'ENPTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'PLANT_CODE'.
    CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
    EXPORTING
    SHLP = l_shlp
    DISPONLY = ' '
    MAXRECORDS = 500
    MULTISEL = 'X'
    CUCOL = SY-CUCOL
    CUROW = SY-CUROW
    IMPORTING
    RC = l_rc
    TABLES
    RETURN_VALUES = t_DDSHRETVAL
    IF l_rc = 0.
    LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
    CASE w_DDSHRETVAL-fieldname.
    WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SNNTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBRTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBSTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_ENPTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_WERKS'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    ENDCASE.
    ENDLOOP.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = dyname
    dynumb = dynumb
    TABLES
    dynpfields = dynpfields.
    ENDIF.

  • Saving Search Help - Problem assigning package

    Hi,
    I have developed a ALV report, Where I have used only one 'Z' table. I want to create search help for a particular input field  in the selection screen.
    I tried to create search help in se11.
    After giving all the required information, I am not able to save it under any package at all.
    It gives an information saying, Search help cannot be assigned under this package.
    I have tried it under many packages and also tried to save it as a local object, But no go.
    How can I save and activate this ?
    Please help !
    Thanks in advance
    Edited by: Matt on Sep 5, 2011 6:40 AM

    Hi
    I think you created search help name not starting with Y or Z, but with SAP reserved names. Because of this you are not able to save by assigning a package and TR.
    Please change the same to starting with Y or Z.
    Custom Search Help
    Shiva

  • 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

  • Search help in Modulepool

    Hi All,
    I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
    These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
    So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
    I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
    I require it this way as user wants to select based on * selection.Ex: * as * then all fields related to that should be popped up.
    <removed_by_moderator>
    Thanks.
    Edited by: Julius Bussche on Sep 18, 2008 12:30 PM

    Hi Piyush,
    Thanks for those function modules those were very useful for me.
    This is how i got.
    data:l_shlp type SHLP_DESCR,
         l_rc type sy-subrc,
         w_DDSHRETVAL type DDSHRETVAL ,
         ls_shintf   LIKE LINE OF l_shlp-interface,
         t_DDSHRETVAL type TABLE OF DDSHRETVAL.
    DATA: dyname LIKE d020s-prog,
            dynumb LIKE d020s-dnum.
      DATA: BEGIN OF dynpfields OCCURS 3.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF dynpfields.
    CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
      EXPORTING
        SHLPNAME       = 'YTESTDMSSB'
       SHLPTYPE       = 'SH'
    IMPORTING
       SHLP           = l_shlp .
    ls_shintf-valfield = 'X'.
      MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
                                WHERE shlpfield = 'SNNTX'.
      MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
                                WHERE shlpfield = 'SBRTX'.
      MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
                                WHERE shlpfield = 'SBSTX'.
      MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
                                WHERE shlpfield = 'ENPTX'.
      MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
                                WHERE shlpfield = 'PLANT_CODE'.
    CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
      EXPORTING
        SHLP                = l_shlp
      DISPONLY            = ' '
      MAXRECORDS          = 500
      MULTISEL            = 'X'
       CUCOL               = SY-CUCOL
       CUROW               = SY-CUROW
    IMPORTING
       RC                  =  l_rc
      TABLES
        RETURN_VALUES       = t_DDSHRETVAL
    IF l_rc = 0.
      LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
        CASE w_DDSHRETVAL-fieldname.
          WHEN 'SNNTX'.     "W_SNNTX = w_DDSHRETVAL-fieldval.
             dyname = sy-repid.
             dynumb = sy-dynnr.
             dynpfields-fieldname = 'W_SNNTX'.
             dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
            APPEND dynpfields.
          WHEN 'SBRTX'.     "W_SBRTX = w_DDSHRETVAL-fieldval.
            dyname = sy-repid.
             dynumb = sy-dynnr.
             dynpfields-fieldname = 'W_SBRTX'.
             dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
            APPEND dynpfields.
          WHEN 'SBSTX'.     "W_SBSTX = w_DDSHRETVAL-fieldval.
            dyname = sy-repid.
             dynumb = sy-dynnr.
             dynpfields-fieldname = 'W_SBSTX'.
             dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
            APPEND dynpfields.
          WHEN 'ENPTX'.     "W_ENPTX = w_DDSHRETVAL-fieldval.
            dyname = sy-repid.
             dynumb = sy-dynnr.
             dynpfields-fieldname = 'W_ENPTX'.
             dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
            APPEND dynpfields.
         WHEN 'PLANT_CODE'.     "W_ENPTX = w_DDSHRETVAL-fieldval.
            dyname = sy-repid.
             dynumb = sy-dynnr.
             dynpfields-fieldname = 'W_WERKS'.
             dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
            APPEND dynpfields.
        ENDCASE.
      ENDLOOP.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
             EXPORTING
                  dyname     = dyname
                  dynumb     = dynumb
             TABLES
                  dynpfields = dynpfields.
    ENDIF.

  • Search help results of cost center

    Hi everybody
    Cost center is normally assigned to SC item based on the attribute set in PPOMA_BBP (attribute CNT). Now, when you're in the item details screen and want to change that default cost center you can search for other ones using the "glasses icon". This starts some kind of a F4 search help screen and returns a list of all available cost centers existing in the backend system.
    Our SRM users are NOT created in the backend system, therefore we're not able to control cost center authorizations via backend user authorizations.
    So the problem we have is, that in the result screen we get by far too much cost centers from which the enduser can make his choice. We'd like to reduce this result list to only the cost centers assigned via CNT attribute on org. unit level in PPOMA_BBP.
    I already looked at BAdIs BBP_F4_READ_ON_ENTRY and BBP_F4_READ_ON_EXIT (method GET_COSTCENT) and to verify if they could do what I wanted simply tried to delete all entries from table ET_COSTCENT_LIST and ET_COSTCENT_FAVOURITES... no changes, the result list still contains a complete overview of all our backend cost centers.
    To all SRM gurus out there: how is it possible to restrict the result list of cost center search help?
    Thanks again anyone for some help.
    Kind regards,
    Renaud

    Hi Case,
      We can get this functionality with out changing any standard program.
      Herewith I am sending details.
    1.     Implement the badi using definition BBP_DRIVER_DETERMINE and write below  mentioned code in method DETERMINE_DRIVER.
            IF functionname = 'B470_SHLP_CALL' AND sy-tcode NE 'PPOMA_BBP'.
    functionname = 'ZB470_SHLP_CALL'.
            ENDIF.
    2.     Copy the standard FM B470_SHLP_CALL to ZB470_SHLP_CALL then make        
           the changes in ZB470_SHLP_CALL.
           Here you have to make two changes.
    a.     Clear the destination name (LV_DESTINATION) for calling search help
                            from SRM
    b.     Give your own search help name (ZCOST_CENTER we need to create this search help in SRM )
           Now it will call the search help ZCOST_CENTER from SRM only
                   Sample code
              CASE shlp_field.
            WHEN gc_g_l_acct.
          lv_shlpname = 'SAKO'.
           lv_shlpparam = 'SAKNR'.
            WHEN gc_cost_ctr.
          lv_shlpname = 'ZCOST_CENTER'.
          lv_shlpparam = 'KOSTL'.
          CLEAR lv_destination.
    3.      Create you won search help (ZCOST_CENTER) in SRM and write code in search help exit for getting the cost centers from user attributes. For reading the cost centers from user attributed you can use the FM BBP_READ_ATTRIBUTES (pass the CNT as attribute ID)
    Regards,
    Padmaraju
    If it useful to you,please reward points.

  • Default in search help

    Hallo Developer,
    I have a problem with a search help even built.
    It should be present a default value in the search help, for who however can be changed.
    A customer should be valid.
    The customer can have different Stati.
    Some Stati mean, which is valid the customer, some stati mean, which are not valid the customer.
    The field ' default ' in the search help cannot be used therefore.
    Questions:
    1. Do I have to write a search help exit?
    2. Do I have to copy the data selectio in the search help exit and indicate the default values here?
    Can these be changed then in the surface?
    3. Can I indicate default values in the range ' PRESEL '?
    I hope someone have a solution for my problem.

    I have found an answer myself.
    In a Serchhelp- Exit :
    data: ls_SHLP type SHLP_DESCR.
    data: lt_SELOPT type DDSHSELOPS.
    data: ls_SELOPT like line of lt_SELOPT.
    STEP PRESEL  (Enter selection conditions)
      IF callcontrol-step = 'PRESEL'.
      PERFORM PRESEL ..........
    ls_SHLP = SHLP.
    ls_selopt-SHLPNAME = '/DKVES/KP_BP_CIC_ALL'.
    ls_selopt-SHLPFIELD = 'ATTRIB_2'.
    ls_selopt-SIGN = 'I'.
    ls_selopt-option = 'EQ'.
    ls_selopt-low = 'BK'.
    ls_selopt-high = 'NK'.
    append ls_selopt to shlp-selopt.
    ls_selopt-low = 'RE'.
    ls_selopt-high = ''.
    append ls_selopt to shlp-selopt.

  • Help reg Search Helps

    Hi All,
    On selection screen I have two fields Plant & storage location.
    If I enter Plant =0100 and click on storage location (F4) values,only Sloc pertaining to that plant should come and not all Sloc's.
    Thanks !!
    Manjunath

    Hi,
    Check the below link
    Re: Search help with 3 return values
    in place of the variable (CARRID CONNID FLDATE ) take WERKS and LGORT and fetch the data from MARD table
    alternatively you can use DYNP_VALUES_READ in F4 module of STORAGE LOCATION and capture the value entered in the first field and can continue.
    Hope this serve your Issue.
    Cheerz
    Ram

  • Return multiple values from a search help

    Dear All,
    I have a table control on screen with fields:
    doc.no
    doc.type
    doc.ver
    doc.part
    I've coded a search help for doc. no. which returns a single value i.e. doc. no from the search help.
    But my reqmt. is that when the user selects a particular doc.no from search help, it should also return doc. type/ver/part
    and the corresponding table control field should be populated.
    I mean i require multiple values to be returned and populated in my screen.
    Thanks in anticipation

    Hi ,
    Please check this thread where i had done some coding and the OP himself has found the solution
    automatic population of search help value to another field in module pool ... if its a table control you have get the selected line by  using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE.

  • 'Help cannot search for that phrase'

    I am getting the message 'Help cannot search for that phrase' while searching for 'xml' in a chm (generated using RH9). The old CHM (generated using RH8) shows the results for the keyword xml. Is this a known issue? Any workaround to resolve this issue?

    I just tried in a Rh10 project and got the same result in a CHM but not in WebHelp, there the search worked so I suspect it is something in the Microsoft Help Compiler.
    There is a solution if you can upgrade to Rh10. That allows you to generate WebHelp and then convert it to a skinned CHM. I just tried that and there the search worked in the CHM.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

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

  • Multiple return values in Customized elementary search help

    Hello,
      I have a requirement when i select the value from F4 . It should populate the more than one return values in ALV grid in different rows .  
       Any FM or help search exit  is available to do this .
    Regards,
    kevin

    Hi Kevin,
    About your first question, for filling several fields of an ALV from a single F4 search help, I think that you should register F4 event to call the search help yourself (F4IF_INT_TABLE_VALUE_REQUEST for instance), and fill the ALV fields inside your F4 handler method. If you used REUSE_ALV_GRID_DISPLAY, then I am not sure how you can handle F4, but you can do it using CL_GUI_ALV_GRID or SALV classes. See BCALV_TEST_GRID_F4_HELP.
    About the second question, for filling automatically another field in the same row in the ALV grid, it should work automatically, as for normal dynpros, i.e. the search help must have these 2 fields defined as exporting, and these 2 fields of the ALV field catalog must refer to the same DDic structure, the search help must be assigned there to the field, and fill in the 2 exporting parameters too.
    Sandra

Maybe you are looking for

  • Is there a way to make Wake on Demand work?

    I have checked the AKB and I have a Mac Pro that is all set to wake on demand, the only issues is that I have an older Airport Express (b/g not n). Does anyone know of a work around to get this Airport to work with Wake on Demand, or am I out of luck

  • Insert 2rows in an excisting excel file

    Hi everybody, Sorry if a similar question was asked but I haven't found it. My problem is that we got a file where there are some information . And at all end of the month we will run a java application that will give us 2times 10 values that we will

  • Tools Manage Folders to share folders pitfall to watch out for

    Just thought I would share something I learned today. In Discoverer Administration, you have a Manage Folders function, which you access by doing Tools > Manage Folders. This lets you assign a folder to multiple business areas. An obvious advantage o

  • Chinese problem in closed captioning

    Hi, I am running a problem using Premiere Pro CC that the Chinese language doesn't display properly in closed captions feature. Anyone having this issue? Is there a way to solve this problem?

  • Deployment Descriptor is malformed

              WLS 6.1, Win 2K Prof.           I have deployed my JSP & EJBs in an EAR file. When I start the JSP I get the following           errors in the WLS console, though it doesn't appear, at present to have an adverse           effect. A pointer