‎2006 Sep 30 11:29 AM
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.
Thanks.
‎2006 Sep 30 11:54 AM
hi,
go to se38 -> give bcalv_* - > press f4 -> u will get a list of programs.
ur requiremnt is exaactly included there.
rgds
anver
‎2006 Sep 30 12:09 PM
Hi Anurita,
Go through the program <b>BCALV_EDIT_08</b> in SE38 present in your SAP system.
Also go through the link,
http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm
Regards,
Azaz.
‎2006 Sep 30 3:36 PM
Hi Anurita ,
You can go through this document.
http://esnips.com/doc/2d953590-e8c5-490c-a607-d1ab7cf517d7/ALV.pdf
Regards,
SP.
‎2006 Sep 30 6:20 PM
hi
for any type of ALV programs u can search for the string <b>BCALV*</b> in SE38..
Cheers,
Abdul Hakim
‎2006 Oct 01 6: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.
Regards
Uwe