cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering workflow with user status change of CJ20N transaction

Former Member
0 Kudos

Hi everybody,

Can somebody kindly share some information with me on how to trigger a workflow when the user status of CJ20N transaction is changed?

I searched in whatever BADI's I know relating to CJ20N, but unable to catch the user status there. So, can I go ahead with the status change management?

Can somebody give me some good informations/links on this issue?

Thanks,

Max

Accepted Solutions (1)

Accepted Solutions (1)

former_member184112
Active Contributor
0 Kudos

Hi,

Check with FM STATUS_READ

Thanks and Regards,

Prabhakar Dharmala

Former Member
0 Kudos

Thanks Prabhakar, but i need to read the status before updating.

This FM gives information from the database table.

But i need to capture the change somewhere before its updated in the database.

Can you please come up with some other solutions?

Thanks,

Max

former_member184112
Active Contributor
0 Kudos

Hi,

Please check this link:

http://help.sap.com/saphelp_47x200/helpdata/en/36/4d55dbdea80e4fb08acac4c5cbe69c/frameset.htm

And also look these FMs:

STATUS_OBJECT_READ.

STATUS_BUFFER_IMPORT_FROM_MEMO

Thanks and Regards,

Message was edited by:

Prabhakar Dharmala

Former Member
0 Kudos

Thanks Prabhakar,

I have found the right FM - STATUS_READ

With this, we can get the status from the buffer before it's updated into the database.

Thanks,

Max

pokrakam
Active Contributor
0 Kudos

Er... I think your earlier respondent missed the point or isn't familiar with the concept. Use status management: BSVV -> customer status -> object type PRN (I think). Simply create an entry linking it to a custom BO event (unfortunately it doesn't support classes yet).

Cheers,

Mike

Former Member
0 Kudos

Thanks Mike and Aditya.

Well, I already tried this BSVZ configuration before but left.

Mike, for the particular entry I made in this, I need to put the field restrictions, right? Here, I am not getting any user status in the "User Status" column. But the system status values are available.

Do we need to maintain the entries in BSVWVCOUP6 table? If so, how?

Well, initially, I tried to create a status attribute for this BO. but there also I was unable to select any user status there, only system status are available. Have I missed out some configuration for this?

Thanks,

Max

pokrakam
Active Contributor
0 Kudos

Hi,

You need to specify the same status schema in BSVV as your project uses and the status restrictions allow you to specify which user status set/unset should trigger an event. Nothing else needs to be maintained.

Regarding status attributes for BO - unfortunately not for user statuses. This is also due to the status schema - an internal status number (e.g. E0001) can have different statuses in different schemas. You will have to write your own virtual attributes to take this into account.

Cheers,

Mike

Former Member
0 Kudos

Can somebody kindly send me some documents explaining the configuration steps for triggering workflow by USER status change?

Thanks,

Max

Former Member
0 Kudos

Hi

Please follow the forum guidelines and remove your email id from this post, you may show it on your profile.

Regards

Ravi

Answers (1)

Answers (1)

former_member184495
Active Contributor
0 Kudos

Hi MP,

you need to create Milestones in order for your Workflow to trigger.

In PS, you can attach milestones to your activity.

Create a milestone thru CN11 and attach this milestone to an activity of your PS.

While creating the milestone, you need to mention your task id which should trigger when a User Status change.

Hope it helps.

Aditya