cancel
Showing results for 
Search instead for 
Did you mean: 

changing Status of document should start workflow

Former Member
0 Kudos

Hi WF-experts,

another issue I have to deal with:

My WF should start after the status of a document has been changed.

The process is that the customer creates a document and saves the entries (status is "in process"). Later he wants to have the opportunity to change the sales document. If he sets the status to "for approval" the WF should start (with the approval process).

First I defined the event "CREATED" as start event but that is not right. I enhanced my business object (BUS200115) with a new event and mentioned that one in the start event tab of my workflow. But it does not work.

Do I have to define an action profile?

How can I start my workflow after changing a status of a sales document which was already created?

Thanks a lot

Accepted Solutions (1)

Accepted Solutions (1)

former_member186746
Active Contributor
0 Kudos

Hi,

Creating workflows based on status change is done through transaction BSVW.

I don't know if this is applicablin in your case though.

Kind regards, Rob Dielemans

Answers (3)

Answers (3)

mh97
Contributor
0 Kudos

Depending on the type of document, you can trigger the event by change of status:

http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4aee2453d11d189430000e829fbbd/content.htm

For example this works for "classic" SAP objects like production orders, document management documents, etc, and is a very nice way to handle it, because you can easily customize your status profile to support your business process. These status profiles are maintained in the IMG or transaction BS02 (BS22 displays system statuses for objects that use this status type).

I've noticed that a lot of newer SAP components don't support this though.

I hope it is helpful, if not in this case maybe in the future.

Margaret

former_member312987
Active Participant
0 Kudos

Hi

Another way, is that you have the logic of raising the Event via a function module:

http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4af16453d11d189430000e829fbbd/frameset.htm

There is an example, in EHP4 with the following workflows for Compensation:

04000022 ECM_SUBMIT

04000023 ECM_APPROVE

04000024 ECM_REJECT

04000025 ECM_CREATE

together with the class 'CL_HRECM00_WORKFLOW_EVENT' .

Regards

Raquel

Former Member
0 Kudos

Hi,

You could perhaps (depending on our document) acheive this by change documents:

http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4af16453d11d189430000e829fbbd/frameset.htm

The idea is that you can raise event depending if the document is changed. You can add some custom logic also there - to for example include your logic about when the status field is changed from "created" to "approval", etc.

Regards,

Karri