<?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 wda: call method from a component interface definition (cid) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wda-call-method-from-a-component-interface-definition-cid/m-p/2657824#M612997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I have a Main-component "m"&lt;/P&gt;&lt;P&gt;- "L" is a component interface definition (cid) which force both cid-L-implementating components  "L1" and "L2" to extend and fill the method "set_COMP_USAGES()".&lt;/P&gt;&lt;P&gt;- I have other cid´s (A-C) too&lt;/P&gt;&lt;P&gt;- at runtime only one of the components "L1" or "L2" is created and the mother-component M holds component-usages (ref to) of the chosen variants of A-C and L as an attribute in the component-controller of m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my problem: my aim is to call a method in m at runtime which is defined at designtime in my cid L (set_COMP_USAGES() )and decided at runtime which variant of this method is chosen (the one from L1 or L2). in this method the references of comp_usages other cid´s should be passed to L1 or L2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or short: how can I call a method from a cid-implementating component at runtime via a IF_WD_COMPONENT_USAGE reference (ref to) to this component?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 07:46:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T07:46:18Z</dc:date>
    <item>
      <title>wda: call method from a component interface definition (cid)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wda-call-method-from-a-component-interface-definition-cid/m-p/2657824#M612997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I have a Main-component "m"&lt;/P&gt;&lt;P&gt;- "L" is a component interface definition (cid) which force both cid-L-implementating components  "L1" and "L2" to extend and fill the method "set_COMP_USAGES()".&lt;/P&gt;&lt;P&gt;- I have other cid´s (A-C) too&lt;/P&gt;&lt;P&gt;- at runtime only one of the components "L1" or "L2" is created and the mother-component M holds component-usages (ref to) of the chosen variants of A-C and L as an attribute in the component-controller of m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my problem: my aim is to call a method in m at runtime which is defined at designtime in my cid L (set_COMP_USAGES() )and decided at runtime which variant of this method is chosen (the one from L1 or L2). in this method the references of comp_usages other cid´s should be passed to L1 or L2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or short: how can I call a method from a cid-implementating component at runtime via a IF_WD_COMPONENT_USAGE reference (ref to) to this component?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 07:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wda-call-method-from-a-component-interface-definition-cid/m-p/2657824#M612997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T07:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: wda: call method from a component interface definition (cid)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wda-call-method-from-a-component-interface-definition-cid/m-p/2657825#M612998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; data: L_INTF_CONTROLLER         type ref to ZIWCI_Z_ITF_CID_L.

  L_INTF_CONTROLLER ?= wd_this-&amp;gt;COMPONENT_USAGE_L-&amp;gt;GET_INTERFACE_CONTROLLER( ).
  
  CALL METHOD l_intf_controller-&amp;gt;set_comp_usages
    EXPORTING
      comp_usage_a = wd_this-&amp;gt;COMPONENT_USAGE_a
      comp_usage_b = wd_this-&amp;gt;COMPONENT_USAGE_b
      comp_usage_c = wd_this-&amp;gt;COMPONENT_USAGE_c.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 07:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wda-call-method-from-a-component-interface-definition-cid/m-p/2657825#M612998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T07:59:08Z</dc:date>
    </item>
  </channel>
</rss>

