‎2007 May 24 8:27 PM
Hi all
Please tell me how to create include programmes.if possible step by step.
Thanks in advance
manu
‎2007 May 24 8:30 PM
Hi,
It is very easy. while creating a program, in the attributes select type of program as Include. Usually in any programs we place all the declaration statements in include program. Any include program cannot be executed on its own. An include program must be used in Main Program which can be executed.
thanks,
sksingh.
‎2007 May 24 8:30 PM
Hi,
You can create include from SE38, give a name in SE38 and take type from the attributes as 'INCLUDE program' then system will create a include.
Includes are useful to create subroutines, these are specific to particular program. Function modules can be called from any program, these are global objects. But if you want to call any subroutines from any include, you need to add that include in the program.
If you are writing any generic code which can be used in any program then go for function modules. If you are writing partcular code which is specific to one object then go for include.
Regards,
Ferry Lianto
‎2007 May 24 8:30 PM
Hi,
It is very easy. while creating a program, in the attributes select type of program as Include. Usually in any programs we place all the declaration statements in include program. Any include program cannot be executed on its own. An include program must be used in Main Program which can be executed.
thanks,
sksingh.
‎2007 May 24 8:31 PM
Manu,
Go to T-code SE38.
Create new program with type I.
That's it you have created Inclued program.
‎2007 May 24 8:32 PM
‎2007 May 24 10:05 PM
Hey manu,
<b>The easiest way to create an include is,</b> write following statement where ever you want to use the include:
<b>include <include name>.
And then double click on <include name>.</b>
It will ask you if you would like to create include. Click on 'Yes'. And then click on 'Save'.
‎2007 May 24 10:20 PM
Goto Se38 Transaction and program name start with Z or Y and click on create.
now you will see one pop up window .
maintain short text and type should be include and save it.
Include program should depend on atleast one excutable and mainly we create for Data declaration part and reusbility.
see the sap standard program like SAPMV45A and it has many includes and each include does diffrent operation.