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

Getting data from Private reference Object.

ronaldo_aparecido
Contributor
0 Likes
635

Hi Experts.

I have a Reference object called 'IV_EVENT_ID' as followed on debug picture below:

I did use 'ASSIGN' COMMAND TO GET the atribute 'MO_EVENT_DATA' of 'IV_EVENT_ID'

and worked ( sy-subrc = 0 ) as showed below:

*===========================================================

FIELD-SYMBOLS:<evento> type any.             

ASSIGN iv_event_id->mo_event_data to <evento>.

*===========================================================

Now i want to get 'MT_PARAMETER' of <evento> as showed below:

Then i use ASSIGN command again to get 'MT_PARAMETER' but

didn´t work ( sy-subrc = 4 ) :

*===============================================================

FIELD-SYMBOLS:<clt>    type any.

ASSIGN COMPONENT 'MT_PARAMETER' OF STRUCTURE <evento> TO <clt> .

*===============================================================

Anyone knows how to get this 'MT_PARAMETER' atributte.

Thanks for sugestions.

1 REPLY 1
Read only

Former Member
0 Likes
570

You have several methods at the interface IF_FPM_PARAMETER, which you are using with IV_EVENT_ID->MO_EVENT_DATA, e.g. GET_KEYS or GET_VALUE.

By the way: you don't need the field symbol. Use direclty IV_EVENT_ID->MO_EVENT_DATA.