<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi&nbsp; Kjetil/Mike/Jocelyn<BR>
&nbsp;<BR>
thanks for your points, I appreciate your feedback.<BR>
&nbsp;<BR>
Unfortunately I come to this project too late to impart the change I would like and some of your fine suggestions. So for now&nbsp;I am governed by the&nbsp;"legitimate but annoying reasons".<BR>
&nbsp;<BR>
So our approach (which is&nbsp;OO class based)&nbsp;will be to store the material data in the contrainer. Data is captured in&nbsp;'stagegates' not all at once, so this minimises the size issue. Also I've done analysis of SWWCNTP0 which is looking manageable (I've added comments to a&nbsp;recent blog on this subject&nbsp;by&nbsp;Eddie Morris SAP)<BR>
<A href="https://weblogs.sdn.sap.com/pub/wlg/24176">https://weblogs.sdn.sap.com/pub/wlg/24176</A><BR>
&nbsp;<BR>
If this approach causes&nbsp; problems, I like the suggestions mentioned before ie&nbsp;XML serialising or the table deep struc. <BR>
&nbsp;<BR>
Mike regarding the option of storing the data in a&nbsp;table with a deep struc,&nbsp;I didn't think it was possible to store a deep structure in a database table, only&nbsp;internally in local tables.? Am I missing something?<BR>
&nbsp;<BR>
Mark<BR>
&nbsp;<BR>
&gt; Date: Tue, 26 Apr 2011 09:50:07 +0200<BR>&gt; From: Kjetil Kilhavn &lt;kjetil.kilhavn@bluec.no&gt;<BR>&gt; Subject: Re: Deep Structures in container<BR>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt; Message-ID: &lt;201104260950.07773.kjetil.kilhavn@bluec.no&gt;<BR>&gt; Content-Type: Text/Plain; charset="iso-8859-1"<BR>&gt; <BR>&gt; Tirsdag 19. april 2011 18.59.07 skrev Mike Pokraka :<BR>&gt; &gt; Hi Mark,<BR>&gt; &gt; <BR>&gt; &gt; Technically it's possible - if not ideal- but practically I don't see the<BR>&gt; &gt; value in it. There are plenty of alternatives to prevent a material from<BR>&gt; &gt; being used during creation. Plant/Material status fields are easy<BR>&gt; &gt; candidates. The advantage of doing it all directly on the material is that<BR>&gt; &gt; you have the entire history of who added what and when as opposed to a big<BR>&gt; &gt; pile of data created by a system user.<BR>&gt; I couldn't agree more. The value of change logs is often not seen until a <BR>&gt; question comes from senior management who demands to know who made or changed <BR>&gt; a document and you're not able to answer the question because change logs have <BR>&gt; been falsified (UPDATE cdhdr, I have only seen this once luckily) or are not <BR>&gt; used as pointed out by Mike.<BR>&gt; <BR>&gt; The only time I have seen a value in storing much data in the container is <BR>&gt; when the data can be changed and the user must see the data exactly as they <BR>&gt; were when the workflow was started. This is rarely a requirement from the <BR>&gt; customer, but it has occurred in one case (during my 10 years).<BR>&gt; <BR>&gt; &gt; More importantly, as you are already aware materials are complex, and<BR>&gt; &gt; you're throwing any config-based validations and consistency controls out<BR>&gt; &gt; of the window when you create a temporary storage concept. You either need<BR>&gt; &gt; to duplicate this in all your input dialogs, or are headed for some<BR>&gt; &gt; serious exception handling at posting stage.<BR>&gt; Or quite simple, but very user-hostile exception handling, as in: the update <BR>&gt; failed - please start over from scratch :-)<BR>&gt; -- <BR>&gt; Kjetil Kilhavn (+47 40220607)<BR>&gt; Blue Consulting AS (http://www.bluec.no)<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------<BR>&gt; <BR>&gt; Message: 2<BR>&gt; Date: Tue, 26 Apr 2011 15:09:01 +0100 (BST)<BR>&gt; From: "Mike Pokraka" &lt;wug@workflowconnections.com&gt;<BR>&gt; Subject: RE: Deep Structures in container<BR>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@MIT.EDU&gt;<BR>&gt; Message-ID:<BR>&gt; &lt;32b818ca985bab1f7b10f848ce97e1cf.squirrel@g.mail.aaisp.net.uk&gt;<BR>&gt; Content-Type: text/plain;charset=iso-8859-1<BR>&gt; <BR>&gt; Hi Mark,<BR>&gt; <BR>&gt; Kjetil has a good points, and from personal experience I'd still not<BR>&gt; recommmend it but then again I've also had to do it before due to<BR>&gt; "legitimate but annoying reasons" :-)<BR>&gt; <BR>&gt; I would go with Paul's earlier suggestion and store the data in one or<BR>&gt; more custom tables. In workflow you can have a 'Temp material' object<BR>&gt; keyed on this table/s (as you're starting from scratch I'd definitely<BR>&gt; recommend OO over BOR here). You can either use a single table with a deep<BR>&gt; structure, or serialize your data into XML, or have a set of tables<BR>&gt; mirroring the MA* tables. All have their dis/advantages and I'm sure you<BR>&gt; can work out what suits your cause.<BR>&gt; <BR>&gt; Cheers,<BR>&gt; Mike<BR>&gt; <BR>&gt; <BR>&gt; On Thu, April 21, 2011 12:09 pm, Mark Daley wrote:<BR>&gt; &gt;<BR>&gt; &gt; Hi Paul/Mike<BR>&gt; &gt;<BR>&gt; &gt; thanks for your replies, sorry for the delay getting back, we've been<BR>&gt; &gt; discussing this internally.<BR>&gt; &gt;<BR>&gt; &gt; I agree with you both that storing outside of workflow on either SAP or<BR>&gt; &gt; custom tables is the best approach.<BR>&gt; &gt;<BR>&gt; &gt; Storing the data in SAP Master Data and using statuses is an obvious way<BR>&gt; &gt; to go, but it not an option here for legitimate but annoying reasons I<BR>&gt; &gt; won't go into.<BR>&gt; &gt; Storing in Z tables, is too complex as it will effectively mean<BR>&gt; &gt; replicating SAP Material Master.<BR>&gt; &gt;<BR>&gt; &gt; So we're are going to take approach of storing in the deep struc in the<BR>&gt; &gt; container. I've done some anaylysis of SWWCNTP0<BR>&gt; &gt; I did a simple test with a container with 1 basic element, it takes up<BR>&gt; &gt; approc 1 line (1024 chars). My deep struc unfilled takes up 3,700chars,<BR>&gt; &gt; and filled takes up 10,000chars.<BR>&gt; &gt;<BR>&gt; &gt; Is this alot of space for a WF container are there any guidlines on this?<BR>&gt; &gt; Or is it all down to system size etc.<BR>&gt; &gt;<BR>&gt; &gt; I've read that if this table gets too large there could be performance<BR>&gt; &gt; issues, so our intention is that in PRD we'll just have to archive more<BR>&gt; &gt; frequently.<BR>&gt; &gt;<BR>&gt; &gt; Is this the main potential impact on performance or could there be others<BR>&gt; &gt; associated with passing alot of data between containers?<BR>&gt; &gt;<BR>&gt; &gt; Would like to hear your experience.<BR>&gt; &gt;<BR>&gt; &gt; Mark<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; Subject: Re: Deep Structures in container<BR>&gt; &gt;&gt; To: sap-wug@mit.edu<BR>&gt; &gt;&gt; From: Paul.Bakker@osr.treasury.qld.gov.au<BR>&gt; &gt;&gt; Date: Tue, 19 Apr 2011 08:06:12 +1000<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Mark,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Your approach sounds a lot like the workflow 'forms' concept, where a<BR>&gt; &gt;&gt; form<BR>&gt; &gt;&gt; full of data is passed to various users for completion (and approval),<BR>&gt; &gt;&gt; and<BR>&gt; &gt;&gt; is then committed to the database. But I think 'forms' can only handle<BR>&gt; &gt;&gt; flat<BR>&gt; &gt;&gt; structures.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Generally it is not best practice to pass large amounts of data in a<BR>&gt; &gt;&gt; workflow. Imagine how the container database table would blow out in<BR>&gt; &gt;&gt; size,<BR>&gt; &gt;&gt; if the data was replicated for each workitem..!<BR>&gt; &gt;&gt; Instead, pass a unique key to the data.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; So in this case, you could store all this to-be-approved Material data<BR>&gt; &gt;&gt; in a<BR>&gt; &gt;&gt; custom (nested) database table. The table could have a GUID key, which<BR>&gt; &gt;&gt; the<BR>&gt; &gt;&gt; workflow can refer to.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Or.. does Material Management have the concept of a 'parked' material,<BR>&gt; &gt;&gt; that<BR>&gt; &gt;&gt; can be stored in standard tables, pending approval?<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; cheers<BR>&gt; &gt;&gt; Paul Bakker<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; From: Mark Daley &lt;mark_daley@hotmail.com&gt;<BR>&gt; &gt;&gt; To: &lt;sap-wug@mit.edu&gt;<BR>&gt; &gt;&gt; Date: 18/04/2011 10:59 PM<BR>&gt; &gt;&gt; Subject: Deep Structures in container<BR>&gt; &gt;&gt; Sent by: sap-wug-bounces@mit.edu<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Hello folks,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; I am building a Material Master Data Request workflow (ECC 5.0) and I<BR>&gt; &gt;&gt; would<BR>&gt; &gt;&gt; like your input on storing large amounts of data in deep structures in<BR>&gt; &gt;&gt; the<BR>&gt; &gt;&gt; workflow container.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; The business requirement is to gather the material data from several<BR>&gt; &gt;&gt; agents<BR>&gt; &gt;&gt; concurrently/parallel(via custom screens) and once all tasks are<BR>&gt; &gt;&gt; completed<BR>&gt; &gt;&gt; the Material request is sent for approval. If all is well the data is<BR>&gt; &gt;&gt; posted to SAP (via BAPI). Each agent enters unique data pertaining to<BR>&gt; &gt;&gt; their<BR>&gt; &gt;&gt; role in the business eg R&amp;D, Finance etc.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; In the workflow, I am storing this data in a single container<BR>&gt; &gt;&gt; element(deep<BR>&gt; &gt;&gt; structure) containing 18 sub structures eg MARA, MARC etc and 9 tables<BR>&gt; &gt;&gt; eg<BR>&gt; &gt;&gt; MAKT , MARM etc.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; The intention of using a single deep structure is to reduce maintenance<BR>&gt; &gt;&gt; on<BR>&gt; &gt;&gt; the number of wf bindings. The interface to the FM that calls the<BR>&gt; &gt;&gt; various<BR>&gt; &gt;&gt; custom screens uses this same deep structure.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Could passing a large deep structure data element between task and wf<BR>&gt; &gt;&gt; cause<BR>&gt; &gt;&gt; issues eg performance/storage/archiving? There will be approx 2000<BR>&gt; &gt;&gt; workflows a month.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Given the data gathered from the agents must be approved before being<BR>&gt; &gt;&gt; posted in SAP, is there any other way I could be doing this other than<BR>&gt; &gt;&gt; using a deep structure to store the data in the workflow?<BR>&gt; &gt;&gt; I don?t want to explicitly add a data element for each piece of material<BR>&gt; &gt;&gt; data in my wf container plus all the bindings!<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; I?d appreciate your input/experience especially if you have any<BR>&gt; &gt;&gt; experience<BR>&gt; &gt;&gt; of workflow handling large amounts of data in the container or with deep<BR>&gt; &gt;&gt; structures.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Thanks<BR>&gt; &gt;&gt; Mark_______________________________________________<BR>&gt; &gt;&gt; SAP-WUG mailing list<BR>&gt; &gt;&gt; SAP-WUG@mit.edu<BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; *********************************************************************************************<BR>&gt; &gt;&gt; Only an individual or entity who is intended to be a recipient of this<BR>&gt; &gt;&gt; e-mail may access or use the information contained in this e-mail or any<BR>&gt; &gt;&gt; of its attachments. Opinions contained in this e-mail or any of its<BR>&gt; &gt;&gt; attachments do not necessarily reflect the opinions of Queensland<BR>&gt; &gt;&gt; Treasury.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; The contents of this e-mail and any attachments are confidential and may<BR>&gt; &gt;&gt; be legally privileged and the subject of copyright. If you have received<BR>&gt; &gt;&gt; this e-mail in error, please notify Queensland Treasury immediately and<BR>&gt; &gt;&gt; erase all copies of the e-mail and the attachments. Queensland Treasury<BR>&gt; &gt;&gt; uses virus scanning software. However, it is not liable for viruses<BR>&gt; &gt;&gt; present in this e-mail or in any attachment.<BR>&gt; &gt;&gt; ***************************************************************************************************<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; _______________________________________________<BR>&gt; &gt;&gt; SAP-WUG mailing list<BR>&gt; &gt;&gt; SAP-WUG@mit.edu<BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; ------------------------------<BR>&gt; <BR>&gt; Message: 3<BR>&gt; Date: Tue, 26 Apr 2011 17:05:30 +0100<BR>&gt; From: "Vijayendra Rao (Absoft)" &lt;vrao@absoft.co.uk&gt;<BR>&gt; Subject: RE: UWL Replace option or Replace button<BR>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt; Message-ID: &lt;2C9B4CD8BAE97847924AF9B2233248C701C82C4F@ABSM01&gt;<BR>&gt; Content-Type: text/plain; charset="us-ascii"<BR>&gt; <BR>&gt; Hi,<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; The current PO approval workflow may potentially be sent to more than<BR>&gt; one person so if one person goes into the approval workflow they are<BR>&gt; effectively starting the process - if they back out of it as they decide<BR>&gt; the PO is not for them to approve this means that the workflow is no<BR>&gt; longer available for any other approver to action.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Is there anything that we can do so that the workflow remains available<BR>&gt; to the approvers until the PO is either approved or rejected?<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; In SBWP the users have 2 choices <BR>&gt; <BR>&gt; 1). To forward the workitem to the actual approver using the forwarding<BR>&gt; option<BR>&gt; <BR>&gt; 2). Choose the replace option to convert the workitem from status in<BR>&gt; process to status new.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; In UWL.<BR>&gt; <BR>&gt; Currently we have only the Forward option and the users feel it is quite<BR>&gt; difficult to forward it as the UI to forward in UWL is not that easy. <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; In our UWL we don't have the Replace option or Replace button. Any idea<BR>&gt; how to enable this button in UWL? <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Thanks<BR>&gt; <BR>&gt; VJ<BR>&gt; <BR>&gt; -------------- next part --------------<BR>&gt; An HTML attachment was scrubbed...<BR>&gt; URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110426/dc227de9/attachment-0001.htm<BR>&gt; <BR>&gt; ------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; <BR>&gt; <BR>&gt; End of SAP-WUG Digest, Vol 77, Issue 43<BR>&gt; ***************************************<BR><BR>                                               </body>
</html>