SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Прочитать атрубуты вызывающего класса



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
XXX_:)
Аналитик
Аналитик


Age: 40
Joined: 01 Feb 2008
Posts: 387
Location: Воронеж

PostPosted: Mon Dec 15, 2008 6:07 pm    Post subject: Прочитать атрубуты вызывающего класса Reply with quote

В методе класса происходит вызов метода другого класса. Как из вызванного метода прочитать атрибуты вызывающего?

Больше конкретики:
Code:

Из метода TRANSLATE_MAIN класса CL_HRPP_ITEM  происоходит вызов
CALL METHOD cl_hrpp_document=>create_document_objects.
Нужно изнутри этого метода обатиться к атрибуту CL_HRPP_ITEM->CL_T_HRPP_PPDIX

_________________
Hормальные люди делают вещи намного более безумные чем всё, что делают сумасшедшие (c) С.Лем
Back to top
View user's profile Send private message Blog
John Doe
Модератор
Модератор


Age: 45
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Mon Dec 15, 2008 6:33 pm    Post subject: Reply with quote

Попробовал на самописных классах, сработало вроде.
Code:
  DATA: dref TYPE REF TO data.
  FIELD-SYMBOLS: <fs> TYPE hrpp_t_item_ppdix.
  GET REFERENCE OF cl_hrpp_item=>cl_t_hrpp_ppdix INTO dref.
  ASSIGN dref->* TO <fs>.
  WRITE <fs>.
Back to top
View user's profile Send private message Blog
XXX_:)
Аналитик
Аналитик


Age: 40
Joined: 01 Feb 2008
Posts: 387
Location: Воронеж

PostPosted: Tue Dec 16, 2008 3:57 pm    Post subject: Reply with quote

Большое спасибо.
Ткнули носом, что атрибут то static. Embarassed

_________________
Hормальные люди делают вещи намного более безумные чем всё, что делают сумасшедшие (c) С.Лем
Back to top
View user's profile Send private message Blog
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.