<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
&nbsp;<BR>
Eureka!! At long last it worked!<BR>
I had to fill the container element 'objectkey' as well as the&nbsp;key fields in my&nbsp;zobject.<BR>
&nbsp;<BR>
Many thanks<BR>&nbsp;<BR>
<HR id=stopSpelling>
From: shoaib_mirza@hotmail.com<BR>To: sap-wug@mit.edu<BR>Subject: RE: Easy way to get object (database) attribute in to workflow<BR>Date: Tue, 19 Jan 2010 00:05:55 +0000<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hi<BR>&nbsp;<BR>The key works fine in swo1.&nbsp; I've tried to&nbsp;pass the key in a number of different ways&nbsp;but it doesnt work.<BR>What do you mean by 'You have to pass the key when calling the task', how do you&nbsp; call the task?&nbsp; Isn't that&nbsp;just&nbsp;the object reference step (which calls the object reference&nbsp;task)?<BR>&nbsp;<BR>Best Regards<BR>&nbsp;<BR>&gt; From: rbakker@gmail.com<BR>&gt; Date: Mon, 18 Jan 2010 13:55:17 -1000<BR>&gt; Subject: Re: Easy way to get object (database) attribute in to workflow<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; Hello,<BR>&gt; <BR>&gt; You have to pass the key when calling the task. Try that key first in<BR>&gt; SWO1 to make sure it's correct. GENERICINSTANTIATE will work if the<BR>&gt; proper key is passed, keep trying!<BR>&gt; <BR>&gt; regards<BR>&gt; Rick Bakker<BR>&gt; Hanabi Technology<BR>&gt; <BR>&gt; On Mon, Jan 18, 2010 at 1:40 PM, Shoaib Mirza &lt;shoaib_mirza@hotmail.com&gt; wrote:<BR>&gt; &gt; Hi Rick<BR>&gt; &gt;<BR>&gt; &gt; Thanks&nbsp;for the quick reply.<BR>&gt; &gt;<BR>&gt; &gt; I created the object reference using the&nbsp;wizard for SYSTEM method<BR>&gt; &gt; GENERICINSTANTIATE, as you stated below.<BR>&gt; &gt; This gives the object reference in&nbsp;my workflow container.<BR>&gt; &gt;<BR>&gt; &gt; I also gave it some 'initial values' in the workflow&nbsp;container for the key<BR>&gt; &gt; as well.&nbsp; However it does not get instantiated.&nbsp; I tried to assign it values<BR>&gt; &gt; in a container operation but the system doesn't allow that.<BR>&gt; &gt;<BR>&gt; &gt; On my next step I tried to read&nbsp;other&nbsp;attributes, but&nbsp;it gives&nbsp;blank&nbsp;values,<BR>&gt; &gt; and when I check the container&nbsp;in the test tool it states its<BR>&gt; &gt; not&nbsp;instantiated.<BR>&gt; &gt;<BR>&gt; &gt; Any ideas why its not instantiated?<BR>&gt; &gt;<BR>&gt; &gt; Thanks<BR>&gt; &gt; Sunni<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; From: rbakker@gmail.com<BR>&gt; &gt;&gt; Date: Mon, 18 Jan 2010 13:19:31 -1000<BR>&gt; &gt;&gt; Subject: Re: Easy way to get object (database) attribute in to workflow<BR>&gt; &gt;&gt; To: sap-wug@mit.edu<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Hello,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; "I have copied a business object in swo1 and added some new database<BR>&gt; &gt;&gt; attributes in to it."<BR>&gt; &gt;&gt; Was that really necessary? With subtypes and delegation you could just<BR>&gt; &gt;&gt; add attributes to the existing BO.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; "Please can you give me an idea of how I would now get these<BR>&gt; &gt;&gt; attributes in to my workflow."<BR>&gt; &gt;&gt; Is it an existing workflow? Is it the main object of that workflow? If<BR>&gt; &gt;&gt; so, you don't have to do much, just reference the new attributes - if<BR>&gt; &gt;&gt; you use delegation.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Otherwise, you would have to create a task to instantiate the object<BR>&gt; &gt;&gt; (using SYSTEM method GENERICINSTANTIATE) call that task in a workflow<BR>&gt; &gt;&gt; step and pass the object instance to the workflow. That's more<BR>&gt; &gt;&gt; flexible than passing separate attributes.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; regards<BR>&gt; &gt;&gt; Rick Bakker<BR>&gt; &gt;&gt; Hanabi Technology<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; On Mon, Jan 18, 2010 at 12:46 PM, Shoaib Mirza &lt;shoaib_mirza@hotmail.com&gt;<BR>&gt; &gt;&gt; wrote:<BR>&gt; &gt;&gt; &gt; Hi<BR>&gt; &gt;&gt; &gt; Urgent fix required for a customer.<BR>&gt; &gt;&gt; &gt; I have copied a business object in swo1 and added some new database<BR>&gt; &gt;&gt; &gt; attributes in to it. I've been away from workflow for a while so I'm a<BR>&gt; &gt;&gt; &gt; little rusty!<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Please can you give me an idea of how I would now get these attributes<BR>&gt; &gt;&gt; &gt; in to<BR>&gt; &gt;&gt; &gt; my workflow.&nbsp;I know I have to instantiate the object so, do I have to<BR>&gt; &gt;&gt; &gt; also<BR>&gt; &gt;&gt; &gt; create a method, instantiate&nbsp;in the method,&nbsp;and then pass the attribute<BR>&gt; &gt;&gt; &gt; values in to the result parameter in this method; and then bind to wf<BR>&gt; &gt;&gt; &gt; container elements?<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Thanks<BR>&gt; &gt;&gt; &gt; Sunni<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; ________________________________<BR>&gt; &gt;&gt; &gt; We want to hear all your funny, exciting and crazy Hotmail stories. Tell<BR>&gt; &gt;&gt; &gt; us<BR>&gt; &gt;&gt; &gt; now<BR>&gt; &gt;&gt; &gt; _______________________________________________<BR>&gt; &gt;&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt;&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt;&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;&gt; &gt;<BR>&gt; &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; ________________________________<BR>&gt; &gt; Do you want a Hotmail account? Sign-up now - Free<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; &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><BR>
<HR>
Got a cool Hotmail story? <A href="http://clk.atdmt.com/UKM/go/195013117/direct/01/">Tell us now</A>                                               <br /><hr />Do you want a Hotmail account? <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now - Free</a></body>
</html>