AW: Access to the attributes of an object reference

Werner Kößl werner.koessl at hirschvogel.de
Tue May 20 08:43:11 EDT 2003


Thank you Tomasz!
 
But unfortunately i have another question:
I want to read the values of another object.
how can i create an object reference when the attribute has no object type
like the standard container element '_Adhoc_Objects'.
(  DATA: adhoc TYPE SWC_OBJECT.
   SWC_CREATE_OBJECT adhoc '???' ?key?. )
 
Kind regards,
Werner.
 
 
-----Urspr|ngliche Nachricht-----
Von: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]Im Auftrag von
Zmudzin,Tomasz,VEVEY,GL-IS/IT
Gesendet: Montag, 19. Mai 2003 16:52
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Access to the attributes of an object reference
 
 
...
data: wa_versions type SWC_OBJECT.
...
...
loop at versions into wa_versions.
  SWC_GET_PROPERTY wa_versions 'MY_ATTRIB' my_variable.
endloop.
 
 
Of course instead of the loop you can also "read table ... into wa_versions
where ..."
 
Kind regards,
Tomasz
 
-----Original Message-----
From: Werner Kv_l [mailto:werner.koessl at hirschvogel.de]
Sent: Monday,19. May 2003 15:02
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Access to the attributes of an object reference
 
 
Hi workflow experts,
 
i created a delegated subtype ZDRAW of the supertype DRAW.
In the implementation of ZDRAW i want to access to the multiline attribute
'DocumentVersions'.
 
I did it the following way:
  DATA document TYPE swc_object.
  DATA versions TYPE swc_object OCCURS 0.
 
  swc_create_object document 'DRAW' object-key.
  swc_get_table_property document 'DocumentVersions' versions.
 
But how can i access to the attributes of the object reference 'versions'
now???
 
Thanks in advance!
Werner.
 


More information about the SAP-WUG mailing list