cancel
Showing results for 
Search instead for 
Did you mean: 

Read Change Entity name in Change/Processing CR

mines
Participant
0 Kudos
1,188

Hi Team,

I need some solution to find in which entity data got change in Process/Change CR type. I am writing a logic in dynamic badi to route my workflow based on certain logic which i mentioned below. But in process CR i am unable to find only change entity using read_entity_data_all its providing me all entity which i didnt Change and which i changed: -

1) company code/sales level entity changes -> approver2 -> final check

2) other than company code/sales entity level changes-> approver 1 -> approver2 -> final check

3) If above 1& 2 got passed -> approver 1 -> approver2 -> final check

Accepted Solutions (1)

Accepted Solutions (1)

Nilesh_Bundele
Participant
0 Kudos

Hello ,

You can use GOVERNANCE API here.

Class: 'CL_USMD_GOV_API' .

Method: GET_CREQUEST_DATA

Please find below screen shot for reference & accept this answer if useful.

mines
Participant
0 Kudos

Thank you Nilesh for your help

Answers (1)

Answers (1)

studencp
Active Participant
0 Kudos

To make it really correct you should compare current staging values with active area (or analyze change documents), otherwise your solution will not work in case user reverts already saved changes.

If I was malignant tester 🙂 I would check the case below:

requestor makes changes in CC and in general data, then workflow goes to Approver1 but he/she sends it back, then requestor realize that general data changes were not needed and correct them "back to original values". If you will just check "if entity was touched" workflow goes again to Approver1 but should skip him/her this time

mines
Participant
0 Kudos

Hi Studencki,

Can you please provide me perfect code example for that , which might be very useful for me.