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 Program

Former Member
0 Likes
1,714

Hi,

I had called include program in my main program. When i creating the include program, iam getting the following error.

REPORT/PROGRAM statement missing, or program type is I (INCLUDE).

I had taken the program type as Include program. Still iam getting the above error.

Please let me know how to reolve this.

Thanks

9 REPLIES 9
Read only

Former Member
0 Likes
1,485

Hi,

You will encounter this error if function group is not active. You need to activate the Function Group that you have created.

To activate the Function Group, go to SE80 --> Select Function Group from the list box --> Give you Function Group name --> Press Enter --> Right Click on the Function Group name --> Click on Activate.

Once your Function Group is activated, activate your Function Module. Now you can see no errors.

Regards

Read only

Former Member
0 Likes
1,485

hello rams-

1st activate the include and then the report where you called the include.

i think this will fix the issue.

Cheers,

~Srini...

Read only

Former Member
0 Likes
1,485

Hi,

Try to write whatever code you needed in your include and just activate the include without checking the syntax check. If your include doesn't contains any include then it will activated else it shows error.

Regards,

Raghu

Read only

Former Member
0 Likes
1,485

Hi ram. Just comment the include from the main program.

Now create the include program. No com back to main program and uncomment the include and activate, it will work. Because You have include the program before creating it. Thats why it shows error.

Reward points if it is helpful.

Regards,

Sankar.

Read only

Former Member
0 Likes
1,485

Hi,

Just write INCLUDE <name> in your program . Double-click it and it will created and is ready for coding.

But, sometimes, you cant check syntax (ctrl +F2) for include. Then, u will get the same error (REPORT/PROGRAM statement missing, or program type is I (INCLUDE).). In that case, do syntax check from main program or activate it directly.

Reward if helpful.

Regards,

Ramya

.

Read only

Former Member
0 Likes
1,485

Hi,

Are u giving a Syntax check on Include? If so, It is not possible to syntactically check an Include.

You can activate and do the syntax check from main program.

The error you have mentioned is basically due to above said reason.

Regards,

Farheen

Read only

Former Member
0 Likes
1,485

Hi

if you call any function module in your program and that function module's group is not acivated then only you get error like this.just check if there is any function module called by your program.

also check this.

whether you have activated the include program or not.

Read only

Former Member
0 Likes
1,485

Hi u would get this error, but still if u activate the program, it gets activate......

Read only

Former Member
0 Likes
1,485

HI,

I think you have written some event in that include.

Like Initialization,At Selection Screen, Start-of-selection.

Try to remove that Events.

Revert back in case any problem.

Regards

Sandipan