Skip to Content

How to read type ref object?

Hi Guys.

I have a object:

Inside it has :

and inside has a strutucre that i need .

how can i get this structure with this data?

I try assign but didnt work.

FIELD-SYMBOLS:<trq_id> type any.

ASSIGN COMPONENT 'TRQ_ID' of STRUCTURE IS_DATA to <trq_id>.

if <trq_id> is assigned.

  endif.

Thanks

is_data.png (3.1 kB)
insideit.png (6.3 kB)
structure_id.png (31.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 28, 2015 at 02:45 PM

    Try to derefence the IS_DATA (REF TO DATA?) with an ASSIGN ->*

    * Dereference

    ASSIGN is_data->* TO <structure>.

    * Assign components

    ASSIGN COMPONENT 'TRQ_ID' of STRUCTURE <structure> to <trq_id>.

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2015 at 02:24 PM

    Hi Ronaldo,

    first part I want to check with you:

    From where do you want to access the structure? if it is oustside of the class, check if you can "see" the structure is_data.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Stefan Seeburger
      IS_DATA is an object,

      on the first screenshot it shows that is_data is a structure...

      is_data is a reference on data, not a reference on an instance of a class (object),

      and guessing from the Type of the structure it is dynamically created