06-09-2011 5:06 AM
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?
06-09-2011 6:09 AM
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
06-09-2011 6:28 AM
06-09-2011 7:46 AM
yes we can...
use the field symbol concept ..
use this... <fs> type as standard table.
06-09-2011 8:55 AM
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
06-20-2011 6:06 AM
the problem with RFC_GET_TABLE_ENTRIES is that it does not support int type and inserts special characters anywhere.