Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow - event to workflow binding, parameter type defined in class

0 Likes
474

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 .
0 REPLIES 0