bildwelt
E2E FORUM
E2E Bridge E2E Commerce

RFC_READ_TABLE

E2E Forum Modeling & Development RFC_READ_TABLE

This topic contains 1 reply, has 2 voices, and was last updated by  Jakub 2 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1982

    marcusr
    Participant

    When i add entries to the RFC_DB_OPT table it changes always the same element. When i use a array with element of type string it does add the entries correct but i am not able to pass this on to the RFC_DB_OPT table. How can i solve this ?
    I have added a project which used the RFC_READ_TABLE function.

    Best regards,

    Marcus

    #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;
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.