Maintaining F4 help in Secondrylist

Hi,
        Can anyone please tell me how to maintain F4 help in Secondary list
        using Object Oriented Programming ?
        Regards,
        Madhu latha.

hi
  here is a sample program for u .
<b>Global data definitions for ALV.......................................
DATA : alvgrid TYPE REF TO cl_gui_alv_grid,
       custom_container TYPE REF TO cl_gui_custom_container,
       fieldcatalog TYPE lvc_t_fcat.
table to contain fields that require f4...............................
DATA : lt_f4 TYPE lvc_t_f4 WITH HEADER LINE.
ok_code declaration...................................................
DATA : ok_code TYPE sy-ucomm.
Tables declaration....................................................
TABLES : zemployee_c7.
Types declaration.....................................................
TYPES : BEGIN OF ty_emp,
  empid LIKE zemployee_c7-empid,
  empname LIKE zemployee_c7-empname,
END OF ty_emp.
Internal table declaration............................................
DATA : i_emp TYPE TABLE OF ty_emp.
Workarea declaration..................................................
DATA : wa_emp TYPE ty_emp.
Selection screen parameters...........................................
SELECT-OPTIONS : s_empid FOR zemployee_c7-empid.
      CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
  PUBLIC SECTION.
    METHODS :
             handle_on_f1 FOR EVENT onf1 OF cl_gui_alv_grid
                          IMPORTING e_fieldname es_row_no er_event_data,
             handle_on_f4 for event onf4 of cl_gui_alv_grid
                          importing e_fieldname es_row_no er_event_data
ENDCLASS.
      CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
  METHOD handle_on_f1.
custom f1 help for empid field.......................................
    IF e_fieldname = 'EMPID'.
      CALL SCREEN 3001.
    ENDIF.
to prevent processing of standard f1 help............................
    er_event_data->m_event_handled = 'X'.
  ENDMETHOD.
  Method handle_on_f4.
standard f4 help will be invoked......................................
  endmethod.
ENDCLASS.
start of selection....................................................
START-OF-SELECTION.
  SELECT empid empname FROM zemployee_c7
                       INTO CORRESPONDING FIELDS OF TABLE i_emp
                       WHERE empid IN s_empid.
  CALL SCREEN 3000.
*&      Module  STATUS_3000  OUTPUT
      text
MODULE status_3000 OUTPUT.
  SET PF-STATUS 'ZTOOL'.
  SET TITLEBAR 'ZTITLE'.
  IF alvgrid IS INITIAL.
    CREATE OBJECT custom_container
      EXPORTING
        container_name = 'ZCONTAINER'.
    CREATE OBJECT alvgrid
      EXPORTING
        i_parent = custom_container.
    PERFORM prepare_f4.
    CALL METHOD alvgrid->register_f4_for_fields
      EXPORTING
        it_f4  = lt_f4[]
creating instance for event handler..................................
    DATA : event_handler TYPE REF TO lcl_event_handler.
    CREATE OBJECT event_handler.
    SET HANDLER event_handler->handle_on_f1 FOR alvgrid.
    SET HANDLER event_handler->handle_on_f4 FOR alvgrid.
preparing field catalog..............................................
    PERFORM prepare_fieldcatalog CHANGING fieldcatalog.
    CALL METHOD alvgrid->set_table_for_first_display
     EXPORTING
       I_BYPASSING_BUFFER            =
       I_BUFFER_ACTIVE               =
       I_CONSISTENCY_CHECK           =
       I_STRUCTURE_NAME              =
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
       IT_TOOLBAR_EXCLUDING          =
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
      CHANGING
         it_outtab                     = i_emp
         it_fieldcatalog               = fieldcatalog
       IT_SORT                       =
       IT_FILTER                     =
     EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
    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.
ENDMODULE.                 " STATUS_3000  OUTPUT
preparing field catalog...............................................
FORM prepare_fieldcatalog CHANGING i_fieldcatalog TYPE lvc_t_fcat.
  DATA : ls_fcat TYPE lvc_s_fcat.
  ls_fcat-fieldname = 'EMPID'.
  ls_fcat-ref_table = 'ZEMPLOYEE_C7'.
  ls_fcat-coltext = 'EMPLOYEE ID'.
  APPEND ls_fcat TO i_fieldcatalog.
  CLEAR ls_fcat.
  ls_fcat-fieldname = 'EMPNAME'.
  ls_fcat-ref_table = 'ZEMPLOYEE_C7'.
  ls_fcat-coltext = 'EMPLOYEE NAME'.
  APPEND ls_fcat TO i_fieldcatalog.
ENDFORM.
*&      Module  USER_COMMAND_3000  INPUT
      text
MODULE user_command_3000 INPUT.
  CASE ok_code.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_3000  INPUT
*&      Module  USER_COMMAND_3001  INPUT
      text
MODULE user_command_3001 INPUT.
  CASE ok_code.
    WHEN 'SAVE'.
      LEAVE TO SCREEN 0.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_3001  INPUT
*&      Module  STATUS_3001  OUTPUT
      text
MODULE status_3001 OUTPUT.
  SET PF-STATUS 'GUI'.
  SET TITLEBAR 'TITLE'.
ENDMODULE.                 " STATUS_3001  OUTPUT
preparing fields to be registered for f4 help.........................
FORM prepare_f4.
  lt_f4-fieldname = 'EMPNAME'.
  lt_f4-register = 'X'.
  lt_f4-getbefore = 'X'.
  lt_f4-chngeafter = 'X'.
  APPEND lt_f4.
ENDFORM.</b>\
regards,
  Naresh.

Similar Messages

  • Maintain F4  help for a  field

    Hi friends,
    I need  to maintain F4(search help)  help for a field which is in one standard transaction code.
    Tcode: CA01..  field : LTXA1(description)
    steps to show that field .
    goto tcode CA01
    1> maintain inputs.  press enter  .  we will  get   create routing overview.
    2> select one task list  and press operation (F7)
    3> then we will get   create routing: operation overview.
    in the description field i want search help.
    how can maintain search help for this field.
    can you please suggest me how can handle this .
    Regards,
    sateesh.

    Hi Sateesh,
    You can check for the standard screen on which that field resides to which you want to add F4 help. Add another routine on it as "Process on value-request" for that field by doing modifications on standard screen and add routine for it under it for F4 help. Sample code will look like :
    Process on value-request.
    Fields : <field> module <name>.
    Let me know if it helps.
    Gouri.

  • Maintaining F1 help in English and French

    Hi,
    I have a request for all users to have the SRM in English.
    But in France, we would like to have the context menu in French.
    With above requirement, I have following questions: -
    1. Can this online help overwrite standard one if standard one exists? If yes, how?
    2. Can we maintain translations and propose choice of language if the user is connected in EN or will we have to maintain the u201CEnglishu201D text both in English and French?
    3. What is the procedure to maintain this Context help? Creation in dev system and then transport?
    4. Can we highlight somehow the fact that for a specific field we have a context help?
    Please help,
    Amey

    Hi,
    if you want to provide F1 help in both EN and FR while users are logged on in EN, then this is a customer specific requirement.
    SAP standard would be that English speaking users logon with EN (and getting F1 help in EN only - without a choice to select an alternative language) and French speaking users logon with FR (getting both F1 help and standard menus in FR).
    Of course you can extend the SAP standard help by additional texts, but this is somehow treated like a modification and you need to save this during upgrades or applying support packages ...
    Hence I would  recommend to use the standard and let French speaking users logon in French.
    Best regards,
    Nils Buerckel

  • Maintain Help for iView

    Hello,
    I created a simple URL iView and activated the property "Show 'Help' Option". When clicking on the 'Help' option in the iView/page dropdown list, a pop-up opens with the text "Sorry, no help available.". Does anybody know, where I can maintain this "help message".
    Kind regards,
    dominik

    Have a look at note 875858.  The help URL link can be maintained directly in the iView properties once you implement the SP levels mentioned in the note.
    Doesn't help with your language problem, but at least it's easy than changing it in the code itself.
    You can also use the standard portal tools in EP7 to do a mass update of the iView property URL, and just paste the appropriate URL into each iView.....
    Regards,
    John

  • Reg : F4 help for custom fields in ALV report

    hi friends..
    in my internal table i have fields including 1 custom field..
    DATA : BEGIN OF i_final OCCURS 0,
      pernr LIKE p0000-pernr,
      begda LIKE p0000-begda,
      plans LIKE ZPOSITION-plans,  (custom)
      werks LIKE pspar-werks,
      end of i_final.
    i want to display this i_final table in alv. for that i genetrate one fieldcatalog
    PERFORM fcat USING:
                      'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
                      'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
                      'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
                      'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
    in custom table zposition, i maintain serch help for custom field "PLANS".
    then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
    i got f4 all std fields but for my custom i am not getting the f4 help
    how can i get the F$ help for this custom fields Zposition-plans..
    plz give some idea

    Hi
    In that Ztable against the field
    PLANS give the check table name as  <b>T528B</b>
    then it will automatically give the search help
    or you can create your own search help(elementary) and add to that field
    Reward if useful
    regards
    Anji

  • How to create Search Help For Ztable fields

    Hi all,
    Please let me know How to create Search Help in SE11(what are the parameter i should pass)
    and How to maintain search help for Ztable fields at DIctionary level (in SE11) and programming level.

    hello .
    there are two types of search helps .
    1. elementary search help .
    2. collective serch help
    Below are the steps to create elementary search helps :
    1 In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose  Create.
    2.then youget a option elementary or collective search as per you r need .
    3.select Elementary search help and choose
    4.write explanatory text in the field Short text.
    5. in the selection method give the name of the table or  a view .
    6 . Select the fields that should be used for value selection  or in a hit list .
    7. then define the attributes of the search help .
    8 Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.
    9 .define the  dialog type of the search help.
    The dialog type tells  how the hit list will be displayed in the input help.
    10 . save and activate .
    plz reward if usefull
    Thanks ,
    Abhishek .

  • Web Dynpro ABAP: Documentation and help link

    Hi,
    I'm in the process of creating a Web Dynpro ABAP application and was wondering whether you can maintain Documentation for the application, as you would a standard ABAP report? I see the Documentation option in the Goto menu of the workbench, but it is inactive.
    Also, i notice you can maintain a 'Help Link' for the application. Does anyone have any information on this as I can't find anything on the SAP Help website.
    Thanks,
    Nick

    Hi Nick,
    here's the link to the corresponding documentation:
    http://help.sap.com/saphelp_nw04s/helpdata/en/54/bad1d244b2754bac09ae1558c15984/frameset.htm
    If you choose the Change/Edit button at the right side of the input field, you can navigate to the info object to which you want to set the link in the Knowledge Warehouse. 
    Of course, you need an info object in the correct context in the KW for this as well as a correctly maintained RFC destination to the Knowledge Warehouse system.
    Regards, Heidi

  • Search help PREM end parameter

    Dearu2026
    Since few days ago we noticed that search help PREM (for example from transaction PA30) has changed, although we didnu2019t implement any change or system modification. Can someone explain me why this could have happened Is there any other system parameter than MOL influencing the match code Which one Thanks in advance

    You may check the following IMG path from SPRO:
    Personnel Management > Personnel Administration > Basic Settings > Maintain search helps
    And then look into tab 'Included search helps'. Maybe some of the check-boxes have been checked / unchecked here.
    Hope this helps.
    Regards,

  • French Translation for F1 help in SRM fields

    Hi,
    I have a request for all users to have the SRM in English.
    But in France, we would like to have the context menu in French.
    With above requirement, I have following questions: -
    1. Can this online help overwrite standard one if standard one exists? If yes, how?
    2. Can we maintain translations and propose choice of language if the user is connected in EN or will we have to maintain the u201CEnglishu201D text both in English and French?
    3. What is the procedure to maintain this Context help? Creation in dev system and then transport?
    4. Can we highlight somehow the fact that for a specific field we have a context help?
    Please help,
    Amey

    Solved by posting it in ABAP-General Forum.
    Maintaining F1 help in English and French

  • Adding Nickname in Seach Help (F4) option

    Hello,
    My client wants to know if we can have 'Nickname' as a search field in the search help (F4) for PERNR / Person ID.
    Else if the Nickname can be added as a Return Value field.
    Thanks in advance.

    Hi,
    Please follow SPRO>Personnel Management>Personnel Administration>Basic Settings>Maintain search helps>Maintain in logon language
    Select the included search helps tab. Look for PREMJ (Last name - first name - birth name) and check the box.
    You should now see a search help titled Current last name - first name - birth name. The last field on that is nickname (PAD_RUFNM).
    Hope this helps.
    Donnie

  • Search Help 'PREM' Related

    Dear Friends,
    I have modified the screen SAPLKACB 0002. I HAVE APPLIED SEARCH HELP "PREM" ON COBL-PERNR(Personnel No).Now if u go to F-02 Transaction.We have a Company Code entered Say : 2200.
    Now if we fill in the mandatory fields we go 2 next screen there we have personnel no field where i have
    attached F4(Search Help).
    Now i need 2 restrict the search help according to the company code.
    if the Company Code i enter say 2100 and hIt enter.it should give me some king of msg that
    the company code 2100 does not match the (F-02 Transaction Company Code:2200).
    Please Guide as 2 how 2 Accomplish this.
    Regards,
    Essam

    You may check the following IMG path from SPRO:
    Personnel Management > Personnel Administration > Basic Settings > Maintain search helps
    And then look into tab 'Included search helps'. Maybe some of the check-boxes have been checked / unchecked here.
    Hope this helps.
    Regards,

  • Re: serch help

    Hi gurus,
                 I have one doubt in search help , when I have created a table (ztable) in that i have maintain one field with data element
    kunnr, so when i try to create entries its giving f4 fumctionality for that field eventhough i haven't maintain any foreign key ralatio ship. The reason may be SAP already key created search help for kunnr .
                                 I tried in another way like I have created another table ( ztable) maintain search help for a field ,
                   If i call the same dataelement for another table its not giving f4 functionality. So my question is if u call kunnr dataelement in any table its giving f4 functionality. If i try with z table its not giving , I want the reason for it.
    Regards,
    sashi

    Data element KUNNR has explicitly assinged search help to it. If you go to definition of KUNNR and select Further characteristics tab you will see that there is used search help C_KUNNR for it. So wherever you use this data element it will provide F4 functionality (input help) for that field.
    This can be overwritten on field level. This means that you can explicitly remove or assing different search help for particular field in table using this KUNNR as data element. That's why in some tables it may be provided in some not.
    Moreover it can also be overwritten directly in program (if you for example don't want to use search help in particular screen field).
    Please refer [Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw04/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]. This explains what overwrites what and in which case (in terms of data element).
    Regards
    Marcin

  • "Number Range Customizing is not maintained" error in Claim Advances

    Hi All,
    If we try to create New claim in Claim Advances It is going to the next page but throwing the following error :
    Number Range Customizing is not maintained
    Please help.

    Hi,
    Do one thing
    goto tcode HRPBSIN_NMBRNG click up on Change intervals ...........
    Then maintan number range screen you will get
    over thre select "ADD Intervals"  then over thre you need to give the New intervl for number ranges ......
    give as "1     99999999999999999999"  then select "Insert" and "SAVE"
    And check the process again.

  • EURO CUSTOMIZING NOT MAINTAINED

    Hi,
    I am facing problem during making the commercial invoice for a perticular Export customer. The problem is arising due to comma (,) and fullstop (.) while mentioning the qty & price. In Qty column fullstop is reflecting instead of comma and in pricing column vise versa.
    For example u2013 Qty 4.900 EA is reflecting in the invoice but it should be 4,900 EA.
             Price u2013 229, 14 EUR is reflecting in the invoice but it should be 229.14 EUR
    Also an error is coming while creating commercial invoice - "EURO CUSTOMIZING NOT MAINTAINED"
    Please help.......
    Regards,
    Rajdeep

    Hi
    Please check in your user profile in SU01 under logon defaults select the required format.
    For Euro customisation not maintained. Please search the forum
    regards
    Prashanth

  • Search Help for field on table maintenance generator ECC 6.0

    Hi All.
    To maintain search help for a custom field on table maintenance generator.
    Only through coding.
    Cannot use domain or data element or table field search helps.
    Have to code only.
    Is there any way?
    Can I do modifications/additions to screen code and achieve this?
    Regards,
    Veeranji Reddy P.

    Scenarion:
    1. table with 2 fields.
    2. table maintenance generator.
    3. Function group with one screen(0001-mentioned in table maintenance) created.
    4. For one field on table maintenance generator...where we add new entries to table, i want a search help.
    Conditions : only coding has to be done..no search helps I can use.
    Coding where and what?
    one option is to code on the screen 0001- either in PBO/PAI.
    Is it a rite place...? or any other option? But no search helps as mentiond in my first message can be used.
    Thanks and Regards,
    Veeranji Reddy P.

Maybe you are looking for

  • Second-hand G5 iMac and warranty extension

    I bought a second-hand imac G5 on eBay and it has all the symptoms of needing logic board and or power supply replacement, i.e. high revving fans, very loud high pitch whine. I've done all resets and cleaning. Is a second-hand machine eligible for th

  • Deposit Refund

    I was told when I gave almost $2,000.00 for my deposit that if I paid my bill on time for several months I coule request a refund on it. I have the conversation recorded. However when I went into the store I was told it took a year. Can anyone clear

  • Filtering multiple values in URL of a WAD

    Hello, I want to filter a WAD by the field 0FUNDS_CTR (Fund center). I'm adding this to the end of the WAD's URL and it works fine: &Filter_Iobjnm=0FUNDS_CTR&Filter_value=XXXX The problem is that I want to filter the field by multiple values (XXXX, Y

  • IWeb saving in iDisk

    I've been trying to add specific links on my website by changing the HTML text in the iDisk HTML file copy. I then "Save" after changes. When I double click on the newly saved file, it opens in a web browser (Safari) as I want it to look. However, th

  • Is it possible to use Loopback in Logic pro 9?

    I try to make some goods loops with Logic pro 9, but for live events it's very bad. In mainstage there is a good Loopback, but I need to make some mixage in the same time, and I prefer to use Logic. Is there a solution to use Loopback in Logic Pro 9?