bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Reply To: RFC_READ_TABLE

E2E Forum Modeling & Development RFC_READ_TABLE Reply To: RFC_READ_TABLE

#1984

Jakub
Moderator

The behaviour you’re observing is correct. The Bridge uses object references to avoid copying potentially large amount of data. With just a few exceptions data items are always referenced.

To get the desired behaviour, you’d have to either use separate variables like this:

create local options1 using rFC_DB_OPTReference;
set options1.TEXT = "IDOCTP = 'DELVRY01' AND";
append options1 to   optionstable;

create local options2 using rFC_DB_OPTReference;
set options2.TEXT = "MESTYP = 'DESADV' AND";       
append options2 to   optionstable;

or use one variable and a copy() operation like this:

create local options using rFC_DB_OPTReference;
set options.TEXT = "IDOCTP = 'DELVRY01' AND";
append options.copy() to   optionstable;

set options.TEXT = "MESTYP = 'DESADV' AND";       
append options.copy() to   optionstable;