How to add a search help on a screen field from screen painter

Hi,
I would like to add an existing Search Help on a screen field in Screen painter.
Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
Do you have an idea on how to do so?
Regards,
Morgan

Dropdown Box:
In the screen painter for that field goto properties -> Dropdown ->select listbox.
Option 1:
Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
  CHAIN.
    FIELD addr1_data-country.
    MODULE modify_screenfields1.
  ENDCHAIN.
MODULE modify_screenfields1 INPUT.
  CASE sy-ucomm.
    WHEN 'ENTER' OR 'EXECUTE'.
      IF NOT addr1_data-country IS INITIAL.
        SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                      land1 = addr1_data-country
                                  AND spras = 'EN'.
        IF sy-subrc <> 0.
          MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
        ELSE.
          t005t-landx = lws_landx.
        ENDIF.
      ELSE.
        CLEAR: t005t-landx.
      ENDIF.
   ENDCASE.
ENDMODULE.                 " modify_screenfields1  INPUT
Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
In the PROCESS ON VALUE-REQUEST.
  FIELD addr1_data-region MODULE region_pov.
MODULE region_pov INPUT.
Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
also make that field input enabled.
ENDMODULE.                 " region_pov  INPUT
I think this will solve ur problem.
Regards,
Prakash.
Message was edited by: Prakash Ramu

Similar Messages

  • How to add a search help for a field in Screen Personas?

       I just started learning to use a Screen Personas, and I want to know how to add a search help for a field.
       I found a property in the help document named "IsLookupSupported". Is it the key?  But I saw it was gray in the field I created, and its value is "false". I could not change it.

    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

  • How to add a search help to a field  Bank Type in Transaction FK02

    Dear All,
         How to add a search help to a field  Bank Type in Transaction FK02.
         Is there any possibilty of using  exit or searc help or domain to solve this problem.
            Thanks in Advance..
    Thanks,
    Lakhsmi.

    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

  • How to add new Search Help in VD02

    Hi All,
    I have created Database view and Elementary Search Help and i want to add the search help to Cutomer in VD02, So can any one please tell me how i can do it .....
    Regards,
    Sudhakar Reddy.A

    Hi All,
    If i select any Customer from this search help the selected customer should get display on the field...
    EX:
    IF i select Customer : 100 in VD01
    It Should get display in the field Customer in VD01.
    Can any one can help in this....... As i am using HOT KEY as 'Z' in Elementary Search Help.
    Regards,
    Sudhakar Reddy.A

  • How to add a search help for a field in alv?

    HI!Everyone ,
    i want to add a search help created by myself for one field in alv,
    and i want to use this function "HELP_VALUES_GET_WITH_TABLE".
    can anyone help me ?
    thanks!

    HI,Vijay.
    My code like this :
          PERFORM build_fcat.
          PERFORM build_objects.
          PERFORM layo_build.
          PERFORM set_drdn_table .
          CALL METHOD alv_grid->set_table_for_first_display
            EXPORTING
             i_structure_name = 'STU_S'
              is_layout        = s_layo
            CHANGING
              it_outtab        = itab_out
            it_fieldcatalog  = i_fcat
            ."Period
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
    for example, there is a field 'UNAME' IN Structure 'STU_S',
    i want to add a search help for 'UNAME'.
    the 'UNAME'  is not users in SAP R/3 , i want to add some data by myself or from a table .

  • How to add the search help in Screen programming "F4" help

    i add the input field
    se51 --> layout and now want to add the search help with these field,
    please help me... in this way.

    Looks like u r a novice in Mp programming.
    Please look at some demo programs in SAP which can teach u the basics of Module Pool programming . Use Demo* in se38 and search first in sap and then in some other sites.
    The above thing can be done in Process on value request .
    Br, vijay.

  • How to do a Search help on SAP structure field listing custom table data?

    i have a SAP screen (Trans KE52) that they want to have a drop down (search help on).
    The drop down should list values from a custom table.
    How do you do this?
    The values to be displayed are NOT from a structure table but from a transparent table.  i believe I will need a search FM to do this but not sure how it is to be done.
    Any one have ideas?
    Thanks!
    Scott

    Hi Scott,
    You need to go to SE11 and look for a searh help that match your requirment or build one.
    In case you are going to develop one, in the definition tab of the search help look for the selection method and put in the input field the name of your transparent table.
    After that you must specify the fields that you need to appear at the list and the one that is going to be selected for your field. This step you have to do it on the search help parameter grid.
    Regards,
    Eric
    PD. Reward points if this was helpful

  • How to restrict the search help given to a field for a specific program ??

    Hi,
    I have one search help which is attached to a field.
    This seach help is using a Z table and showing values perfectly for one program where I attached earlier.
    The same fields and Z table I am using is some other related program where user wants to see the restricted values only.
    I am not getting, how a search help can be restricted.
    I try to take a example of it.
    If in first program the search help values are:
    Material           Level
    Orange              1
    Mango               2
    Grapes              3
    Now in the second program user wants to see only levels not the material. I Have given only two colums for understanding purposes not all .
    Please suggest what are the possible ways we can do it.
    Thanks right now.
    -=Maddu=-

    Hi,
    Use this event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cc.
      PERFORM company_code CHANGING p_cc.
    FORM company_code CHANGING p_cc.
      DATA: dynpfld_mapping LIKE dselc OCCURS 0 WITH HEADER LINE.
      REFRESH gt_bukrs.
      SELECT * FROM t001
      INTO CORRESPONDING FIELDS OF TABLE gt_bukrs.
      LOOP AT gt_bukrs.
    **ST AS ON 08.09.2006
        AUTHORITY-CHECK OBJECT 'ZREP_TMF'
              ID 'BUKRS' FIELD gt_bukrs-bukrs
              ID 'VKORG' FIELD gt_bukrs-bukrs
              ID 'VKBUR' DUMMY
              ID 'SPART' DUMMY
              ID 'VTWEG' DUMMY.
       AUTHORITY-CHECK OBJECT 'ZREM_ORG'
             ID 'VKORG' FIELD gt_bukrs-bukrs
             ID 'VKBUR' DUMMY
             ID 'SPART' DUMMY
             ID 'VTWEG' DUMMY.
    **ST AS ON 08.09.2006
        IF sy-subrc NE 0.
          DELETE gt_bukrs.
        ENDIF.
      ENDLOOP.
      dynpfld_mapping-fldname   = 'BUKRS'.
      dynpfld_mapping-dyfldname = 'BUKRS'.
      APPEND dynpfld_mapping.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = 'ZREM_AGENCY_REPORT'
          dynpnr          = '1000'
          dynprofield     = 'COMPANY'
          value_org       = 'S'
        TABLES
          value_tab       = gt_bukrs
          return_tab      = return_tab
          dynpfld_mapping = dynpfld_mapping.
    ENDFORM.                    " sale_org
    Reward points

  • How to add into dynamic selection criteria (FBL1N) - custom field from LFB1

    Hello all,
    i have following problem. I added new customer field into table LFB1 (Z* field). And now i need to use this field as dynamic selection criteria in transaction FBL1N. I enhanced selection view for logical database KDF - i have created new customer view and I added my new field from LFB1. It is OK, i see this field in dynamic selection criteria in FBL1N but if i try to select according that Z* field, short dump occured.  
    open cursor with hold LC_KRED for select (VF_KRED_FIELDS)
            from <b>VF_KRED</b>
              where LIFNR in KD_LIFNR
              and   BUKRS in KD_BUKRS
              and   LAND1 in KD_LAND1
              and   KONZS in KD_KONZS
              and   VBUND in KD_VBUND
              and   AKONT in KD_AKONT
              and   BUSAB in KD_BUSAB
              and (VF_KRED_WHERE)
    Problem is in VF_KRED - this is database view (LFA1 joins LFB1). This view has no Z* fields and therefore it cannot be use in statement above -> dump.
    Is needed repature of standard - enhancement of view VF_KRED?
    Thank you very much.

    Hi guys,
    thanks so far. I managed to show prompts in the report. But still my problem is nor 100% solved
    I would like t achieve that the filtered criteria in the report title is separated through a comma like in the report filter summary - e.g.: {001, 002, 003, 004} followed by just 1chart/table that is including the whole information.
    When I however just drag a variable into the report it automatically created different sections, right? Like ........ table, chart, whatever... .......table chart whatever........
    Regards

  • Custom Search Help for Business Agreement field in transaction BP.

    Dear Experts,
    My requirement is to add Custom search help to Businees Agreement field (BUPA_CRMM31-BUAG_ID) in transaction code BP.
    PLease guide me how to add Custom search help to Businees Agreement field which dont have search help option.
    Regards,
    Bala

    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.

  • How to create an  search help for standard Screen

    Hi,
    Can any one help me out ... How to create a search help for standard screen field.......
    thanks & regards,
    Naveen...

    Hi Naveen.
    I would like to suggest a couple of references,
    [SDN - Standard Reference for create a search help for own fields in selection screen |How to create a search help for my own fields in selection screen;
    [SDN - Standard Reference for Attaching search help to standard screen|Attach search help to standard screen;
    [SDN - Reference for want to add a field in standard search help screen|want to add a field in standard search help screen;
    [SDN - Reference for Attaching a search help to a standard screen - Case 2 |attaching a search help to a standard screen;
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • How to assign a search help

    Hi
      How to assign a search help for the particular field
    in any screen.
    By
    Prashanth

    Hi,
    **How to assign a search help for the particular field
    in any screen.
    -  insert the event PROCESS ON-VALUE-REQUEST in the program and add a field statement for the field that should trigger the F4 help. In the mdoule called from <b>PROCESS ON-VALUE-REQUEST</b>, call function module
    F4IF_FIELD_VALUE_REQUEST.
    <b>Samples code:</b>
    PROCESS ON VALUE-REQUEST.
    FIELD it_zsd00003-prctr MODULE f4_help_for_pctr.
    MODULE f4_help_for_pctr INPUT.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname = 'ZSD00003'
    fieldname = 'PRCTR'
    SEARCHHELP = ' '
    SHLPPARAM = ' '
    dynpprog = 'ZSD00002_BRUGERKONV_LISTE'
    dynpnr = '0100'
    dynprofield = 'IT_ZSD00003-PRCTR'
    STEPL = 0
    value = '50*'
    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
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    There is <b>on more example with code</b> , just copy and paste the code and design the screen and you will be able to find ur search help.
    Find the code:
    Re: Creating customized search helps in Dialog Programming
    Hope this will help you.
    Cheers
    Sunny
    Rewrd points, if found helpful

  • How to attach search help in a particular field in se80 screen

    Hi All,
    Can any one tell me how to attach a search help in a particular field in a screen.
    Wat search help is used to display material no and description
    Thanks in Advance
    Regards,
    Priya

    Hi Priya,
    In the Screen Layout, Double click on the field on which you wish to attach the search help.
    In the properties window you can specify the search help for that field.
    Search help for Material No. is MAT1.
    You can find it in the Table structure (SE11) , "Entry help/check" tab.
    Regards,
    Himanshu

  • Adding search help to standard SAP field

    Hi Experts,
    I need to add search help to field ZUONR i.e assignment field in various tcode like fb70,fb60,f-02.etc which will select data from
    Z tables . I have found out serach help exit F4IF_SHLP_EXIT_EXAMPLE but as per my knowledge that is to change existing standard search help.But to field ZUONR there is no search help attached.How can new Z search help be added to field ZUONR without use of access key.
    Please suggest.
    Regards,
    Kaustubh Kabre.

    Hi,
    I don't know how to change "Value table" field on domain without access key, but if nothing else work, you can add new fixed values. From menu Goto->fixed value append.
    Other possibility is to use GuiXT -> write script that will call your FM that will get data from your table and show them.
    Best regards
    Marcin Cholewczuk

  • How to add the custom help exit to search help in SE11

    Hi All,
    I am trying to add the ZF4IF_SHLP_EXIT_EXAMPLE to search help exit in SE11 for search help LART . But system is asking for the access key.
    Is there any way we can achieve this with out using access key?
    Please suggest me.
    Regards
    Subhaskar

    Hi,
         To add a Search help exit goto SE11 -> in Search help option enter 'LART' -> click on display.
    once you have entered in you will have to click on change button. This will give on information message first, then it will ask if you have to maintain in the original language itself(only if you have logged in with any language other than DE). You can select your option in that then you will be able to view the same in EDIT mode. now you can go ahead and add your search help exit.
    Hope it helps.
    Thanks & Regards,
    Praveenkumar T.

Maybe you are looking for