Can AUTHORITY_CHECK effect in search help result list

For example ,authorizaiton objid a value 1,2,the user only have authorization a = 1,but in F4 for search help ,the user can see value 1 and 2 for a .Can i do someting to make the user only can see value 1 for a?
i have an idea using search_help_exit and authority_check,is there any other way to do this ?

Hi,
I need to perform authority check on the field NAME1 present in the standard screen - customer master ( T.Code-XD02). Only certain users should be allowed to edit the field and others should be restricted.
I have created a field exit FIELD_EXIT_AD_NAME1 for the ADRC-NAME1 field.
Now inside this field exit i need to write the authority-check code.
I have created the authorisation object Z_KNA1_NAM for the field NAME1 using the SU20 and SU21.
For this scenario how do i write the authority-check code in my field exit?
Below is my field exit code,is that correct?
FUNCTION FIELD_EXIT_AD_NAME1.
""Local Interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
AUTHORITY-CHECK OBJECT 'Z_KNA1_NAM'
ID 'NAME1' FIELD SY-UNAME
ID 'ACTVT' FIELD '03'.
IF SY-SUBRC = 0.
MESSAGE 'Not Allowed to Edit the Name 1 Field' TYPE 'E'.
ENDIF.
ENDFUNCTION.
In the above code i have given SY-UNAME in the code line 2 - ID 'NAME1' FIELD SY-UNAME ,is that correct? what should i give there?
Please help me on this issue.
Cheers,
P.S.Chitra

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

  • 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 Hit List Max 5000

    Hi gurus,
        How i can display search help hit list more than 5000 because the system display max. 5000 only
    regards,
    Next.

    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

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

  • HELP_START: how can i do a search help F4 same as field Group PLNNR in CA02

    Hi all,
       I'm developing a report in which i use two field Group (PLNNR) and Group counter (PLNAL) as same as in CA02: choose a group by F4 and after these two fields are filled with the chosen values in help screen.
       My problem: i would like to do a search help for field Group (PLNNR) as same as in CA02. I have used the Function HELP_START for this purpose, but i can not reach my purpose: i choose a group in dialog help and after the field Group have the chosen value, but the field Group counter (PLNAL) don't have any value.
       I don't know which input values for structure HELP_INFOS will be get a result as same as in CA02?
       Anyone know how i should do to solve my problem, please help me?
      Which input is incorrect (code below), please help me!
    Thanks a lot in advance,
    My Actual input for structure HELP_INFOS as below:
    ls_help-call      = 'V'.
      ls_help-tabname   = 'RC271'.
      ls_help-fieldname = 'PLNNR'.
      ls_help-spras     = sy-langu.
      ls_help-docuid    = 'FE'.
      ls_help-object    = 'F'.
      ls_help-dynpprog  = sy-repid.
      ls_help-report    = sy-repid.
      ls_help-dynpro    = sy-dynnr.
      ls_help-pfkey     = 'NXD'.
      ls_help-dynprofld = 'P_PLNNR'. (My fiel 'Group' in Selection screen)
      ls_help-MENUFUNCT = 'HC'.
      ls_help-fieldlng = '8'.
      ls_help-pov = 'N'.
      ls_help-curow = sy-cucol.
      ls_help-cucol = sy-curow.
      ls_help-selectart = 'A'.
    CALL FUNCTION 'HELP_START'
           EXPORTING
                help_infos   = ls_help
           IMPORTING
                select_value = lv_select_value
           TABLES
                dynpselect   = wt_dselc
                dynpvaluetab = wt_dval.
    Thanks,
    Vinh Vo

    Why do it in more complicated way, while the simplest method is available. You can use :
    PARAMETERS: p_plnnr LIKE rc271-plnnr.
    PARAMETERS: p_plnal LIKE rc271-plnal.
    Give it a try.
    Thanks & regards,
    Hadiman

  • How to get search help results in RIGHT-JUSTIFIED column

    I am writing a search help with search help exit. Therefore, I use a table lets say tabA. I don't need all fields of tabA but need some further fields which I fill during exit.
    tabA does not have currency or number fields.
    I need a currency field and use a char20 field of tabA instead. filling of this field and showing results is o.k., but of-course it is shown left-justified.
    I did not find any fields of shlp-fielddescr which sounds like left/centered/right-alignment. Another try was to fill char20 field with leading '_' signs - that looked terrible and was not right-justified either, because of not fixed-size font.
    Let's resume: there is no number or currency field which I can use. The shown results appear in a column of not fixed-size font.
    Any other idea?

    Hi, I have the same problem. Did you get to resolve it? . Thanks

  • Matchcodes/Search Helps/Personal Lists

    I want to limit the list of values in the Unit of Measure field (MEINS in table MEREQ3211GRID) a user sees when the are Creating a Purchase requisition (ME51N).  I know how to do with with a personal list but I don't want to have every user have to create their own personal llist.  I would like to have a default for all users. 
    I have hear about matchcodes and done some searching but I don't seem to find anything about how to actually create one and how to assign it to all users. My searching also indicated matchcodes have been replaced with searchhellps which has added to my confusion.
    Help.  Thanks.

    Hi Kathryn,
    it was match codes in the good old times, now called search help since decades or do.
    If you can identify which search help is called (check the logic for[ Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]), you can create a [search help exit|http://help.sap.com/saphelp_47x200/helpdata/EN/cf/21ee52446011d189700000e8322d00/frameset.htm].
    Not done in ten minutes, but pretty good documentation available with function module F4IF_SHLP_EXIT_EXAMPLE.
    Regards
    Clemens

  • Issue in CATS search help Hit List

    Hi All,
    At the moment we are facing an issue in CATS .
    We have added customer fields in the CATS data entry area by implementing CAT0005 and CAT0002 enhancements.
    One of customer filed we have created Search Help by using SE11 in that search help we have given default values in one of field and due to that on CAT2 transaction in the customer filed showing search help and that search help giving 2 records as hit list ( due to defaulting value in SE11 ).
    Now when user clicking on Record working time service in that when customer click upon custom filed search help its giving 30 records as hit list u2026( here the search help should give 2 records hit list )
    Any idea

    note that search help of CAT2 and record working time are different!
    these are teh steps
    please modify the following in the table TCATS_SHLP_ITS as follows:
              1. Execute the T-Code SM31
              2. Enter the table name TCATS_SHLP_ITS.
    or check the class
    CL_XSS_CAT_VALUE_HELP_GENERAL
    or check
    CL_XSS_CAT_VALUE_HELP*
    take an example from Sap note 914125

  • Sorry - Could you please help me how can I achieve this Search help ?

    I am creating search help for the profit_center field,
    For the search help :
    The scenario is I have three Z-tables.
    Example: The Data in tables are as shown below ( where F1, F2 are the fields ).
    Ztable1
    F1
    A
    B
    C
    D
    Ztable2
    F1 F2
    A 1
    A 2
    B 112
    B 113
    C 34
    D 43
    D 55
    D 87
    Ztable3
    PRCTR F1 F2
    123 A 1
    124 A 2
    123 B 112
    124 B 113
    125 C 34
    123 D 43
    124 D 43
    125 D 43
    I need to create search help (Search Help is similar to Collective Search Help) for the field PRCTR of table Ztable3 like as below.
    By pressing F4 on the field, a pop up should appear which should contains text labels& text fields on TAB-Screen ( A, B, C , D as shown below as text lables )against which text fields should appear.
    TAB-Screen :
    A ____________
    B ____________
    C ____________
    D ____________
    If F4 is pressed on I/O field (text fields) against A in the above TAB-Screen, Corresponding values ztable2-F2 of A from ztable2 ( = 1, 2 ) should appear as F4 help.
    so that user can select ...
    Is it possible to acieve this ? It would be a great help ....How can I achieve this ?
    Finally based on above user selections say
    A ____________
    B ____________
    C ____________
    D ____________
    corresponding prctr values should be collected.

    <b>You can acheive   this .... first by creating the search help exit    ... by  creating the maintaince  view   then   using it in the   Creation of the search help </b> ...
    see the link for attaching the view   to the serach help .
    <a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm</a>
    reward  points if it is usefull...
    Girish

  • Search help result

    Hi there.
    There is a F4IF_INT_TABLE_VALUE_REQUEST FModule but it returns only 1 field from search-help line chosen
    Could You tell me how can I get the whole line ?

    Hi,
    This is how the FM works.
    data:
        begin of t_values occurs 2,
          value like kna1-begru,
        end of t_values,
        t_return like ddshretval occurs 0 with header line.
      t_values = 'PAR*'.
      append t_values.
      t_values = 'UGG'.
      append t_values.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield        = 'BEGRU'
                value_org       = 'S'
           tables
                value_tab       = t_values
                return_tab      = t_return
           exceptions
                parameter_error = 1
                no_values_found = 2
                others          = 3.
      if sy-subrc = 0.
        read table t_return index 1.
        o_begru-low = t_return-fieldval.
        if o_begru-low = 'PAR*'.
          o_begru-option = 'CP'.
        else.
          o_begru-option = 'EQ'.
        endif.
        o_begru-sign = 'I'.
        append o_begru to s_begru.
      else.
        o_begru = i_begru.
      endif.
    Regards,
    ramya

  • I now have 3 books I have published on the iTunes store.  How can I send the search page results showing the 3 books to my friends?  Since it's within iTunes, there is no url to copy and send.  Any suggestions would be appreciated.

    How can I refer others to the search page in the iTunes bookstore that shows my books?

    Tom:
    First, thanks so much for responding!  After clicking around the iTunes affiliate program, I finannly found a few links that showed me how to get the url for the search results, so I'm all set.
    Thanks again for the response.
    My 3 kids books are at: http://ax.search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?media=books& restrict=false&submit=media&term=ellie+the+elephant
    Now at least I can put together my marketing campaign.
    Ron

  • How to Increase width of heading in search help list?

    Hi..all..
    I have created a search help exit with 7 fields in the output list.
    When I view the search help in the webdynpro screen, iam
    not able to view the result fully.,ie. the results are crumbled. the headings and data
    are not displayed fully.
    For eg:
    For DIVISION(Field - SPART) it displays heading as 'DI'.
    But, I have maintained 'Short,long and medium text  as DIVISION.
    The output list, tries to accomodate all the 7 fields, so as result, datas as well as
    headings are crumbled together. I am not able to drag the headings, as we do in normal R/3.
    This problem does not come, when we try to display limited fields in list output. say, if
    I display 3 to 4 fields, it displays full data with headings properly.
    So How can i increase the heading length,.
    Is there any lenth restriction for field display in F4 help result list?
    Need your valuable inputs.
    regards,
    Padma

    SPART field refers to actual division value in SAP r/3. For ex: in a sales area my division is '00' which is of two characters. Try changing your Actual value to some character type and see.

  • 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

Maybe you are looking for

  • Why can I not sign in?

    Downloaded elements 13 as a quick and easy way to edit my holiday snaps before I leave for military training on Monday.  Successfully installed on computer but asks for sign in in order to use.  Repeatedly coming up with error mesage insisting that I

  • Keeping a batch inut session

    Hi ABAPers, I am trying to use Direct input method for Customer master upload. how will we keep the session after we processed it. the session data structure fields are not showing up in the field mapping. could any body help on this please Thanks in

  • New update does not work.

    hi guys, i have a iphone 4,and i like to upgrade to 4.3.1. everytime i download the new update from itunes, once the download finishes it says "There was a problem downloading the software for the iphone "my iphone name". The network connection timed

  • Serius audio sync problems

    After my update to CC 2014 8.1 i've experienced big problem with Video audio sync both with directly imported media via media manager and with Conform media fra Ex. AVCHD/mp4 to Prores. the clips starts fine and suddenly they shift audio somewhere be

  • Urgent ADF

    English Please I have this problem I need to put information in a uix page based in a search page, I mean, when I select a record and push the accept button, all the information about that record may be updated on de opener page. Spanish Por favor, t