‎2008 May 01 5:30 PM
I am having a problem where I created a function module that instatiates an application log class. This application log class has methods ON_* for public events of other classes.
The function module then processes its routines and as a result some of these events are raised. Ex: The function module creates a Purchase order and in that class I have a public even PO_CREATED that is raised upon succesfull creation of the PO. The global class APPLICATION_LOG I created has a method ON_PO_CREATED for event PO_CREATED of class ZCL_MAT_PO.
I put a break point in the APPLICATION LOG method but is os not called.
ANy idea of what Iam doing wrong or missing?
Thanks,
Leo
‎2008 May 01 5:39 PM
‎2008 May 01 5:39 PM
‎2008 May 01 5:46 PM
Hey RICH!!
In my function module, I put:
SET HANDLER: o_log->on_sto_created,
o_log->on_goods_issue_posted.
Not enough...
Leo
‎2008 May 01 5:48 PM
‎2008 May 01 5:58 PM
I don't know what I did... Probaby was a bad data set. The code is infact working.
I put the SET HANDLER XXXXXXX. (static event) and it works.
Thanks a lot Rich!! You are the man!
Leo