Search Help - No of entries returned

Hello ,
I am working on a search Help exit and noticied that  even we change the Value assigned to Parameter " Maximum no of Hits"  to 9999 system brings backonly 1st 5000 entries. Somehow SAP is controlling that. I tired to change CALLCONTROLL-MAXRECORDS TO 5000 in Debug Mode also but still get's only 5000 entries.
anyone knows about a OSS note or something written somewhere in R/3 Library about this limitation.
Thanks
L

Hi Lakhbir,
Check the Note "Note 172687 - Collective note: search help control".
Restrictions on the length of the hit list
The number of the entries that the search help control
displays on its hit list is limited to a sensible number
of entries for a search help (5000).
Increasing the length of the hit list causes serious
performance and stability problems in the control
used for displaying. If you need a hit list with more
than 5000 entries switch to the usual search help
frontend:
Switching between R/3 dialog and ActiveX support
It is possible to toggle the support of the search
help by the search help control according to your needs.
To do this there are three setting options:
Search help with ActiveX - support
Search help without ActiveX - support
System settings
The system settings are valid for all clients and
are defined by the administrator. To do this, the
administrator profile must contain the
authorization object 'S_ADMI_FCD' and
the ID 'S_ADMI_FCD' with the 'F4MX' FIELD.

Similar Messages

  • Search help for custom entries in selection screen

    Hi Gurus,
    I have a requirement of adding four entries as a search help to a selection screen field P_TABLE.I tried using the function module F4IF_INT_ TABLE_VALUE_REQUEST as below.I want to add four entries Revenue,Cost,RIH and Summarised WBS Actual Data for the selection screen field P_TABLE but the problem is the function module is not getting triggered.
    See the code below.
    REPORT  Z_DEL_OHTABLE.
    DATA: V_RESPONSES(6),
          V_TEXTS LIKE ALDBOUT,
          V_PROG TYPE SY-REPID,
          V_DYNNR TYPE SY-DYNNR.
    DATA: begin of it_openhubs occurs 0,
          v_tabname type c length 30,
          end of it_openhubs.
    DATA:
           it_return type STANDARD TABLE OF DDSHRETVAL,
           wa_return like line of it_return,
          l_i_field_tab TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,
          l_i_dynpfld_mapping TYPE STANDARD TABLE OF dselc INITIAL SIZE 0.
    SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE title.
      parameters:P_TABLE(30) type c.  " USER-COMMAND UPD,
    SELECTION-SCREEN END OF BLOCK B0.
    V_PROG = SY-REPID.
    V_DYNNR = SY-DYNNR.
      it_openhubs-v_tabname = 'Cost and Expense'.
          append it_openhubs.
      it_openhubs-v_tabname = 'Revenue'.
      append it_openhubs.
       it_openhubs-v_tabname = 'Revenue in Hand'.
       append it_openhubs.
        it_openhubs-v_tabname = 'Summarised WBS Actual Data'.
        append it_openhubs.
        CLEAR IT_OPENHUBS.
    INITIALIZATION.
      title = 'OH TABLE DELETION- DELETE CAREFULLY'.
    START-OF-SELECTION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TABLE.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          RETFIELD               = 'v_tabname'
        PVALKEY                = ' '
         DYNPPROG               = V_PROG
         DYNPNR                 = V_DYNNR
         DYNPROFIELD            = 'P_TABLE'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = it_openhubs
        FIELD_TAB              = l_i_field_tab
        RETURN_TAB             = it_return
        DYNPFLD_MAPPING        = l_i_dynpfld_mapping
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3
      IF SY-SUBRC <> 0.
        READ TABLE it_return INTO wa_return INDEX 1.
         IF sy-subrc EQ 0.     
    p_table = wa_return-fieldval.
         endif.
    Please help me out.
    Thanks,
    Srini.
    Edited by: Srinivasan Ganapathy on Jan 28, 2010 6:05 AM

    Hi ,
    Change your code as below:
    1. Fill the internal table it_openhubs inside the event "at selection screen on value request".
    2.  Always follow the below sequence:
        Initialisation
       At selection screen
       Start of selection.
    3. The declaration of variable v_tabname is changed from type c length 30 to type char30.
    I tried the below code , its working fine.
    DATA: V_RESPONSES(6),
          V_TEXTS LIKE ALDBOUT,
          V_PROG TYPE SY-REPID,
          V_DYNNR TYPE SY-DYNNR.
    DATA: begin of it_openhubs occurs 0,
          v_tabname type char30,  " length 30,
          end of it_openhubs.
    DATA:
           it_return type STANDARD TABLE OF DDSHRETVAL,
           wa_return like line of it_return,
          l_i_field_tab TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,
          l_i_dynpfld_mapping TYPE STANDARD TABLE OF dselc INITIAL SIZE 0.
    SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE title.
      parameters:P_TABLE(30) type c.  " USER-COMMAND UPD,
    SELECTION-SCREEN END OF BLOCK B0.
    INITIALIZATION.
      title = 'OH TABLE DELETION- DELETE CAREFULLY'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TABLE.
      V_PROG = SY-REPID.
    V_DYNNR = SY-DYNNR.
    clear  IT_OPENHUBS.
      it_openhubs-v_tabname = 'Cost and Expense'.
          append it_openhubs.
      it_openhubs-v_tabname = 'Revenue'.
      append it_openhubs.
       it_openhubs-v_tabname = 'Revenue in Hand'.
       append it_openhubs.
        it_openhubs-v_tabname = 'Summarised WBS Actual Data'.
        append it_openhubs.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'v_tabname'
          dynpprog        = v_prog
          dynpnr          = v_dynnr
          dynprofield     = 'P_TABLE'
          value_org       = 'S'
        TABLES
          value_tab       = it_openhubs
          return_tab      = it_return
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        READ TABLE it_return INTO wa_return INDEX 1.
        IF sy-subrc EQ 0.
          p_table = wa_return-fieldval.
        ENDIF.
      ENDIF

  • Table - search help - restrict user entries .

    I have created table with
    Field         Data element.
    WERKS     WERKS_D
    MTART     MTART
    MATKL     MATKL
    created_by  SYUNAME
    Changed_by SYUNAME
    1).I am getting search help for WERKS and MATKL
    However I am not getting search help for MTART field.
    Can you tell me how to get search help for MTART also
    2).  In WERKS and MTART fields wild cards (*) should not be permitted.
    How/where to code this.
    3). I need to make created_by and changed_by fields not editable.
    when user create the entry, then user name can appeared in created_by and Changed_by fields.
    And wherever another user changes the same record ...his user id should come under changed_by field.
    how /where can I do this.
    i know there are three questions.  but I also suggest me how to give more points...because there are three questions.
    YOUR HELP IS APPRECIATED.
    Thanks in ADVANCE.

    Total Posts:  585 
    Total Questions:  321 (170 unresolved) 
    Please clean up your old posts....
    3) Search!!
    Rob

  • Only Using Search Help Value When Entry Value

    Hi Experts,
    I'm using search help at my screen field for entry value. But I dont want to entry value with using hand/finger/manuel.
    I want to use only search help at my field.
    Is this possible?
    Best regards.

    Thanks All for answers.
    I mixed your solution and I find new way for my issue.
    I did like this.
    I added Input/Output Field at screen and I did input properties false.
    And I added button near the I/O Field.
    I wrote at PAI - User_Command for button on click.
    May there is different way but so my solution.
    My draft code below.
        WHEN '&BTN_PREPARE'.
       DATA : BEGIN OF ITAB OCCURS 0,
          KTANIM TYPE CHAR9,
          IPTPKOD LIKE ZKZN_004-IPTPKOD,
          KYPTYPEID LIKE ZKZN_004-KYPTYPEID,
          FIILOLS LIKE ZKZN_004-FIILOLS,
    END OF ITAB.
          CLEAR : ITAB.
          REFRESH : ITAB.
          SELECT IPTPKOD KYPTYPEID FIILOLS
          INTO CORRESPONDING FIELDS OF TABLE ITAB
          FROM ZKZN_004
          WHERE SILINDI = ''.
          LOOP AT ITAB.
            CONCATENATE ITAB-IPTPKOD ITAB-KYPTYPEID
            INTO ITAB-KTANIM SEPARATED BY SPACE.
            CONCATENATE ITAB-KTANIM ITAB-FIILOLS
            INTO ITAB-KTANIM.
            MODIFY ITAB.
          ENDLOOP.
          DATA : DFIES LIKE DFIES OCCURS 0 WITH HEADER LINE,
                 DDSHRETVAL LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,
                 DSELC LIKE DSELC OCCURS 0 WITH HEADER LINE.
          CLEAR   : DFIES, DDSHRETVAL, DSELC.
          REFRESH : DFIES, DDSHRETVAL, DSELC.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
              RETFIELD        = 'KTANIM'
              VALUE_ORG       = 'S'
            TABLES
              VALUE_TAB      = ITAB
              FIELD_TAB         = DFIES
              RETURN_TAB      = DDSHRETVAL
              DYNPFLD_MAPPING = DSELC.
          BREAK MELIHM.
          READ TABLE DDSHRETVAL INDEX 1.
          IF SY-SUBRC = 0.
            ZKZN_DATA01_S01-IPRJSCR01 = DDSHRETVAL-FIELDVAL.
          ENDIF.

  • Search Help displaying description but returning ID

    Hi All,
    I have a textbox in web dynpro showing description (from table "Description" ) in a textbox after user selected some value from its search help.
    The issue is, instead of description shown (which is correct), I want to process the value selected using its ID (from table "ID").
    Both tables have child-parent relation.
    Unfortunately, both "ID" and "Description" are not key. The keys for both table are GUID (another field).
    Any suggested solution ?
    TIA,
    Tony

    Hi Tony,
        In your search help try using index.
        You can use the index number to select the value.
        I have some sample code, you can use this as per your requirement.
    METHOD add_data .
      DATA : lt_urls TYPE if_main_view=>elements_drp_text.
      DATA : lr_element      TYPE REF TO if_wd_context_node.
      DATA :     url             LIKE LINE OF lt_urls.
    Supply data for the node at runtime
      REFRESH lt_urls[].
      DO 5 TIMES.
        url-key = sy-index + 1 .
        CONDENSE url-key.
        CONCATENATE `www.` url-key `.com` INTO url-url.
        INSERT url INTO TABLE lt_urls.
      ENDDO.
      lr_element = wd_context->get_child_node( 'DRP_TEXT' ).
      lr_element->bind_table( lt_urls ).
    ENDMETHOD.
    Hope this will help you.
    Cheers,
    Darshna.

  • 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

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

  • Searc help in entry help/Check tab vs Search help in Further Char-Data elem

    Folks,
    I have a screen field which is linked to a structure.When I look at that structure's entry help/check tab in se11 this field is having a collective search help.Now I want this to be replaced by a Z search help.
    If my understanding is right I need access key for this structure so that I can link the z search help in entry help/check tab against this field.
    My query is whic is the right way
    1.Linking the z search help in the entry help/check tab against that field in the structure at SE11 level
        or
        Linking the Z search help in Further Characterisitics tab of the data element used by this field.
    Either way the search help will be reflected at all the places wherever this field is available in the screen.Am I right ?
    or
    2. Linking the search help to a data element is different from linking the seach help to the field in that structure in entry help/check tab ? If they differ how do they differ.Kindly let me know
    Thanks,
    K.Kiran.

    Not true.
    Search help assigned at data element level is independent of that assigned at structure level, and the latter has higher priority. Please read "Input Help Hierarchy in the ABAP Dictionary":
    http://help.sap.com/saphelp_470/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    The structure level assignment can (and generally is) linked to more than one field, not only the one that triggers the search help. That depends on the search help importing and exporting parameters. The data element assignment can only affect the field in which it is used.
    Nevertheless, even the search help defined at structure level could be overriden in the program (e.g. PARAMETERS...MATCHCODE OBJECT, AT SELECTION-SCREEN ON VALUE-REQUEST, PROCESS ON VALUE-REQUEST, etc). If that is not your case, it's the structure assignment that you want to change (have into account that it will affect any other dynpros which use that structure).

  • Search Help on Table Control - Fill more than one field in the table?

    Hey everyone,
    I have built a screen with a Table Control on it... the fields of the table control are linked to an internal table...  The internal table has the line type of a structure I've defined in the data dictionary.  Within that structure in the data dictionary, I've linked some fields to search helps (For example, a MATNR and CUSTOMER search help)...  I've defined in the structure definition which fields from the search help are to be returned to which fields in the structure.
    The problem is, even though I have the search help set to export both the customer number and location when using the search help on the customer field, it still does not fill the location field within the table.  Is this a limitation of using search helps within table controls?
    I'm also finding that by defining the search help through the structure, instead of directly within the screen, the search help round button does not show up on the field, yet I can still press F4 to bring up the search help.  Is there a reason why it's not showing the search help clickable button even though it works fine using F4?
    For doing search helps in Table Controls, is it better to just build the search help, attach it directly to the field in the table, and then after the user picks the single field, use the PAI to run a select and fill the rest of the fields required?
    Thanks,
    Dallas

    Hi Dallas,
    (1)
    What  i understood is that you added a search help by defining it in the internal table type for a field customer number..in the search help you have 2 fields customer number and location...user press the search help ..then you need to fill 2 different fields or 1 field?
    if you need to fill the customer location or location (only one) then you need to set the "import" in the search help for whichever is required.....
    if you need to fill 2 or more different fields..then you can use the technique you have mentioned last , to do a select in PAI and fill the fields....but this you can use if the combination for the fields is unique...eg: u have customer number and location..if customer X can be mapped to location X and location Y..when a select statement is done there are 2 options..so in such cases it is better to leave the option to the user otherwise if there is a clear mapping like customer X can be mapped only to location X then you can use the select..
    (2)
    usually when you define it as a type in the internal table the icon doesn't show up..but you can do alternative like mentioned..go to the table,find the search help for the required field if present or create a new one if required and place the search help mentioned in the screen itself..so as to see the icon...sometimes users are adamant that they need the search help icon to be seen..so it depends on if your user
    (3)
    as in the example of customer number and location mentioned we can provide them different search helps and do the needful processing in PAI to fill the fields
    Table controls may be used for different purposes and requirements....even a checkbox,push button can be placed as a field in table control and used,but yes most of the time requirements are like what is mentioned in your case...
    Regards
    Byju

  • Use of search help exit

    use of search help exit with an example

    Hi,
    A search help describes the standard input help process. In exceptions it could be necessary to deviate in some points from this standard. Such a deviation from the standard can also be implemented with a search help exit.
    The input help process should look as much the same as possible throughout the entire system. Search help exits should therefore only be used for exceptions.
    A search help exit is a function module that has a predefined interface. A search help exit is called at certain times by the help processor. The administrative data of the help processor are passed to the search help exit using the interface.
    You can store your own program logic that manipulates this administrative data in the search help exit. Individual steps of the input help process can be skipped with a search help exit.
    for example
    Search help exit F4UT_OPTIMIZE_COLWIDTH adjusts the column width in the hit list to the contents of the column. It makes sense to use this search help exit when the columns of the hit list have to be made very wide for extreme cases (e.g. for name fields), but normally they will contain much smaller values.
    Each search help exit must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE (is used as pattern for all the search help exits to be created). You can find more information about the interface in the documentation for this function module.
    Calling the Search Help Exit
    If a search help exit is assigned to a search help, the help processor calls it at the following times:
    Before Displaying the Dialog Box for Selecting the Required Search Path.
    It is only called for collective search helps. Using the search help exit, the set of elementary search helps available can for example be restricted depending on the context.
    Before Starting the F4 Process for the Elementary Search Help
    The call is triggered independent of whether the dialog window for entering the search conditions appears or whether the selection is executed immediately (for example, because in the Hot key of the elementary search help Immediate value display is set).
    Before Displaying the Dialog Box for Entering Search Conditions.
    You can either influence the dialog for entering search conditions or skip it altogether here. You can also influence how the selection screen looks. The call is triggered only if there is no direct selection (that is, if in the Hot key of the elementary search help Immediate value display is not set).
    Before Selecting Data.
    The data selection can be partly or completely copied from the search help exit. This can become necessary if the data selection cannot be implemented with a SELECT statement for a table or a view.
    Before Displaying the Hit List.
    You can influence the display of the hit list in this step with the search help exit. You can reduce the number of values displayed here. For example, you can display only values for which the person calling the input help has authorization. You can also copy the complete hit list from the search help exit.
    Before Returning the Values Selected by the User to the Input Template.
    It could be advisable to intervene at this time if control of the further transaction flow should depend on the value selected. A typical example is setting set/get parameters.

  • Search Help User Exit (if "one" entry in hit list, skip hit list and export)

    Hi everyone,
    I hope you can help me. I spent many hours on this one but I just could not find a solution (by myself and by searching google and searching the SCN).
    Problem like thread subject.
    I have the requirement to create a search help using search help exit. Done so far. My search help works fine. There´s a Sel Opt and I get the hit list with several entries. "But" I have one problem. If there is only one entry I have to skip the hit list and just export the value straight to the caller.
    I just don´t get it to work. I used the function module F4UT_PARAMETER_RESULTS_PUT but there was no value in shlp-interface-value. Record Tab was written, but value is not exported.
    Maybe you got some hints for me?`
    Best regards
    Dominik

    Hi Raymond,
    I passed as followed:
    ***CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
    ***  EXPORTING
    ***       PARAMETER         = 'DOC_ID'
    ***       VALUE             = ls_disp_data-doc_id
    ***       fieldname         = 'DOC_ID'
    ***  TABLES
    ***       SHLP_TAB          = SHLP_TAB
    ***       RECORD_TAB        = RECORD_TAB
    ***        SOURCE_TAB       = lt_disp_data
    ***  CHANGING
    ***       SHLP              = SHLP
    ***       CALLCONTROL       = CALLCONTROL
    ***  EXCEPTIONS
    ***       PARAMETER_UNKNOWN = 1
    ***       OTHERS            = 2.
    LT_DISP_DATA is filled with one entry only. DOC_ID is the name of the field I want the value to be set.
    Update: It´s fixed. I reset the whole thing. I did set callcontrol-step = 'RETURN' after function call, "but" at the end of the coding there was a leftover from previous tries (an empty if callcontrol-step = 'RETURN' -shell). By setting this condition explicitly the "standard flow" was interrupted.
    So, in short: I had to delete the empty if-condition for callcontrol-step = RETURN and then it worked.
    Thank you all for your feedback, hints and suggestions!
    Best regards,
    Dominik

  • 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

  • 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

  • Help view to get two table entries in search help

    Hi,
    I have created the help view for join two tables and that help view was  called in the selection method for creating search help of the custom table field. since it has show inthe selection screen , it is fetching only one table entries. and the shown entries are displaying but not passing.
    Please provide the steps to get the two table entries and the displayed entries should pass.
    Thanks in Advance,
    siva

    Hi sivanag,
    1. Try your view with SE16/SE16N to see if it really finds what you expect
    2. Use the same data elements in help view as on selection screen
    3. read documentation and F1 help on all fields you see in the search help definition - especially only field marked as EXPORT parameter will be put back on screen.
    But, sincerely, I don't know what your selection-screen looks like.
    Regards,
    Clemens

  • Applying filters to F4 Search help - how so with many entries?

    Hello all,
    I have a problem that I have to filter a search help for employees. We use a DB view that unions infotypes 1, 2 and 105. Now I need to restrict potential employees to a given company code BUKRS.
    I now invoke search help in REQUEST ON-VALUE REQUEST within a DynPro screen and call function module F4IF_INT_TABLE_VALUE_REQUEST which I am passing the restricted internal table.
    Fine, that works - however, in the DynPro (which is actually used as an EWT within our portal), the entire internal table is sent to the frontent instead of, say, 250 or so.
    The search help dialog offers the possibility to manually restrict for first and last name - is it perhaps possible, that this search only applies on the server (ITAB) and just returns the results according to the user input?
    Otherwise, sending all potential employees to the frontend is consuming too much resources (time and traffic).
    In function group SDHI there is an "example" module F4IF_SHLP_EXIT_EXAMPLE which tries to explain how to use callbacks but from my point of view I understand very few (it misses the big picture).
    Do you know an alternative, e.g. using the other module F4IF_FIELD_VALUE_REQUEST and to apply a filter to BUKRS using a callback mechanism? There are module parameters indicating that possibility (passing some report?). Perhaps one of you has some sample code, because I am much more trained in BAPI and web stuff only...
    Any hints? Thank you in Advance!
    Regards,
    Timo

    Hi,
    if I can understand you, you tell me that you search information in the view and all found records (let´s say 300) are saved in the internal table, which in time you pass to function F4IF_INT_TABLE_VALUE_REQUEST for display. Now, you think it is too much to display 300 records because of time and traffic.
    Try this:
    REPORT ztest NO STANDARD PAGE HEADING.
    TABLES mara.
    DATA: mytable TYPE TABLE OF ddshretval WITH HEADER LINE.
    DATA l_repid TYPE syrepid.
    PARAMETERS p_mtart LIKE mara-mtart.
    AT SELECTION-SCREEN ON VALUE-REQUEST
                 FOR p_mtart.
      l_repid = sy-repid.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'MARA'
          fieldname         = 'MTART'
          dynpprog          = l_repid
          callback_program  = l_repid
          callback_form     = 'F4CALLBACK'
        TABLES
          return_tab        = mytable
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
    START-OF-SELECTION.
    *&      Form  F4_form
          Exclude all material types that start with F & H
    FORM f4callback
         TABLES   record_tab STRUCTURE seahlpres
         CHANGING shlp TYPE shlp_descr
                  callcontrol LIKE ddshf4ctrl.
      DATA: aux_struc TYPE ddshselopt.
      MOVE: 'H_T134' to aux_struc-shlpname,
            'MTART'  TO aux_struc-shlpfield,
            'E'      TO aux_struc-sign,
            'CP'     TO aux_struc-option,
            'F*'     TO aux_struc-low.
      append aux_struc to SHLP-SELOPT.
      MOVE: 'H_T134' to aux_struc-shlpname,
            'MTART'  TO aux_struc-shlpfield,
            'E'      TO aux_struc-sign,
            'CP'     TO aux_struc-option,
            'H*'     TO aux_struc-low.
      append aux_struc to SHLP-SELOPT.
    ENDFORM.                                                    "F4_form

Maybe you are looking for

  • Extraction from R/3

    hi to all, usually which data sources,reports,info cubes we use as a part of business content in SD & MM.

  • Bank Account

    I want to do a program that allow me to register my income and my expenditures. The problem is: everytime the program is started I want to see the variations that step by step I will put. For example: the first time the program is started my count is

  • SSIS + split 1 row in multiple rows based on multiple columns

    Hi all, I have a flat file  Shop ID        Check 1        Check 2            Check 3 500 OK OK NOK I want to transform this to staging as 3 rows Shop ID       Check number  Result 500 1 OK 500 2 OK 500 3 NOK Anyone can tell me how to tackle this?

  • Netmgr error, when add a new directroy service naming to a MS AD LDAP

    oracle.net.common.dataStore.DataStoreException: error writing ServiceAlias to: LDAPDataStore [svr: msad01:389:636, type: AD`, ctxt: cn=OracleC ontext,DC=gaohome,DC=net, home: /ora/u01/oracle/product/10.2.0/db_1] original exception message: TNS-04412:

  • Advance Security manager 'Group App/Db access' issue

    It appears that ASM has some issues loading calc script lists - it appears to ignore the Parameter 'Access All Calculation=false' (followed by calc script list) and sets up the group with access to all calculations. Has anyone found a workaround for