Search help question

Hi,
I have a selection screen with 3 fields.
xblnr, kunnr and bukrs
I created a search help exit for xblnr.
It finds my values perfectly and returns it on screen.
How do I make it return kunnr and bukrs values on the screen as well(they do appear on search help pop-up already).
I tried filling up the shlp_tab and shlp manually, but that didn't help.
right now, my search help exit is like that to delete duplicates.
I think I should add some code to the elseif callcontrol-step = 'RETURN', but all I've tried doesn't work.
Please note that I don't want to do it on my report program with at selection-screen on value-request for xblnr, I would like to solve this inside that userexit. Setting parameters doesn't help either as that requires the selection-screen to be refreshed.
if callcontrol-step = 'DISP'.
delete adjacent duplicates from record_tab comparing string.
elseif callcontrol-step = 'RETURN'.
exit.
else.
exit.
endif.
thank you all

solved it.
needed to give the parameters like
parameters: xblnr like ztable-xblnr,
                  kunnr like ztable-kunnr,
                  bukrs like ztable-bukrs.
then add the search help exit to the table properties for each parameter that i use in the report assigning the corresponding field and voila

Similar Messages

  • Free Programmed Search Help Question

    I want to use the free programmed search help interface to make
    my own search help.
        But the problem is, I want to embed SAP's search help into my own
    search help.How can I do that?
        Thank you.

    Hi,
    I had the same requirement and so I used Dictionary search help.
    In this you have to attach dictionary search help as inpute mode for paricular
    context node.
    e.g. If you want to attach a F4 help for vendor number, then goto attribute of that particular node and search for your attribute. Now click on vendor and change the properties of the same attribute as input help mode will be changed as
    'Dictionary search help' and put your own created search help name in the
    'Dictionary search help' tab. Also you can use standard search help name if you know as 'Dictionary search help '.
    Also there is another way to handle the same.
    In this blog you can find a solution with select options and custom F4
    /people/koen.labie2/blog/2006/11/17/custom-f4-functionality-in-webdynpro-for-abap
    Hope I have solved your problem.
    Cheers,
    Darshna.

  • Question on Search Help and Authorization Check for Sales Order Type

    Question 1:
    When I go to VA01 and click the search help, it shows only order type that are not blocked.
    However, when I have sales order type in select-options of a Z program,
    S_AUART FOR VBAK-AUART
    I click on the search help, it gives all the sales order types. How can I have a list with unblocked sales order type only?
    Question 2:
    I want to check whether a use can extract data from a sales order type (e.g. OR and RE)that he/she authorized to use.
    I have include the following in my program:
    AUTHORITY-CHECK OBJECT 'AUART'
    ID 'AUART' FIELD 'OR'.
    It always returns SY-SUBRC = 12.
    But order type 'OR' is granted to the user (he/she can create order with type OR in VA01)
    Please kindly give me some ideas, thanks.

    hi,
    ad1
    use following code:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR auart.
      PERFORM auartGet.
    FORM auartGet.
        CALL FUNCTION 'RV_HELP'
             EXPORTING
                  KEY            = VKORG
                  KEY2           = VTWEG
                  KEY3           = SPART
                  KEY4           = '0'
                  NUMBER         = '008'
                  FIELD_IN       = AUART
             IMPORTING
                  FIELD          = AUART.
    ENDFORM.
    ad2.
    example:
       AUTHORITY-CHECK OBJECT 'V_VBAK_AAT'
             ID 'AUART' FIELD 'OR'
             ID 'ACTVT' FIELD '01'. "01-create order, 02-change, 03 display
    check sy-subrc eq 0.
    regards,darek

  • Question on search help

    hello,
    I have create a search help in KRED. I have a field LIFN2 which is the "reference to other vendor field" in my help. when I go to the MIRO transaction and goto the details tab and click in the field "inv.party", the search appears. the problem that I am having is that when I double clik on one the records in the search list, it is supposed to fill in the vendor number with the LIFN2 value but it is not. I have this selected for import and export in the search help. I am not sure if there is something else that I have to do. If some one could please help me , that would be apporeciated
    thanks in advance for the help

    thanks for the respopnses
    I have the EXP checked for this field. when I active the search help, I get warnings and when you click on this warning
    <b>No values can be returned from contained search help ZVENDORS_PARTN </b>
    I get the following
    <i>Diagnosis
    The collective search help in question contains search help ZVENDORS_PARTN. When parameters were assigned to these two search helps, however, no EXPORT parameter of ZVENDORS_PARTN was assigned to an EXPORT parameter of the collective search help. In an input help process in which the user selects elementary search help ZVENDORS_PARTN (or an elementary search help contained in collective search help ZVENDORS_PARTN), no value is returned to the screen.
    System response
    The action is continued.
    Procedure
    If ZVENDORS_PARTN is directly included in the collective search help in question, check the parameter assignment for this inclusion. It is possible that some meaningful parameter assignments were not defined. It is also possible that the EXPORT flag is missing for one or more parameters of one of the two specified search helps.
    If ZVENDORS_PARTN is contained in several levels of the collective search help in question, you should check the parameter assignments and parameter attributes of all the levels in between.</i>
    I get this message in the following sections
    SHLP KRED_AG was adjusted    
    SHLP KRED_C was adjusted    
    SHLP KRED_T was adjusted    
    SHLP MEBO_KRED was adjusted
    I am not sure what to look at now to try to correct this

  • Search Help attached to Data Element Question

    Hello! Hopefully this is a simple question to answer. I have looked online but cannot find exactly what I need.
    We currently have a search help attached to a data element. The search help is a custom search help. It does work so when you are in the screen it will show you options to pick from for that field. However, the field also allows for free-form text so the user can type in whatever and the screen will take it.
    Is there a way through the data element or search help to make it so the user is restricted to only what is in the search help and cannot just enter whatever?
    Thanks!!

    For restricting values You can use the at selection screen event  on that field.
    The search help field values will be there in a table .
    So what ever values are there in the table for that particular field , only those values will come in F4 also ..
    If it not maintained then issue an appropriate error message.
    at-selection screen on p_field.
    selct single  field from table into v_value.
    if sy-subrc <> 0.
    message ""Error message.
    Endif.
    Regards
    Mishra

  • Some questions about standard search help in WD4A

    Hello all,
    I use the SAP standard search help for a business partner number input field. It works fine, but I need to customize the result popup a bit. I have the following issues:
    1. After the search I get a table with a list of all found business partners. The columns are not sortable. Can I change them to sortable (as in SAP GUI)?
    2. How can I add another field/column to the result list (birth date)?
    3. Per default 10 hits are shown on one page in this result table. Is it possible to show more hits at once?
    Best regards and thanks for all help,
    Matthias

    Hi Matthias,
      first of all let's say that the Search Help has been changed a lot in the different SP level.
      Looking in a NW7.0 SP12 I can see that:
      1. It's not possible
      2. You have to change the Search Help definition in DDIC (/nSE11)
      3. Via the Settings link in the TOP LEFT you can change the value (but in my system it is set to 500)
      Keep in mind that WDA support a freely programmed Search Help where you can do everything you want...but it requires coding...
    Sergio

  • Search Help related question

    Dear Friends,
    I have schedule ID and description field in my transaction.
    I added the search help for Schedule ID field and in this help schedule description is also showing.
    when we select any value from search help schedule ID field is automatically filled by that id but
    schedule description field is remail empty.
    i want to fill schedule descrption field accordingly.
    Can you please help me to sort out this problem.
    Regards
    Malik

    Hi,
    there are different ways in which this is possible. To tell you a solution that is apt for you , can you tell me how you have assigned the search help and the screen field? Have you given the screen field name as a normal variable, or is it dictionary_table name - field name , or is it work_area-fieldname?
    Regards,
    Suzie

  • A question about search help and input help,PLZ take a look at it.

    hi everyone,
    i want to know the difference between search hlep and inpu help
    can anyone tell me about that?
    thanks

    HI
    BOTH ARE SAME
    you can define F4 help in 2 ways
    in SE11 or in the report program
    IN SE11
    Attaching a search help to a table field
    Choose the field name, click on search help tab and
    provide the name of the search help.
    A search help is attached to a field of a table or structure in the maintenance transaction for this table/structure, analogously to attaching to a table. You must assign the interface parameters of the search help to any fields of the table/structure. The search field must be assigned to an EXPORT parameter of the search help at this time.
    Attach the search help to the table field
    The search help ZSTRAVELAG_NAME is therefore directly attached to the field AGENCYNUM of table ZSTRAVELAG.
    Attaching a search help to a data element
    Provide the search help name and the parameter name
    under the further characteristics tab of the data element.
    If the input help of a field is defined by its data element, no further screen fields can be used in the input help.
    Also note that the input F4 help would be available wherever the data element is used.
    Attaching a search help to a screen element
    A search help can be directly assigned to a screen field in two ways.
    The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.
    The name of the search help can be defined for selection screens in ABAP reports in the PARAMETERS or SELECT-OPTIONS statement directly following the supplement MATCHCODE OBJECT.
    However, input help is only available for this particular screen.
    in REPORT PROGRAM
    in this way we declare in report program
    TYPES : BEGIN OF ST_OBJID_SH,
    OTYPE TYPE HRP1000-OTYPE,
    OBJID TYPE HRP1000-OBJID,
    END OF ST_OBJID_SH.
    DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
    DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    *SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
    SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
    SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.
    SELECT OTYPE OBJID FROM HRP1000
    INTO TABLE IT_OBJID_SH
    WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'OBJID'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'S_OBJID'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    VALUE_TAB = IT_OBJID_SH
    FIELD_TAB =
    RETURN_TAB = RETURN_TAB
    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.
    ENDIF.
    Check this out
    http://www.sap-img.com/abap/value-request-for-parameter.htm
    ******************************8
    sample program
    report zrich_0001 .
    data: begin of ihelp occurs 0,
    field type char10,
    ftext type char50,
    end of ihelp.
    data: a_field(20) type c.
    select-options s_field for a_field.
    initialization.
    ihelp-field = 'A'.
    ihelp-ftext = 'Description A'.
    append ihelp.
    ihelp-field = 'B'.
    ihelp-ftext = 'Description B'.
    append ihelp.
    ihelp-field = 'C'.
    ihelp-ftext = 'Description C'.
    append ihelp.
    at selection-screen on value-request for s_field-low.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'FIELD'
    dynprofield = 'S_FIELD'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    value_org = 'S'
    tables
    value_tab = ihelp.
    start-of-selection.
    one more program....
    REPORT ZHELP .
    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.
    Create it from SE11.
    enter search help
    and create elementary
    enter description and below Table name
    and the fields
    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.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

  • 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

  • Collective search help in SRM 7.0

    Hello all,
    Does any body has an idea why the custom elementary search helps wont get displayed in SRM7.0 When we add for a collective search help.
    For ex.. BBP_BUPA* SOURCE_OF SUPPLY is the standard collective search help where we added custom search helps to it,
    While upgrading we try to implement the same in 7.0 also, But theya re not at all visible in the  Drop down of Preferred supplier.
    I tried to check web dynpro componenet  WDR_F4_COLLECTIVE method   in debug mode  but was unable to trace it out,
    Can any body help me how can i include them to standard collective search helps  in web dynpro.
    Thanks and Regards
    geetha

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Performance with ADMC Search help

    Hi Everyone.
    Here there is a performance issue when we tried with the standard search help.It is happening in MEAN Transaction and the search help is for Address Number .While we tried it is giving dump for sometimes.
    When I checked into the search help,It is a collective search help and the selection-method is from a View.
    Could anyone face this ,please give some pointer to resolve this Performance issues.
    If there is any way to reolve this ,we can clone the existing report and do the changes in the new ZMEAN Transaction .
    Regards,
    Kranti Yamparala.

    I don't understand the details of your question.
    But anyway, a search help searches on a maybe very large table with very poor selection criteria, this can take
    ages and there is nothing you can do.
    You must take care that the selection critieria make sense,
    + either by defining mandatory inputs
    + or/and by adding some indices which you think are necessary
    Siegfried

  • How to create Search help exit, and then assign it to a collective search

    hi gurus,
    i have an intersting question for you, well my scenario is like i have to create a search help exit using some function module cause i didt found table for my search help but i can find the value through FM, i know we can create a search help exit and then assign it to collective search help,
      my problem is what are the parameters i need to pass to this search help exit FM, and in the function module i want to use the value entered on the f4 selection screen to extract data through FM. i need to give a solution  asap.
    any reply will be highly appreciated
    n rewards points for sure.
    thanks mandy

    Hi mandy,
    Have a look at this code,
    FUNCTION SHLP_SHOW_LIST.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(PLANT) TYPE  WERKS_D OPTIONAL
    *"     VALUE(DISPLAY_ONLY) TYPE  FLAG OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(ITEM_SELECTED) TYPE  CHAR20
    *"  EXCEPTIONS
    *"      POPUP_CANCELED
    TYPE-POOLS SHLP .
    CONSTANTS:
            co_shlpname            TYPE shlpname   VALUE 'SHLP_CONTAINER',
            co_shlpfield_itemalias TYPE ddshlpsfld VALUE 'CONTAINER'.
      DATA: l_shlp         TYPE shlp_descr_t,
            l_subrc        TYPE sysubrc,
            l_return_tab   TYPE STANDARD TABLE OF ddshretval,
            l_return_wa    TYPE ddshretval,
            l_interface_wa TYPE ddshiface.
    Get details for search help
      CLEAR l_shlp.
      l_shlp-shlpname  = co_shlpname.
      l_shlp-shlptype  = 'SH'.
      CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
           CHANGING
                shlp = l_shlp.
    Assign virtual screen field
      READ TABLE l_shlp-interface INTO l_interface_wa
      WITH KEY shlpfield = co_shlpfield_itemalias.
      l_interface_wa-value      = space.
      l_interface_wa-valtabname = 'X2'.    "virtuel screen field
      l_interface_wa-valfield   = 'Y2'.    "virtuel screen field
      MODIFY l_shlp-interface FROM l_interface_wa INDEX sy-tabix.
    Call F4 popup
      CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
           EXPORTING
                shlp          = l_shlp
                disponly      = display_only
           IMPORTING
                rc            = l_subrc
           TABLES
                return_values = l_return_tab
           EXCEPTIONS
                OTHERS        = 0.
      IF sy-subrc = 0 AND l_subrc = 0.
      Value selected
        READ TABLE l_return_tab INDEX 1 INTO l_return_wa.
        item_selected = l_return_wa-fieldval.
      ELSE.
      Popup canceled / no value selected
        RAISE popup_canceled.
      ENDIF.
    ENDFUNCTION.
    make sure to call these FMs and populate accordingly...
    Thanks
    Madhu

  • SELECT-OPTIONS Values via DYNP_VALUES_READ in a Search Help Exit

    Hi all,
    I appended a standard search help of a standard report with a search help of my own. Now I am trying to retrieve the values the user has entered into the selection screen of the report using the FM DYNP_VALUES_READ in my search help exit FM. It works fine for single values defined by PARAMETERS and for low and high values of SELECT-OPTIONS (so_example-LOW and so_example-HIGH), but I need the entire SELECT-OPTIONS table. I cannot make any changes in the report, so do you have any solutions I could implement in my search help exit FM?
    Many thanks!
    Vladan
    P.S.
    I found several questions on this topic but they either just different enough not to be applicable in my case or the formatting has made the replies useless.

    Most of the time we just copy the standard FM F4IF_SHLP_EXIT_EXAMPLE to a new one and give our own name.
    You can see that on the 12th line there is the following code
    * EXIT immediately, if you do not want to handle this step
      IF CALLCONTROL-STEP &lt;&gt; 'SELONE' AND
         CALLCONTROL-STEP &lt;&gt; 'SELECT' AND
         " AND SO ON
         CALLCONTROL-STEP &lt;&gt; 'DISP'.
         EXIT.
      ENDIF.
    you should comment those line in order for the control to reach the PRESEL step (which is already defined in the SH Exit FM) which is on line 44.
    Most of the time, when someone says they don't hit PRESEL, this is the problem.
    Edited by: ajithkpunnoose on Jan 5, 2012 12:00 PM

  • Error while creating search help

    Hi,
    I am getting an error "Elementary search help without hit list is meaningless" while creating a search help,.what could be the problem?
    Thanks,
    Rakesh.

    Elementary search help without hit list is meaningless
    Diagnosis
    The flag that they should appear in the hit list is not set for any of the parameters in the elementary search help in question. An elementary search help without a hit list is meaningless because it is not possible to select a value from the set of possible values in the input help process which it describes.
    System Response
    The action is terminated abnormally.
    Procedure
    In the maintenance screen for the search help, assign at least one parameter a position in the hit list.

  • Search help for business partner ID in segmentation applet

    Hello,
    In CRM 2007 I'm using the segmentation toll. When creating filters for Business Partner ID criterium I'm using a search help functionality to find the desired records. However search help for business partners used in this area is very different from the search help used in any other parts of WEB UI (it is restricted to only few fields, that are not enough for our requirements).
    Segmentation applet is written in Java but the search help looks like normal WEB UI screen. I wonder if any of you could help me with replacing this serach help called by segmentation applet (java application) with a standard search help for business partners (BP_HEAD_SEARCH)?
    Kind reagrds
    Marek

    Hello there,
    I think the requirement/question is not very clear in your post.
    However, the segment Java applet calls a CRM class which has related code and methods.
    Class:  CL_CRM_MKTTG_SEGAP_COM
    Package: CRM_MKTTG_SEG_APPLET.
    Please explain the problem in detail.
    Regards,
    Vinamra.

Maybe you are looking for

  • Transferring data to a new computer

    Hi. Not sure if this is a good place to ask (if the solution to this might be in another thread, and you can redirect me, please do) - my brother is giving me his 15 inch MacBook Pro and I'm looking for instructions on how to transfer all the data on

  • IDES POST INSTALLATION

    Dear Gurus , SAP ECC 6.0 , Windows 2003 Server 64 bit , DB2 , 4GB RAM , 320 GB HDD While Post installation of ECC 6.0 , i take too time to complete SGEN Transaction, still not completed it shows Data for Current Job: Job Name : RSPARAGENER8          

  • I've usd RecMyFile to recover .JSON file but I get "Unable to process the backup file" be like Unknown format

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/887204]]</blockquote> I've usd RecMyFile to recover .JSON file but I get "Unable to process the backup file" be like Unknown format like this > http://goo.gl/pHTkr < Please

  • Firewire Chip - New Macbook Pro

    Hi, I was wondering what kind of chip is used for the firewire interface in the new Macbook Pro? I hope it still is a Texas Instrument one ... otherwise I´ll probably have troubles with my audio interfaces. Thanks for the help!

  • Want to extend my WLAN (ZyXEL) using 2013 airport extreme; doesn't work... Any ideas?

    Hi I want to extend my WLAN (using a ZyXEL VDSL-modem) with 2013 airport extreme. Doesn't work. What am I doing wrong? Does APE only work with Twisted Pair cable? That's the only way so far I can access the Internet using APE. But that was not my pla