2014 Oct 15 5:31 PM
Hi experts
I have a requirement to create an editable ALV with Insert, Copy and Update functionality.
I went through the posts and figured that i must look into the BCALV_EDIT_0* standard programs.
What i am still not able to understand is how the ALV tool bar is specified for the grid display.
For example, the tool bar in BCALV_EDIT_03 does not contain the insert, delete or copy buttons. Whereas the tool bar in BCALV_EDIT_02 has these buttons.
How is the tool bar selected and is there any way i can control which tool bar is displayed?
Any help will be greatly appreciated.
Thanks
-Navin
2014 Oct 15 9:15 PM
Hi,
BCALV_EDIT_03 is using it_toolbar_excluding parameter.
Regards.
Hi experts
I have a requirement to create an editable ALV with Insert, Copy and Update functionality.
I went through the posts and figured that i must look into the BCALV_EDIT_0* standard programs.
What i am still not able to understand is how the ALV tool bar is specified for the grid display.
For example, the tool bar in BCALV_EDIT_03 does not contain the insert, delete or copy buttons. Whereas the tool bar in BCALV_EDIT_02 has these buttons.
How is the tool bar selected and is there any way i can control which tool bar is displayed?
Any help will be greatly appreciated.
Thanks
-Navin
2014 Oct 15 6:37 PM
Hi ,
Following code will enable the editing facility .
IF grid1->is_ready_for_input( ) eq 0.
* set edit enabled cells ready for input
CALL METHOD grid1->set_ready_for_input
EXPORTING i_ready_for_input = 1.
Yes you can control the tool bar using conditions , put the above code inside condition and you should be good .
Thanks
Manik
2014 Oct 15 6:48 PM
in the fieldcatalog if you set ls_fcat-edit = 'X' will also get you the extra buttons.
2014 Oct 15 9:15 PM
Hi,
BCALV_EDIT_03 is using it_toolbar_excluding parameter.
Regards.
2014 Oct 21 6:24 AM
2014 Oct 15 9:21 PM
Hi,
Another mysterious flag is:
DATA: st_layout TYPE lvc_s_layo ,
st_layout-no_rowins = abap_true ."Block ctrl enter .
CALL METHOD ob_gui_alv_grid_1->set_table_for_first_display
EXPORTING
it_toolbar_excluding = it_toolbar_excluding
is_layout = st_layout
is_print = st_print
i_save = 'A'
is_variant = gs_disvariant_1
CHANGING
it_sort = it_sort
it_fieldcatalog = it_fieldcatalog
it_outtab = it_alv_grid_a.
Regards.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |