cancel
Showing results for 
Search instead for 
Did you mean: 

CRMV_EVENT for a specific transaction type

Former Member
0 Kudos
323

Hey all,

I'm trying to define a one order event on save with CRMV_EVENT.

At the moment, I have one defined as:

Trans Category: Bus2000126 (Business Activity)

Execution Time: 80 (Save Document)

Priority: 999

Object Name: ORDERADM_H

Event: SAVE

Attribute: <*>

Function: ZMY_FUNCTION_MODULE

x Perform function for Doc header

Call Callback: C Just Once per Transaction.

This works for my transaction type - which is an business activity (i.e. it triggers my function module)

but it seems to be triggering for all order saves, not just for activities.

For example if I create a new order object type TA and bol save, it still triggers my function.

Is it possible to configure an on save CRM event to trigger only for a particular process type? Eg. only trigger on activities with proc type 'Z111'?

Kind regards,

Dean.

Accepted Solutions (1)

Accepted Solutions (1)

CarstenKasper
Active Contributor
0 Kudos

Hi Dean,

I assume the reason why the function module is called for more process types than you expected is that it will trigger when ever the Business Transaction Category BUS2000126 is assigned. It does not have to be the leading category. Just have a look at the customizing in the tree on the left hand side.

Calling a function module only for one process type is not possible afaik. You would have to put a CHECK for the process type in the FM itself. Have seen it in SAP coding quite regularly.

Please keep in mind that by using CRMV_EVENT you are working in SAP namespace. From CRM 2007 onwards there is a customizing activity for events linked in the IMG.

cheers Carsten

Answers (0)