Skip to Content

Raise an event from ABAP OO with a parameter that is an instanciated object


I have read the wonderfull WIKI ( ) and blog on workflow raise event with ABAP OO

However I still don't really know how to raise an event for class A with a parameter Class B ?

CALL METHOD lr_event_parameters->set


name = lv_param_name

value = lv_visit_date

In my event normally the parameter will be kind of IO_B type ref to B.

so that should be the name

What about the value is this the key only ? or should it be the SIBFLPOR ?

Can you tell me ?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 19, 2018 at 02:14 PM

    The WF engine will handle instantiation via the BI_PERSISTENT interface, so you need to supply a SIBFLPOR. When the object is needed, the WF engine will call (lpor-typeid)=>bi_persistent~find_by_lpor( lpor ).

    So your code to fill an event parameter Order of type zcl_order would look something like:

    event_parameters->set( name  = ‘Order’
                           value = value sibflpor( catid  = ‘CL’
                                                   typeid = ‘ZCL_ORDER’
                                                   instid = order_number ) ).
    Add comment
    10|10000 characters needed characters exceeded