<?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: Abap generic type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448234#M548520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darley, Marcelo said this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- from help ---&lt;/P&gt;&lt;P&gt;The content of two reference variables filled with GET REFERENCE is only the same if - apart from the referenced data objects - the other management information is the same. For example, a reference that is got directly through the specification of the data object is different from a reference that is got through the specification of a field symbol if this has a different data type because of a casting.&lt;/P&gt;&lt;P&gt;Casting:&lt;/P&gt;&lt;P&gt;Handling a Data object assuming a certain Data type. Explicit casting is possible with the statement ASSIGN and with the assignmentsbetween reference variables . An implicit casting sometimes takes place during the handling of operands at certain operand positions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Creating data references to the individual characters of a data object text and their storage in an internal table. This example is possible as of Release 6.10. Before Release 6.10, dref can only be typed using TYPE REF TO data and cannot be dereferenced, except in ASSIGN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want more information, contact him.&lt;/P&gt;&lt;P&gt;Google Talk: marcsiqueira@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 18:30:49 GMT</pubDate>
    <dc:creator>rodrigo_paisante3</dc:creator>
    <dc:date>2007-06-20T18:30:49Z</dc:date>
    <item>
      <title>Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448227#M548513</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;What is the generic type for abap variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use field symbols with any type, but field symbols is a reference. It is invalid when the base variable is released. In debbuger, It changes the value to XXXXXXXXXXXXXXXXXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to copy a variable value of a unknown type (type any of a method parameter)  to a local variable in a method. How I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darley.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448227#M548513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T13:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448228#M548514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darley Rodrigo? Abap Workbench class in SP, October 2006???&lt;/P&gt;&lt;P&gt;I am Rodrigo Paisante.. mineiro!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, put here your source code, i want to see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448228#M548514</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-06-20T13:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448229#M548515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try declaring your local variable as type STRING.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448229#M548515</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2007-06-20T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448230#M548516</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;plz refer to the link below for ur query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ff99cb90-0201-0010-e389-ca6889642a32" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ff99cb90-0201-0010-e389-ca6889642a32&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c031aa90-0201-0010-b69d-88a278e158c8" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c031aa90-0201-0010-b69d-88a278e158c8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comibining parallel processing (CALL FUNCTION STARTING NEW TASK) with the ABAP OO concept of events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can find a simple report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zcra_parallel2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS receiver_class DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS receiver_class DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;start IMPORTING value(i_taskname) TYPE char8,&lt;/P&gt;&lt;P&gt;receiver1 IMPORTING value(p_task) TYPE clike.&lt;/P&gt;&lt;P&gt;EVENTS:&lt;/P&gt;&lt;P&gt;finished.&lt;/P&gt;&lt;P&gt;ENDCLASS. "receiver_class DEFINITION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS receiver_class IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS receiver_class IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD start.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZZ_CRA1' STARTING NEW TASK i_taskname&lt;/P&gt;&lt;P&gt;CALLING me-&amp;gt;receiver1 ON END OF TASK&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;mytask = i_taskname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WRITE: /, i_taskname, ' TASK started...'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMETHOD. "start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD receiver1.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;myinfo TYPE TABLE OF zcra1.&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION 'ZZ_CRA1'&lt;/P&gt;&lt;P&gt;TABLES my_itab = myinfo.&lt;/P&gt;&lt;P&gt;RAISE EVENT finished.&lt;/P&gt;&lt;P&gt;ENDMETHOD. "receiver1&lt;/P&gt;&lt;P&gt;ENDCLASS. "receiver_class IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS x DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS caller DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;y_ref TYPE REF TO receiver_class,&lt;/P&gt;&lt;P&gt;z_ref TYPE REF TO receiver_class.&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;constructor,&lt;/P&gt;&lt;P&gt;result FOR EVENT finished OF receiver_class.&lt;/P&gt;&lt;P&gt;ENDCLASS. "callerx DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS callerx IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS caller IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD constructor.&lt;/P&gt;&lt;P&gt;SET HANDLER: me-&amp;gt;result FOR ALL INSTANCES.&lt;/P&gt;&lt;P&gt;CREATE OBJECT: y_ref, z_ref.&lt;/P&gt;&lt;P&gt;CALL METHOD y_ref-&amp;gt;start( 'WAIT1' ).&lt;/P&gt;&lt;P&gt;CALL METHOD z_ref-&amp;gt;start( 'WAIT2' ).&lt;/P&gt;&lt;P&gt;ENDMETHOD. "constructor&lt;/P&gt;&lt;P&gt;METHOD result.&lt;/P&gt;&lt;P&gt;WRITE: /, 'EVENT TRIGGERD!'.&lt;/P&gt;&lt;P&gt;ENDMETHOD. "result&lt;/P&gt;&lt;P&gt;ENDCLASS. "callerx IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;mycaller TYPE REF TO caller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT mycaller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;plz dont forget to reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 13:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448230#M548516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448231#M548517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mineiro, you become a abap expert &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS some_class DEFINITION.

  PUBLIC SECTION.
    METHODS: add_value IMPORTING value TYPE any.

  PRIVATE SECTION.
    TYPES: BEGIN OF y_values,
             value TYPE &amp;lt;what-type?&amp;gt;,
           END OF y_values.

    DATA: t_values TYPE TABLE OF y_values.

ENDCLASS.

CLASS some_class IMPLEMENTATION.

  METHOD add_value.

    DATA: wa_value LIKE LINE OF t_values.

    wa_value-value = value.
    APPEND wa_value TO t_values.

  ENDMETHOD.

ENDCLASS.

START-OF-SELECTION.

  DATA: o TYPE REF TO some_class.

  CREATE OBJECT o.

  o-&amp;gt;add_value( 'some text' ).
  o-&amp;gt;add_value( 1 ).
  o-&amp;gt;add_value( sy-datum ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448231#M548517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T14:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448232#M548518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo Darley, i transfer your problem to my friend mineiro 2, Marcelo... he said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;marcsiqueira: vc passa os valores como caracter... depois formata de acordo com o padrão para o type q vc quer.... se vai ser só numero. se vão ter casas decimais, quantas... a ordem das informações, e assim por diante... da mesma forma q trabalhamos pra formatar uma data na máscara '__/__/____'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expert is right, the type is STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 14:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448232#M548518</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-06-20T14:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448233#M548519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i have an object, i cannot set him to a string variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: o_ref TYPE REF TO data.

GET REFERENCE OF &amp;lt;any type of variable&amp;gt; INTO o_ref.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but the reference is invalid when the base variable is released. In debugger, It changes the value to XXXXXXXXXXXXXXXXXXX, just like field symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 18:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448233#M548519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T18:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448234#M548520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darley, Marcelo said this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- from help ---&lt;/P&gt;&lt;P&gt;The content of two reference variables filled with GET REFERENCE is only the same if - apart from the referenced data objects - the other management information is the same. For example, a reference that is got directly through the specification of the data object is different from a reference that is got through the specification of a field symbol if this has a different data type because of a casting.&lt;/P&gt;&lt;P&gt;Casting:&lt;/P&gt;&lt;P&gt;Handling a Data object assuming a certain Data type. Explicit casting is possible with the statement ASSIGN and with the assignmentsbetween reference variables . An implicit casting sometimes takes place during the handling of operands at certain operand positions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Creating data references to the individual characters of a data object text and their storage in an internal table. This example is possible as of Release 6.10. Before Release 6.10, dref can only be typed using TYPE REF TO data and cannot be dereferenced, except in ASSIGN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want more information, contact him.&lt;/P&gt;&lt;P&gt;Google Talk: marcsiqueira@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 18:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448234#M548520</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-06-20T18:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448235#M548521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, see this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e pontua as respostas boas...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZTESTE02                                                    *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zteste02                                                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS some_class DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS some_class DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS: write_dados IMPORTING tabela TYPE any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "some_class DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS some_class IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS some_class IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD write_dados.&lt;/P&gt;&lt;P&gt;    FIELD-SYMBOLS: &amp;lt;fstable&amp;gt; TYPE table,&lt;/P&gt;&lt;P&gt;                   &amp;lt;wa&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;    ASSIGN tabela TO &amp;lt;fstable&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT &amp;lt;fstable&amp;gt; ASSIGNING &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;      WRITE &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "some_class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "some_class IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: o TYPE REF TO some_class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:   BEGIN OF ti_scustom OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE scustom.&lt;/P&gt;&lt;P&gt;  DATA:   END OF ti_scustom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM scustom INTO TABLE ti_scustom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  o-&amp;gt;write_dados( ti_scustom[] ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 19:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448235#M548521</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-06-20T19:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448236#M548522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rodrigo, see my sample code (some_class)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep like an attribute of a class the values added with add_value method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just output then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS aren't allowed at IMPLEMENTATION section of a class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 20:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448236#M548522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T20:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448237#M548523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darley, this code works, i use write only to see if the result is correct. If you test the code, it will work. And if you change &lt;/P&gt;&lt;P&gt;write &amp;lt;wa&amp;gt; &lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;write &amp;lt;wa&amp;gt;+0(11) &lt;/P&gt;&lt;P&gt;will output only the field ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write this code in Minisap 6.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 01:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448237#M548523</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-06-21T01:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Abap generic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448238#M548524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solve the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA o_ref TYPE REF TO data.

  FIELD-SYMBOLS  &amp;lt;fs_value&amp;gt; LIKE LINE OF t_values.

  LOOP AT t_values ASSIGNING &amp;lt;fs_value&amp;gt;.

    GET REFERENCE OF &amp;lt;fs_value&amp;gt;-value INTO o_ref.

...

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using field-symbols, the referenced value of a value still in memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tanks mineiro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 20:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-generic-type/m-p/2448238#M548524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T20:15:43Z</dc:date>
    </item>
  </channel>
</rss>

