<?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 Re: Getting reference to if_ex_cewb_tsk_update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714584#M2019351</link>
    <description>&lt;P&gt;Are you actually trying to call a BAdI method from a customer code ?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The reference to this BAdI instance will be provided by standard code (e.g. CP_CC_P_PROVIDE_REF_TO_BADI) but the standard program will execute this, not your code. &lt;/LI&gt;&lt;LI&gt;You have to implement the BAdI from SE19&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Or explain what you're trying to obtain?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 13:49:16 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2022-12-23T13:49:16Z</dc:date>
    <item>
      <title>Getting reference to if_ex_cewb_tsk_update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714581#M2019348</link>
      <description>&lt;P&gt;Hi together,&lt;/P&gt;
  &lt;P&gt;I am trying to use the method CHECK_TSK_AT_SAVE of the BadI: CEWB_TSK_UPDATE. Now the code that I have written is:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA: lr_ref      TYPE REF TO if_ex_cewb_tsk_update,
        lt_tsk TYPE STANDARD TABLE OF cpcl_tsk_plko_type.

*  CREATE OBJECT lr_ref.

  CALL METHOD lr_ref-&amp;gt;check_tsk_at_save
    EXPORTING
      i_tsk_data          = lt_tsk
*     i_mtk_data          =
*     i_seq_data          =
*     i_plas_data         =
*     i_opr_data          =
*     i_com_data          =
*     i_prt_data          =
*     i_cha_data          =
*     i_chv_data          =
*     i_pac_data          =
*     i_mst_data          =
    EXCEPTIONS
      inconsistency_found = 1
      OTHERS              = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   Implement suitable error handling here
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;I get the dump: CX_SY_REF_IS_INITIAL, that the interface is not yet initiated, thus we cannot use the method.Can anyone tell me how can I get reference or initiate the lr_ref that I have declared? 
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;R&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 07:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714581#M2019348</guid>
      <dc:creator>Raxph</dc:creator>
      <dc:date>2022-12-23T07:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting reference to if_ex_cewb_tsk_update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714582#M2019349</link>
      <description>&lt;P&gt;An interface is a contract between a class and the outside, it does not contains code, and it cannot be instanciated.&lt;/P&gt;&lt;P&gt;So, you need an instance of a class using this interface. &lt;/P&gt;&lt;P&gt;It will depends of your code, comment the use of the method, and in debug check what you have in memory (in variable tab, go in LOCAL) &lt;/P&gt;&lt;P&gt;If you check the class CL_EX_CEWB_TSK_UPDATE, you will see it does a deference of an object : &lt;/P&gt;&lt;P&gt;(use the contract of the interface to access the object  &amp;lt;flt_cache_line&amp;gt;-obj )&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        EXITINTF ?= &amp;lt;flt_cache_line&amp;gt;-OBJ.&lt;BR /&gt;        CALL METHOD EXITINTF-&amp;gt;CHECK_TSK_AT_SAVE&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Dec 2022 07:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714582#M2019349</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-12-23T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting reference to if_ex_cewb_tsk_update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714583#M2019350</link>
      <description>Perform some search on &lt;A href="https://help.sap.com/docs/search?q=implement%20a%20BAdI"&gt;implement a BAdI&lt;/A&gt;&lt;UL&gt;
&lt;LI&gt;First call transaction SE19 and create an implementation of the BAdI CEWB_TSK_UPDATE  in your namespace (e.g. Z_CEWB_TSK_UPDATE)  This will create an implementing class (e.g. ZCL_IM__CEWB_TSK_UPDATE)&lt;/LI&gt;&lt;LI&gt;Within this class you will code the method IF_EX_CEWB_TSK_UPDATE~CHECK_TSK_AT_SAVE implementation.&lt;/LI&gt;&lt;LI&gt;Then activate class and implementation&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 23 Dec 2022 09:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714583#M2019350</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-12-23T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting reference to if_ex_cewb_tsk_update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714584#M2019351</link>
      <description>&lt;P&gt;Are you actually trying to call a BAdI method from a customer code ?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The reference to this BAdI instance will be provided by standard code (e.g. CP_CC_P_PROVIDE_REF_TO_BADI) but the standard program will execute this, not your code. &lt;/LI&gt;&lt;LI&gt;You have to implement the BAdI from SE19&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Or explain what you're trying to obtain?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 13:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/12714584#M2019351</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-12-23T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting reference to if_ex_cewb_tsk_update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/13794420#M2029945</link>
      <description>&lt;P&gt;I have activated this funktion and I am doing my error handling when CEWB data got saved. But how can I get information about selected item that I want to change and for which I don't want error handling? For ex. in table I_OPR_DATA . There is no indicator telling me which item got locked for change.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 10:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-reference-to-if-ex-cewb-tsk-update/m-p/13794420#M2029945</guid>
      <dc:creator>Peter-Severin</dc:creator>
      <dc:date>2024-08-14T10:30:48Z</dc:date>
    </item>
  </channel>
</rss>

