‎2008 Jul 22 6:32 PM
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
‎2008 Jul 22 6:39 PM
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
‎2008 Jul 22 6:33 PM
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
‎2008 Jul 22 6:35 PM
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
‎2008 Jul 22 6:38 PM
‎2008 Jul 22 6:41 PM
in top include declare your radio buttons as:
data:
aa type c length 1,
bb type c length 1.
‎2008 Jul 22 6:42 PM
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
‎2008 Jul 22 6:39 PM
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
‎2008 Jul 22 7:04 PM
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 -