on 04-23-2015 2:13 PM
Hello Experts,
Event RELEASESTEPCREATED is linked with BO BUS2105 and my workflow.
Whenever PR is created this event is triggered and in turn my workflow gets triggered.
I want to find the place (i.e enhancement / badi / exit), where exactly the workflow is called.
Thanks
- KP
/h
Save
Debug
Easy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kulprakash
Finding the code where the standard triggers an event (if done by code) is like looking for a pin in a haystack.
Rather than looking for the event trigger (which most probably will be on SAVE and without much checks)..... you should look for ways to solve the main issues you face.
1) If the PR is not created "correctly" -> See if you can check that in a Start conditions of the workflow. If you are using a standard workflow, check if you can create a subtype of your Business Object, do the delegation and create Virtual attribute (example VALID_PR) which has the coding to check for "correctness" of your PR. Use this Attribute in your workflow start condition (via SWB_COND tcode).
2) For a change in Qty or Price, ask your Functional consultant to configure the release strategy correctly so that the release is reset and retriggered. This will retrigger the event RELEASESTEPCREATED.
Regards,
Modak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think, It is from change dcoument. Check in SWEC for the Event is there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any FM which is used to invoke event or workflow.
At which i can put breakpoint or watchpoint.
Any help will be greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is possible that the event is created by the standard (and not from user-exit or BADI or whatever). I don't know why you want to find the place where the event is getting created. Perhaps it gets triggered unnecessarily? If this is the case, most likely you need to take a look to the PR release configuration, where you can have a control for the event creation.
Kind regards,
Karri
I want to find so because if PR is not created correctly, and we are changing some value of PR like quantity and saving it. Than workflow should be re-triggered and hence approval process.
But it is not happening.
Whereas for correctly created PR's, when quantity is changed, workflow is re-triggered and hence the approval process.
>I want to find so because if PR is not created correctly
What is wrong with the PR? How is it incorrect?
I think you should give more details about your problem. There might be some easy and logical solution for it. Now you want to find the place where the event gets triggered - but what then if you find it? It could very well be a dead end - you cannot "fix" the standard. Instead you do some small configuration change, or trigger your own event (from SWEC) or whatever, and your problem will be fixed.
Kind regards,
Karri
If the release strategy which is in the first approval level and the changes in the PR do not cause a change in the release strategy (it is still, for example, in the same value range) will not re-trigger the event.
From the application point of view still in the same point (first approver) so there is no need for the change. (check with your MM consultant - maybe there is no need for the change at all)
It is possible to manually create your own event using change documents (SWEC), but you will need to pay attention that there are 2 events (significantlychanged and releasestepcreated) that you will need to trigger - one to close the old workflow and one to create a new one - and their timing.
It might also be possible to reset the strategy from the MM side, causing the needed change in the workflow, but that is again a question to the MM (development team this time).
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.