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: 

Difference between REPORT & PROGRAM Keyword

Former Member

In ABAP Code,

We can start a program with REPORT and PROGRAM Keyword.

What is the difference?

1 ACCEPTED SOLUTION

Former Member

Hi

Report is the key word used to display some output on the list

So we can say that Executable program which displays a list is a REPORT

Program is a general word that to be used for any type of program like Module pool, Executable, Classpool, Function Module pool, Include, Typepool etc

<b>Reward points for useful Answers</b>

Regards

Anji

7 REPLIES 7

Former Member

Hi

Report is the key word used to display some output on the list

So we can say that Executable program which displays a list is a REPORT

Program is a general word that to be used for any type of program like Module pool, Executable, Classpool, Function Module pool, Include, Typepool etc

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member

Hi,

Earlier all programs are used to be called as Reports only.

Now they are being called as Program.

Award points to useful answers,

Former Member
0 Kudos

HI,

report we will use for executable type.

program we will use for subroutine-pool type.

rgds,

bharat.

Former Member
0 Kudos

Hello Lijo John,

The PROGRAM statement is equivalent to the REPORT statement.

Reward if Helpful.

Regards

--

Sasidhar Reddy Matli.

Former Member
0 Kudos

Hello Lijo John,

The PROGRAM statement is equivalent to the REPORT statement.

Reward if Helpful.

Regards

--

Sasidhar Reddy Matli.

Former Member
0 Kudos

Hai lijo,

The statement <b>REPORT</b> must be the first statement of an independent program. It introduces an executable program. You must specify the name rep directly.

<b>Syntax:</b>

REPORT rep [list_options] 
           [MESSAGE-ID mid] 
           [DEFINING DATABASE ldb]. 

In the above statement, you can replace the key word REPORT with the key word PROGRAM. In executable programs, PROGRAM means the same as REPORT .

<b>Syntax:</b>

PROGRAM prog [list_options] 
             [MESSAGE-ID mid].

Please refer the transaction <b>abapdocu</b> for further details.

<b>Please reward if found usefull</b>.

Regards ,

Rakesh.

Former Member
0 Kudos

REPORT

The statement REPORT must be the first statement of an independent program following the triggering of possible Include programs. It introduces an executable program. You must specify the name OBJECT directly. You can use the optional addition list_options to influence the basic list of the program. You can use the other additions to set a messageclass and define a logicaldatabase.

PROGRAM

The statement PROGRAM must be the first statement of an independent program after the execution of possible Include programs and introduces a module pool or a subroutine pool. The name prog must be entered directly.

DIFFERENCE

In the case of module pools, the additions of the statement PROGRAM have the same meaning as the additions with the same name in the statement REPORT.

In the subroutine pools, only the specification of MESSAGE-ID is appropriate. Possible additions list_options for the basic list are ignored since subroutine pools do not have their own list buffer. Output statements in subroutine pools write to the current list of the calling main program.