‎2006 Mar 11 9:25 PM
Hi,
I want to display my table's one field as radio button. But not in parameters section. How can I write my table's field as radio button?
Thanks.
‎2006 Mar 11 9:53 PM
Do you want to display this field as radio button in report output?
In report output you can use option 'symbol' while displaying details and use symbol radio button to display as radio button (only selected radio button symbol is available. you may have to explore a little).
Else there is a option in WRITE statement where you can display field as a checkbox.
Check this link for reference -
http://help.sap.com/saphelp_nw04/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
Message was edited by: Ashish Gundawar
‎2006 Mar 11 9:53 PM
Hi,
You can tryout writing table field as checkbox.
Regards,
Raj
WRITE - Output as checkbox
Effect
Outputs the field f as a checkbox. The contents of the first character of f is interpreted as the "status":
' ' = not selected
'X' = selected
The user can change this as required.
Note
To prevent the user changing the contents of the checkbox, you can use the addition ... INPUT OFF . The checkbox is then nothing more than a status display and can only be changed by programming.
In technical terms, a checkbox behaves exactly like an input field with a length of 1 (FORMAT INPUT ).
Examples
DATA: MARKFIELD(1) TYPE C VALUE 'X'.
...
WRITE MARKFIELD AS CHECKBOX. "checkbox selected
MARKFIELD = SPACE.
WRITE MARKFIELD AS CHECKBOX. "deselected
WRITE MARKFIELD AS CHECKBOX INPUT OFF. "deselected, protected
‎2006 Mar 11 9:56 PM
I think displaying radio button is not possible,
if ur aim of using radio button is to selet only one record at a time,
then u can use checkbox and write a validation to select only one entry at a time
‎2006 Mar 11 10:03 PM
I have a table and, user can select one line(line selection is not usefull for this operation). If I use checkbox user can select multiple line, and I want to get which line has selected. But, as I said user should select only one line. how can I do? What should I do else that will supply as radio button?
Thanks.
‎2006 Mar 11 10:06 PM
You can add a validation - use checkboxes in report output.
When user selects 1 / more checkboxes and clicks on any button, read the list and make sure that only one checkbox is selected. Else display error message to select only one checkbox.
‎2006 Mar 11 10:07 PM
pls chk my previous post
use checkbox
if user selects multiple lines , write validation
loop at itab.
if itab-chk = 'X'.
count = count + 1.
endif.
if count GT 1.
* display error message here
endif.
endloop.pls reward points if helpful
Message was edited by: Sekhar