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 Name

Former Member
0 Likes
1,795

hi frds

I have a doubt regarding , reportname and program name

Whenever we execute any SAP Program the compiler loads the program from database into memory and it <b>uses report name and not the program name</b> for loading the data.

And if i <b>change the report name</b> and then activate the program then will it create a new copy of the program with new report name or it just modifies the previous report name ?

Am i going right? Please throw light on the same.

Regards,

Nikhil.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,401

Program Structure

The following gives a short overview on how to structure a program. Apart from the first statement, the sequence of statements is not obligatory, but you should keep to it for reasons of clarity and readability.

...

1. The first program statement

The first statement in any ABAP Program is always an introductory program statement, often REPORTor PROGRAM. Both statements have exactly the same function.

The name specified in the statements REPORTand PROGRAM must not necessarily be the program name, but for documentation reasons, you should use the correct name.

Whenever you create a new program, the system automatically inserts the first ABAP statement, for example:

REPORT name. for executable programs, or

PROGRAM name. for module pools or subroutine pools

The system enters the name you used to create the program as the report or program name.

2. Data declaration

Next, insert all of your declarations. These include selection screen definitions, the declarations of local classes and interfaces and global data declarations.

3. Processing logic

After the declarations, write the processing logic. This consists of a series of processing blocks.

4. Subroutines

At the end of your program, include its internal procedures (such as subroutines).

Using includes to split up a program into a series of source code modules does not change this basic structure. If, for example, you follow the forward navigation of the ABAP Workbench when creating a dialog program, the system automatically creates a number of include programs, which contain the program parts described above in the correct sequence. The top include program usually contains the PROGRAM statement and the global data declarations. The subsequent include programs contain the individual dialog modules, ordered by PBO and PAI. There may also be further includes, for example, for subroutines. These include programs do not influence the program function, they only serve to make the program order easier to understand

hi dear award points if this is useful,

thank you

hi frds

I have a doubt regarding , reportname and program name

Whenever we execute any SAP Program the compiler loads the program from database into memory and it <b>uses report name and not the program name</b> for loading the data.

And if i <b>change the report name</b> and then activate the program then will it create a new copy of the program with new report name or it just modifies the previous report name ?

Am i going right? Please throw light on the same.

Regards,

Nikhil.

3 REPLIES 3
Read only

Former Member
0 Likes
1,402

Program Structure

The following gives a short overview on how to structure a program. Apart from the first statement, the sequence of statements is not obligatory, but you should keep to it for reasons of clarity and readability.

...

1. The first program statement

The first statement in any ABAP Program is always an introductory program statement, often REPORTor PROGRAM. Both statements have exactly the same function.

The name specified in the statements REPORTand PROGRAM must not necessarily be the program name, but for documentation reasons, you should use the correct name.

Whenever you create a new program, the system automatically inserts the first ABAP statement, for example:

REPORT name. for executable programs, or

PROGRAM name. for module pools or subroutine pools

The system enters the name you used to create the program as the report or program name.

2. Data declaration

Next, insert all of your declarations. These include selection screen definitions, the declarations of local classes and interfaces and global data declarations.

3. Processing logic

After the declarations, write the processing logic. This consists of a series of processing blocks.

4. Subroutines

At the end of your program, include its internal procedures (such as subroutines).

Using includes to split up a program into a series of source code modules does not change this basic structure. If, for example, you follow the forward navigation of the ABAP Workbench when creating a dialog program, the system automatically creates a number of include programs, which contain the program parts described above in the correct sequence. The top include program usually contains the PROGRAM statement and the global data declarations. The subsequent include programs contain the individual dialog modules, ordered by PBO and PAI. There may also be further includes, for example, for subroutines. These include programs do not influence the program function, they only serve to make the program order easier to understand

hi dear award points if this is useful,

thank you

Read only

Former Member
0 Likes
1,401

Hi

In the xase of EXECUTABLE reports we call the name as REPORT NAME

in other cases such as module pool or some other we call the name as PROGRAM NAME.

But most of the time not much difference between the two.

Reward points if useful

Regards

Anji

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,401

Hi

Executable Programs or Onlune Programs will treared as Reports.

Regards,

Sreeram