‎2008 May 16 5:28 AM
I have a internal table filled with 'n' rows, n>1
Now I want to transfer the rows to table parameter of an rfc.
The table parameter of rfc is defined as a reference to a structure.
Say my internal table is int_itab
And my tables paramater is z_op
How can i transfer rows from int_itab to z_op
Thanks.
‎2008 May 16 5:32 AM
‎2008 May 16 5:35 AM
Hi,
if the structure of internal table int_itab & z_op are same then directly u can pass data from table to another table using
z_op[] = int_itab[].
if these two are don't have same structure use the code like below.
loop at int_itab.
move corresponding int_itab to z_op.
append z_op.
endloop.
rgds,
bharat.
‎2008 May 16 5:37 AM
Declare the same type of your structure defined in RFC .
That internal table is same type of the table declared in FM .
and pass the records of your internal table to that defined structure.
and execute.
example.
CALL 'ZGET_LIFNR' DESTINATION 'REMOTE''
EXPORTS
IMPORTS
TABLES
ZTAB = ITAB.
THE ITAB SHOULD BE HAVING SAME STRUCTURE OF ZTAB.
Regards,
Madan.
‎2008 May 16 5:40 AM
Hi,
define one internal table with type of table parameter(table type)
it_tab type table type,
wa_itab type (table type of line type)
assign u r internal table values into work area of (table type)
append internal table(table type).
pass appended internal table as inputparameter to RFC.
i hope u r problem will be solved.
regards,
kishore.