‎2013 Feb 07 5:44 AM
i am creating one function module which is rfc enabled, while creating function module in the tables tab i given itab 'type' as one ztab1(structure name).
i am getting error messge in status bar "flat types may only be referenced using LIKE for table parameters"?
if I give LIKE in place ot TYPE following information pop up box is coming function module not geting activated.
‎2013 Feb 07 5:54 AM
‎2013 Feb 07 5:57 AM
‎2013 Feb 07 5:59 AM
Hi rier,
Are you declaring it in CHANGING tab or TABLES tab.
you cant declare the variable in CHANGING tab for RFC FM>
Regards,
Vikram
‎2013 Feb 07 6:17 AM
Please check your Import and Export Parameters , checked on check-box "Pass by value".
if not check plz checked as per below screen shot.
Activating RFC .
1: Click on Display Object List icon (Ctrl+shift+F5)
2 : Go to Display Mode (Ctrl+F1)
3: Right Click on Function Group --> Select Activate
Regard's
Smruti
Regard's
Smruti
‎2013 Feb 07 6:39 AM
‎2013 Feb 07 5:59 AM
hi ,
Declaration with LIKE is the correct one...
Please look the table ztab1 is activated or not ...
and check the other parameter's too..
hope it helps ,
Vinoth
‎2013 Feb 07 6:40 AM
‎2013 Feb 07 6:28 AM
Hi,
I just tried creating a sample RFC FM with tables parameter in the same way as you have done and the FM got successfully activated without the information pop up which you have shown. I used LIKE for the dictionary structure.
I would suggest you click on the 'question mark' icon on your information pop up message to know the reason behind. Thanks.
Regards,
Kumud
‎2013 Feb 07 6:38 AM
Hi Kumud,
is yor RFC having any import and export parameter without Checked on "Pass Value" , then you try to active ur RFC then you find above information "Reference parameters are not allowed with RFC"
Regard's
Smruti
‎2013 Feb 07 6:46 AM
Hi Smruti,
Thanks
I resolved the message 'Reference parameters are not allowed with RFC' by selecting the option 'Pass by Value' which is also the right way of using Import parameters in FM.
Regards,
Kumud
‎2013 Feb 07 6:49 AM
when i did ctrl + f2 ,"no syntax errors found" message came,after when i am activating following error is coming?
‎2013 Feb 07 6:53 AM
‎2013 Feb 07 6:58 AM
Look at TOP include (LZBAPIFGRPTOP) it MUST begin with "FUNCTION-POOL zbapifgrp". Just add some global data here, but don't remove generated lines. Of course don't remove the "INCLUDE lzbapifgrptop." statement from main program. It is good practice to immediately activate any new function group created before creating the FM.
Regards,
Raymond
‎2013 Feb 07 7:04 AM
‎2013 Feb 07 7:15 AM
Hi Rier werl,
Default parameters of a FM are passed by reference. This is very efficient because instead of passing the values you are referring to the memory address of variable.
But when you are referring to the Remote Function Modules you have to mark the Pass by Value check box in Import and Export parameters since RFC can be called from anywhere also direct access is not possible so call be reference doesn't work.
So check the pass by value and test it.
‎2013 Feb 07 7:32 AM
Hi rier weri,
I have seen u r problem , u haven't given the import, export parameters properly , and check the source code too --- Bcoz few days back i got a same problem,
import check mark the pass option
‎2013 Feb 07 8:30 AM
Hi Rier,
In RFC Function module we cannot use pass bye reference, it should be pass by value.
So please tick the check box and try again.
Hope this will help you.
Thanks,
Anoop