‎2008 Apr 10 7:56 AM
HOW TO CREATE THE RADIOBUTTON IN OUTPUT OF ALV.
GENERALLY CHECKBOX IS USED
INSTEAD OF THAT I HAVE TO USE RADIOBUTTON
PLZ HELP.
‎2008 Apr 10 8:02 AM
create radio buttons on alv
"----
CLASS L_CL_EVENTS DEFINITION *
"----
Class for inserting buttons on the toolbar *
"----
CLASS l_cl_events DEFINITION.
PUBLIC SECTION.
METHODS:
toolbar FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
user_command FOR EVENT user_command
OF cl_gui_alv_grid
IMPORTING e_ucomm .
ENDCLASS. " L_CL_EVENTS DEFINITION
"----
CLASS L_CL_EVENTS IMPLEMENTATION *
"----
Implementation of class l_cl_events *
"----
CLASS l_cl_events IMPLEMENTATION.
METHOD toolbar.
PERFORM event_toolbar USING e_object.
ENDMETHOD. " TOOLBAR
METHOD user_command.
PERFORM event_ucomm USING e_ucomm.
ENDMETHOD. " USER_COMMAND
ENDCLASS. " L_CL_EVENTS IMPLEMENTATION
"----
FORM EVENT_TOOLBAR *
"----
Setting toolbar in the alv grid *
"----
-->E_OBJECT TYPE REF TO CL_ALV_EVENT_TOOLBAR_SET *
"----
FORM event_toolbar USING e_object
TYPE REF TO cl_alv_event_toolbar_set.
*" Local declaration for the button.
DATA: ls_toolbar TYPE stb_button.
*" To add Reject button
CLEAR ls_toolbar.
ls_toolbar-function = 'reject'.
ls_toolbar-butn_type = 4.
ls_toolbar-text = 'reject'.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDFORM. " EVENT_TOOLBAR
do reward
‎2008 Apr 10 8:02 AM
create radio buttons on alv
"----
CLASS L_CL_EVENTS DEFINITION *
"----
Class for inserting buttons on the toolbar *
"----
CLASS l_cl_events DEFINITION.
PUBLIC SECTION.
METHODS:
toolbar FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
user_command FOR EVENT user_command
OF cl_gui_alv_grid
IMPORTING e_ucomm .
ENDCLASS. " L_CL_EVENTS DEFINITION
"----
CLASS L_CL_EVENTS IMPLEMENTATION *
"----
Implementation of class l_cl_events *
"----
CLASS l_cl_events IMPLEMENTATION.
METHOD toolbar.
PERFORM event_toolbar USING e_object.
ENDMETHOD. " TOOLBAR
METHOD user_command.
PERFORM event_ucomm USING e_ucomm.
ENDMETHOD. " USER_COMMAND
ENDCLASS. " L_CL_EVENTS IMPLEMENTATION
"----
FORM EVENT_TOOLBAR *
"----
Setting toolbar in the alv grid *
"----
-->E_OBJECT TYPE REF TO CL_ALV_EVENT_TOOLBAR_SET *
"----
FORM event_toolbar USING e_object
TYPE REF TO cl_alv_event_toolbar_set.
*" Local declaration for the button.
DATA: ls_toolbar TYPE stb_button.
*" To add Reject button
CLEAR ls_toolbar.
ls_toolbar-function = 'reject'.
ls_toolbar-butn_type = 4.
ls_toolbar-text = 'reject'.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDFORM. " EVENT_TOOLBAR
do reward
‎2008 Apr 10 8:03 AM
hI,
For radio buttons in ALV, u have to go for OOPS alv....
With Rgds,
S.barani
‎2008 Apr 10 8:06 AM
hi,,
try this FM : 'GET_GLOBALS_FROM_SLVC_FULLSCR'
reward if useful
regards
rekha
‎2008 Apr 10 8:14 AM
Hello
You may have a look at the Wiki posting [ALV Grid List Using Radio Buttons|https://wiki.sdn.sap.com/wiki/display/Snippets/ALVGridListUsingRadio+Buttons]
and my sample report ZALVGRID_WITH_RADIOBUTTONS in [ALV Grid List Using Radio Buttons|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a02535ce-9eaf-2910-ae8c-f2f2afc1c8e7]
Regards
Uwe
‎2012 Feb 08 11:10 AM
PLS EXPERT I HAVE NOT GOT IT .
IN MY PROGRAM I HAVE TRY IT BUT NOT GET IT CAN U HELP ME?
IF YOU WONT I WILL PASTE MY PROGRAM HERE
I HAVE DONE EVERYTHING MY PROGRAM IS RUNNING WELL BUT AT THE END .......I WANT TOTAL WITH 'TOTAL' WORD WRITTEN IN IT.
PLS HELP ME
REGARDS
NAVIN
‎2012 Feb 08 11:37 AM
Hi Navinm,
For this TOTAL text you need to add an Empty Record at last with 'TOTAL' text and your totals in required Columns,
for Sub Totals use AT END OF FIELD and ENDAT
Regards,
Ravindra.