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

Problem with radiobutton's usage

Former Member
0 Likes
1,058

Hi,

i created two rado buttons r1 and r2 with group rg1 in screen painter.

when i am wrinting logic in se38 i am using the statement : IF R1 = 'X'.

then i am getting an error. -- FIELD 'r1' is unknown.

how to proceed . Please help me.

5 REPLIES 5
Read only

Former Member
0 Likes
864

Hi,

Since you are using screen painter for radio button,So u need to declare in Main Prgram.

e.g.



data : r1 type c,
          r2 type c.

Regards

Arbind

Read only

Former Member
0 Likes
864

Hi,

i have to define global data.


DATA: 
  r1 TYPE flag,
  r2 TYPE flag.

Marcel

Read only

Former Member
0 Likes
864

Hi,

You have created the radiobuttons in Screen painter

You must declare them in the program with the same names

DATA: R1 TYPE C,

R2 TYPE C

Read only

Former Member
0 Likes
864

See when we are using Screen Painter all the elements which you are using in screen -painter must be declared in your Main Program then only system transfer their value into the program

So do the declaration of your elements in the main program,

Since it is radio button the return value will be a single character, so declaration must be as follows,

data: rad_1 type c,

rad_2 type c.

This will do it.

Hope this helps you,

Regards,

Abhijit G. Borkar

Read only

Former Member
0 Likes
864

Hi likrahul ,

First u need to declare the radio buttons ,

if u r not declare in se38 u will the error like unkown

Regards

Surendra