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: 

Passing dynamic internal table to FM using RFC

Former Member
0 Kudos

Dear All,

Is it possible to pass a dynamic internal table to a function module using RFC?

If it is possible than how do i achive this?

5 REPLIES 5

Former Member
0 Kudos

Hi

Please check table tab of the function module, whether there is any types is declared or not. if it is there, then we can't use dynamic concept

0 Kudos

Can we pass a dynamic internal table froma RFC FM to a Z program

0 Kudos

yes we can...

use the field symbol concept ..

use this... <fs> type as standard table.

0 Kudos

Basically not, RFC enabled FM parameters must be defined by a LIKE or TYPE clause. so you may try to use a prededined SAP type wide enough (e.g. TAB512 ) and map the data in the FM and caller program (in Unicode try to use tools like class CL_ABAP_CONTAINER_UTILITIES to map data between actual internal table record and RFC used itab "container" type)

For examples look at RFC enabled RFC_GET_TABLE_ENTRIES FM, and look for where-used program.

Regards,

Raymond

0 Kudos

the problem with RFC_GET_TABLE_ENTRIES is that it does not support int type and inserts special characters anywhere.