'SAP_WAPI_CREATE_EVENT' not calling the correct WF
We have created a business object ZBOR and inherited everything from Business object FIPP, now we created a new business object ZBORA. We are using a FM module SAP_WAPI_CREATE_EVENT to initiate the WF from a custom web dynpro application and I have used the following code:
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
object_type = 'ZBORA'
object_key = lv_data
event = 'CREATED'
commit_work = 'X'
event_language = sy-langu
language = sy-langu
user = sy-uname.
now the problem is even if I have specified it to use ZBORA as an object type ... it still calling the WF associated with ZBOR and not ZBORA.
Can you guys please help me with this, we might be missing something here.