05-22-2008 4:17 PM
Hi,
when i tried to execute an include program it appeared as " The main program is not an online report ". what does it mean??...cant we execute include programs?? can u also tell me abt include program??
05-22-2008 4:19 PM
You cannot execute include programs. They are not standalone porgrams. you can find the where used list to find the main program and then execute the main program.
05-22-2008 4:20 PM
No, include programs are not supposed to be executed.
It would miss the benefits of a code that can be included in several control programs if you do that
05-22-2008 4:25 PM
Hi Raja,
Include programs are used for writing a more readble code. E.g. Instead of declaring all the data in your main program you can do this in an include program and include that in the main program. Similarly you can do the same for all form routines in the main program. Also you can use the same include program across different main programs as long as the requirements are same for both the main programs.
05-22-2008 5:38 PM
Hi Raja,
Here are few details on the include programs and other program types .....
Program type
This specifies the type of program.
Possible types are:
Executable Programs (1)
Can be started without a transaction code,
either directly or in the background.
Executable programs are controlled by an invisible system program.
The system program calls processing blocks in the program in a
pre-defined order. It displays the selection screen at the
beginning of the program and outputs a list at the end. Executable
programs allow you to work with logical databases.
Module Pools for Screen Painter Screens (M)
Contain processing steps for screen
modules from the transaction and can only
be executed with a transaction code or a
menu function.
Includes (I)
Contain program code that cannot be
run on its own.
You call them from another program using
INCLUDE statements.
Subroutines (S)
Contain parts of programs (FORM routines) that can be called
using external PERFORM statements.
Function Groups (F)
Contain function modules. Function groups and function
modules are managed in the Function Builder. Program
type F is set by the Function Builder, and cannot be changed
in the program attributes.
Interface Pools (J)
Contain interfaces. Classes and interfaces are managed (administered)
in the Class Builder; program type J cannot be changed in the
attributes.
Class Pools (K)
Contain interfaces. Classes and interfaces are managed (administered)
in the Class Builder; program type K cannot be changed in the
attributes.
dialog program
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
include program
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db973535c111d1829f0000e829fbfe/content.htm
function group
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db992335c111d1829f0000e829fbfe/content.htm
types of programs
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb2d5a358411d1829f0000e829fbfe/content.htm
Hope these helps you a bit.
A vrey good site to look in for all your queries is SDN.SAP.COM. search your queries and you'll get lot of replies
Cheers
Kripa Rangachari.
05-22-2008 6:08 PM
hi,
Include programs are not executable.
Include program is nothing but jus a part of code which you are going to use in main program.
That main program can be anyhting : it can be module pool or it can be executable program.
Regards
Sandeep Reddy
05-22-2008 6:51 PM
Hi,
There are 2 adv using this include.
1. Reuse your code.
2. Clarity - Instead of writing in one program, you distribute your code into number of files.
Regards
Ravisankar