<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Workflow - event to workflow binding, parameter type defined in class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-event-to-workflow-binding-parameter-type-defined-in-class/m-p/12076501#M1970489</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
  &lt;P&gt;Scenario: an event with a custom parameter is defined in a class:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;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 .
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Is it possible to:&lt;/P&gt;
  &lt;P&gt;a) define a field inside Workflow container and use ZCL_WF_TEST=&amp;gt;ty_container for it ?&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Once I was somehow able to define it like this:&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;"ABAP dictionary data type" radiobutton selected, and value in this field was something underlined, something like: \CLASS=ZCL_MYCLASS&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;In WF's container I was able to see it and view all of it's members by expanding the tree.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Unfortunately I am not able to reproduce the above.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;b) use ZCL_WF_TEST=&amp;gt;ty_container as an event parameter and be able to bind it to WF's container ?&lt;/P&gt;
  &lt;P&gt;I know the above works by using an ABAP dictionary structure but I'd like to keep it inside class.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;EDIT: &lt;/P&gt;
  &lt;P&gt;point 2 I was able to solve, instead of:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;value(IS_CONTAINER) type ty_container .&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;this solved the issue:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;value(IS_CONTAINER) type ZCL_WF_TEST=&amp;gt;ty_container .&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Sep 2019 12:04:59 GMT</pubDate>
    <dc:creator>former_member393881</dc:creator>
    <dc:date>2019-09-24T12:04:59Z</dc:date>
    <item>
      <title>Workflow - event to workflow binding, parameter type defined in class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-event-to-workflow-binding-parameter-type-defined-in-class/m-p/12076501#M1970489</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
  &lt;P&gt;Scenario: an event with a custom parameter is defined in a class:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;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 .
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Is it possible to:&lt;/P&gt;
  &lt;P&gt;a) define a field inside Workflow container and use ZCL_WF_TEST=&amp;gt;ty_container for it ?&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Once I was somehow able to define it like this:&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;"ABAP dictionary data type" radiobutton selected, and value in this field was something underlined, something like: \CLASS=ZCL_MYCLASS&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;In WF's container I was able to see it and view all of it's members by expanding the tree.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Unfortunately I am not able to reproduce the above.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;b) use ZCL_WF_TEST=&amp;gt;ty_container as an event parameter and be able to bind it to WF's container ?&lt;/P&gt;
  &lt;P&gt;I know the above works by using an ABAP dictionary structure but I'd like to keep it inside class.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;EDIT: &lt;/P&gt;
  &lt;P&gt;point 2 I was able to solve, instead of:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;value(IS_CONTAINER) type ty_container .&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;this solved the issue:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;value(IS_CONTAINER) type ZCL_WF_TEST=&amp;gt;ty_container .&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 12:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-event-to-workflow-binding-parameter-type-defined-in-class/m-p/12076501#M1970489</guid>
      <dc:creator>former_member393881</dc:creator>
      <dc:date>2019-09-24T12:04:59Z</dc:date>
    </item>
  </channel>
</rss>

