cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow triggering on FD32 when customer credit limit changes

Former Member

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

0 Kudos

Hello, I have the same problem, how did you solve it? please

Accepted Solutions (1)

Accepted Solutions (1)

ronen_weisz
Active Contributor

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...

Former Member
0 Kudos

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

ronen_weisz
Active Contributor
0 Kudos

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?

Former Member
0 Kudos

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

ronen_weisz
Active Contributor
0 Kudos

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)

Former Member
0 Kudos

Thanks Ronen, SWED with function module option, changed the object key which matches to BO and it's worked. Thank you all. 

former_member185167
Active Contributor
0 Kudos

I'm sorry none of the other answers were considered Helpful. We'll try harder next time.

Answers (3)

Answers (3)

meenakshi_raina
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

Hi Meenakshi,

I executed BOR object from SWO1 and it went well. Attached screen shot. As you mentioned, Customer and credit control area are key fields, credit control area is missing when I execute from tcode FD32.

Thanks

Venkat

meenakshi_raina
Employee
Employee
0 Kudos

Can you share the binding that you have done in your start events ? Have you passed the event object / event object key there ?

Former Member
0 Kudos
former_member185167
Active Contributor
0 Kudos

Hello,

I think it may be a problem with the key. In your workflow it's showing key of only 5 characters (C2924) but in SWO1 it's showing a much longer key (CL240       10). I would double-check how that event is being created and if the proper key is being passed.

regards

Rick

Former Member
0 Kudos

Hi Rick,

I have created event in BO ZBUS1010. Can you please explain how to pass key to this event?

Thanks

Venkat

meenakshi_raina
Employee
Employee
0 Kudos

Hi Venkat,

Can you try and add the &_EVT_OBJKEY& in your binding and then check by passing your key to this object.

former_member185167
Active Contributor
0 Kudos

"I have created event in BO ZBUS1010. Can you please explain how to pass key to this event?"

First of all you should be creating an event for BUS1010, not ZBUS1010.

How are you creating the event? If it's with fm SAP_WAPI_CREATE_EVENT then just add the key as one of the parameters.

Former Member
0 Kudos

Guys,

Still didn't find a solution, appreciate your help.

Thanks

former_member201570
Active Participant
0 Kudos

Hi,

Please check the binding of  event container with workflow container.

regards,

shamsu

Former Member
0 Kudos

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

former_member185167
Active Contributor
0 Kudos

"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).

Former Member
0 Kudos

Rick,

I meant to say I craeted subtype ZBUS1010 and delegated.

Thanks

Venkat