<?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: method implementation using ABAP objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378005#M185057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We cannot change importing parameters. We can only do it when it is in changing / exporting parameters.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2006 14:33:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-17T14:33:24Z</dc:date>
    <item>
      <title>method implementation using ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378003#M185055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am impelementing a method using one of the parameters, which is a internal table taken as an import parameter.&lt;/P&gt;&lt;P&gt;I am using the field symbols to &amp;lt;b&amp;gt;modify&amp;lt;/b&amp;gt; the table data  but it is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_PT_ABS_ATT_COUNTRY~CALCULATE_COUNTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method CALCULATE_COUNTRY has a parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIMES_PER_DAY Importing TYPE PTM_TIMES_PER_DAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the table tha t retrieves the data for the Absence infotype 2001 for an employee and has the field &lt;/P&gt;&lt;P&gt;ABRST value populated.&lt;/P&gt;&lt;P&gt;I need to clear the value for this field and update the table 'TIMES_PER_DAY' before it populates the infotype record.&lt;/P&gt;&lt;P&gt;Hence I am writing the code in its method by calling the parameter.&lt;/P&gt;&lt;P&gt;here is the piece of code....&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;F1&amp;gt; TYPE PTM_TIMES_PER_DAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at times_per_day into &amp;lt;F1&amp;gt; where datum eq begda.&lt;/P&gt;&lt;P&gt;   clear &amp;lt;F1&amp;gt;-abrst.&lt;/P&gt;&lt;P&gt;   ASSIGN &amp;lt;F1&amp;gt; to times_per_day.  ****ERROR&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the error is because trying to assign the &amp;lt;F1&amp;gt; field symbol to internal table. &lt;/P&gt;&lt;P&gt;But how can I do that ultimately I need to update the internal table 'times_per_day '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO TRIED THIS....&lt;/P&gt;&lt;P&gt;data: w_tab type PTM_TIMES_PER_DAY.&lt;/P&gt;&lt;P&gt;loop at times_per_day into w_tab where datum eq begda.&lt;/P&gt;&lt;P&gt;   CLEAR w_tab-abrst.&lt;/P&gt;&lt;P&gt;   modify times_per_day from w_tab transporting abrst.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gave an error saying the table 'times_per_day' cannot  be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got what I am trying to achieve here... any leads or guidelines will be really helpful,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 14:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378003#M185055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T14:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: method implementation using ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378004#M185056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this table part of the IMPORT PARAMETERS  list. If that is the case you cannot change the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be in the EXPORTING parametes to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 14:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378004#M185056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T14:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: method implementation using ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378005#M185057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We cannot change importing parameters. We can only do it when it is in changing / exporting parameters.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 14:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378005#M185057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: method implementation using ABAP objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378006#M185058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I got it, there is an exporting parameter, there is nothing in that table. as and when I enter the records for 2001, it is this table that gets populated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waht can i do here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Vinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 15:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-implementation-using-abap-objects/m-p/1378006#M185058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T15:09:40Z</dc:date>
    </item>
  </channel>
</rss>

