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

very urgent-- function module

Former Member
0 Likes
895

Hi ,

I am trying to create a function module.I have declared the tables parameters it_mara like mara..

In the source code i have written this :

select * from mara into table it_mara up to 10 rows.

While i am activating the program I am getting the error ' REPORT/PROGRAM statament is missing , or program type is I ( INCLUDE )" .

Please let me know how to resolve this.

Regards,

Vishu.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
871

Hello

The <b>TOP </b>include of your function group should contain. the missing statement, e.g.:


FUNCTION-POOL zus_sdn_abap.                 "MESSAGE-ID ..

Either this statement is missing or you should try to activate the entire function group.

Regards

Uwe

6 REPLIES 6
Read only

Former Member
0 Likes
871

If its a Report In the top of your code please type in REPORT <b>NAME OF ABAP REPORT</b>.

more of like

<b>REPORT</b> ztest.

DATA:linetype TYPE string,

struc TYPE REF TO data.

In bold is missing..

Amandeep

Read only

uwe_schieferstein
Active Contributor
0 Likes
872

Hello

The <b>TOP </b>include of your function group should contain. the missing statement, e.g.:


FUNCTION-POOL zus_sdn_abap.                 "MESSAGE-ID ..

Either this statement is missing or you should try to activate the entire function group.

Regards

Uwe

Read only

0 Likes
871

I have activated the function group.Now it is working.Thanks a lot.

Read only

former_member194669
Active Contributor
0 Likes
871

Hi,

Do you activate the function group main program. Please check In the main program top include you should be having statement .

"function-pool XXXX" .

a®

Read only

Former Member
0 Likes
871

hi

go to the main program activate it.also activate each and every include in the main program

Read only

Clemenss
Active Contributor
0 Likes
871

Hi Vishwanath,

just activate anyway. If real errors remain, it will tell you.

Probably you are working with 46C. This happens if you activate an include and the workbench does not know where it is included.

I think wit ECC 600 it gets better.

Regards,

Clemens