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

internal table

Former Member
0 Likes
395

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.

4 REPLIES 4
Read only

Former Member
0 Likes
381

If the structures are same you can use APPEND LINES OF syntax

Read only

Former Member
0 Likes
381

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.

Read only

Former Member
0 Likes
381

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.

Read only

Former Member
0 Likes
381

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.