‎2012 Jun 28 3:55 AM
Hi Experts,
I am trying to copy the existing FM to create a new Generic data source but during I am activate the new copied FM in SE80 I am getting systax error 'REPORT/PROGRAM statement missing , program type is I (include).' even I have try to activate the main program in Se80 but still I facing the same error.
so please let me know the what I need to done plz.
I have copied FG, and I have created new strusture.
‎2012 Jun 28 4:35 AM
You must have missed TOP include. Activate the top include then uxx include and then the function group. Go through all inactive objects and try to find SAPL*TOP and activate it.
Don't go for "Activate Anyway." - Ever.
It just creates a faulty copy in the system and when executed, gives a runtime dump of syntax error. - And you end up loosing original working copy. If SAP is giving an error, there must be a reason for it.
‎2012 Jun 28 4:18 AM
Hello Venkataramana
Just click on "activate anyway" button a popup window is displayed. All the includes get activated and you should not get that error.
Regards,
Shyam
‎2012 Jun 28 4:28 AM
Hi,
First active the Function Group which you have copied and then activate the function module.
‎2012 Jun 28 4:35 AM
You must have missed TOP include. Activate the top include then uxx include and then the function group. Go through all inactive objects and try to find SAPL*TOP and activate it.
Don't go for "Activate Anyway." - Ever.
It just creates a faulty copy in the system and when executed, gives a runtime dump of syntax error. - And you end up loosing original working copy. If SAP is giving an error, there must be a reason for it.
‎2012 Jun 28 4:52 AM
Thanks Chinmay for correcting me ... my bad
But this is a very common error while working with FM's and it is typically because of the sequence in which we activate the programs ..
Goto SE80->Give Function group name->Right click on it->Activate.
Regards,
Shyam
‎2012 Jun 28 5:01 AM
Hi Kulkarni,
Thank you so much for your information. the issue has been solved.
‎2012 Jun 28 5:53 AM
that is why I always keep "display object list" open and activate objects by right clicking on root object.
Many times I would forget to activate statuses and titlebars and keep wondering whats wrong.