| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
To instantiate any Business object in a WorkflowBy Swetabh Shukla, Infosys 1.
Go to SWDD and create a new workflow. This workflow will have two steps.
This is just for test purpose so we are not going to define any triggering event
etc. First step will instantiate
(creating a runtime object) a business object and second step will use that
runtime object to execute one of its method. We know that to instantiate any BO
we need the object key to be passed. Key uniquely identifies a runtime instance
of Business Object (henceforth we will refer it as BO or business object
interchangeably). Note:
BO = ‘Business Object’ in all the references below. For example use BO BUS1001006.
This BO is for Standard Material. Let us consider a material number
‘ZSHUKSWE20’ in this case. The method DISPLAY of BO can be used to display
the material passed in key field of the BO BUS1001006. We will try to
instantiate the BO for object key = ZSHUKSWE20 which is material number in
current scenario. We will use Business Object
SYSTEM and method GENERICINSTANTIATE to instantiate any Business Object in
workflow.
The workflow template will look like this.
We will define a container
element of type business object BUS1001006.
Create
the task from workflow builder directly.
In binding of the task with method pass variables objectkey and objecttype. These will be created automatically in Task container. The method will return runtime object in export parameter ‘OBJECTINSTANCE’.
Save the task and go back to
workflow builder.
Now create binding between TASK
and workflow. Now here you can pass hard coded values for OBJECTKEY = Material
Number and OBJECTTYPE = BUS1001006
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||