‎2010 Feb 23 6:19 AM
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.
‎2010 Feb 23 6:37 AM
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".
‎2010 Feb 23 6:37 AM
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".
‎2010 Feb 23 6:51 AM
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
‎2010 Feb 23 6:55 AM
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.