<?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: T-Code WRFMATBODY before saving in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226138#M1628651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;I have tried accessing the protected attribute using Inheriting property, but since iam writing the code in the method, its prompting syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example like this,&lt;/P&gt;&lt;P&gt;class l_org definition.&lt;/P&gt;&lt;P&gt;  protected section.&lt;/P&gt;&lt;P&gt;  data ORGANIZATIONAL_LEVEL type WRFSCREENVALUES.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lv_data_object definition inheriting from l_org.&lt;/P&gt;&lt;P&gt;  methods get_data.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; class lv_data_object implementation.&lt;/P&gt;&lt;P&gt; method get_Data.&lt;/P&gt;&lt;P&gt;  data:  l_org type ref to CL_MATERIAL_TEMPLATEDATA,&lt;/P&gt;&lt;P&gt;         LV_DATA_OBJECT type ref to CL_MATERIAL_MAINTAINDATA.&lt;/P&gt;&lt;P&gt;         lv_data_object-&amp;gt;ORGANIZATIONAL_LEVEL = 0.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt; endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the other way assigning field symbol. The field symbol is not getting assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example like this,&lt;/P&gt;&lt;P&gt;field-symbols:&amp;lt;lo_lcl&amp;gt; type any.&lt;/P&gt;&lt;P&gt;lv_data_object ?= Iv_data_object.&lt;/P&gt;&lt;P&gt;create object lv_data_object.&lt;/P&gt;&lt;P&gt;lv_org = 'ORGANIZATIONAL_LEVEL'.&lt;/P&gt;&lt;P&gt;assign lv_data_object-&amp;gt;(lv_org) to &amp;lt;lo_lcl&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using ME-&amp;gt;ATTRIBUTE, that is also prompting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using super class that is also prompting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main class to which the importing parameter IV_DATA_OBJECT is assigned is CL_MATERIAL_MAINTAINDATA and the super class for this is CL_MATERIAL_TEMPLATEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Protected attribute is in the class CL_MATERIAL_MAINTAINDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you plz help me out how to retrieve from the importing parameter IV_DATA_OBJECT which is of type CL_MATERIAL_MAINTAINDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 12:53:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-23T12:53:04Z</dc:date>
    <item>
      <title>T-Code WRFMATBODY before saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226136#M1628649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the T-Code WRFMATBODY , before saving I have a requirement to check the creation status field and allow only particular users to do the changes for the article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that I am trying to implement the check the condition in u201CIF_EX_WRF_MAT_MAINTENANCE~CHECK_DATA_BEFORE_POSTINGu201D for that I created a custom class interface YCL_IM_WRF_MAT_MAINTENANCE and trying to apply the changes in the above mentioned method CHECK_DATA_BEFORE_POSTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The importing parameter IV_DATA_OBJECT is of the type CL_MATERIAL_MAINTAINDATA. At the time of saving the values are getting populated only in the protected attributes like ORGANIZATIONAL_LEVEL, FIELDCATALOGUE etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since itu2019s a protected attribute its prompting error when I access in a normal manner. Can you please help me out how to access the protected attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 02:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226136#M1628649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T02:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: T-Code WRFMATBODY before saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226137#M1628650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Protected attribute can be access by defining sub class. Suppose if you have a Class C1_MAIN, the protected attribute can be accessed by defining Sub class C1_SUB ( Super class should be C1_MAIN ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 08:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226137#M1628650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T08:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: T-Code WRFMATBODY before saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226138#M1628651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;I have tried accessing the protected attribute using Inheriting property, but since iam writing the code in the method, its prompting syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example like this,&lt;/P&gt;&lt;P&gt;class l_org definition.&lt;/P&gt;&lt;P&gt;  protected section.&lt;/P&gt;&lt;P&gt;  data ORGANIZATIONAL_LEVEL type WRFSCREENVALUES.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lv_data_object definition inheriting from l_org.&lt;/P&gt;&lt;P&gt;  methods get_data.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; class lv_data_object implementation.&lt;/P&gt;&lt;P&gt; method get_Data.&lt;/P&gt;&lt;P&gt;  data:  l_org type ref to CL_MATERIAL_TEMPLATEDATA,&lt;/P&gt;&lt;P&gt;         LV_DATA_OBJECT type ref to CL_MATERIAL_MAINTAINDATA.&lt;/P&gt;&lt;P&gt;         lv_data_object-&amp;gt;ORGANIZATIONAL_LEVEL = 0.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt; endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the other way assigning field symbol. The field symbol is not getting assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example like this,&lt;/P&gt;&lt;P&gt;field-symbols:&amp;lt;lo_lcl&amp;gt; type any.&lt;/P&gt;&lt;P&gt;lv_data_object ?= Iv_data_object.&lt;/P&gt;&lt;P&gt;create object lv_data_object.&lt;/P&gt;&lt;P&gt;lv_org = 'ORGANIZATIONAL_LEVEL'.&lt;/P&gt;&lt;P&gt;assign lv_data_object-&amp;gt;(lv_org) to &amp;lt;lo_lcl&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using ME-&amp;gt;ATTRIBUTE, that is also prompting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using super class that is also prompting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main class to which the importing parameter IV_DATA_OBJECT is assigned is CL_MATERIAL_MAINTAINDATA and the super class for this is CL_MATERIAL_TEMPLATEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Protected attribute is in the class CL_MATERIAL_MAINTAINDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you plz help me out how to retrieve from the importing parameter IV_DATA_OBJECT which is of type CL_MATERIAL_MAINTAINDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 12:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/t-code-wrfmatbody-before-saving/m-p/8226138#M1628651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T12:53:04Z</dc:date>
    </item>
  </channel>
</rss>

