07-10-2017 3:34 PM
Hi Guys.
I have a method parameter IP_OBJECT.
I need to access a atribute MPT_DLV and inside it a internal table.
I tryed by field symbol but did not work..Do you know a way to access this data and move to a internal table or variable?
thanks
07-10-2017 6:47 PM
If the attribute is protected or private, then it is not designed to be accessed. Search for a getter method.
If you explain what the business requirement is, you might get answers that meet that. At the moment you've simply stated your preferred solution - which is not necessarily the best way of doing things.
07-10-2017 6:47 PM
If the attribute is protected or private, then it is not designed to be accessed. Search for a getter method.
If you explain what the business requirement is, you might get answers that meet that. At the moment you've simply stated your preferred solution - which is not necessarily the best way of doing things.
07-11-2017 1:59 PM
Hello,
We know nothing about your context but a best practice is to create a specific class with /SCA/CL_SVDELIVERY as superclass and create a method "get_mpt_dlv" returning mpt_dlv.
Then you declare a new data (lets say LO_OBJECT_EXTENDED) refering to your new class. You can use cast operator ?= to copy IP_OBJECT to LO_OBJECT_EXTENDED and call LO_OBJECT_EXTENDED->get_mpt_dlv().
Best regards
Bertrand