Want search help result directly only key field

Hi friends
   i need one help, working on 4.6c, i want any fm that takes search help name and select options and write back the result list .
   i know some fm's like DD_SHLP_GET_HELPVALUES which is returning the result in string, for that i have to do lot of other stuff in that one i have to use cl_alv_table_create=>create_dynamic_table which i don't want.
    i want only the key field result list like F4IF_FIELD_VALUE_REQUEST rerurns RETURN_TAB type table of DDSHRETVAL .
  thanks in advance

Hi Shiva,
I know that this post is really old, but just for people who still visit this post, I extended Uwe's solution and came up with this. (Uwe's solution causes a popup to appear which I do not want as am accessing the F4 helps remotely).
DATA: ls_shlp_descr TYPE shlp_descr,
       lt_ddshretval TYPE TABLE OF ddshretval,
       ls_ddshselops TYPE LINE OF ddshselops.
" Get F4 Help structure
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
   EXPORTING
     shlpname = 'T006_T'
   IMPORTING
     shlp     = ls_shlp_descr.
" Add filter criterion
ls_ddshselops-shlpname = 'T006_T'.
ls_ddshselops-shlpfield = 'MSEH3'.
ls_ddshselops-sign = 'I'.
ls_ddshselops-option = 'EQ'.
ls_ddshselops-low = 'MON'.
APPEND ls_ddshselops TO ls_shlp_descr-selopt. " You can add more such filter options
" Get the result values
CALL FUNCTION 'F4IF_SELECT_VALUES'
   EXPORTING
     shlp       = ls_shlp_descr
   TABLES
     return_tab = lt_ddshretval.
Maybe there are other ways to do this, just that I found this pretty OK for my case.
best regards,
Ashwani

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

  • Search Help to display 2 different fields/values

    Hi Everyone,
    I am going to use a search help for a certain screen transaction using a search help. A certain input field should have an F4 function (using list box). The values to be displayed after F4 input should be the Business Object type and BP number. This input field is can display either of the two fields.
    How can I do this? Do I need to create a new search help for this? Business Object is from table SWOTIP field OBJTYPE and BP Number is form table BUT000 field PARTNER.
    Kindly help me on this.
    Thanks and regards,
    RE

    Hello Ashish,
    The input help should have two possible values. It may be the Org unit number or the Business Partner number.
    As for my experience in search help, the only thing I know about it is to set a reference db table then the field which is to be displayed during F4. For example, an input help requires a Plant number, the search help will have a reference table (selection method) T001W and a parameter of field WERKS.
    What if the input field can contain either an org unit number OR a business partner number, how should I create the search help? What should be the selection method (table name) to be filled? Is it the BUT000 (for bus partner) or HRP1001 (for org unit)?
    Thank you very much for your attention.
    Regards,
    RE

  • How to link a search help to a selection screen field

    Hi All,
    I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' .
    But, I donot know how to assign a search help to a selection screen field. Please help.
    Regards,
    Nibha

    Hello,
    Fetch all the data which from the table which you want to show in the search help and pass the value to the FM
    F4IF_INT_TABLE_VALUE_REQUEST and the selection-screen event must be
    at selection-screen on value request parameter or selection option variable.
    BCALV_TEST_FULLSCREEN
    BCALV_TEST_FULLSCREEN_CALLS
    BCALV_TEST_FULLSCREEN_PRINT
    BCALV_TEST_FULLSCREEN_STATUS
    BCALV_TEST_GRID
    BCALV_TEST_GRID_DRAG_DROP
    BCALV_TEST_GRID_EDITABLE
    BCALV_TEST_GRID_EVENTS
    BCALV_TEST_GRID_INDEX
    BCALV_TEST_GRID_TOOLBAR
    BCALV_TEST_HIERSEQ_LIST
    BCALV_TEST_LIST
    BCALV_TEST_LIST_PRINT
    BCALV_TEST_LIST_STATUS
    BCALV_VERIFY_DTYPES_D0100_F01
    BCSMENUF01
    BDLCOF10
    BDLDVI10
    BDLTREDF

  • In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    I create a new index on column2, (INDEX_N3)
    and change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    This time INDEX_N3 will be used.
    but change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    and T1.COLUMN_004 = '1000'
    The explain plan will show full scan.
    Why?
    Thanks.

  • Assigning search help (F4 functionality ) for recipient field in IW32

    Hi,
    my requirement is to assign search help (F4 functionality) for recipient field in components tab of IW32. anybody help me to assign search help for it. same way i need to assign that in MIGO, MB21, MB1A goods recipient field.

    hi,
    refer to the following link:
    http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/
    i hope it helps
    regards

  • To implement search help for date and time fields details

    how can i implement search help for date and time fields in screen painter

    Hi
    Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
    Aditya

  • Enhancements:Search help addition to standard screen-field

    Hi Guys,
    I am trying to add search help to the standard screen field inco2 in transaction va02. for this I am trying to add inplicit enhancement point in include MV45AFZZ.
    I right click over the yellow line and create enhancement implementation in local object. the moment I choose my enhancemetn implementation and press enter, it gives me dump, Please nebody tell me where am I going worng, or Is my approach correct.....Please suggest.......
    thanks in advance

    Hi Anil,
    Can you please tell me how to approach for adding search help to standard screen field INCO2 in transaction VA02.

  • Restrict search help results on order types

    I need to restrict search help results on the account assignment category  for order type for the users when creating a SC. I have define fix values on the attributes PM_AUART & ANR & KNT (Order type, Order & Account assignment category) and maintained the related others PM attributes as well. But when I select the search help the system brings up all the Orders type and not the ones defined at the user attributes -  PM_AUART (Order type). Do I am missing something? How can I restrict the search help when searching for order types?
    Your support is highly appreciated.
    Thanks
    William

    Hi
    Please elaborate which SRM version you are currently on..
    Which Search help you are referring to and the name of the serach help which is being used ?
    Regards
    - Atul

  • Search help for Custom Item level field

    Hi All,
    I have two custom fields at Item level. Both of them has fixed values defined at domain. The fixed values have a short text also given with them.
    The problem I am facing is when SRM provides default search help for these custom fields, for first field the 'Value' and 'Description' comes in the search result screen, but for second, only 'Value' comes in the search result.
    When I try to debug, it shows the SHLPTYPE as 'SH' for first one and for the second as 'FV'.
    What does this indicate?
    My requirement is to display both value and description in the search result screen.
    Please suggest.
    Thanks
    Nandalal

    Hi
    Sorry for the delay. My User got locked for some time.
    I have seen the document you sent me on my email id.
    <b> I noticed in the case where the Search help is working fine, there is no space in between the contents of the Fixed values and their short text under the value range tab of the Domain element.
    But in the case, where there is a problem with the search help. There both the Fixed values and their short description is having a space in between the words.
    Try maintaining COND_A instead of "COND A". Also with the short description use "COND_A" instead of "COND A".</b>
    <u>I hope this will resolve the issue.</u>
    <b>Update me once you have any issues.</b>
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Search help is populating the input field with wrong data

    Hi Guys,
    I have created a ZCITY table for which has below 2 field
    ZZCITY (Code ) (5 Char) u2013 Key field
    ZZNAME (City Name ) (40 Character)
    I have added a custom field ZZCITY & ZZNAME in CI_CATSDB. Funtional guy has configured to make ZZNAME as  VISIBLE  and ZZCITY is HIDDEN on CAT2 screen in Data Entry area.
    I created search help on table ZCITY with export parameters as  ZZCITY and ZZNAME.
    In SE11, I have mapped the export parameters with CI_CATSDB
    Now in tcode CAT2, when I press F4 on City Name field, the list is displayed with City code and City names. And when I select any city code, the ZZNAME is populated by City code instead of City name.
    I want that City Name should be populated in ZZNAME and City Code should be populated in hidden field ZZCITY.
    Please tell me how I can fix this problem.
    Thanks in advance.
    mini

    Hi
    Try selecting the Improting Check box aswell. if a screen field is hidden or display mode we can not use F4 help for that field.
    you can also take the help of DYNP_READ_VALUES to get the selected value before PAI
    Check whats happening in Debug.
    Cheers
    Ram

  • Assign search help to tcode F-47 (field purchasing doc)

    Hi All,
    I've created an Elementary search helps  via SE11.
    Now I want to link the search help I've created with transaction down payment request screen F-47 , in the field purchasing document.
    Expected result, when I drill down  in the purchasing doc field, I can see my search help and use it to filter.
    Please guide me what should I do ?
    Thanks,
    -M-

    Solved by append search help in SE11.
    Search help = MEKK
    go to - append search help

  • Search help results of cost center

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

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

  • Want to add  more than 16 key fields in the DSO?

    Dear All,
    All the 16 Key fields are being used in my DSO,i want to add  two more key fields in the same DSO.
    Can any one provide the way how to go ahead
    Regards,
    Sarasu

    Hi,
    You can create a maximum of 16 key fields. If you have more key fields, you can merge (concatenate) fields into one key field using a routine.
    Hope it Helps...
    Regards,
    SVS

  • Import screen field value into search help assigned to a different field

    Hi,
    I have created an elementary search help based on a custom DDIC table ZSH_SHHLDR. Dialog Type: Dialog depends on set of values, search help parameters:
    Parameter                       Import     Export   LPos SPos  SDis
    FOLIO                                X                       1       1         X
    CERTN                                             X         2       2
    where FOLIO and CERTN are fields in my table.
    There are two fields in my program defined as like FOLIO and CERTN respectively. These fields are screen fields in a custom dynpro created using Screen Painter. The search help is assigned to the CERTN field. In the screen, I want that the contents of the FOLIO field should be imported into the search help, i.e. on the screen:
    FOLIO: 21353
    CERTN: <F4>
    When I click on F4 help for CERTN, I want that the FOLIO parameter in the search help should contain the value for FOLIO that I entered in the text box on the screen. Is there a way to do this, through an exit for instance? Help is appreciated, thanks.
    Regards

    Hi,
    You need to use the below statement.
    process on value-request.
    field zcom_doa_users-zzjob_role module sub_tes_module.
    Here I declared three fields in the screen fields from structure zcom_doa_users. Try to name the fields with table name-field name. So inside the module in structure zcom_doa_users you will get given value for the other fields also.
    Now you can do your own processing for f4 help.
    Thanks
    Subhankar

Maybe you are looking for