Using supertypes of attributes

Michael Pokraka workflow at quirky.me.uk
Wed Jun 30 10:27:25 EDT 2004


Hi all,
I've an attribute 'Sales Document' which is used in different workflows f=
or
different document types (read: different Business objects). However I'm
struggling to keep it generic, as SAP won't let me assign a VBAK attribut=
e
to e.g. a BUS2102 or a BUS2032 container element. The only (nasty)
workaround I can think of is to create a seperate attribute for each
document type.
Now, for methods a task can be created for a common supertype, and you ca=
n
call this method with any subtype without a problem. In the OO world this=
 is
known as polymorpohism. I know this is expecting a bit much from business
objects, but still I'm curious if there is any sneaky way around creating
individual attributes....
Any ideas welcome,
Cheers
Mike
 


More information about the SAP-WUG mailing list