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

screen field manipulation ??

Former Member
0 Likes
960

hi,

i created 2 radio buttons, aa and bb and selected them and grouped them in a radiobutton group in SE51.

so in PAI MODULE USER_COMMAND_0100 INPUT, i have to handle the user selection.

so i say

IF aa = 'X'

but it says "aa" is unknown. how do i refer this object in my code ?? in general how do i refer any of the screen elements ?

thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
922

Hi,

Just declare a one character variable.

DATA: AA TYPE CHAR1.

IF AA = 'X'.. Then it is checked.

IF AA = ' ' .. Then it is not checked..

Thanks

Naren

7 REPLIES 7
Read only

Former Member
0 Likes
922

Hi,

In the top include of the program or in the main program..declare the variables AA & BB... to access the screen elements..

Thanks

Naren

Read only

Former Member
0 Likes
922

Hi,

You have to declare them in the Main Program and "Refer from Progam" on the screen

OR after declaring the variables in program, give the same name for the screen field name

Read only

0 Likes
922

thanks and how do i declare them ?? statement ??

Read only

0 Likes
922

in top include declare your radio buttons as:


data:
aa type c length 1,
bb type c length 1.

Read only

0 Likes
922

data : radio1(1) type c,

radio2(1) type c.

and give the same names radio1 , radio2 for the screen fields

check program DEMO_DYNPRO_CHECK_RADIO

Read only

Former Member
0 Likes
923

Hi,

Just declare a one character variable.

DATA: AA TYPE CHAR1.

IF AA = 'X'.. Then it is checked.

IF AA = ' ' .. Then it is not checked..

Thanks

Naren

Read only

former_member196064
Active Participant
0 Likes
922

User,

In your program define your radio buttons like this.

DATA: R_BUTTON01(01) TYPE C.

DATA: R_BUTTON02(01) TYPE C.

Then goto your screen layout.

In there select the menu options

Goto->Secondary Window-> dict.program fields... it'll popup a window for them.

There on the top right of that window you should see a button labeled "Get from program".

Click that button and your radiobuttons should be listed.

You can drag & drop them onto your screen.

Doug -