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 Subscreen Radiobuttons

Former Member
0 Likes
1,233

Hi,

I've defined a subscreen in a module pool program TOP include as:


SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
SELECT-OPTIONS: s_bukrs FOR regup-zbukr,
                s_date FOR regup-laufd,
                s_code FOR zhsbc_bansta-code_no.
PARAMETERS: r_bansta RADIOBUTTON GROUP r1,
            r_contrl RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF SCREEN 0101.

and called the subscreen in my screen 0100 as:


  CALL SUBSCREEN screen_0101
       INCLUDING 'Z99FI_HSBC_FILE_REPORTING' '0101'.

This all works fine. But when I press execute on screen 0100 and debug, both radiobuttons (r_bansta and r_contrl) are empty even though I changed the default selected one to r_contrl.

Do I have to do something to make these parameters available to my PAI on screen 0100?

Thanks,

Gill

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,201

Hello,

did u put call subscreen stmt in pai also, because if u have kept that stmt in pai then what ever actions u take in the screen are reflected in the corresponding parameters.

9 REPLIES 9
Read only

Former Member
0 Likes
1,201

Hi,

In this Specify one as Default like:

PARAMETERS: r_bansta RADIOBUTTON GROUP r1 default 'X,

r_contrl RADIOBUTTON GROUP r1.

Then it can be filled.

Regards,

Shiva Kumar

Read only

0 Likes
1,201

I amended my code to be:


SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
*PARAMETERS: g_file LIKE user_dir-dirname.
SELECT-OPTIONS: s_bukrs FOR regup-zbukr,
                s_date FOR regup-laufd,
                s_code FOR zhsbc_bansta-code_no.
PARAMETERS: r_bansta RADIOBUTTON GROUP r1 DEFAULT 'X',
            r_contrl RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF SCREEN 0101.

However now r_bansta is always 'X' even when I change the selection to be r_contrl. How can I get it to pick up the correct values from the selection screen?

Read only

0 Likes
1,201

Hi,

if first radiobutton eq 'x'.

write your functionality.

for that radio button is having fctcode also .

use that fctcode is for mainly push buttons.

like this you can approach.

Read only

0 Likes
1,201

Gill..

While in debug, have you notice if the other fields are populated correctly when you process the screen?

Just curious if it is just the RBs or all fields.

Read only

0 Likes
1,201

Sorry I don't understand what you're trying to say.

When I go into debug I type the field names R_BANSTA and R_CONTRL into the spaces at the bottom of the screen to view their values. This is where I can see that the value for R_BANSTA is always X even if I select R_CONTRL on the selection screen at runtime.

The code which follows is not applicable as the values are wrong.

Read only

0 Likes
1,201

My question involves these fields


SELECT-OPTIONS: s_bukrs FOR regup-zbukr,
                s_date FOR regup-laufd,
                s_code FOR zhsbc_bansta-code_no.

If you change the values do these fields also have the same issue?

Read only

0 Likes
1,201
Read only

Former Member
0 Likes
1,202

Hello,

did u put call subscreen stmt in pai also, because if u have kept that stmt in pai then what ever actions u take in the screen are reflected in the corresponding parameters.

Read only

0 Likes
1,201

Thanks Gaddameedi,

I put:


CALL SUBSCREEN screen_0101.

In the PAI of screen 0100 and it sorted my problem.