cancel
Showing results for 
Search instead for 
Did you mean: 

Triggerring Workflow when Purchase Requisition is Created(URGENT)

Former Member
0 Kudos

Hi Experts,

There is a requirement, where i have to trigger a Purchase Requisition workflow, when a PR is Created. I have used RELEASESTEPCREATED event, to trigger the workflow when a PR is created.

But there is a error, RELEASESTEPCREATED event is not getting triggered, when PR item is not having a Release Strategy.

Please suggest what can be done, in detail.

Thanks in Advance.

Kartikey.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Boss without a Release Strategy the event will never be triggered. When a PR or PO is subjected to any release Strategy then only this event gets triggered.

Thanks

Arghadip

Answers (3)

Answers (3)

Former Member
0 Kudos

The Functional person has assigned a Release strategy to the items which didn't have them for trigerring the workflow.

Former Member
0 Kudos

No event get's trigerred, when a PR is created.

I'll have to check SPRO settings.

Thanks,

Kartikey.

KKilhavn
Active Contributor
0 Kudos

I am quite sure you won't find anything in SPRO, and I think your best option is to look for user exits (including BAdI and every other technique they have used) instead. When the purchase requisition is being created, call function module SAP_WAPI_CREATE_EVENT and let import parameter

COMMIT_WORK = ' '.

It's easy to find out which BAdIs are called by defining a break-point in CL_EXITHANDLER->GET_INSTANCE

former_member184495
Active Contributor
0 Kudos

Hi KR,

you would require your Functional consultants help.

ask him if Release Strategy is maintained in SPRO, if yes ask him to simulate a PR, if that works fine, create a PR and check SWEL.

If you see an entry for the PR you created then activate your WF in SWETYPV.

Hope it helps,

Aditya

Former Member
0 Kudos

Thanks Mate, for a quick reply.

I am new to workflow's, that wat i came to know last night that this event is trigerred when a item will have release strategy, and that this event won't help in my case.

Wat i want is, when a PR is created i want to trigger the Workflow.

So, please tell me what can i do in this case.

Thanks,

Kartikey.

Former Member
0 Kudos

Check in SWEL whether any event is getting triggered while Creating a PR. If yes use that if not you have to do some configuration in SPRO. You will get help from SAP Help or search in this forum about configuration for PR event triggering.

Thanks

Arghadip