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

Module pool radio button

Former Member
0 Likes
1,441

How to design module pool with two radio buttons

9 REPLIES 9
Read only

Former Member
0 Likes
1,082

Goto the Screen layout & drag the radio buttons on screen. Assign them name & a group. Group should be same for both the radio buttons. Activate the screen.

Read only

0 Likes
1,082

Where to give the group name

Read only

0 Likes
1,082

hi,

try like this.

goto screen -> drag and drop radio buttons and activate ->

goto flow logic -> decomment PBO event -> double click -> declare in pbo event or if u want to use globally then declare in TOP INCLUDE as

parameters: r1 type radiobutton group g1,

r2 type radionbutton group g1.

...................

if helpful reward some points.

with regards,

Suresh Aluri.

Read only

0 Likes
1,082

it is showing error in the parameter decl..

Read only

Former Member
0 Likes
1,082

HI,

Assign some function code to the radio button.


LOOP AT SCREEN.
if rad1 = 'X'.
if SCREEN-NAME = 'FIELD3' OR SCREEN-NAME 'FIELD4'.
screen-input = 0.
modify screen.
endif.
if SCREEN-NAME = 'FIELD1' OR SCREEN-NAME 'FIELD2'.
screen-input = 1.
modify screen.
endif.
ENDLOOP.

LOOP AT SCREEN.
if rad2 = 'X'.
if SCREEN-NAME = 'FIELD3' OR SCREEN-NAME 'FIELD4'.
screen-input = 1.
modify screen.
endif.
if SCREEN-NAME = 'FIELD1' OR SCREEN-NAME 'FIELD2'.
screen-input = 0.
modify screen.
endif.
ENDLOOP.

Regards,

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

varma_narayana
Active Contributor
0 Likes
1,082

Hi Mahesh..

<b> In the Screen Painter :</b>

Create two Radionbuttons on the Screen (names: RB1, RB2).

To Group the Radio buttons Select the Radiobuttons by dragging around them.

Menu path: Edit->Grouping->Radiobutton group->define.

This will group the Radio buttons.

<b>In TOP include:</b>

Declare variables for radiobuttons.

DATA: RB1, RB2.

<b>In module pool:</b>

Checking the Value of Radiobutton.

CASE 'X'.

WHEN RB1.

WHEN RB2.

ENDCASE.

<b>Reward if Helpful</b>

Read only

0 Likes
1,082

@Varma

Your post solved my problem.

Thanks!

Read only

Former Member
0 Likes
1,082

Hi

If you need to do an join between severals tables, you should create a views with these tables.

So if you have:

SELECT * FROM VBAK WHERE VBELN IN S_VBELN.

SELECT * FROM VBAP WHERE VBELN = VBAK-VBELN.

...........................................

U can create Z_ORDERS_VIEW using VBAK and VBAP and your statament will be:

SELECT * FROM Z_ORDERS_VIEW WHERE VBELN IN S_VBELN.

Max

reward points if helpful

Read only

Former Member
0 Likes
1,082

Hi

Click on the Radio Button Icon and Click on the Screen.

Create at least two Radio Buttons

Name the Radio Buttons and Activate it.