Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV-RADIOBUTTON

Former Member
0 Likes
1,014

HOW TO CREATE THE RADIOBUTTON IN OUTPUT OF ALV.

GENERALLY CHECKBOX IS USED

INSTEAD OF THAT I HAVE TO USE RADIOBUTTON

PLZ HELP.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
821

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

6 REPLIES 6
Read only

Former Member
0 Likes
822

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

Read only

Former Member
0 Likes
821

hI,

For radio buttons in ALV, u have to go for OOPS alv....

With Rgds,

S.barani

Read only

Former Member
0 Likes
821

hi,,

try this FM : 'GET_GLOBALS_FROM_SLVC_FULLSCR'

reward if useful

regards

rekha

Read only

uwe_schieferstein
Active Contributor
0 Likes
821

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

Read only

Former Member
0 Likes
821

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

Read only

0 Likes
821

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.