Enterprise Resource Planning Portal ERPGenie.COM Enterprise Resource Planning Portal

   Advertise | BLOG

Web ERPGenie.COM

Home | Vote for us |

ERPGenie.COM -> mySAP.com -> CRM -> CRM ABAP Tips and Tricks -> Running ABAP code after a CRM event

In transaction CRMV_EVENT, you can link a 'Z' Function Module to an object function via the definitions (button :'Object Function/callback). Once this is done, you will be able to create a new entry with the FM in the assignments.

E.g.: new assignment
Trans category = BUS2000108 - Lead
Execution time = 1 - Immediately
Object name = ORDERADM_I - Administration Item
Event = AFTER_CHANGE
Callback = <Your 'Z' Function Module>

Each time a new item is created / changed, your Function Module will be executed. It is easiest to copy a standard Function Module of the naming standard 'CRM_*_EC' (EC = Event Callback) in order to get the correct interface. Pay attention that the interface is linked to the entry of the field Call callback in the view 'Maintenance of Callback functions'.

To go to this view, select for example all the assignments for object name ORDERADM_I and push button 'Callbackfor Cat/Obj./Event'. You will get a list where you can see different Function Modules with different interfaces.

Contact Us | Polls | Add URL | Contribute | About | Privacy | Terms | Feedback | Help!

Message Board | Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job