<?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: Doing 3 methods in one implementation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241488#M1382222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2009 11:32:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-20T11:32:49Z</dc:date>
    <item>
      <title>Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241478#M1382212</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;&lt;/P&gt;&lt;P&gt;there is option instead of doing this 3 methods to do one that can do the same for all objects &lt;/P&gt;&lt;P&gt;i cant using perform since this implementation is under class .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method input :

IT_USERID	TYPE ZT_DM_USER_RANGE_VALUE

method implementation

  DATA: ls_userid TYPE C_user_range_value,
        ls_rang_usrs TYPE LINE OF ty_range_users.

  LOOP AT it_userid INTO ls_userid.
    ls_rang_usrs-sign = 'I'.
    ls_rang_usrs-option = 'EQ'.
    ls_rang_usrs-low = ls_userid-userid.
    APPEND ls_rang_usrs TO mt_user_range.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method input :

IT_USERID	TYPE Ztor_coer_id

method implementation

  DATA: ls_con_type TYPE Zor_coer_id,
        ls_rang_cons TYPE LINE OF ty_range_con.

  LOOP AT it_con_type INTO ls_con_type.
    ls_rang_cons-sign = 'I'.
    ls_rang_cons-option = 'EQ'.
    ls_rang_cons-low = ls_con_type.
    APPEND ls_rang_cons TO mt_cons_range.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method input :

IT_USERID	TYPE Ztm_apd

method implementation

  DATA: ls_apd TYPE Zm_apd,
      ls_rang_apd TYPE LINE OF ty_range_apd.

  LOOP AT it_apd INTO ls_apd.
    ls_rang_apd-sign = 'I'.
    ls_rang_apd-option = 'EQ'.
    ls_rang_apd-low = ls_apd.
    APPEND ls_rang_apd TO mt_apd_range.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 19, 2009 10:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 13:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241478#M1382212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241479#M1382213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use standard dynamic programming techniques - &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA. lp_data TYPE REF TO DATA.

CREATE lp_data LIKE LINE OF input table.
ASSIGN lp_data-&amp;gt;* TO &amp;lt;ls_table&amp;gt;.

ASSIGN COMPONENT ... OF STRUCTURE &amp;lt;ls_table&amp;gt; TO &amp;lt;l_field&amp;gt;.

LOOP AT input table INTO &amp;lt;ls_table&amp;gt;.
  &amp;lt;l_field&amp;gt; = some value.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 14:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241479#M1382213</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-19T14:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241480#M1382214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a MACRO in the tab "Macros" in class builder. &lt;/P&gt;&lt;P&gt;Check help on Macros for how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 14:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241480#M1382214</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-10-19T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241481#M1382215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;method importing IT_data TYPE any table
       exporting et_range TYPE any table.
 
method implementation
 
DATA: lp_data TYPE REF TO DATA.

FIELD-SYMBOLS: &amp;lt;ls_data_wa&amp;gt; TYPE ANY,
             &amp;lt;ls_rang_wa&amp;gt; TYPE ANY,
             &amp;lt;l_sign&amp;gt; TYPE ANY,
             &amp;lt;l_opt&amp;gt;   TYPE ANY,
             &amp;lt;l_low&amp;gt;  TYPE ANY.

CREATE DATA lp_data LIKE LINE OF et_range.
ASSIGN lp_data-&amp;gt;* TO &amp;lt;ls_rang_wa&amp;gt;.

ASSIGN COMPONENT 'SIGN' OF STRUCTURE &amp;lt;ls_rang_wa&amp;gt; TO &amp;lt;l_sign&amp;gt;.
ASSIGN COMPONENT 'OPTION'  OF STRUCTURE &amp;lt;ls_rang_wa&amp;gt; TO &amp;lt;l_opt&amp;gt;.
ASSIGN COMPONENT 'LOW' OF STRUCTURE &amp;lt;ls_rang_wa&amp;gt; TO &amp;lt;l_low&amp;gt;.

  &amp;lt;l_sign&amp;gt; = 'I'.
  &amp;lt;l_opt&amp;gt; = 'EQ'.
  LOOP AT it_data ASSIGNING &amp;lt;ls_data_wa&amp;gt;..
    &amp;lt;l_low&amp;gt; = &amp;lt;ls_data_wa&amp;gt;.
    APPEND &amp;lt;ls_rang_wa&amp;gt; TO et_range.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 14:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241481#M1382215</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-19T14:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241482#M1382216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in method signatrue i cant define variable as type &lt;STRONG&gt;table o&lt;/STRONG&gt;f ,&lt;/P&gt;&lt;P&gt;what i can i just type any there is way to overcome it ?&lt;/P&gt;&lt;P&gt;since i had problem with this statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CREATE DATA lp_data LIKE LINE OF et_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 17:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241482#M1382216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241483#M1382217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define the importing and exporting parameter as "TYPE... ANY TABLE", just as I said.  If you're having trouble with CREATE DATA, could you please be specific what trouble you are having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this stuff all the time, so I know it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 18:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241483#M1382217</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-19T18:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241484#M1382218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes u are right ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have anoter problem with the line &lt;/P&gt;&lt;P&gt;    APPEND &amp;lt;ls_rang_wa&amp;gt; TO et_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get this error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use explicit or implicit index operations on tables with&lt;/P&gt;&lt;P&gt;types "HASHED TABLE" or "ANY TABLE". "ET_RANGE" has the type "ANY&lt;/P&gt;&lt;P&gt;TABLE". It is possible that before "ET_RANGE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 20:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241484#M1382218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T20:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241485#M1382219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can't use APPEND with a table that's "ANY TABLE", because it could be a HASHED TABLE.  So you either use INSERT &amp;lt;ls_range_wA INTO TABLE et_range.  Or, better, since et_range is always a table of ranges, you narrow the range to type STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you read the help on the various table types - it's fairly fundemental to ABAP programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 05:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241485#M1382219</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-20T05:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241486#M1382220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i read the help and i not sure that i got the point of_: you narrow the range to type STANDARD TABLE._&lt;/P&gt;&lt;P&gt;do u mean to create range table on the ddic ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 06:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241486#M1382220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T06:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241487#M1382221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I mean instead of defining the type of et_range as "ANY TABLE", you define it as "STANDARD TABLE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241487#M1382221</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-20T09:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Doing 3 methods in one implementation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241488#M1382222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 11:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doing-3-methods-in-one-implementation/m-p/6241488#M1382222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T11:32:49Z</dc:date>
    </item>
  </channel>
</rss>

