Accessing attributes from Supertype within Subtype Program

Thomas Maue tmaue at atlasair.com
Fri Mar 3 13:17:07 EST 2000


Bill,
 
A possible solution from another angle if I am interpreting your E-mail correctly.
Some attributes are not dynamically populated during each access of the
Business Object.  I have worked with EMPOYEET quite a bit and this is the
case.  You must retrieve the attributes (ReasonForEvent and EventType)
(via coding in the new attribute) before you do your table lookup.
 
Use this code as an example:
swc_get_property self 'ReasonForEvent' zreason.
 if sy-subrc <> 0. exit_object_not_found. endif.
swc_get_property self 'EventType' ztype.
 if sy-subrc <> 0. exit_object_not_found. endif.
 
Also, make sure these attributes have values by testing directly, especially
ReasonForEvent.
 
Thomas Maue Jr.
SAP Cross-Application Specialist
Certified Workflow Consultant
 
 
-----Original Message-----
From:   Martin Maguth (USA) [SMTP:martin.maguth at ixos.com]
Sent:   Friday, March 03, 2000 8:28 AM
To:     SAP-WUG at MITVMA.MIT.EDU
Subject:        Re: Accessing attributes from Supertype within Subtype Program
 
if the attributes are already part of the supertype ... shouldn't they have
been inherited by the subtype ? if you are using the subtype in the workflow
and then create a binding with the supertype, the supertype won't have an
instance in the workflow. as a result, you wouldn't be able to access the
attibutes unless they are part of the subtype ...
 
hope this helps,
 
martin
 
 
 -----Original Message-----
From: Kokoszka, William A. UTRC [mailto:KokoszWA at utrc.utc.com]
Sent: Friday, March 03, 2000 10:11 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Accessing attributes from Supertype within Subtype Program
 
 
 
Yes I did. I have been using this subtype for 6 months. Customer requested a
new attribute which requires a table lookup. The 2 attributes I need
(ReasonForEvent and EventType) are already in the supertype. I am trying to
use these 2 existing attributes in the supertype to do my table lookup to
generate the new attribute. I have been unsuccessful in accessing these 2
attributes and I don't want to add them to my subtype since they already are
part of the supertype.
 
 
Thank you,
Bill Kokoszka
 
Phone:(860) 610-7752
Fax  :(860) 610-7310
E-mail: kokoszwa at utrc.utc.com
 
 
 
-----Original Message-----
From: Schroeter, Brad [mailto:BSchroeter at ti.com]
Sent: Friday, March 03, 2000 10:04 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Accessing attributes from Supertype within Subtype Program
 
 
Bill,
Have you done a delegation on your subtype?  In 4.0B on the SWLD tran, it's
Settings -> Delegate -> System-wide.  Your object type would be EMPLOYEET
and your delegation type would be ZEMPLOYEET(?).
 
-Brad
 
-----Original Message-----
From: Kokoszka, William A. UTRC [mailto:KokoszWA at utrc.utc.com]
Sent: Friday, March 03, 2000 8:49 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Accessing attributes from Supertype within Subtype Program
 
 
 
We have extended object type EMPLOYEET with a subtype. I would like to
reference a number of attributes from the supertype and have not been
successful. Any suggestions? We are running 3.1H.
 
Thank you,
Bill Kokoszka
 
Phone:(860) 610-7752
Fax  :(860) 610-7310
E-mail: kokoszwa at utrc.utc.com
 


More information about the SAP-WUG mailing list