‎2008 May 21 11:02 AM
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
‎2008 May 21 11:40 AM
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.
‎2008 May 21 11:08 AM
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
‎2008 May 21 11:12 AM
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?
‎2008 May 21 11:27 AM
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.
‎2008 May 21 11:48 AM
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.
‎2008 May 21 11:48 AM
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.
‎2008 May 21 11:55 AM
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?
‎2008 May 21 12:13 PM
hi,
Refer this:
https://forums.sdn.sap.com/click.jspa?searchID=12027265&messageID=3706565
Regards,
shiva Kumar
‎2008 May 21 11:40 AM
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.
‎2008 May 21 11:57 AM
Thanks Gaddameedi,
I put:
CALL SUBSCREEN screen_0101.
In the PAI of screen 0100 and it sorted my problem.