01-09-2008 5:42 AM
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
01-09-2008 5:55 AM
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
01-09-2008 5:55 AM
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
01-09-2008 5:57 AM
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
01-09-2008 6:03 AM
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
01-09-2008 6:08 AM