Attach search help to a selection screen field

Hi All,
I have a parameter p_kschl like nast-kschl in my selection screen.
My requirement is whenever sales org equals to '3' i need to set p_kschl
default ZE02 and make a picklist available with ZE02 and ZE04 available with the descriptions
How to make that picklist having ZE02 and ZE04 with descriptions.

Yes, then you will use a FM like [F4IF_INT_TABLE_VALUE_REQUEST|https://forums.sdn.sap.com/search.jspa?objID=c42&q=F4IF_INT_TABLE_VALUE_REQUEST]
But as this event is in the POV, data may have been changed to screen and not yet in the program, so you will need to use FM [DYNP_VALUES_READ|https://forums.sdn.sap.com/search.jspa?threadID=&q=DYNP_VALUES_READ&objID=c42&dateRange=last90days&numResults=15&rankBy=10001] to get current value of some fields on the screen (sales org.). (and [DYNP_VALUES_UPDATE|https://forums.sdn.sap.com/search.jspa?threadID=&q=DYNP_VALUES_UPDATE&objID=c42&dateRange=last90days&numResults=15&rankBy=10001] if you want to change the current value of another field on screen)
Regards,
Raymond

Similar Messages

  • 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

  • F4 Help for the selection screen field

    Hi Gurus,
    I have to display F4 help for a selection screen field. i am using following code:
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
                  retfield        = 'CODE'
                  dynpprog        = lw_repid
                  dynpnr          = sy-dynnr
                  VALUE_ORG       = 'S'
             TABLES
                  value_tab       = gi_text
                 field_tab       = li_fields_tab
                  return_tab      = pi_return_tab
             EXCEPTIONS
                  parameter_error = 1
                  no_values_found = 2
                  OTHERS          = 3.
    My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
    But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
    001    test
    001    test1
    but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
    Please help me out.
    Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.

    Sachin,
    I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
    REPORT zktest01 .
    DATA :
      BEGIN OF value_tab OCCURS 0,
        field  LIKE e070-trkorr,
        text   LIKE e07t-as4text,
      END OF value_tab.
    DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
          t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
          t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
    PARAMETERS : p_field  LIKE value_tab-field,
                 p_text   LIKE value_tab-text. "NO-DISPLAY.
    INITIALIZATION.
      t_fldtab-tabname   = 'VALUE_TAB'.
      t_fldtab-fieldname = 'FIELD'.
      t_fldtab-langu     = 'E'.
      t_fldtab-position  = 1.
      t_fldtab-offset    = 0.
      t_fldtab-fieldtext = 'Key'.
      t_fldtab-reptext   = 'Key'.
      t_fldtab-leng      = 20.
      t_fldtab-intlen    = 20.
      t_fldtab-outputlen = 20.
      t_fldtab-datatype  = 'CHAR'.
      t_fldtab-inttype   = 'C'.
      t_fldtab-headlen   = 20.
      t_fldtab-keyflag   = 'X'.
      t_fldtab-lowercase = ' '.
      APPEND t_fldtab.
      t_fldtab-tabname   = 'VALUE_TAB'.
      t_fldtab-fieldname = 'TEXT'.
      t_fldtab-position  = 2.
      t_fldtab-offset    = 20.
      t_fldtab-fieldtext = 'Text'.
      t_fldtab-reptext   = 'Text'.
      t_fldtab-leng      = 60.
      t_fldtab-intlen    = 60.
      t_fldtab-outputlen = 60.
      t_fldtab-headlen   = 60.
      t_fldtab-keyflag   = ' '.
      t_fldtab-lowercase = ' '.
      APPEND t_fldtab.
      value_tab-field = '101'.
      value_tab-text = 'dddd'.
      APPEND value_tab.
      value_tab-field = '202'.
      value_tab-text = 'aaaa'.
      APPEND value_tab.
      t_dynmap-fldname = 'FIELD'.
      t_dynmap-dyfldname = 'P_FIELD'.
      APPEND t_dynmap.
      t_dynmap-fldname = 'TEXT'.
      t_dynmap-dyfldname = 'P_TEXT'.
      APPEND t_dynmap.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'FIELD'
                dynpprog        = 'ZKTEST01'
                dynpnr          = '1000'
                dynprofield     = 'P_FIELD'
                value_org       = 'S'
           TABLES
                field_tab       = t_fldtab
                value_tab       = value_tab
                return_tab      = t_rettab
                dynpfld_mapping = t_dynmap
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc EQ 0.
      ENDIF.
    START-OF-SELECTION.
    Jeffrey Satriadi

  • How we can attach search help directly to the table field / structure field

    Hi All,
       Can you please let me know the step by step procedure of How we can attach search help directly to the table field / structure field.
    Regards,
    jaya

    Hi Jaya,
    1. Create a search help using SE11.
    2. Include this search help in the field of table in SE11. There is a tab in the table defination where you can specify the search help.
    Even you can specify search help at data element level, screen field level.
    Reward points if useul.
    Regards,
    Atish

  • Can we create serach help for a selection screen field

    Can we create serach help for a selection screen field with out creating searchhelp object.
    I mean is it possible to create serchelp in the program itself with some specific values i want to give.
    E.g say we can define any internal table and fill it with values and using that into selection screen fields
    Regards
    Mave

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.
      PERFORM PAYMENT_HELP.
    FORM PAYMENT_HELP.
      DATA: begin of DESCR_TAB occurs 0,
            DESCR LIKE BKPF-BKTXT,
            END OF DESCR_TAB.
      DATA: gd_repid like sy-repid.
      gd_repid = sy-repid.
      DESCR_TAB-DESCR = 'aaaaa'.
      append DESCR_TAB.
      DESCR_TAB-DESCR = 'bbbbb'.
      append DESCR_TAB.
      DESCR_TAB-DESCR = 'ccccc'.
      append DESCR_TAB.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'DESCR'
                DYNPPROG    = gd_repid
                DYNPNR      = '1000'
                DYNPROFIELD = 'paymeth'
                VALUE_ORG   = 'S'
                DISPLAY     = ' '
           TABLES
                value_tab   = DESCR_TAB.
    endform.
    Svetlin

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

  • Use search help to populate two screen fields

    I've done a search on this and see that plenty of people ask this question but none get answers, hopefully you'll be able to help me out.
    I have a selection screen with two fields:
    data: s_house LIKE t012k-hbkid,
            s_account LIKE t012k-bankn.
    I've created my own search help Z99FI_BANKN and attached it to field s_account.  The search help has two fields:
    BANKN - IMP, EXP
    HBKID - IMP, EXP
    If I click on F4 in field s_account and select an account, it populates s_account but not s_house.  Can someone tell me where I'm going wrong?  I'd like the one search help, when I select an account on field s_account to populate s_house too.
    Thanks,
    Gill

    Gill,
    Try the following.
    First of all in your top include define your structure:
    TABLES: Z99FI_T012K.
    Second, open your structure, select BANKN, select the tab Entry help/check
    and press the button Search Help. There you must match the fields from your structure with your search help parameters.
    In my case it was:
    ZLOAD_DESCR     ZZLOAD     ZLOAD_DESCR
    ZLOAD_ID                     ZZLOAD     ZLOAD_ID
    Also make sure that in your search help the field you are selecting on is checked as import and export and the field where the data must come along is checked as Export.
    Now open up the graphical screen painter, and put on your screen
    the fields from your structure. You can do this by opening the window Dictionnary / Program Fields window -> give in the name of your structure and press "Get from dictionary".
    Place your fields on your screen, activate it and try again.
    Thanks for your feedback on this.
    Reward points if helpfull.
    Best regards,
    Tom.

  • Error in search help button at selection-screen

    hi all,
    i have a small issue.
    i have created a seach help button in selection screen .
    my code is as bellow.
    TYPES: BEGIN OF ty_ZSD_SNID,
           KUNNR TYPE KUNNR,
           BAREA TYPE WERKS_D,
          END OF ty_ZSD_SNID.
    DATA : it_z TYPE STANDARD TABLE OF ty_ZSD_SNID.
    selection-screen : begin of block b with frame title text-000.
    select-options : skunnr for zsd_snid-kunnr.
    parameters :     pbarea like zsd_snid-barea obligatory.
    selection-screen : end of block b.
    INITIALIZATION.
      SELECT KUNNR BAREA FROM ZSD_SNID INTO TABLE it_z.
      SORT it_z BY BAREA KUNNR.
      DELETE ADJACENT DUPLICATES FROM it_z COMPARING BAREA KUNNR.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR SKUNNR-low.
      IF it_z[] IS NOT INITIAL.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
                 EXPORTING
              DDIC_STRUCTURE         = ' '
                   retfield               = 'KUNNR'  " data base table field name
              PVALKEY                = ' '
                  dynpprog               = sy-repid " program name
                  dynpnr                 = sy-dynnr          "screen name
                  dynprofield            = 'SKUNNR-LOW'  " layot field name
              STEPL                  = 0
              WINDOW_TITLE           =
              VALUE                  = ' '
                  value_org              = 'S'
              MULTIPLE_CHOICE        = ' '
              DISPLAY                = ' '
              CALLBACK_PROGRAM       = ' '
              CALLBACK_FORM          = ' '
              MARK_TAB               =
            IMPORTING
              USER_RESET             =
                 TABLES
                   value_tab              = it_z[]   " internal talble name
              FIELD_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.
      ELSE.
        MESSAGE E000(zsdsn).
      ENDIF.
    my issue is , its working properly if records are there in my z table.
    if no records are there in the table then if i do comment the last message statement then its working.
    if i do uncomment like the above code, then its dumming.
    what i should i do ??
    kind regards

    closed because of no answer.

  • How to assign F1 help to the selection screen fields

    Hi All,
    I have a requirement.I have to create a button named "HELP" at the side of Execute button in the selection screen.If I place my cursor in the selection screen field and I press that "HELP" button, I should get the Documentation help for that field.
    Please suggest me on this.
    Thanks in advance.
    Sreeharsha Singuru

    Hi sreeharsha,
    here a short example:
    TABLES: MARA.
    TABLES: SSCRFIELDS.
    TYPE-POOLS: ICON.
    DATA: CURSORFIELD(20).
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: SKIP 3.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: PUSHBUTTON (10) PB01 USER-COMMAND HELP.
    SELECTION-SCREEN: END   OF LINE.
    AT SELECTION-SCREEN.
      GET CURSOR FIELD CURSORFIELD.
      CASE SSCRFIELDS.
        WHEN 'HELP'.
          CASE CURSORFIELD.
            WHEN 'S_MATNR-LOW'.
              CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' "Make your own Text
                EXPORTING
                  TITEL        = 'Information'
                  TEXTLINE1    = 'Information for field:'
                  TEXTLINE2    = 'S_MATNR-LOW'
                  START_COLUMN = 10
                  START_ROW    = 15.
            WHEN 'S_MTART-LOW'.
              CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'  "Make your own Text
                EXPORTING
                  TITEL        = 'Information'
                  TEXTLINE1    = 'Information for field:'
                  TEXTLINE2    = 'S_MTART-LOW'
                  START_COLUMN = 10
                  START_ROW    = 15.
          ENDCASE.
      ENDCASE.
    INITIALIZATION.
      CONCATENATE ICON_INFORMATION 'Help' INTO PB01.
    START-OF-SELECTION.
      SELECT * FROM MARA WHERE MATNR IN S_MATNR.
        WRITE: / MARA-MATNR.
      ENDSELECT.
    Hope it helps.
    Regards, Dieter

  • Attaching a search help to a selection screen "Select-options"

    Hello ABAPers,
    I have  a requirement to attach a search help to "select-options" .
    When I checked the table corresponding to the field of select-options,I found that there is no search help assigned for that field.
    I have tried using AT Selection-screenON VALUE-REQUEST and Matchcode Object .
    However, Matchcode Object requests for standard search help name.
    On value-request assign shelp only for the lower linit,but on pressing F4, gives no values found.
    Tried using  the FM F4IF_INT_TABLE_VALUE_REQUEST also. But this is for the POV event.
    Could anyone please suggest a solution for this problem?

    Hi,
       As you are using this Z search help in select options there is no way of interfering with standard SAP table.
    You can declare it as:
    Select-options QNAME for TQRFCOUT-QNAME matchcode object <Z search help name>.

  • F4 search help on report selection screen

    Hi to all
    I am developing a report.
    There are four fields on selection screen.
    ncode
    ccode
    mcode
    mj_code
    On these fields i want search help.
    When I press f4  all possible values should display.
    Then in second field, when I press F4 , only the values corresponding to that previous selection should display.
    same for remaining two fields also.
    Please tell me which function module to use at selection screen and how to select corresponding values only.
    Please guide me.
    Regards
    Anubhav

    Hi Anubhav Gupta,
    Try like this code you will definetly get your answer
    Parameters: carrid type spfli-carrid,
                P_connid(3).
    DATA: BEGIN OF values,
             carrid type spfli-carrid,
             connid type spfli-connid,
           END OF values.
    data: dinpro_values type table of dynpread,
          value_tab     like table of values,
          field_value   like line of dinpro_values.
    at selection-screen on value-request for P_connid.
      field_value-fieldname = 'CARRID'.
      APPEND field_value TO dinpro_values.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = sy-repid
                dynumb             = sy-dynnr
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dinpro_values.
      READ TABLE dinpro_values INDEX 1 INTO field_value.
      values-carrid = FIELD_VALUE-FIELDVALUE.
      SELECT  CARRID
              connid
        FROM  sflight
        INTO  TABLE VALUE_TAB
       where  carrid eq FIELD_VALUE-FIELDVALUE.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'CONNID'
                dynpprog    = SY-REPID
                dynpnr      = SY-DYNNR
                dynprofield = 'P_CONNID'
                value_org   = 'S'
           TABLES
                value_tab   = value_tab.
    Reward if it is useful only,
    Mahi.

  • How to limit the search help in the selection screen?

    Hi All,
    I got a selection option in a selection screen,
    say SELECT-OPTIONS KSCHL FOR VAKE-KSCHL.
    I want to limit the output list of the search help of this field, e.g. 33 entries for a specific application and usage.
    What should I do ?
    Thz.

    Hi,
    U can check with these two
    <b>... NO-EXTENSION</b>
    Effect
    The user can only make an entry on one line. Calling the additional "Multiple Selection" screen is not supported and no pushbutton for this appears on the selection screen.
    Addition 12
    <b>... NO INTERVALS</b>
    Effect
    The selection option is displayed on the selection screen without a 'to' field. The pushbutton for calling the "Multiple Selection" screen appears immediately after the 'from' field.
    This addition thus allows you to generate a simplified display on the selection screen. This is particularly useful if you are not making any range selections for this selection option.
    Notes
    On the "Multiple Selection" screen, you can also enter ranges for selection options with "NO INTERVALS".
    By combining this addition with "NO-EXTENSION", you can restrict the user to entry of a single value for the selection option, but with the possibility of also choosing single value options like 'Greater than' or 'Less than or equal'.
    By using the addition " NO INTERVALS" with SELECTION-SCREEN BEGIN OF BLOCK, you can activate the simplified display for all selection options in a block.
    The function module SELECT_OPTIONS_RESTRICT allows you to restrict the set of selection options available for a SELECT-OPTION (for example, only single values and patterns, i.e. 'EQ' and 'CP' are allowed). You can also forbid the leading sign 'E' (= 'Exclude from selection'). This means that you can considerably restrict the selections which can be entered on the selection screen.
    Just now tried it out to limit the search help u have to use NO-EXTENSION.
    <b>Try this simple code.
    Tables: mara.
    SELECT-OPTIONS: s_matnr FOR MARA-matnr NO-EXTENSION.</b>
    Hope this helps.
    Kindly reward points and close the thraed if ur problem got solved.
    U havent rewarded any points?
    Message was edited by: Judith Jessie Selvi

  • Input help for a selection screen field

    I have a selection screen with field species and checkoff activity .
    For a given species('sc','sb' or 'ss') , the input values allowed for the
    check off activity must be 'SCCK' for species 'SC' ,'SBCK' for species 'SB' and so on.
    I need to provide input help for check off activity based on the value of the species.How do i do that?

    PARAMETER : p_val(10) TYPE c ,
                p_val2(10) TYPE c.
    AT SELECTION-SCREEN on p_val.
      IF p_val = 'SC'.
        p_val2 = 'SCCK'.
      ENDIF.

  • F4 help for the selection screen field designed in screen painter

    Hi all,
    I have designed selection screen in the screen painter. in that for one of the fields i have to give f4 help. for that i have writter the code in PAI event. in this event i have used the standard Function module for f4 help. but no f4 help is comming for that field. can any body suggest what i have to do.
    Thanks & Regards,
    Giri.

    Hi,
    You must use the correct event to meet ur requirement use  POV event instead of  PAI event.
    for more clarification and example program see  below the demo program
    DEMO_DYNPRO_F4_HELP_DYNPRO
    DEMO_DYNPRO_F4_HELP_MODULE
    Cheers
    fareed

  • Adding search help (F4) for a screen field in standard screen of VA02

    Dear Gurus,
    I need to add a Search Help (F4) to a Standard Screen Field VBAK-VSNMR_V in the standard Screen of VA01/Va02.....Can anyone please guide me how it can be done.
    Regards
    Sajid
    Edited by: shaik sajid on Feb 2, 2009 8:38 AM

    Hi shaik,
    Refer to the following useful link:
    Search help enhancement in VA01
    Hope this will help you...

Maybe you are looking for