cancel
Showing results for 
Search instead for 
Did you mean: 

Need to restrict triggering of workflow only once(first time).

Former Member
0 Kudos

Hi guys,

I hv a requirement to trigger the workflow only once(first time).

whatever is the the condition/changes in document, it should not trigger for second time.

do we hv any options available for this........

thanks in advance...

santosh.

Accepted Solutions (1)

Accepted Solutions (1)

keohanster
Active Contributor
0 Kudos

Hi Santosh,

Could you provide more information? What release are you on? What object are you working with? What events are you looking at?

Regards,

Sue

Former Member
0 Kudos

Hi susan,

Below is the requested information,

Release : ECC 6.0

we are working on custom WF for ECO creation(CC01).

Description,

ECO is created in SAP by legacy system, thru bapi CCAP_ECN_CREATE, the WF will take the editing of the material in that ECO to different departments like MRP, accounting, sales,quality etc.... & respectively creates the views.

we cannot use CREATE event, bcos first the ECN(CC01) is created by bapi & further bapi creates the material & inserts it into ECN again, which is CHANGING the document. once this is done, our WF should trigger.

As we dont have CHANGE event in ECM BO, i am using CREATE event & settting it for ON CHANGE in SWEC t-code.

Bottomline is , it is triggering as soon as any changes happens.

But, we want it to restrict for one time triggering.

Regards.

santosh.

suresh_subramanian2
Active Contributor
0 Kudos

Hello Santosh,

Please use check function module.

When your workflow triggers for first time, there will some unique details entered at ECO related database tables.

When the workflow triggers subsequent times, those unique entries will not happen.

So, find those unique entries and include them in check function module.

Doing so, you can accompish your requirements.

Otherwise, create the change event by delegating the ECO business object.

Thanks and regards,

S.Suresh

former_member185167
Active Contributor
0 Kudos

Hello,

Isn't there anywhere (e.g in the program that calls the BAPI) where you can put in a line to create a CREATED event?

regards

Rick Bakker

Hanabi Technology

Answers (1)

Answers (1)

former_member185167
Active Contributor
0 Kudos

Hello,

Trigger it how? Using events? If there's a CREATED event, use that.

reagards

Rick Bakker

Hanabi Technology