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: 

hi i want to execute 3 reports at one click without user interaction

Former Member
0 Kudos

hi Friends,

Hi i want to execute 3 reports with one click ie by putting radio button when we click on this this wants to execute all 3 reports with out user interaction pls try to understand and provide the solution pls

Thanks & Regards

Mohan Reddy

12 REPLIES 12

Former Member
0 Kudos

Hello,

To achieve this you can use the SUBMIT command after an user action.

Example

The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.

Program accessed

REPORT report1.

DATA text TYPE c LENGTH 10.

SELECTION-SCREEN BEGIN OF SCREEN 1100.

SELECT-OPTIONS: selcrit1 FOR text,

selcrit2 FOR text.

SELECTION-SCREEN END OF SCREEN 1100.

...

Calling program

REPORT report2.

DATA: text TYPE c LENGTH 10,

rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab,

range_tab LIKE RANGE OF text,

range_line LIKE LINE OF range_tab.

...

rspar_line-selname = 'SELCRIT1'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = 'ABAP'.

APPEND rspar_line TO rspar_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'H'.

APPEND range_line TO range_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'K'.

APPEND range_line TO range_tab.

SUBMIT report1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcrit2 BETWEEN 'H' AND 'K'

WITH selcrit2 IN range_tab

AND RETURN.

Regards.

0 Kudos

thank you very much david its nothing but encouraging duplication of posts

former_member184657
Active Contributor
0 Kudos

Fourth duplicate question!!!

Boy.... you are asking for trouble

pk

0 Kudos

nothing much happening man i abused it as well i want this persons account to be removed

former_member203501
Active Contributor
0 Kudos

This message was moderated.

0 Kudos

you cant understand rules better have a look on it

0 Kudos

This message was moderated.

0 Kudos

hi

REPORT zradiobuttions.

selection-screen begin of block b1 with frame title text-001.

parameters: rb1 radiobutton group gr1,

rb2 radiobutton group gr1,

rb3 radiobutton group gr1.

selection-screen end of block b1.

START-OF-SELECTION.

IF RB1 EQ 'X'.

submit ZMB%BSTK and return.

submit ZVENDOR_ SITE and retrun.

submit ME2N and return.

ELSEIF RB2 EQ 'X'.

submit report1 and return.

submit report2 and return.

submit report3 and return.

ELSEIF RB3 EQ 'X'.

submit report1 and return.

submit report2 and return.

submit report3 and return.

ELSE.

MESSAGE 'SELECT ANY ONE' TYPE 'I'.

ENDIF.

I hope it will clera ur problem......

Regards,

Shankar.

Edited by: Shankar Reddy Chamala on Sep 25, 2008 2:22 PM

Former Member
0 Kudos

This message was moderated.

former_member182426
Active Contributor
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.