Object Type Attributes

Stevens, Seth Seth.Stevens at anadarko.com
Fri Oct 6 01:15:47 EDT 2006


Renier,
 
If I'm reading your question correctly you should be able to do
something like this...
 
DATA: material TYPE swc_object,
purchaseorder TYPE swc_object,
vendor TYPE swc_object.
 
swc_get_property self 'zMaterialAttribute' material.
swc_get_property material 'zPurchaseOrderAttribute' purchaseorder.
swc_get_property purchaseorder 'zVendorAttribute' vendor.
 
You now have the vendor object attribute from the associated PO in your
local vendor variable.
 
Thanks,
Seth
 
________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Renier Walters
Sent: Thursday, October 05, 2006 6:32 PM
To: sap-wug at mit.edu
Subject: Object Type Attributes


I have created ZVBAP object and delegated from VBAP object.  Within the
ZVBAP object I have Object MATERIAL(BUS1001).  Now within the MATERIAL
object exists a PURCHASEORDER(BUS2012) object.  Say for arguments sake I
would like to grab the Vendor attribute within the PURCHASEORDER object.

 
How many levels deep can I access these values in the imbedded objects
and how do I access these values in any of the methods in my ZVBAP
object? 
 
Do I use SWC_GET_ELEMENT CONTAINER or SWC_GET_PROPERTY SELF etc in my
method.  I am not sure what the ABAP syntax should look like.
 
Any help would be appreciated.
 
Thanks in advance,
Renier



-----------------------------------------
*Please note my E-Mail Address has changed.  Please update your
contact list*

Anadarko Confidentiality Notice:  
This electronic transmission and any attached documents or other
writings are intended only for the person or entity to which it is
addressed and may contain information that is privileged,
confidential or otherwise protected from disclosure.  If you have
received this communication in error, please immediately notify
sender by return e-mail and destroy the communication. Any
disclosure, copying, distribution or the taking of any action
concerning the contents of this communication or any attachments by
anyone other than the named recipient is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20061006/343e9759/attachment.htm


More information about the SAP-WUG mailing list