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

Top include

Former Member
0 Likes
1,230

First i have created a report program.

Now i m changing it to module pool program.

I know that, first when we create a module pool program it asks for topinclude for global declaration.

Now i want to minimize the coding using top include. Since i m changing the type of program from report to module in middle is it possible for me to create top include. If yes means how to create it.

Thanks in advance.

8 REPLIES 8
Read only

Former Member
0 Likes
951

Dear Kalpana,

If the module pool program you'll be creating for e.g. is SAPM_KALP.

Then the Top Include Program for the above Pgm. will be --> SAPM_KALPTOP

The Module Pool Pgm. should always start with <b>SAPM</b>

Regards,

Abir

************************************

  • Don't forget to award Points *

Read only

Former Member
0 Likes
951

Can any one solve this issue

Read only

Former Member
0 Likes
951

Hi,

You can create a top include in a report program also...

Also you can make a report program a module program..

Example

-


REPORT ZREPORT1.

INCLUDE ZREPORT1_TOP. "TOP INCLUDE..

INCLUDE ZREPOR11_PAI. " PAI MODULES.

START-OF-SELECTION.

  • CALL THE FIRST SCREEN ...

CALL SCREEN '0100'.

Thanks,

Naren

Read only

0 Likes
951

My problem is i m using two programs.

first program is : zreport1.

second program is : zreport2.

I m calling my second program in the first program itself via submit.

Since both of them uses some common declaration part i want to use single include for both programs. If i use top include will it work or is there any other solution to solve this.

Thanks in advance.

Read only

0 Likes
951

How to solve this problem

Read only

Former Member
0 Likes
951

Hi Kalpanashri,

As you have created the report and module pool program create an include program and link it to the module pool program

Regards

Arun

Read only

0 Likes
951

Yes i created a include & linked it . But while calling the second program Via submit its showing me error. how to solve this

Read only

0 Likes
951

Hi Kalpanashri,

Add the include in the second program if it requires that include.

Regards

Arun