on 2019 Oct 08 8:48 AM
Hello community,
I have a scenario which requires me to display a alv grid as below: The column1 needs to dynamically display checkbox or radiobutton as per table values: Radiobuttongrp options should be either or...
Column1 Column2
Checkbox. Fieldname1
Checkbox. Fieldname2
Checkbox. Fieldname3
Checkbox. Fieldname4
Radiobuttongrp1 Fieldname5
Radiobuttongrp1 Fieldname6
Radiobuttongrp1 Fieldname7
Radiobuttongrp2. Fieldname8
Radiobuttongrp2. Fieldname9
Radiobuttongrp2. Fieldname10
I have already developed an alv with checkboxes. But this requires a dynamic grid which needs to be populated correspondingly to values maintained in table...
I'm open to new suggestions as well just in case if this can be achieved through dynamic selection screen...
Did you try to google "alv grid radiobutton"?
I do not think you can have different groups out of the box, but you have to use some trick like a secondary internal table with Group and Fieldname and then use it in the HANDLE_HOTSPOT_CLICK event to have the groups.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
quynh.doanmanh which release? S/4 1809 works with the blog i linked
Simone Milesi You show radio buttons, these are not check boxes.
Close "empty check boxes" are also ICON_DRAW_RECTANGLE or ICON_WD_TRANSPARENT_CONTAINER, but anyway none are satisfying.
My bad, sandra.rossi and quynh.doanmanh !
I misread that checkbox with radiobutton 😕
I'm sorry sriksrid, but you are wrong: the column contains an icon, so every icon can be shown.
ALV grid only have checkbox, no radio button there so the workaround here is use icon but for the fact that there is no empty checkbox icon. If you still want both checkbox and radio in one column (which I don't see why...) you may try to create your own empty checkbox icon and upload it to SAP.
The ALV grid with such checkboxes and radiobuttons in one column looks like a multiple choice test:
Question 1: xxxxxxx (only one choice) <== the text may overlap several cells in an ALV grid
◎ 1. xxxxxxxxxxxxxx
◉ 2. xxxxxxxxxxxxxxxx
◎ 3. xxxxxxxxxxxxxx
Question 2: xxxxxxxxxxxxxxxxx (zero or several choices are possible)
☐ 1. xxxxxxxxxxxxxx
☒ 2. xxxxxxxxxxxxxxxx
☐ 3. xxxxxxxxxxxxxx
@Quynh Doan Manh : Just to clarify on your point...
checkbox and radio button in 1 table just make confuse what row user can select or not, what if there is hundreds radio buttons there?
A custom table has been created for this purpose to classify the fields whether it is a checkbox or radio button...
Clnt F1 RDgrp1
Clnt F2 RDgrp1
Clnt F3 RDgrp2
Clnt F4 RDgrp2
F1 & F2 belong to grp1 (either or selection) and F3 & F4 belong to grp2
(either or selection). The buttongroups primarily function as the limiting factor for the choices for the radio button for the user...
Sandra Rossi Spot on... Exactly my requirement!!
Multiple alvs should be one solution for this requirement...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.