cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Insert Report Statement

Former Member
0 Kudos

Hi All,

Can any one tell me how to use insert report statment..

what are the prerequisites to use it...

I am using this statement in a loop.

Lets take my loop consists of two iterations...

For the first iteration it is working fine...when the second iteration starts...the code in the first iteration

is replaced by the second one...and the second one is showing empty screen...

thanks in advance..

regards

phani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

What is the necessity to LOOP?

store your program in your internal table and then INSERT REPORT.

DATA itab TYPE TABLE OF string WITH HEADER LINE.

itab = 'REPORT Z538MYNWW.'.
APPEND itab.

itab = 'WRITE ''New report''.'.
APPEND itab.

INSERT REPORT 'Z538MYNWW' FROM itab.

Former Member
0 Kudos

hi,

Iam getting the report name and source code dynamically...

Insert Report <it_trdir-name> from <itab-source>...

hope u got this...

regards

phani

Former Member
0 Kudos

Hi,

How have you defined the source field in your itab.

DATA: BEGIN OF itab,
        source TYPE TABLE OF string,
      END OF itab.

=============

Can you show your code here...

Message was edited by: Wenceslaus G

Former Member
0 Kudos

Hi,

I declared my itab as

Data: t_uincl TYPE STANDARD TABLE OF abaptxt255 WITH

HEADER LINE.

Actually my prog is downloading/uploading of function groups..

I downloaded the function group...

Am getting this error while Iam uploading the function modules source code in that function group...

For single function module it is working fine...

If have two function modules..it is not working...

The source code in the second function module is replacing the first one...and second one consists of nothing...

regards

phani