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

WRITE AS RADIOBUTTON ?

Former Member
0 Likes
780

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.

6 REPLIES 6
Read only

Former Member
0 Likes
702

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

Read only

Former Member
0 Likes
702

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

Read only

Former Member
0 Likes
702

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

Read only

0 Likes
702

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.

Read only

0 Likes
702

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.

Read only

0 Likes
702
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