Showing posts with label call one report to another in abap?. Show all posts
Showing posts with label call one report to another in abap?. Show all posts

Friday, November 23, 2007

How to call one report to another in abap?

Here ZREP2 CALLS report ZREP1 when you click on output of report ZREP2.


REPORT ZREP1.

parameter : paramet(18) type c.

write : paramet.


REPORT ZREP2 NO STANDARD PAGE HEADING.
tables: qals.

RANGES seltab for qals-prueflos.

WRITE: 'Select a Selection!',
/ '--------------------'.
SKIP.

FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.

AT LINE-SELECTION.
CASE SY-LILLI.
WHEN 4.
SUBMIT zrep1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
WITH SELECTO IN SELTAB
WITH SELECTO NE 3
AND RETURN.
WHEN 5.

SUBMIT zrep1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'

AND RETURN.
ENDCASE.

Blog Archive