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: 

To Change the Program Title when i click second radio button

Former Member
0 Kudos

Hi All,

I have two radio buttons in my report.

1) party wise report ( if R1 = X this will display report )

2) sales wise report ( if R2 = X this will display report )

i declared in report attributes as party wise report .

When i clik sales wise report.

it is coming party wise report,

i want it to be as sales wise report.

Please let me know how to do it.

Thanks in advance

Ramesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Either u can use different top-of-page in terms of heading for each report.

Or make two other programs for party wise & sales wise. Declare their diff attributes. And submit them in ur current program.

e.g

if R1 = X.

submit program zparty_wise and return via selection screen.

elseif R2 = X.

submit program zsales_wise and return via selection screen.

endif.

If it is helpfull pls reward pts.

Regards

Srimanta

4 REPLIES 4

Former Member
0 Kudos

Hi ,

Either u can use different top-of-page in terms of heading for each report.

Or make two other programs for party wise & sales wise. Declare their diff attributes. And submit them in ur current program.

e.g

if R1 = X.

submit program zparty_wise and return via selection screen.

elseif R2 = X.

submit program zsales_wise and return via selection screen.

endif.

If it is helpfull pls reward pts.

Regards

Srimanta

Former Member
0 Kudos

Hi,

Hope below code can give you some idea.


parameters: r1 radiobutton group rad1 default 'X',
            r2 radiobutton group rad1.

start-of-selection.
   if not r1 is initial.
      sy-title = 'Party'.
      Write:/ 'First'.
   else.
      sy-title = 'Sales'.
      write:/ 'Second'.
   endif.

Kind Regards

Eswar

Former Member
0 Kudos

Hi Ramesh,

Declare the radio buttons wtih addition USER-COMMAND as fallows.

PARAMETER: R1 RADIOBUTTON GROUP group USER-COMMAND oput(any name).

R2 RADIOBUTTON GROUP group USER-COMMAND oput(any name).

Reward points if useful........

-Suresh Narra

Former Member
0 Kudos

Qusetion solved. thanks for all.