‎2019 Sep 24 1:04 PM
Hi there,
Scenario: an event with a custom parameter is defined in a class:
class ZCL_WF_TEST definition
public
final
create public .
public section.
types:
BEGIN OF ty_container,
bukrs TYPE bkpf-bukrs,
belnr TYPE bkpf-belnr,
gjahr TYPE bkpf-gjahr,
END OF ty_container .
class-events EVT_WORKFLOW
exporting
value(IS_CONTAINER) type ty_container .
Is it possible to:
a) define a field inside Workflow container and use ZCL_WF_TEST=>ty_container for it ?
Once I was somehow able to define it like this:
"ABAP dictionary data type" radiobutton selected, and value in this field was something underlined, something like: \CLASS=ZCL_MYCLASS
In WF's container I was able to see it and view all of it's members by expanding the tree.
Unfortunately I am not able to reproduce the above.
b) use ZCL_WF_TEST=>ty_container as an event parameter and be able to bind it to WF's container ?
I know the above works by using an ABAP dictionary structure but I'd like to keep it inside class.
Thanks.
EDIT:
point 2 I was able to solve, instead of:
value(IS_CONTAINER) type ty_container .
this solved the issue:
value(IS_CONTAINER) type ZCL_WF_TEST=>ty_container .