on 2014 May 14 5:16 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
19 | |
14 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.