‎2007 Jan 05 12:08 PM
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.
‎2007 Jan 05 12:20 PM
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 *
‎2007 Jan 06 4:44 AM
‎2007 Jan 06 5:16 AM
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
‎2007 Jan 06 6:53 AM
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.
‎2007 Jan 08 4:59 AM
‎2007 Jan 08 5:06 AM
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
‎2007 Jan 08 5:19 AM
Yes i created a include & linked it . But while calling the second program Via submit its showing me error. how to solve this
‎2007 Jan 08 5:31 AM
Hi Kalpanashri,
Add the include in the second program if it requires that include.
Regards
Arun