Add a field in search help

Hi
I'm working in EBP system. I want to add a field in the cost center matchcode. This matchcode is situated in R3. This search help is KOSTN. The field a want to add is the information "blocked" to know if the cost center is blocked or not. This field doesn't belong to any table, it needs a block of instructions. I don't know how to do that, somebody told me i have to use a search help exit to do that. I don't know how it works... Does anybody can help me?
Thank you very much.

Hi,
I assume you have two issues here. How to select/filter with a static value of block_flag; and, how to let user enter (checkbox) a value for this filter.
For the first, you can code your logic in the
<i>if callcontrol-step = 'DISP'</i> block.
Here, you need to read all records from record_tab for the key values (kostl, kokrs, bukrs...). For this, you will need to use another itab like this:
<i>data: begin of  results_tab occurs 1,
          kostl like ...,
          kokrs like ...,
        end of results_tab.</i>
Function F4UT_PARAMETER_VALUE_GET allows you to read records from record_tab (which has a text string row) into results_tab. Once you have called this, you can apply your select to check which records of this result set do not match your criteria. Ones that do not match, can be deleted from the records_tab (with index value as rows in results_tab match with corresponding rows in records_tab). <i> I am not sure whether you can read multiple fields from the record_tab at the same time. If not,you will need to call this function multiple times to read each key field (into separate internal tables) from the result set record_tab.
At the end of this, you should have a filtered records_tab showing a subset of the current F4 list.
For allowing user an option of additional field to choose, you will probably need to modify the search-help by adding additional fields. I am not too sure about it.
A template code can be seen in F4IF_SHLP_EXIT_EXAMPLE function.
cheers,

Similar Messages

  • Adding new field in search help result view

    Dear Experts,
    I want to include one more field in search help result. The field shoud give description.
    How can i do this in UI result view?
    If I try to add attribute in result view, the result view is of type table, and it does not allow us to add value node. It will allow us to add model attribute. If I add attribute in search help resut table view then will i be able to see it in table form.
    Thanks and regards
    Pankaj Kumar

    Hi Pankaj,
    Its not that difficult.
    There are two ways
    1. You can enhance your Result BOL object through EEWB and append your z-field to std. BOL result object. This then appears automatically for your result context node and then you can pull it to the view in config tool.
    2. Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldname. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField.
    You can then copy code from available setter-getter methods for this attribute. You must handle setter getter by urself in this case. In may std. nodes, this is done for description field. I have personally done this for product descripton field.
    if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.
    Hope this helps you.
    Thanks & Regards.
    You can check PRODUCTDESCRIPTION  attribute of BTAdminI node of BT115QIT_SLSQ/Items  view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.
    Edited by: suchita P on Sep 20, 2008 2:22 AM

  • How to add check tables or search helps to search help parameters?

    Hello Forum!
    I have made a Z-Search help, and I have a problem with some of my parameters.
    The field (MARC)-EKGRP (Purchasing Group) has a check Table (T024) and the matching search help (H_T024).
    I seem to find no possibility to add this check Table search help to my EKGRP parameter in my Z-Searc Help.
    (Therefore, the End-User has to type it in Manually, there is no F4 funktionality...)
    Is there a way to do this?
    Thanx for replying!
    Kind Regards,
    Pieter
    PS: I´m experiencing the same problems with other fields as well: to parameter (MARA-)MFRNR I would like to add the seach Help 'KRED', for it appears on my Z-Search Help. And so on....

    Thanks, Archna Raja!
    This is certainly the right direction to look for a solution.
    However, i can not get it to work.
    In debugger Mode I have populated the SHLP-FIELDDESCR field 4AVAILABL  with X.
    Result: The button for the search help appears. But when I click on it, nothing happens.
    I than also tried this in combination with populating the fields:
    REFTABLE
    CHECKTABLE
    No search Help window opened..
    I did not find a fileld  where I can indicate the Search help in the SHLP Structure.
    Am I missing out on something?
    Kind Regards,
    Pieter
    PS: I´m trying to get a search help for The filed EKGRP.
          Check Table:  T024          Serach Help: H_T024
    Edited by: Pieter De Fré on Nov 30, 2010 11:38 AM

  • Extra fields in search help window in Record working time EHP5

    Hi Experts,
    Can you please let me know how to add additional fields/select options in search help window for Record Working Time ?
    My system is EHP5 NW 7.02
    I have added the custom search help for the respective filed in table " TCATS_SHLP_ITS".
    I can see this table is having entry for only 4 selection options and 6 value fields for search help display.
    But in my custom search help programme is having 8 select options(for advance search) and 10 display fields on the search window. It's working from CAT2 transaction but when I am running through webdynpro timesheet, I can only get 4 select options and 6 value fields.
    Please let me know how to make the other fields available.
    Thanks in advance.
    Sonia

    Hi Siddharth,
    Thanks for your response. In that modify possible entries screen (Details view) I can see the search help is only having 4 select options and 6 display fields.
    So as per my understanding max 6 display fields/4 select options can only be displayed on search window.
    My requirement is to display more fields on search help OVS window.
    Can you please suggest.
    Thanks ,
    Sonia

  • How to replace a field's search help of DDIC in FPM feeder class?

    Hi All,
    I want to replace a field's search help in DDIC structure, for an example, in structure HCMT_BSP_PA_XX_R0009, the field BANKL(Bank Keys) has a search help named 'H_BANKL', I want to replace this search help with other one such as 'H_BANKEY' in the FPM feeder class CL_HRESS_PER_DETAIL, I redefined such method:
    method if_fpm_guibb_form~get_definition.
    field-symbols: <fs_field_description> like line of et_field_description.
    call method super->if_fpm_guibb_form~get_definition
    importing
    es_message = es_message
    eo_field_catalog = eo_field_catalog
    et_field_description = et_field_description
    et_action_definition = et_action_definition
    et_special_groups = et_special_groups
    ev_additional_error_info = ev_additional_error_info.
    read table et_field_description assigning <fs_field_description> with key name = 'BANKL'.
    set search help name of field 'bank key'
    if <fs_field_description> is assigned.
    <fs_field_description>-ddic_shlp_name = 'H_BANKEY'
    endif.
    endmethod.
    I test it and found the search help window was replaced indeed, but all the value of import/export parameters in the new search help was lost, it means, the value of import paramer BANKS(Bank country) and the export parameter BANKA(bank name) were lost. Only the value of BANKL itself can be returned by the new search help window. Can you give me some suggestions about how to maintain the link( value exchange) between structure HCMT_BSP_PA_XX_R0009 and dynamically defined search help 'H_BANKEY' in FPM feeder class?
    I tried to use sap memory ID but it doesn't works well.

    This question was answered at [Webdynpro Forum|how to replace a field's search help of DDIC in FPM feeder class?;:
    That is because for the import and export of DDIC Search help values to work in WDA, not in FPM layer.Feeder Class can do nothing about it.

  • How To add a field in search criteria in SAP standard report

    Hi AlL,
    I have a requirement where i need to add a field in search criteria of selection screen and display in output of Standard SAP report.
    I have read in threads that to obtain Access key and modify the code in std report , if i am not able to get an Access key and not allowed to copy the report as Z.
    Could you please let me know how to solve this kind of requirement.
    thanks
    Chary

    Well - it's a report so there won't be a user exit. I think your options are what the others (and you) have suggested - change the standard program or make a copy.
    There are different opinions on the forum about which to do.
    Rob
    PS - you're not bothering anyone. We like problems.
    Message was edited by: Rob Burbank

  • 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

  • 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

  • How to add Value Table or Search Help for a field which is on Standard SAP?

    Hi All,
        I have a field HERST (tcode IE01) which doesnt have any value table or search Help. I have the same field in a Z table which I should display for the standard screen field in tcode IE01. So Pls suggest me on this.
        Thanks in advance.
    Regards
    Jaker.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • Need to add a record in search help

    Hi all,
    I have field in my selection screen with search help.
    serach help contains 4 records  i need to add 5 th record in that search help how can i add that one.
    Thanks,

    check it out may be helpful for u
    Re: how to add a value/entry in a exisiting search help
    check the below link also
    http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/content.htm
    Regards,
    Naveen

  • Need  to add a field in search display

    Hi All,
    I have been trying to add a long text field in search window. i.e., If we press F4 for profit center we do get a  popup with certain option and when we press enter again we do get the list of profit center with certain fields like profit center , short text , language, controlling area ..etc., for which i want to add one more field called LONG TEXT, could any one help me in this concern.
    regards
    Gupta

    Well - it's a report so there won't be a user exit. I think your options are what the others (and you) have suggested - change the standard program or make a copy.
    There are different opinions on the forum about which to do.
    Rob
    PS - you're not bothering anyone. We like problems.
    Message was edited by: Rob Burbank

  • Add documentation to (collective) search help

    If i create a collective search help via se11 and execute it, the blue 'I'-button (information) appears.  When I press it, nothing happens.
    (the same thing occurs with the sflight searchhelp)
    I would like to add a documentation to a collective search help that would appear when this button is pressed.  is this possible and how should I do it?

    Hi Dries,
    Go through this info.
    Creating Collective Search Helps
    Procedure
    In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.
    A dialog box appears in which you must select the type of search help.
    Select Collective search help and choose .
    The maintenance screen for collective search helps is displayed.
    Enter an explanatory text in the field Short text.
    You can for example find the search help at a later time using this short text.
    In the Definition tab page enter the parameters of the collective search help.
    Select the Imp flag if it is an import parameter. Select the Exp flag if it is an export parameter.
    Define the types for the parameters of a collective search help by assigning a data element. Enter the name of the data element that describes the contents of the search help parameter in the Data element field.
    You can assign the parameter a default value in the Default value field.
    In exceptions it could be necessary to change the standard process defined by the search help. You can implement the deviation from the standard using a search help exit.
    In this case enter the name of the search help exit in the corresponding field.
    On the Included search helps tab page, define the search helps that you want to include in the collective search help.
    You can include elementary search helps and collective search helps.
    Use the Hide flag to control whether an included search help should appear in the dialog box for selecting the elementary search help. If the flag is set, the search help is not offered.
    It makes sense to hide search help inclusions if one or more search paths in the standard system should not be used in a concrete R/3 System. Similarly, search help inclusions can also be already hidden in the standard system because they only can be used meaningfully in a few R/3 Systems. You have to cancel the flag in this case.
    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.
    Save your entries.
    A dialog box appears in which you have to assign a development class to the search help.
    Choose .
    Result
    The collective search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred when the collective search help was activated, the activation log is automatically displayed.
    Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.
    Other Options
    You can test the flow of an input help defined by the collective search help with . A dialog box appears in which you can simulate the behavior of the search help under different conditions. You can obtain information about the options provided in this window with .
    Rewards some points .
    Rgds,
    P.Naganjana Reddy

  • Modify va01 fields in search help exit.

    I have implemented the search help exit for Ship to field , based upon the values of ship to field , I need to modify the Sold to field during Sales Order creation.
    Can this be achieved ? If yes how ?
    Ajay

    Hi Ajay ,
    1.     go to ship to party data element KUNAG as below:
    And assign shearch(NEW) help name: Z_KUNNR
                                            Parameters : CUS
    2.     then create search helps:-
    2.1.     Search help name : Z_KUNNR(any name as per your standerd)
    2.2.     Short Text : Search Help for Kunnr.
    2.3.     Search Help Exit : Z_sold_to_party_F4HELP_EXIT(Fuction Module)
    2.4.     Other Attributes of Search help are as follows:
    Search help parameters:
         CUS  TYPE  kunnr , DESCRIPTION  TYPE     BEZEI40 .
    SPOS (Selection Position)     NA
    LPOS (Listing Position)     CUS  --  1,       
                                                    DESCRIPTION -- 2.
    Export Parameter     CUS .
    Import Parameter     NA
    Dialog Type     Display Values Immediately.
    Selection Method     NA
    2.5.     2. Create fuction module: Z_sold_to_party_F4HELP_EXIT Below are the details of the Function Module Attributes, Import , Export and Changing Parameters, Tables and global data (Goto -> Global Data )
    Proceesing Type:      Normal Function Module,                
    Start Immediate.
    Edit Lock     NA
    Global Data     TABLES:  specify the table from where you are going to get the Sold to party values
    Import Parameters      NA
    Export Parameters      NA
    Changing Parameters        SHLP          TYPE     SHLP_DESCR_T,
                                                CALLCONTROL  LIKE     DDSHF4CTRL,
    Pass value (Check Box ) Checked for both Parameters.
    Tables      SHLP_TAB       TYPE SHLP_DESCR_TAB_T,
    RECORD_TAB       LIKE     SEAHLPRES,
    2.6.     
    2.7.     Source code Logic Implementation :-
                   Select the sold to party value from table into struct_record_tab-string .
                   Aftere that goto user exit FORM USEREXIT_MOVE_FIELD_TO_VBAK or
    FORM                                                             USEREXIT_SAVE_DOCUMENT_PREPARE.
                  And add logic to assign sold to party value to the value to ship to party
    Thanks and Regards,
    Pavan

  • The field SAKNR search help doesn't work?

    Dear Expert,
    My dialog program used a table field data element call SAKNR ,
    and i set the search help in the layout screen of my table control.
    the search help works but after i double click it but the value didn't show up
    in the field.
    don't know what's going on...
    Please Help.
    Regards
    Jack Lee

    Search Help Name   :- C_SAKNR for data element  SAKNR and value table is SKA1 in module pool you can assign  Search Help Name

  • Value is not populating in field through search help f4

    Hello Expert,
    I have made one field as a search help but data is not populating from popup.
    Data is coming from BP_search_help. Here i did not create any search help in se11. not required here.
    i used Code in get_p method.
    Method GET_P_BP_NUMBER.
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          IF iv_display_mode EQ abap_true.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
          ELSE.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
          ENDIF.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = ' '.  "EC NOTEXT
      ENDCASE.
    ENDMETHOD.
    GET_V Method.
    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.BP_NUMBER'.
      ls_map-f4_attr = 'PARTNER'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id        = 'BP_HEAD_SEARCH'                            "#EC NOTEXT
              iv_help_id_kind  = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
              iv_trigger_submit = 'X'
              iv_input_mapping  = lt_inmap
              iv_output_mapping = lt_outmap
    endmethod.
    But when i activate get_v method .i am getting 1 error.
    Error is
    Please help me how to rectify this error and any other way to populate data in field through f4 help.
    If u want more detail. Please follow attachment.

    Hi Madhuri,
    You can refer the below code for search help for partner. The code has to be written on GET_V_XXX method.
    DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
             lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
       ls_map-context_attr = 'STRUCT.BP_NUMBER'.
       ls_map-f4_attr = 'PARTNER'.
       APPEND ls_map TO lt_outmap.
       CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
         EXPORTING
           iv_help_id        = 'UIF_BUPAP_WIDE_COL'    ""Search help name
           iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
           iv_trigger_submit = abap_true
           iv_input_mapping  = lt_inmap
           iv_output_mapping = lt_outmap.
    Thanks,
    Ritu

Maybe you are looking for

  • 'FM HELPSCREEN_CREATE is  obsolete in ECC 5.0 version'

    Hi all, I am upgrading SAP from 3.1I to ECC 5.0. I am getting the error that  'FM HELPSCREEN_CREATE is now obsolete in ECC 5.0 version'. can anyone suggest the equivalent FM for the above in ECC 5.0. thanks Rakesh

  • How do I overcome 1335, 2350 error messages?

    Hallo, I have problem to install photoshop elements 12. When I click on the setup icon, the installation progresses normally after inserting my region and the serial number of the program but then I have this sequence of messages:

  • Recruiters statistics report- using APPLICANT statistics report

    <b>Hi experts!,                   I want to get the reports of the Personal officer ( recruiters) in Applicant Statistics report. But in the standard report I can choose only one personal officer and get the report. Could any one help me how to get t

  • ASMCMD privilegies

    I execute asmcmd -p and return a error ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin) I execute with oracle user and my ORACLE_SID was +ASM. My user/groups are: oracle@drcbkplnx2:~/product/10gr2/bin> id uid=59(oracle) gid=54(oinstall

  • Quicktime error 50 and general export error

    Recently finished a project in FCPX (10.0.8) on an iMac running 10.8.3 and am unable to share or export the file in any form. The project has media from SD and HDV cameras as well as images and an audio track consisting of two non-DRM music files. In