Creating more than one subtype

Catherall, Andy M andy.m.catherall at csplc.com
Thu Jan 31 06:35:29 EST 2008


Hi Zsolt

The Existencecheck method exists on the parent object when the IFSAP interface has been included. It's purpose is to ensure that the business object only instantiates if the underlying data is accurate.

If you look at the methods on DRAW, you will notice that some are pink (inherited from above), some are white (methods defined for this object, not by the parent), and a few that may be red - these are methods which do exist on the parent, but it is prefered that an implementation is made for the local object. See "utilities--> Color legend" in SWO1.

However, note that the changes would _not_ be made on DRAW (as it is SAP standard), but you would change the subtyped/delegated object, as with any enhancement.

* For example, you might add code to ZDRAW to effectively check: Does the DIR exist? 

* Further, in my case with ZDRAWZMC, I have added code that asks: Does the DIR exist & is it of type ZMC?

I note that DRAW does not have any meaningful code for the existence check in my system, but other business objects do.

To re-define the method, you select F6 in change mode, on the appropriate method. There's a button across the top between Create & Rename.

I've found a link to some help on the SAP website, and whilst it may not be for your version of SAP, I doubt things will be all that different.

http://help.sap.com/saphelp_erp2005/helpdata/en/82/9092b00cc811d2953d0000e82dec10/frameset.htm

Regards
Andy

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Márton Zsolt
Sent: 31 January 2008 10:53
To: SAP Workflow Users' Group
Subject: RE: Creating more than one subtype

Hi
Thanks for quick reply. I like your solution but I'm a litle bit confused about the "existencecheck" enhancement?
That means, that you modified the standard DRAW object?

Thanks

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Catherall, Andy M
Sent: Thursday, January 31, 2008 11:21 AM
To: SAP Workflow Users' Group
Subject: RE: Creating more than one subtype

Hi Zsolt

We have severall workflows using ZDRAW, and that object was starting to get a bit complicated. When I started a new workflow development, I created a new DIR type (ZMC) and created a new subtype of draw (ZDRAWZMC). I enhanced the "existencecheck" method so that this object would only exist if the DIR type matched, and it would only have methods/attrributes pertinent to workflows that used this DIR type. I also created an attribute on ZDRAW that linked to  ZDRAWZMC, so that the workflow could get to my new object from the start event (DRAW-CREATED).

However, the important detail is that I did NOT delegate, as DRAW is already delegated to ZDRAW. The workflow I used employed methods on ZDRAWZMC when necessary (including those from DRAW, which of course are still inherited), but did not need the delegation to exist.

Hope this is of use.
Andy Catherall
Technical Analyst - SAP Workflow & DMS


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Márton Zsolt
Sent: 31 January 2008 10:05
To: SAP Workflow Users' Group
Subject: Creating more than one subtype

Hi all
I'm creating a workflow usnig DRAW as business object. At my customer there are several workflows using a ZDRAW subtype. I don't want to modify that custom object, so I'm planning to create my own.
My question is: is this possible to create another custom subtype and delagate to DRAW?

Thanks in advance
Zsolt

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug 
 
Please be environmentally friendly - please don't print this email unless you really need to 


-----------------------------------------
 
This email (including any attachment) is confidential and may contain privileged information. If you are not the intended recipient or receive it in error, you may not use, distribute, disclose or copy any of the information contained within it and it may be unlawful to do so. If you are not the intended recipient please notify us immediately by returning this e-mail to us at mailerror at csplc.com and destroy all copies.
Any views expressed by individuals within this e-mail do not necessarily reflect the views of Cadbury Schweppes Plc or any of its subsidiaries' or affiliates'. This email does not constitute a binding offer, acceptance, amendment, waiver or other agreement, unless such intention is clearly stated in the body of the email.  Whilst we have taken reasonable steps to ensure that this e-mail and attachments are free from viruses, recipients are advised to subject this mail to their own virus checking, in keeping with good computing practice. 
Please note that e-mail received by Cadbury Schweppes Plc or its subsidiaries or affiliates may be monitored in accordance with applicable law. 

Cadbury Schweppes plc registered in England, Company Number 00052457 whose Registered Office is at 25 Berkeley Square, London, W1J 6HB United Kingdom
Telephone:+44 (0) 20 7409 1313 Fax:+44 (0) 20 7830 5200
-----------------------------------------

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

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug 
 
Please be environmentally friendly - please don't print this email unless you really need to 


-----------------------------------------
 
This email (including any attachment) is confidential and may contain privileged information. If you are not the intended recipient or receive it in error, you may not use, distribute, disclose or copy any of the information contained within it and it may be unlawful to do so. If you are not the intended recipient please notify us immediately by returning this e-mail to us at mailerror at csplc.com and destroy all copies.
Any views expressed by individuals within this e-mail do not necessarily reflect the views of Cadbury Schweppes Plc or any of its subsidiaries' or affiliates'. This email does not constitute a binding offer, acceptance, amendment, waiver or other agreement, unless such intention is clearly stated in the body of the email.  Whilst we have taken reasonable steps to ensure that this e-mail and attachments are free from viruses, recipients are advised to subject this mail to their own virus checking, in keeping with good computing practice. 
Please note that e-mail received by Cadbury Schweppes Plc or its subsidiaries or affiliates may be monitored in accordance with applicable law. 

Cadbury Schweppes plc registered in England, Company Number 00052457
whose Registered Office is at 25 Berkeley Square, London, W1J 6HB United Kingdom
Telephone:+44 (0) 20 7409 1313 Fax:+44 (0) 20 7830 5200 
-----------------------------------------




More information about the SAP-WUG mailing list