Removing BO attachment from work item

Florin Wach florin.wach at gmx.net
Tue Jan 22 03:40:41 EST 2008


Hello Sue,

the attachment list with the business objects links is created from two sources:
1. Objects, used as leading objects during the workflow
2. Objects, that are in the list _ATTACH_OBJECTS

You can only remove references to business objects, that you have attached yourself in the second list, where for the first one, the workflow runtime system uses (at least) the current leading object (i.e. the one under _WI_OBJECT in the work item's task).

So the way to remove this object link is kinda blocked, where the way to fully replace all occurences of BUS1065 with two different one's (and therefor not using a system wide delegation) is quite too complicated.

SOLUTION:
1. Create a subtype of BUS1065 -> ZBUS1065.
2. Create+Implement+set status to implemented of a new virtual text attribute 'HiringType' that either says "Employee" or "Hired", depending on the information you hopefully have somewhere stored which is accessible through the object's key. 
3. In the object editor use the menu  Goto-->Basic Data, choose tab "Defaults". Under the edit field "Attribute" select the new 'HiringType' attribute.
4. Enable system wide delegation from BUS2065 to ZBUS1065

Now instead of a general "Employee", which was the text of the object's type when there's no default maintained, you'll see that this behaviour has changed now. You'll have to re-start the workplace' transaction and mayhaps also to use transaction SWU_OBUF to refresh.
To check, if you have implemented this correctly, you could start by setting the attribute 'HiringType' to a fixed text, e.g. "Hello, World".


That's what came up to my mind and hopefully you'll can get any further with this information.

Best wishes,
Florin







-------- Original-Nachricht --------
> Datum: Mon, 21 Jan 2008 16:44:37 -0500
> Von: "Sue Doughty" <Sue.Doughty at odfl.com>
> An: "SAP Workflow Users\' Group" <sap-wug at mit.edu>
> Betreff: Removing BO attachment from work item

> We're on ECC 6.0.
> 
> We have a situation where we have drivers that are employees of our
> company and we have drivers that are Owner Operators (Leased) that are
> contracted to drive for our company.  
> 
> Each type has to go through the "hiring" process.  Applicants are
> created and processed and then turned into "Employees" or "Owner
> Operators".  They are both stored in SAP as HR Master Data and are
> differentiated by EE Subgroup (ex., employee drivers are D1 and Owner
> Operators are Z1).  
> 
> When the "New Hire" work items are sent to the various departments, the
> business object (BUS1065 - Employee) is attached. I have had to create
> two separate "New Hire" workflows -- one for employees and one for Owner
> Operators.  The words employee or hire cannot exist in the Owner
> Operator workflow.  It is very important that there be a distinction
> between the two.
> 
> My question:  can the Business Object attachment be removed from a
> workflow?  Since the name of BUS1065 is Employee, that is how it
> displays on the object and attachment side of the work item for both the
> Employee and the Owner Operator workflows.  If it can be removed, how
> would you do it?
> 
> Regards, 
> Sue T. Doughty 
> SAP Workflow Specialist
> OLD DOMINION FREIGHT LINE, INC.
> 500 Old Dominion Way, Thomasville, NC 27360
> Toll Free :(800)432-6335, ext.5189 
> Phone :(336)822-5189 Fax :(336)822-5149 
> sue.doughty at odfl.com
> 
> 
> ****************************
> CONFIDENTIALITY NOTICE: The information contained in this message may be
> confidential, privileged, proprietary, or otherwise legally exempt from
> disclosure. If the reader of this message is not the intended recipient, or an
> employee or agent responsible for delivering this message to the intended
> recipient, you are hereby notified that you are not authorized to read,
> print, retain, copy or disseminate this message, any part of it, or any
> attachments. If you have received this message in error, please delete this
> message and any attachments from your system without reading the content and
> notify the sender immediately of the inadvertent transmission. Thank you for
> your cooperation.
> 
> _______________________________________________
> 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