Skip to Content
Author's profile photo Jeroen Verbrugge

Change documents for workflow rule

When using workflow rules with rule type responsibilities, there is often the need for logging the assignments made via transaction oocu_resp.
The transaction itself and the workflow environment do not cover this. As workflow is using objects of organizational management, we can activate change documents on this level.

Setup
Use SM30 or SPRO to maintain entries in table T77CDOC_CUST. Enter the combination of plan version, object type, and infotype/subtype for which you want to activate the creation of change documents. You can enter * (wildcards), which allows you to include all subtypes that exist for an infotype, for example.
For the data you have entered, select the Active field for each row.

Note that if you activate the creation of change documents for all infotypes, system performance suffers as a consequence. Therefore, activate the creation of change documents specifically for the combination of plan version, object type, and infotype/subtype for which you require this function.

For more info have a look at the SAP Help: http://help.sap.com/saphelp_erp2004/helpdata/en/cb/254340a49f6913e10000000a1550b0/content.htm

Example
This is the customizing done to cover change documents for assignments to responsibilities:

30-10-2012 17-17-40.jpg

For this example we’re using a rule with two responsibilities on which we maintain users and position via oocu_resp, done by user WF_MAINT.
This is how the rule initially looks like:

30-10-2012 17-19-43.jpg

Step 1: Add user to responsibility 1

30-10-2012 14-42-29.jpg
Step 2: Add user and position to responsibility 2

30-10-2012 14-44-06.jpg
Step 3: Remove position from responsibility 2. Finally the rule looks like:

30-10-2012 14-45-02.jpg

Display change documents

To display the change documents, we use program RHCDOC_DISPLAY without option display field contents:

30-10-2012 17-00-08.jpg

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Anjan Paul
      Anjan Paul

      Hi Jeroen,

         Really nice information.

      Author's profile photo Jeroen Verbrugge
      Jeroen Verbrugge
      Blog Post Author

      Thanks, i got this requirement often but never thought about this option although I was doing workflow for years 🙂 So I thought it was worth to share this.

      Author's profile photo Aditya Varrier
      Aditya Varrier

      Hi JV,

      nice info, are there tables for 'event linkages' which could be used as above?

      Thanks,

      Aditya V

      Author's profile photo Rick Bakker
      Rick Bakker

      Do you mean table SWFDEVENA?

      Author's profile photo Jeroen Verbrugge
      Jeroen Verbrugge
      Blog Post Author

      Hi,

      Event linkage changes can be evaluated using transaction SCU3 on table SWFDEVENA on the condition that table logging is active in your system. Also have a look at thread How to activate table change logging for only one standard table on this topic.

      Jeroen.

      Author's profile photo Erwin Leitner
      Erwin Leitner

      Hello,

      Thank you very much. ➕ 🙂

      all the best Erwin

      Author's profile photo Avi Rubin
      Avi Rubin

      thank you 🙂