<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Rick<BR>
<BR>
Thanks for the quick reply.<BR>
<BR>
I created the object reference using the wizard for SYSTEM method GENERICINSTANTIATE, as you stated below.<BR>
This gives the object reference in my workflow container.<BR>
<BR>
I also gave it some 'initial values' in the workflow container for the key as well. However it does not get instantiated. I tried to assign it values in a container operation but the system doesn't allow that.<BR>
<BR>
On my next step I tried to read other attributes, but it gives blank values, and when I check the container in the test tool it states its not instantiated.<BR>
<BR>
Any ideas why its not instantiated?<BR>
<BR>
Thanks<BR>
Sunni<BR>
<BR>
<BR> <BR>> From: rbakker@gmail.com<BR>> Date: Mon, 18 Jan 2010 13:19:31 -1000<BR>> Subject: Re: Easy way to get object (database) attribute in to workflow<BR>> To: sap-wug@mit.edu<BR>> <BR>> Hello,<BR>> <BR>> "I have copied a business object in swo1 and added some new database<BR>> attributes in to it."<BR>> Was that really necessary? With subtypes and delegation you could just<BR>> add attributes to the existing BO.<BR>> <BR>> "Please can you give me an idea of how I would now get these<BR>> attributes in to my workflow."<BR>> Is it an existing workflow? Is it the main object of that workflow? If<BR>> so, you don't have to do much, just reference the new attributes - if<BR>> you use delegation.<BR>> <BR>> Otherwise, you would have to create a task to instantiate the object<BR>> (using SYSTEM method GENERICINSTANTIATE) call that task in a workflow<BR>> step and pass the object instance to the workflow. That's more<BR>> flexible than passing separate attributes.<BR>> <BR>> regards<BR>> Rick Bakker<BR>> Hanabi Technology<BR>> <BR>> <BR>> On Mon, Jan 18, 2010 at 12:46 PM, Shoaib Mirza <shoaib_mirza@hotmail.com> wrote:<BR>> > Hi<BR>> > Urgent fix required for a customer.<BR>> > I have copied a business object in swo1 and added some new database<BR>> > attributes in to it. I've been away from workflow for a while so I'm a<BR>> > little rusty!<BR>> ><BR>> > Please can you give me an idea of how I would now get these attributes in to<BR>> > my workflow. I know I have to instantiate the object so, do I have to also<BR>> > create a method, instantiate in the method, and then pass the attribute<BR>> > values in to the result parameter in this method; and then bind to wf<BR>> > container elements?<BR>> ><BR>> > Thanks<BR>> > Sunni<BR>> ><BR>> ><BR>> > ________________________________<BR>> > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us<BR>> > now<BR>> > _______________________________________________<BR>> > SAP-WUG mailing list<BR>> > SAP-WUG@mit.edu<BR>> > http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>> ><BR>> ><BR>> <BR>> _______________________________________________<BR>> SAP-WUG mailing list<BR>> SAP-WUG@mit.edu<BR>> http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>                                            <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>