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

report/program statement missing error

Former Member
0 Likes
837

groupname was ygroup1.

functional module name was ytxdiv

FUNCTION YTXDIV.

*"----


*"Local Interface:

*" IMPORTING

*" REFERENCE(P1) DEFAULT 1

*" REFERENCE(P2)

*" EXPORTING

*" REFERENCE(P3)

*"----


p3 = p2 / p1.

ENDFUNCTION.

they above program is a functiional module while iam execute. it was activate and i was written in se37

REPORT YSUSEX01.

parameters: op1 type i DEFAULT 2,

op2 type i default 3.

data rslt type p DECIMALS 2.

CALL FUNCTION 'YTXDIV'

EXPORTING

p1 = op1

p2 = op2

importing

p3 = rslt.

WRITE : / op1 ,op2,rslt.

they abouve program is a caller function written in se38. and it was a executable program.

while am execute , after the input paramete they should display the message shown below

The following syntax error occurred in program "SAPLYGROUP1 " in include

"SAPLYGROUP1 " in

line 2:

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

" "

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
770

Duplicate post with

Repair the function group YGROUP1. SAPLYGROUP1 is the main program of group YGROUP1. it seems it has lost its first include LYGROUP1TOP which sould begin with a FUNCTION-POOL YGROUP1.

You should only work on the main program when you want to add a new include (at the end of the source) and usually you don't need to do that as the editor will add the include when you are prompted to give the include which should contain a new FORM or MODULE.

Regards

Read only

0 Likes
770

*******************************************************************

  • System-defined Include-files. *

*******************************************************************

INCLUDE LYGROUP1TOP. " Global Data

INCLUDE LYGROUP1UXX. " Function Modules

*******************************************************************

  • User-defined Include-files (if necessary). *

*******************************************************************

  • INCLUDE LYGROUP1F... " Subprograms

  • INCLUDE LYGROUP1O... " PBO-Modules

  • INCLUDE LYGROUP1I... " PAI-Modules

sir, u tell where i want to include the statements. after i click the mouse button on the LYGROUP1UXX. the below message should be display.

*****************************************************************

  • THIS FILE IS GENERATED BY THE FUNCTION LIBRARY. *

  • NEVER CHANGE IT MANUALLY, PLEASE! *

*****************************************************************

INCLUDE LYGROUP1U01.

"YTXDIV

Read only

0 Likes
770

Go to include LYGROUP1TOP, it should begin with a FUNCTION GROUP YGROUP1. Correct and activate.

Or use SE37 and repair the function group as explained in other post.

Don't change the -UXX and -U01 include, there are managed through SE37 when creating or deleting Function Modules.

Regards

Read only

Former Member
0 Likes
770

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.

Thanks,

Sriram Ponna.