Limiting the hit list

Hi all,
I’m writing a pricing report which has a field condition type on the selection screen.
I want to limit the hit list of this field to merely display the condition types with usage A, application M when user clicks F4.
What should I do? Should I use matchcode?
Thanks in advance.

you can use the following FM to provide your own values to the F4
F4IF_INT_TABLE_VALUE_REQUEST
check out this link for sample code
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap faqs.faq#q-9
<b><u>alternate method.</u></b>
wf_repid = sy-repid.
  wf_dynnr = sy-dynnr.
  call function 'F4IF_FIELD_VALUE_REQUEST'
    exporting
      tabname                   = 'TKA03'
      fieldname                 = 'STAGR'
      searchhelp                = 'Y_TKA03'
*   SHLPPARAM                 = ' '
      dynpprog                  = wf_repid
      dynpnr                    = wf_dynnr
      dynprofield               = 'WF_F_STAGR'
*   STEPL                     = 0
      value                     = 'HC*'
*   MULTIPLE_CHOICE           = ' '
*   DISPLAY                   = ' '
*   SUPPRESS_RECORDLIST       = ' '
*   CALLBACK_PROGRAM          = ' '
*   CALLBACK_FORM             = ' '
* TABLES
*   RETURN_TAB                =
* EXCEPTIONS
*   FIELD_NOT_FOUND           = 1
*   NO_HELP_FOR_FIELD         = 2
*   INCONSISTENT_HELP         = 3
*   NO_VALUES_FOUND           = 4
*   OTHERS                    = 5 .
<b>This would return values starting with HC*</b>
Regards
Raja

Similar Messages

  • Creating search help for AFNAM, and display the hit list with values only

    Hi guys,
    I have created a search help for AFNAM, but the hit list displays all even if it is blank.
    I want to display in the hit list the AFNAM with values and do not diplay the blank values...
    Is it possible? How am i going to do it?
    Thanks!
    Mark

    Hi Mark,
    After selecting data use this statement.
    DELETE it_table WHERE AFNAM is initial.
    Regards,
    Suneel G

  • When I perform a search, the hit list web links don't work but I'm redirected to some other site.

    When the search results appear, I click on the link and get redirected to some other site (usually an ad or search site). When I hover over the link, the correct link is displayed but again when I click the link I get sent to some weird site. Any help is appreciated!

    This may be caused by malware. try running several malware scanners, you need to run several as each one may pick up things the others miss. You can try the following scanners:
    * [http://www.malwarebytes.org/mbam.php Malwarebytes]
    * [http://www.superantispyware.com/ SUPERAntiSpyware]
    * [http://www.safer-networking.org/en/home/index.html Spybot-S&D]
    * [http://www.lavasoft.com/products/ad_aware_free.php Lavasoft Ad-Aware]
    * [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx Windows Defender]

  • How to confiure the fields displayed in F4 help hit list?

    Hi Gurus,
    I got a strange issue.
    Standard F4 help in PA20 displays a hit list of employees along with the details like name of the employee, his personnel number, his date of Birth and other details.
    Now the customer requirement is as follows - The birth date being a confidential information should not be displyed to users. Therefore, there is a customizing request to hide this Date of Birth Field in the hit list given by F4 Help.
    Can anyone suggest me where  (under which node) exactlyconfigure the same in IMG?
    Thanks in advance.
    Amit Linge
    SAP HCM Consultant

    Hi Donnie,
    Thanks for your guidance.
    It helped me configuring the F4 Search Help. The solution is proposed to the client.
    thanks once again.
    Amit Linge

  • In SE30 hit list, please help me to understand the GROSS and the NET column

    Here a line from the Hit List :
    Call       = Perform TRANSFER_TO_UNIX  
    Number = 6
    Gross    = 5662 microsecond
    Net       =  810  microseconds
    The whole program execution takes 1.705.253 microseconds.
    Can somebody explain me the meaning of the GROSS and the NET time using this example ?
    The routine TRANSFER_TO_UNIX   has been executed 6 times. That is clear.
    Is the gross time the total time required for a call or for 6 calls ?
    => following documentation , "the gross time is the total time required for A call. This includes the runtime of all modularization units and abap statement called by the subject."
    => but following a blog read on this forum, the gross time is “the total times, not the times per execution”.
    That confused me very much ….
    Can somebody clarify that for me ?
    Also, what I don't understand at all is the NET time
    => following documentation, the net time “is the gross time less the time required for modularization units (MODULE, PERFORM, CALL FUNCTION, CALL SCREEN, CALL TRANSACTION, CALL METHOD, CALL DIALOG, SUBMIT), and for the ABAP statements listed separately. For statements such as APPEND, the gross time is the same as the net time.
    If the gross and net runtimes of a call are different, the call must either contain further calls or modularization units”
    Here is the code of the routine :
      add 1 to w_nb_ok.
      clear l_record.
      l_record-gpart = <f_vkont>-gpart.
      l_record-vkont = <f_vkont>-vkont.
      l_record-mahnv = <f_vkont>-mahnv.
      l_record-zzfbdate = <f_vkont>-zzfbdate.
      l_record-zzcastatus = <f_vkont>-zzcastatus.
      l_record-ktokl =  <f_vkont>-ktokl.
      l_record-regiogr_ca_b =  <f_vkont>-regiogr_ca_b.
      l_record-mahnv_new = <f_vkont>-mahnv_new.
      l_record-zzfbdate_new = <f_vkont>-zzfbdate_new.
      l_record-zzfbdate_upd = <f_vkont>-zzfbdate_upd.
      l_record-zzcastatus_new = <f_vkont>-zzcastatus_new.
      l_record-zzcastatus_upd = <f_vkont>-zzcastatus_upd.
      transfer l_record to w_output_file.
    I
    Thanks in advance
    Marie

    > the call must either contain further calls or modularization units,
    yes
    Check in your measurment setting what is traced separately, for an exercise you can switch off everything besides the call function, methods and forms,
    then you will see  gross = net if there no other call inside.
    But the recommended setting is described in the blog.
    Note, the sum of all net times is the total runtime, and the maximum of the gross times should be the same. Unfortunately there are slight deviations in the gross
    times and the displayed total time in the SE30 is taken from the gross times.
    Siegfried

  • How to enter values in the selected list  by pressing f4

    Hi Gurus,
    I have a problem can any one help me in solving this?
    When we go to any table thorugh se11 or se16 to display all the records based on the selective fields like pernr, company code, benefit plan in a Z-table
    Here when I want to display records of selected benefit plans by using the field bplan. here when I go to that bplan field and press f4 then gives me a list of benefit plans, from that list I have to select proper benefitplan for selected records of that plan
    1. Question:
       I have two new plans , can any suggest me how to add in the f4 list of that field. Is it done through any program?
    Another issue,
      I have a report program, when I execute it gives me selected list fields like pernr, date, and some more fields. if you select some fields with the help of f4 , we can choose correct value,
    2 Question,
             I have two new parameters to be added in the f4 list of the fields in the Needed very urgent?
    Thanks
    Ravi

    Hi
    You can create a search for that field with more than one fields and yu can add the search help for that field
    see the doc
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
    https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
    You can add F4 values for that field using the following
    See the following ex:
    TYPES: BEGIN OF TY_MBLNR,
    MBLNR LIKE MKPF-MBLNR,
    END OF TY_MBLNR.
    DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
    data: it_ret like ddshretval occurs 0 with header line.
    At selection-screen on value-request for s_mat-low.
    Select MBLNR from mkpf into table it_mblnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'MBLNR'
    PVALKEY = ' '
    DYNPPROG = ' '
    DYNPNR = ' '
    DYNPROFIELD = ' '
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    VALUE_TAB = IT_MBLNR
    FIELD_TAB =
    RETURN_TAB = IT_RET
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_mat-low.
    ENDIF.
    Go through the test program.
    REPORT Ztest_HELP .
    TABLES : MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_MATNR(10) TYPE C.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR TYPE MATNR,
    END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR
    FROM MARA
    INTO TABLE ITAB
    UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'MATERIAL NUMBER'
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_MATNR'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = ITAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3. 
    Regards
    Anji

  • Adhoc query - Hit list 40, output 5

    My client has an adhoc query set up and the selections make sense the hit list number is correct as compared to what is on the DB - I have checked using SE16.
    However when the output is produced only 5 records are shown.
    There are no auths issues according to SU53 and also I have access to all infotypes in PA & PD so I am slightly confused as to what is going on here.
    Perhaps some of you have had the same experience and have an idea or clues as to what is going on here.
    Many thanks in advance,
    Kind regards,
    Dan

    Hi,
    Hit lists show employee hits, output shows output hits. You have difference because in the output not every employee has a record in the infotype that you selected for output.
    For example you have 40 employee and only 5 of them have record in IT 0016. So if you select IT 0016 for output only 6 records will be displayed, though according with you selection criteria 40 employee were selected.
    Just add to output fields from infotype that every employee has (e.g. from IT 0001) and you will see all of them in the output.
    Cheers

  • Ad Hoc query - Hit list count

    Hello,
    Currently we are experiencing issues in few Ad hoc queries.
    Issue:
    When pressed "HIT LIST" button we get count as 21. But in the lower pen(output) we are getting count of 6.
    Evenif pressed "REFRESH" button the output remains same ie. only 6 entries.
    Even in the output the (when clicked "OUTPUT" button), only 6 entries appearing.
    Please suggest. Appreciate you help.
    Thank you.
    Regards,
    Saurabh

    Hey Saurabh:
    So I can't say I know the answer for sure but the Hit List purely tells you the number of unique employees who meet your search criteria.
    The actual output shows the results of all the fields you've chosen to output for those people on your Hit List.  I can think of two reasons why you may be seeing what you're seeing.
    1) You lack authorization to see the data you've chosen to output for 15 of those 21 people
    2) 15 of the 21 people on your hit list lack any data in the row of data you've chosen to output.  So hypothetically if you're only outputting a particular date type of infotype 41 and that's it for a person, and a person doesn't have that value, they won't show up on your result set, even though they met your search criteria (assuming your search criteria didn't include that date type!).
    Let me know though if you think both of those circumstances don't relate to your issue.
    Thanks,
    Chris

  • Hit List in ad-hoc query

    Hi All:
    Does anyone know how to add the "Hit List" functionality to a query infoset?  My users need to be able to press the hit list to determine a count of pernrs to be included in their ad-hoc queries

    Hello:  This is very helpful information, however the option to "switch on objection selection"  is not available for some of my query infosets.  The option is grayed out.  I have the option for some of my query infosets so I do not believe this is a security issue.  Is there a setting that must be turned on during the build of the query infoset?
    Can you help?

  • Hit list in PA20/PA30 Object Manager

    When you do a search in the object manager, it comes up with the hit list at the bottom of the screen, and a label which says "hit list" - my users would like to see a total number in the hit list, in the same way it appears in adhoc query.  Doe anyone know if this can be configured/customised to show the number in the hit list?
    Thanks Tanya

    Hi:
    I don't think it is possible to output hit list entry quantity in standard search help however you can create a customer search help for PREM object adding a variable that would count match entries and output message thru ABAP sentence:
    MESSAGE s000(zhr) WITH lv_counter 'entries found'.
    Hope it helps,
    Regards.

  • Object Manager: Using PA20 or PA30. Hit List

    Dear Team:
    When using the transaction PA20 or PA30, we see the Object Manager in the Left side pane, which shows the Search Area and Selection Area. In the Selection Area, I am getting the HIT LIST, which retrieves all the employees data. As this is retrieving this information, it is taking too much time to open the transactin PA20 or PA30.
    How to disable this HIT LIST function. Is this be achieved by the settings in the menu or in the configuration of Object Manager. Please check and let me know on the same
    Thanks and Regards
    Team Member.

    Hi,
    For your information, Ensured that the configuration in our Development, Quality, and Production are same. And more over we cannot change anything is quality or Production and even in testing client directly the configuration, but in Development the HIT LIST is disabled and also in Production. This is available in Quality.
    This is the reason, why I just wanted to know is there any menu settings involved in disabling the same. And in the Object Manger configuration, I do not know exactly where to change as I have not checked before as there are lot of technical options.
    Inputs in this regard is highly appreciated.
    Thanks and Regards
    Team Member.

  • 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

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

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

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

  • Free search hit list +PPOSE

    The free search functionality for PPOSE (Object type position) always shows A003 relationship irrespective of the input parameters used.
    For e.g , even if the input parameters entered in free search is Related Object type-P, Relationship type -A 008, the output in the hit list is always A003.
    Can you please advise how data is picked up to be populated in the hit list?
    Thanks.
    Rahila

    Hi,
    Try this options mentioned in the SAP note
    In the initial screen HELP --> Settings . Go to the tab F4 Help . Go to change mode and choose "Dialog" instead of "Control".
    Now for F4 help you will get a check box "No restriction". Use this Check box and try again.
    I guess performance will be seriously affected
    Refer these SAP notes
    Note 487689 - Search help control: Restrictions
    Note 163738 - Hit List does not display more than 5000 values.
    Regards

  • Z authrozation Group "Showing BP in Hit List"

    We are  implementing CRM 7 and we have a requirement to block the secured customer's details and we have created authorization groups (enabling only authorized group to view that BP - and agent should not view that BP) when the agent logs in and search for BP with Txcode BP, He gets the BP hit list with BP name , nubmer with Post code  when he clicks on BP he gets the message that he is not authorizaed to see the BP details.  The problem is : In the hit list the BP can see the POST CODE & NAME. As per my requirement it should not display the hit list also. Can any one help me ,
    How to block the secured customer in Hit list also and How to restrict the transactions (service orders/web request) where the Secured BP is involved..
    CHANDRA

    HI,
    Your answer is helpful
    I have customized new authorization group in BP control Tab and We have changed the ( PFCG) authorization of that role, Now the agent role does not display hit list of secured customers.  Now I need to find out how to block their transactions ( Sales & Service orders) also along with BP view, Any suggestions please
    Thanks
    CHANDRA

Maybe you are looking for

  • Error when reading a XML File

    When I am reading an XML file in a folder I am getting extra characters like squares before and after each and every character of the XML file. Why is this so.I thought they are spaces and trimmed it but i didnt work.I replaced thinking as escape cha

  • I am getting this error message when trying to install free version of photoshop..."This application

    I am getting this error message when trying to install free version of photoshop..."This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance. What am I doing wrong?

  • Error 1701

    Hi. I upgraded my Mac to OS X version (Mavericks), and now iTunes (version 11.1.2.)  shows a message unknown error (1701) for my iPod Shuffle. What should I do? That never happened, but now that I upgraded my system.

  • Termination workflow...

    Does anyone know what is the name of the terminaton workflow in SSHR? I cannot seem to find it.

  • Abstract/ concrete class questions/problems

    I am new to java and working on a abstract problem. I'm getting several errors. Here is the code I have so far for the abstract class. I commented out the super and it compiles but I'm not sure if it correct. I'm suppose to create a abstract base cla