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

Report command

Former Member
0 Likes
790

Hi,

I wanted to know that after creating a report if we go in the code and change the report name from there (the first line which has report name e.g- REPORT Ztest MESSAGE-ID Zts.) why doesn't it give compile time or run time error.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
757

Welcome to SCN!

It is not mandatory to give the report name in this line, only strongly recommended.

Rob

6 REPLIES 6
Read only

jaideepsharma
Active Contributor
0 Likes
757

Hi,

REPORT rep.

REPORT is the first statement in a program. rep can be any name, but you are recommended to use

the name of the ABAP program.Its not mandatory to have report name same as the actual Abap program name

KR Jaideep,

Read only

0 Likes
757

Then whats the use of this command ??. to give message class or other parameters why do we need to specify this report name when it can have any value

Read only

matt
Active Contributor
0 Likes
757

It's required to be the first line of an executable program. That's it. No deeper reason. It's the way it ABAP was designed.

Read only

Former Member
0 Likes
758

Welcome to SCN!

It is not mandatory to give the report name in this line, only strongly recommended.

Rob

Read only

0 Likes
757

Giving report name is mandatory because if you comment it out it throws error .

Read only

0 Likes
757

>

> Giving report name is mandatory because if you comment it out it throws error .

In ECC 6, you need the report keyword, but you do not actually have to supply the report name:

report line-size 132 message-id 00 line-count 65.

Seems to work.

Rob