Application Development and Automation 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: 
Read only

Ques on Report statement/command.

Former Member
0 Likes
678

Hi all,

What happens if we give some other name after the word "REPORT" in a program eg if the program is za and we say REPORT zb.

I ran it. Nothing happened. The prog ran fine. What is then the use of such a statement?

Charles.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

Hi charles,

when we specify the name of the report when creating that willbe considered.

And it will be copied into our program.

Even we wont specify the name also it will accept as:

1. report (blank).

It will even accept as:

2. Program (blank) or

3.program ran (some name) or

4.report ran.

it will accept 1,2,3,4 cases .

means it wont considered thenames and all ,just it will check whether it is report or program.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
647

Right, nothing with happen, not sure why it is like this, but mainly the REPORT statement is important for its extensions like LINE-COUNT, LINE-SIZE, and NO STANDARD PAGE HEADING, and MESSAGE ID <ZAA>.

Regards,

Rich Heilman

Read only

suresh_datti
Active Contributor
0 Likes
647

For Reports ie programs set as executable in the attributes, the first keyword that is allowed is the REPORT statement. I guess this is what diferentiates between a report/include/module pool when you do a syntax check or press F8.

~Suresh

Read only

Former Member
0 Likes
647

hi

you can replace the key word REPORT with the key word PROGRAM. In executable programs, PROGRAM means the same as REPORT and can be used with the latter's additions.

Although you do not absolutely need to specify the name rep, you should always use the name of the ABAP program from the Repository. even if u dnt specify the report name or program name it stilll executes but report statement has 2 be the first sattement.even if the first statement is simply

REPORT.

it works.

regards,

kiran kumar k

Read only

Former Member
0 Likes
648

Hi charles,

when we specify the name of the report when creating that willbe considered.

And it will be copied into our program.

Even we wont specify the name also it will accept as:

1. report (blank).

It will even accept as:

2. Program (blank) or

3.program ran (some name) or

4.report ran.

it will accept 1,2,3,4 cases .

means it wont considered thenames and all ,just it will check whether it is report or program.

Read only

Former Member
0 Likes
647

thanks all.