on 09-27-2006 7:06 AM
Hi,
Is there a way to add customized fields in object container? this is to be used for the start conditions. Thanks!
Regards,
Cindy Sy
Hi Cindy,
You can add these Customized fields during the Event Definition as PARAMETERS to that event.
Once you define these parameters, you can find them populated automatically in the Event-Workflow Binding in Start Conditions.
In order to pass these values to Workflow,you should fill the Event Container in Application Program and then trigger the Event/Workflow.
Hope this helps.
Regards,
<i><b>Raja Sekhar</b></i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The event parameters should be added in SWO1 - Business Object Builder.
Check your event and click on PARAMETERS button.
But, why dont you choose the CHECK FUNCTION MODULE to put some extra Start conditions?
In these case, you jus have to create a Function module and get the required data based on your own business logic and then put your checks using this data...
Here is some documentation regarding Check FMs...
<i>Check function module
You can enter a check function module for the linkage to decide whether the receiver function module should actually be called. The data in the event container can be used for this.
If an exception is triggered during execution of the check function module, the linkage between the event and the receiver is not created.
A check function module exception has no effect on the event creator.
The event notification created is only to call the receiver function module, if the notification is a service notification.
The interface of the check function module is described in the documentation for the function module SWE_TEMPLATE_CHECK_FB . This function module can be used as a template and is stored in the function group SWE_TEMPLATE .</i>
Please ignore this if your requirement is different.
Regards,
<i><b>Raja Sekhar</b></i>
Hi,
I'm a bit confused.
What do you want to achieve/understand and in what part of the events-->workitems flow are we talking about.
Normally there are roughly these parts
1. find/trigger an appropriate event (e.g SWO1, NACE, change docs or via custom FM)
2. conditioning on that event (e.g. SWB_COND, check function modules, SWEHR3)
3. binding from the event to the workflow container( pftc, or abusing a check FM)
Kind regards, Rob Dielemans
HI Rob,
I'm trying to start 3 WFL with different Conditions for Confirmation BUS2203.
if GoodsRecipient = Requestor.. it should trigger the No Approval, WS10400010
if goodsrecipient <> Requestor.. it should trigger one step. WS10400002
if goodsrecipient = Requestor AND
customfield = 'SA'
Trigger the 2 step Approval WS10400009.
But the Requestor and the Goods Recipient is not shown in the start conditions. I tried to create an object in the container in PFTC_CHG workflow task.
Implemented a Badi doc_change to populate these values in the container. but still i cannot trigger the WFL.
HI Raja,
have tried to click Parameters but i am encountering this error
Function 'Parameter' is not supported by the selected object 'BUS2203'
Message no. OL613
Diagnosis
Using the cursor, you have selected an object and a function which is not supported by this object.
Procedure
Choose another object or another function.
Thank you for helping out.. hopefully I can solve this issue.. I really appreciate it..
Regards,
Cindy Sy
Hi Cindy,
As per Rob's earlier suggestion, you should create a subtype of BUS2203. In it, create attributes you want to use in your start condition.
Make sure to delegate it (SWO1 front screen, Settings->Delegate), then your new attributes will be available wherever you use BUS2203.
I would not use check FMs unless I have a specific reason. Using attributes/parameters in a start cond is easier to see and more extensible.
Hope that helps,
Mike
Hi Cindy Sy,
In the event --> WF binding, you can use all of the business objects attributes, of the event. These can be your own virtual attributes, if you copy the BO extend it with extra logic and delegate it.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.