cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Workflow when a new dialog user created

Former Member
0 Kudos

Hi.

I want to trigger my Wf when a new dialog user is created. For these purpose I have activated in "Start Events" of Basic data:

BO USER CREATED.

But my Wf is not triggered automatically. But when I test it with the hand, it works correctly and Wf completed.

Please some advise.

regards, tuwien

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I have solved my problem.

The event doesn't trigger when a new user is created, because it doesn't denote BOR USER, but BOR USR01 which hasn't any event! So, when a new user is created by administrator it is maintained in the table USR01(same name with BOR USR01)

By the way before incorrectly I explored my problem in BOR USER which has event such created, deleted, roles_changed and cloned.

regards,

tuwien

Eddie_Morris
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi tuwien,

If no event is raised when you check the event trace as suggested by Rob then you will have to find a way to raise the event yourself.

You could so this via custom code and function SWE_EVENT_CREATE or use CHANGE DOCUMENTS (If change documents are active for the functinoality) via SWEC. See the online help at

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/c5/e4aec8453d11d189430000e829fbbd/frameset.htm

Regards,

Eddie

former_member185167
Active Contributor
0 Kudos

SAP_WAPI_CREATE_EVENT, not SWE_EVENT_CREATE

Eddie_Morris
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rick,

You are right, always use the WAPI's (e.g. SAP_WAPI_CREATE_EVENT in this case) as they will be supported (If they malfucntion) by SAP when used in custom code but SWE_EVENT_CREATE will also be supported since it is such a widely used function.

Regards,

Eddie

former_member185167
Active Contributor
0 Kudos

Hi Eddie,

That's not the only reason. SAP_WAPI_CREATE_EVENT is easier to use and people (newbies) have reported errors they've encountered using SWE_EVENT_CREATE. Also, it makes tracking down where events are created easier, by doing a where-used on SAP_WAPI_CREATE_EVENT.

regards

Rick Bakker

hanabi technology

former_member186746
Active Contributor
0 Kudos

Hi,

check the event log (SWEL/SWELS) to see if events are created when you create a user.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Thank you very much for useful advices.

I have checked vie SWEL. Event isn't triggered when a new user created. So, it means that additional I have to code something in ABAP ?

kind regards,

tuwien

Former Member
0 Kudos

Hi Tuwien,

if no event is showing in swel than you should go for user exits or BADI.

you can search the suitable user exit or BADI for your requirement, and in that call SAP_WAPI_CREATE_EVENT function module.