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

How to create a RFC function module with exporting parameter as structure in type groups

Former Member
0 Likes
4,060

Hi Experts,

I need to create an RFC function module and pass the exporting parameter a  deep structure(nearly 10 structures). It seems very difficult to create a structure in SE11 and its very time taken to create all these stuff, so I created a deep structure in type group and  try to use this in my function module. It is working fine with normal function module but when comes to RFC function module i am getting an message that it was not exists even though i declare that  type groups in the top Include of function module.

Can anyone help me regarding this issue.

Thanks and regards,

Girish Kumar.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,925

AFAIK you MUST use ddic definition for RFC enabled FM...

from  458283 - Error message Fl 385 "Type &1 is unknown"


Types from the type pools are not allowed for RFC-compatiblefunction modules. The FL 385 error message should correctly read:

"Type &1 is unknown or forbidden".

Regards,

Raymond

6 REPLIES 6
Read only

Former Member
0 Likes
1,925

Hi Girish,


Did you mention function module as “Remote-enabled module” in the attributes tab?

Read only

0 Likes
1,925

Hi Vishnu,

Yes I have mentioned RFC in attributes,

Thanks and Regards,

Girish Kumar V.

Read only

0 Likes
1,925

Didi you followed the below steps while creating the RFC.

1. Create a FM in SE37 in Target system enabling Remote-Fucntion Enabled Usin attributes of FM.

2. Create the same FM in the Local system ( It's recommended for later debugging) create only the structure - NO Need to put the code and all.

3. Creata a RFC connection in SM59 mentioning Usernam and Password.

4. Using this RFC connctin name, Call the FM in u program using CALL FUNCTION ABC DESTINATION 'YZ'.

sy-subrc value

1 - System Failure

2 - Communication Failure

it is default sy-subrc values in RFCs

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,926

AFAIK you MUST use ddic definition for RFC enabled FM...

from  458283 - Error message Fl 385 "Type &1 is unknown"


Types from the type pools are not allowed for RFC-compatiblefunction modules. The FL 385 error message should correctly read:

"Type &1 is unknown or forbidden".

Regards,

Raymond

Read only

Former Member
0 Likes
1,925

Hello Girish,

Exporting parameters in an RFC enabled function module is not recommended as it can cause performance issues and as suggested by Raymond we do need to use DDIC type.

I would recommend you to use TABLES parameter instead of EXPORTING parameters.

Cheers,

Varun

Read only

0 Likes
1,925

Well you  have to choose:


  • Using TABLES parameters for remote-enabled function modules for RFC can be significantly faster than passing by means of the CHANGING parameter.
  • The additional option of defining table parameters using TABLES is obsolete.

Regards,

Raymond