on 04-04-2016 4:19 PM
Dear all,
I have a requirement to trigger workflow for approvals when credit limit(KNKK- KLIMK) changes in FD32 transaction code. I have created custom business object ZBUS1010 by copying BUS1010 and delegated. defined custom event for credit changes and did the configuration in SWUE and SWETYPV.
But somehow event is not getting triggered fro credit limit changes, tried all options and trying for some user exit/BADI but no luck. Please suggest any ideas.TIA.
Venkat
Have you made the configuration needed in the activity "define rules" and "Define events and follow-on processes"? see first and second step in Configuring Approvals for Credit Limit Changes - SAP Credit Management Configuration Guide - SAP Lib...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ronen,
Thanks for your response. I have made the change as you suggested (second step) but no luck.I am developing a custom workflow which triggers based on the value of the credit limit change not on % value. I went through the link before and I assumed that configuration was part of the std workflow.
In my development, custom event has been attached to ZBUS1010 and linked SWETYPV and monitoring changes in SWEC.
When I tested initially event got triggered but it didn't pass any value to wf container. But now it stops working for all customers. Trying to figure out are there any options to trigger the event.
I made the
Thanks
Venkat
Hi,
Events, even custom ones, should be linked to the standard object (BUS1010) not the custom one, the delegation should make it possible to use your event on the standard object.
What data didn't pass to the container? events crated by change documents in SWEC will by default transfer the object key, so if the event was triggered the object key should be available for creating the object. In most cases this should be enough. for any other data I usually use attributes of the object.
As for stopping to work, is the object activated? did you make any changes to SWEC?
Hi Ronen,
Thanks again. I made changes to business object as suggested and event is triggering for all the changes but container is empty and ending up with error.
What I found was when I execute manually, I can see customer and credit control area but when I test using FD32, container value is empty. Attached screen shot.
Thanks
Venkat
Look in SWED, there you can see the table the link between the change document object and workflow object is based on. If those do not match, look at the end of the SWED table display, there you can see the option to add a function module to change the key to to the a key matching the BUS1010. (press F1 on the field and you will see examples for the FM interface)
Hi Venkat,
As your container values are not getting filled, it seems some mandatory parameter is not passed properly. Have you tried to execute your BOR object/method from SWO1 and checked if you are getting any result from your methods ?
Regards
Meenakshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys,
Still didn't find a solution, appreciate your help.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I double checked binding, looks good. Event is not carrying the values. In SWEC, I used change doc object KLIM and field KNKK-KLIMK. There was a warning msg 'Key for change doc. object KLIM and business object type are incompatable' when I do this assignment in SWEC but I went ahead and assigned. It might causing this issue, but I couldn't find any other change document which goes with BUS1010.
Thanks
Venkat
"I have created custom business object ZBUS1010 by copying BUS1010 and delegated."
I'm not sure what you mean here. You can either delegate (recommended) or copy (not recommended).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.