Application Development 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: 

Selection-screen - pass value to Radiobutton?

Former Member
0 Kudos

Hi,

I'm calling a standard report '<b>RHXTHIST</b>' in my program using this statement:

submit RHXTHIST with pchobjid-low = t_ranges-low.

Here i'm passing values to the <b>Attendee</b> field using Ranges.Similarly i wish to set the Radiobutton values of the <b>Reporting period</b> from All[default] to <b>Future or Past</b>.

I tried using:

RSPAR-SELNAME = 'PCHZTR_F'.

RSPAR-KIND = 'P'.

RSPAR-SIGN = 'I'.

RSPAR-OPTION = 'EQ'.

RSPAR-LOW = 'X'.

APPEND RSPAR.

RSPAR-SELNAME = 'PCHOBJID'.

RSPAR-KIND = 'S'.

RSPAR-SIGN = 'I'.

RSPAR-OPTION = 'EQ'.

RSPAR-LOW = '90001097'.

APPEND RSPAR.

submit RHXTHIST via selection-screen with

<b>selection-table</b> rspar.

but its not working .Kindly help.

6 REPLIES 6

LucianoBentiveg
Active Contributor
0 Kudos

Try this:

RSPAR-SELNAME = 'PCHZTR_F'.

RSPAR-KIND = 'P'.

RSPAR-SIGN = 'I'.

RSPAR-OPTION = 'EQ'.

RSPAR-LOW = 'X'.

APPEND RSPAR.

<b>RSPAR-SELNAME = 'PCHZTR_P'.

RSPAR-KIND = 'P'.

RSPAR-SIGN = 'I'.

RSPAR-OPTION = 'EQ'.

RSPAR-LOW = ' '.

APPEND RSPAR.</b>

RSPAR-SELNAME = 'PCHOBJID'.

RSPAR-KIND = 'S'.

RSPAR-SIGN = 'I'.

RSPAR-OPTION = 'EQ'.

RSPAR-LOW = '90001097'.

APPEND RSPAR.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

The reason why this is not working is because of this line in the submitted program. Any changes that you make to the radiobuttons, this is changing them to the defaults.




    AT SELECTION-SCREEN OUTPUT.        
<b>      rhx-radios-pbo.    </b>              



Regards,

Rich Heilman

0 Kudos

Hi,

Is there any other way to control the selection-screen elements? In my Zreport's selection-screen i'm callig the Standard report 'RHXTHIST’ & based on the Radiobutton selection in my report , th output is shown.

The Transaction <b>'RHXTHIST’</b> for the Report is <b>'S_PH9_46000431'</b>.Call transaction can be used for controlling the Radiobuttons , but i need to

1) Pass value to the 'Attendee' field [via Internal table]

2) Change the Radiobutton selection of the standard trasaction / report according to the selection in

the 'Zreport'.

Kindly help.

0 Kudos

Instead of passing throuhg selection table, you can directly pass the value as well to the parameters.

SUBMIT REPORT RHXTHIST

WITH S_OPT1 = RANGES_OPT1

WITH RADIO1 = 'X'.

However you need to have a select-options / ranges variable in the calling program for each of the select-options on the called report. This way its easy to set the value of the radio button.

Here is a example

SUBMIT demo_program_submit_rep1

WITH paramet eq 'Selection 1'

WITH selecto IN seltab

WITH selecto ne 3

AND RETURN.

Regards,

Ravi

Note : Please mark all the helpful answers

0 Kudos

Hello Tina,

Have you tried to pass the values like this.

I assume that your want to select the radiobutton person and pass the values in the attendee.

ranges: r_id for OBJEC-REALO.

*fill your ranges

SUBMIT RHXTHIST with PTYP1 = 'X'

  • put your required selection of radiobutton

with PCHOBJID in r_id.

Regards,

Naimesh

0 Kudos

Hi,

Thanks for the replies.

I'm trying to select the Radiobuttons 'Reporting Period'

from Default Radiobutton ALL to PAST or FUTURE.

I tried this method, but as it is calling standard report 'RHXTHIST'

'AT SELECTION-SCREEN OUTPUT'.

rhx-radios-pbo.

It is resetting to the default radiobutton selction.

Pl suggest.