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 pass values to RFC while testing

Former Member
0 Likes
1,496

Hi ,

I have created a RFC .where importing parameter is a table .Now when i am trying to test RFC in tcode se37 i.e i am trying to test is directly .But i am not able to pass data to the importing parameter, which is a table.

So can some one tell me , why its happening.Is it standard process that you cant pass data to rfc importing parameter when its of table type.

regards

PG

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,381

Hai..

When working with Remote Function Modules we need to follow some rules.

1. We cannot pass the parameters by refference.

2. When passing tables as parameters the table should be standard.

3. Caller may be any ABAP program but the called program must be a FM regestered as Remote.

Regards

Sekhar.C

Hi ,

I have created a RFC .where importing parameter is a table .Now when i am trying to test RFC in tcode se37 i.e i am trying to test is directly .But i am not able to pass data to the importing parameter, which is a table.

So can some one tell me , why its happening.Is it standard process that you cant pass data to rfc importing parameter when its of table type.

regards

PG

8 REPLIES 8
Read only

Former Member
0 Likes
1,381

Did you declare this as type STANDARD TABLE?

Read only

0 Likes
1,381

Hi Kalyan,

The type is a table type.So that i can pass a internal table on runtime to this importing parameter.

But when trying to test it , its not allowing me to pass data to that importing parameter manually.

Read only

Former Member
0 Likes
1,382

Hai..

When working with Remote Function Modules we need to follow some rules.

1. We cannot pass the parameters by refference.

2. When passing tables as parameters the table should be standard.

3. Caller may be any ABAP program but the called program must be a FM regestered as Remote.

Regards

Sekhar.C

Read only

0 Likes
1,381

Hi shekhar,

Well i think, as i have given type as a table type , which is z type may be because of that i am not able to test it or not able to pass value manually.

regards

PG

Read only

former_member222860
Active Contributor
0 Likes
1,381

Hi,

we've standard RFMs to read the table entries, just go thru them, like:

RFC_READ_TABLE

thanks|

Mahesh

Read only

Former Member
0 Likes
1,381

Hi PG,

jus declare it as LIKE and gve the structure of the table.Just try if this helps.

Read only

Former Member
0 Likes
1,381

HI,

Please go through the link below, hope it will help you.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4abcb190-0201-0010-4798-a225afd01...

Regards,

Sathish R

Read only

Former Member
0 Likes
1,381

Hi,

As it is a RFC enabled FM , the passing structure muyst be exist in destination system also,

So try to use standard structures, if not define same structure in destination system also.

Hope this is useful.

Regards,

Phani.