cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger workflow in ME33K on change of release indicator to A i.e Approved

former_member427675
Participant
0 Kudos

Hello All ,

how to trigger custom workflow everytime when aggrement(ME33K) changed to release indicator A i.e Approved.

Accepted Solutions (1)

Accepted Solutions (1)

sbl
Active Contributor
0 Kudos

Hi Anjali,

As you are working with agreement there is no status change (unlike with SD) so you can not use BVW

But you do have a field on PO and Contract that allows you to know when the FRGRL is empty and you have just released a step it means you do have the final release.

The data element of this field is not in the modification document so you can not use SWEC to trigger an event.

However what you can do is in your approval workflow test if this field (attribute of the object BUS2014 (or more accurately attribute you create in your ZBUS2014) is empty then you do something.

The approach via the NACE is more tricky (as you will have to build a new output (event) and then check also if it send after a modification and if this modification had triggered a new workflow.... I would avoid this path.

I usually work more on po and the way I use is within the approval workflow with a condition test on FRGRL. (sometimes you need to use delay a little the test as the object/data base is not updated when the test si made)

Cheers

Stephane

former_member427675
Participant
0 Kudos

Hi Stephane ,

Thanks for your response and suggestion .

I am trigerring my custom workflow on change of Purchase contract - Trigerring event -Change ,BO- BUS2014 (Config inside workflow).

But my requirement is to trigger workflow -On change of purchase contract and if release indicator is set as A .

so I am not sure how to achieve this in SAP ABAP configuration/code perspective.

BUS2014 attribute- Release indicator is set as A.

Thanks in Advance.

Answers (2)

Answers (2)

sbl
Active Contributor

Hi Anjali,

Sorry I think I missed part of the requirement...

Are you talking about fields FRGKE or FRGZU ?

In fact both are in the modification document so you can in create a new event in SWO1 on your ZBUS2014

Then in SWEC you can create an entry with this event lets call it RELEASEA so for modification document EINKBELEG BUS2014 (you have delegated BUS2014 to ZBUS2014) event RELEASEA on modification

then in the detail you choose the field FRGZU old value different from new value and same new value = A

Then in your workflow in the triggering event you add tBUS2014 RELEASEA event you can then filter the event more with teh type of document....

Cheers

Stephane

keohanster
Active Contributor

Hi Anjali,

I am not familiar with Agreements, but if there is already a standard event defined for this object, try releasing it, and then checking in the event log (Tx SWEL) to see if a corresponding event is raised.

Otherwise, you have the ability to raise events based on status changes (transaction BSVW), change documents (if a change document is created when you release the agreement via transaction SCDO, SWED, and SWEC), via message control (transaction NACE) or via a call to FM SAP_WAPI_CREATE_EVENT if you have an enhancement or user exit in place.

The event log is always your first stop.

Good luck,

Sue