‎2008 Feb 09 2:43 PM
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)."
" "
‎2008 Feb 09 2:55 PM
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
‎2008 Feb 09 3:03 PM
*******************************************************************
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
‎2008 Feb 09 3:11 PM
‎2008 Feb 09 9:25 PM
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.