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

function module activation problem?

Former Member
0 Likes
5,097

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.

17 REPLIES 17
Read only

Former Member
0 Likes
4,119

Hi ,

Check with below Screen Shot...

Regard's

Smruti

Read only

0 Likes
4,119

not solved, same error is coming

Read only

0 Likes
4,119

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

Read only

0 Likes
4,119

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

Read only

0 Likes
4,119

tables tab

Read only

vinoth_aruldass
Contributor
0 Likes
4,119

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

Read only

0 Likes
4,119

zstructure(ztab1) activated

Read only

kumud
Active Contributor
0 Likes
4,119

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

Read only

Former Member
0 Likes
4,119

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

Read only

kumud
Active Contributor
0 Likes
4,119

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

Read only

Former Member
0 Likes
4,119

when i did ctrl + f2 ,"no syntax errors found" message came,after when i am activating following error is coming?

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
4,119

Hi Rier,

Try to activate the whole function group in SE80.

Read only

0 Likes
4,119

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

Read only

Former Member
0 Likes
4,119

problem solved thanks to every one.

Read only

Former Member
0 Likes
4,119

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.

Read only

kabil_g
Active Participant
0 Likes
4,119

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

Read only

Former Member
0 Likes
4,119

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