cancel
Showing results for 
Search instead for 
Did you mean: 

Question about attribute

Former Member
0 Kudos

Hi, i realize an enhacement to /SAPSRM/WDC_DO_SOCO_GAF_3 webdynpro component

on COMPONENTCONTROLLER i realize a postexit on PROCESS_EVENT.

i use the attribute WD_THIS.

data lv TYPE REF TO /sapsrm/if_pdo_xo.

CALL METHOD wd_this->mo_aom_soco->/sapsrm/if_cll_xo_mapper~get_pdo

RECEIVING

ro_pdo = lv.

in lv i can see the MT_INTERNAL_REF_TABLE attribute , but it is a private instance attribute.

and i need the data from this internal table attribute, but its private, im looking for other methods to obtain the data with no sucess

How i can get data from MT_INTERNAL_REF_TABLE?

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Lukas_Weigelt
Active Contributor
0 Kudos

Last resort: Enhance the class, create a method which exposes the private attribute to the outside in form of a parameter. I did this once and it works fine up until now. Probably the time will come when things explode because certain attributes are set private for good reasons...

Former Member
0 Kudos

i guess this is the assign source of supply screen in SRM 7!!

can you let us know what are you trying to achieve(overall), probably will help us understand more.

former_member182372
Active Contributor
0 Kudos

There is no way you can access private attribute unless your class is a "firiend" http://help.sap.com/abapdocu_70/en/ABENFRIENDS.htm or there is a getter method