cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Container

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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>

Former Member
0 Kudos

Hi Raja,

Have a field set in mind to be use (Goods Recipient and Requestor) in Confirmation.

What Tcode should I use to be able do event definition as PARAMETERS?

Application Program.. Hmm is it ok to do this in a BADI?

Thanks!

Cindy Sy

Former Member
0 Kudos

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>

former_member186746
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

pokrakam
Active Contributor
0 Kudos

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

Former Member
0 Kudos

HI Mike,

Where can I create a subtype of BUS2203? SWO1?

When I went there and Settings> there is no delegate.. it only displays debugger on/off..

Thanks

Cindy Sy

pokrakam
Active Contributor
0 Kudos

Yep, SWO1. Once created, you do the delegation from the front screen of SWO1 (The debug is in the object view).

The help's pretty good on extending object types.

Cheers,

Mike

Answers (1)

Answers (1)

former_member186746
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Rob,

What do you mean by WF Binding? What I want to use is to be able to see the objects in the container for the start condition.

Thanks

CIndy Sy