‎2007 Jul 12 8:02 AM
In ABAP Code,
We can start a program with REPORT and PROGRAM Keyword.
What is the difference?
‎2007 Jul 12 8:07 AM
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
‎2007 Jul 12 8:07 AM
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
‎2007 Jul 12 8:07 AM
Hi,
Earlier all programs are used to be called as Reports only.
Now they are being called as Program.
Award points to useful answers,
‎2007 Jul 12 8:07 AM
HI,
report we will use for executable type.
program we will use for subroutine-pool type.
rgds,
bharat.
‎2007 Jul 12 8:08 AM
Hello Lijo John,
The PROGRAM statement is equivalent to the REPORT statement.
Reward if Helpful.
Regards
--
Sasidhar Reddy Matli.
‎2007 Jul 12 8:10 AM
Hello Lijo John,
The PROGRAM statement is equivalent to the REPORT statement.
Reward if Helpful.
Regards
--
Sasidhar Reddy Matli.
‎2007 Jul 12 8:10 AM
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.
‎2007 Jul 12 8:17 AM
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.