Skip to Content
author's profile photo Former Member
Former Member

Object Oriented ALV

Can any tell me how can i define custom defined search help in the object oriented alv. It would be more helpful if u could send some example reports.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Sep 30, 2006 at 10:54 AM


    go to se38 -> give bcalv_* - > press f4 -> u will get a list of programs.

    ur requiremnt is exaactly included there.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2006 at 11:09 AM

    Hi Anurita,

    Go through the program <b>BCALV_EDIT_08</b> in SE38 present in your SAP system.

    Also go through the link,



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2006 at 02:36 PM

    Hi Anurita ,

    You can go through this document.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2006 at 05:20 PM


    for any type of ALV programs u can search for the string <b>BCALV*</b> in SE38..


    Abdul Hakim

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 01, 2006 at 05:40 AM

    Hello Anurita

    An example report that explains all options regaring F4 help in ALV grids is BCALV_TEST_GRID_F4_HELP (Example Report for F4 Help of the ALV Grid). This example is quite well documented in the header (see below):

    *& Report  BCALV_GRID_F4_HELP                                          *
    *&                                                                     *
    *&                                                                     *
    * Purpose:
    * ~~~~~~~~
    * This report illustrates the use of f4-Help in an alv grid control.
    * Background:
    * ~~~~~~~~~~~
    * There a two possibilities to implement an f4-Help in the alv grid
    * control: one can either use standard f4-help or write one by Hand.
    * For the former there is nothing to do at all. This report shows how
    * to implement user-defined f4-help.
    * The user should look at the definition of classes grid_application
    * and lcl_event_receiver:
    * all the grid-specific things happen there, while the rest
    * of the program is concerned with dynpro programming
    * To check program behavior
    * ~~~~~~~~~~~~~~~~~~~~~~~~~
    * For each choice it is explained in detail which functionality the
    * f4-help dispalys. Just try out different modes at the start-dynpro.
    * We also included a message signaling when datatable update actually
    * occurs.
    * Essential steps (search for '§')
    * ~~~~~~~~~~~~~~~
    * First you must define and set an event handler for event onf4
    * of class cl_gui_alv_grid, just as with any event in the object
    * model. In our case, its method on_f4 of (the local) class
    * lcl_event_receiver (definition see below).
    * We set the handler in PBO-module create_object of dynpro 100.
    * For the easiest case where you don't want to make changes do step
    * 1. Register all columns for which you want to define an f4-help.
    * 1a.You can deregister columns during run-time to use standard f4-help.
    * 1b.Or register additional columns during run-time.
    * 2. Implement your event handler method.
    * 3. Set attribute m_event_handled of er_event_data to avoid standard
    *    f4-help.
    * If you want to allow the user to change data via f4-help you have to
    * 4. set in the fieldcatalog the corresponding column editable (see
    *    Documentation). It does not suffice to set the complete grid
    *    editable.
    * 5. Declare data and field-symbols for values to be changed.
    * 6. Assign the values for the corresponding cells you want to edit:
    *    you can edit any cells. Do not refresh your table!
    * 7. If your f4-help relates to other values of your table, you must
    *    set parameters getbefore and/or chngeafter during registration.
    * 8. In case the column you want to define an f4-help has no standard
    *    f4-help defined, you must set parameter F4AVAILABL in the field
    *    catalog.
    * 9. If you want to check the data yourself, you can register for the
    *    events data_changed and/or data_changed_finished. For the former
    *    you can check where the event was raised and act accordingly.
    *10. Often one uses drop down boxes instead of f4-help. To do so, you
    *    first have to extend your datatable by one field and set the
    *    fieldcatalog parameter drdn_field accordingly.
    *11. Then you have to prepare a drop down table, give it to your grid
    *    and fill in the additional field of your datatable appropritately.
    *!!  If you define a drop down box for a column, you can not define an
    *    f4-help for the same column.

    You will find these steps documented within the coding as well, e.g.:

    *§10 define data table to handle drop down boxes
    data: begin of gt_outtab occurs 0.
            include structure sflight .
    data: drop_down_handle type int4. "dropdown handle for a field
    data: style type lvc_t_styl.

    Thus I am sure you will be able to manage your task using this template report.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.