Application Development 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: 

How to pass table to RFC Function Module

Former Member
0 Kudos

Hi All,

I am passing a table to a RFC FM in some other system. In that system that RFC enabled FM is written and i have declared the tables in the tables tab of FM and refference type is my custom structures. But while debugging i see that the table is not passed to other system , which means the table is empty in the RFC FM. Why that is happening,

Could you please help me and win full points.

- chandan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

to pass a table to a RFC FM try this procedure.

declare an intrernal table with the same as that of RFC FM.

data:wa type (table in rfc fm) occurs o with header line.

wa-f1 = value1

wa-f2 = value 2

-


append wa.

give in the place of tables in the rfc fm this 'wa'.

if you find this answer is useful.Please reward me the points.

thanks

2 REPLIES 2

Vijay
Active Contributor
0 Kudos

hi

custom structure should match with the type of table the RFC FM is receiving.

otherwise it wont work

regards

vijay

r<b>eward points if helpful</b>

Former Member
0 Kudos

hi,

to pass a table to a RFC FM try this procedure.

declare an intrernal table with the same as that of RFC FM.

data:wa type (table in rfc fm) occurs o with header line.

wa-f1 = value1

wa-f2 = value 2

-


append wa.

give in the place of tables in the rfc fm this 'wa'.

if you find this answer is useful.Please reward me the points.

thanks