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

Remote function module is not compilable, normal function is not

rainer_hbenthal
Active Contributor
0 Likes
649

Hi,

i have a function module with processing type "normal function", which is compilable and working well. I'm using the type definition ABAP_COMPNAME.

If i change the function module to "remote-enabled", i'm getting a compiler error that ABAP_COMPNAME is unknown.

Can someone explain why this is happening? For what reason ABAP_COMPNAME is no longer available when i'm chnaging the FM to remote enabled?

PS Please dont give any hints how to change my function module, that is NOT the question. I just want to understand the mechanism behind.

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
558

It is clearly mentioned in SAP Help that we cannot use types from type-pool

in RFC function modules.



Associated Type of an Interface Parameter

ABAP associated type for an interface parameter. The associated type must be a 
global Dictionary  type or exist in a type pool. In the latter case, the type pool must 
be declared in the function group.

Note that you cannot use types from type pools for RFC-enabled function modules.

When assigning a type using the LIKE typ method, you cannot use types from 
type pools either.

Additionally you can use the internal ABAP types C, I, N, X, P, D, T, F, and the 
TABLE type - to an extent in generic form.

You can find further information about this in the Function Builder manual and in the
 ABAP online documentation under the keyword "Types".

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
559

It is clearly mentioned in SAP Help that we cannot use types from type-pool

in RFC function modules.



Associated Type of an Interface Parameter

ABAP associated type for an interface parameter. The associated type must be a 
global Dictionary  type or exist in a type pool. In the latter case, the type pool must 
be declared in the function group.

Note that you cannot use types from type pools for RFC-enabled function modules.

When assigning a type using the LIKE typ method, you cannot use types from 
type pools either.

Additionally you can use the internal ABAP types C, I, N, X, P, D, T, F, and the 
TABLE type - to an extent in generic form.

You can find further information about this in the Function Builder manual and in the
 ABAP online documentation under the keyword "Types".

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
558

Hey Gautham,

How did you come across this SAP documentation ? I searched for RFC parameters, did not find it there

Anyways thanks for this piece of info.

BR,

Suhas

Read only

0 Likes
558

Good information Gautham.I tried to replicate the same in my system which rainer posted in the forum,but couldn't figure out the reason for the error message..

Many thanks ..;-)

Regards,

Lakshman.