Leave Workflow (WS12300111) adding description to workitem

Dart, Jocelyn jocelyn.dart at sap.com
Wed May 23 10:38:26 EDT 2007


Hi Mark, 

Don't go that way.  That class doesn't represent the details of the
leave request - it represents the workflow attributes relevant to the
leave request which is a different thing entirely.   So your class
should not be a sub-class of the original as it represents a different
entity.   Also a sub class doesn't help you - you can't specify
delegation in the same way as BOR object types  so you would still need
to change the workflow to use your new subclass. 

Create your own class to read the leave details and return the leave
type. 
Copy the standard workflow.  Add a task to instantiate your class. 

If you REALLY need to link your class with the CL_PT_REQ_WF_ATTRIBS
class e.g. because you need to put the leave type in the Basic Data of
the workflow itself, then create a new attribute/method of
CL_PT_REQ_WF_ATTRIBs that retrieves the details of the leave request.
This may seem like a mod but is actually recommended somewhere in the
help doco - and no please don't ask me to find the reference - have fun
searching for yourself. 

You might want to check out table PTREQ_ATTABSDATA as the source of your
absence details. 
 


Regards,
Jocelyn Dart
Senior Consultant
SAP Australia Pty Ltd.
Level 1/168 Walker St.
North Sydney 
NSW, 2060
Australia
T   +61 412 390 267
M   + 61 412 390 267
E   jocelyn.dart at sap.com
http://www.sap.com

The information contained in or attached to this electronic transmission
is confidential and may be legally privileged. It is intended only for
the person or entity to which it is addressed. If you are not the
intended recipient, you are hereby notified that any distribution,
copying, review, retransmission, dissemination or other use of this
electronic transmission or the information contained in it is strictly
prohibited. If you have received this electronic transmission in error,
please immediately contact the sender to arrange for the return of the
original documents. 
Electronic transmission cannot be guaranteed to be secure and
accordingly, the sender does not accept liability for any such data
corruption, interception, unauthorized amendment, viruses, delays or the
consequences thereof.
Any views expressed in this electronic transmission are those of the
individual sender, except where the message states otherwise and the
sender is authorized to state them to be the views of SAP AG or any of
its subsidiaries. SAP AG, its subsidiaries, and their directors,
officers and employees make no representation nor accept any liability
for the accuracy or completeness of the views or information contained
herein. Please be aware that the furnishing of any pricing information/
business proposal herein is indicative only, is subject to change and
shall not be construed as an offer or as constituting a binding
agreement on the part of SAP AG or any of its subsidiaries to enter into
any relationship, unless otherwise expressly stated. 


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Mark Daley
Sent: Wednesday, 23 May 2007 7:41 PM
To: sap-wug at mit.edu
Subject: Leave Workflow (WS12300111) adding description to workitem

Hi all, I want to add the leave type description eg Annual Leave to
the work item text for WS12300111 (We're on ECC5).

I thought this would be simple but I'm getting stuck. 

I'm thinking of creating a z class inheriting from
CL_PT_REQ_WF_ATTRIBS (mod to turn off 'final' flag) and adding a
suitable attribute to hold the leave type description. I'm not seven
ure if this will work.

There must be a better way!

Any ideas?

Mark




_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list