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

Include programmes

Former Member
0 Likes
868

Hi all

Please tell me how to create include programmes.if possible step by step.

Thanks in advance

manu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
852

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.

6 REPLIES 6
Read only

ferry_lianto
Active Contributor
0 Likes
852

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

Read only

Former Member
0 Likes
853

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.

Read only

Former Member
0 Likes
852

Manu,

Go to T-code SE38.

Create new program with type I.

That's it you have created Inclued program.

Read only

amit_khare
Active Contributor
0 Likes
852

Check these links -

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
852

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'.

Read only

Former Member
0 Likes
852

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.