<?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 Dynamic internal table without OOPs concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739891#M321597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anybody suggest me how to make dynamic internal table containing fields &lt;/P&gt;&lt;P&gt;entered by the user in selection screen without using&lt;/P&gt;&lt;P&gt;OOPs concept (without calling any methods).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 15:40:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T15:40:56Z</dc:date>
    <item>
      <title>Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739891#M321597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anybody suggest me how to make dynamic internal table containing fields &lt;/P&gt;&lt;P&gt;entered by the user in selection screen without using&lt;/P&gt;&lt;P&gt;OOPs concept (without calling any methods).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739891#M321597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739892#M321598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZCLUST1 .
*
* Example: how to create a dynamic internal table
* 
* The dynamic internal table stucture
DATA: BEGIN OF STRUCT OCCURS 10,
FILDNAME(8) TYPE C,
ABPTYPE TYPE C,
LENGTH TYPE I,
END OF STRUCT.

* The dynamic program source table
DATA: BEGIN OF INCTABL OCCURS 10,
LINE(72),
END OF INCTABL.

DATA: LNG TYPE I, TYPESRTING(6).

* Sample dynamic internal table stucture
STRUCT-FILDNAME = 'field1'. STRUCT-ABPTYPE = 'c'. STRUCT-LENGTH = '6'.
APPEND STRUCT. CLEAR STRUCT.
STRUCT-FILDNAME = 'field2'. STRUCT-ABPTYPE = 'd'.
APPEND STRUCT. CLEAR STRUCT.
STRUCT-FILDNAME = 'field3'. STRUCT-ABPTYPE = 'i'.
APPEND STRUCT. CLEAR STRUCT.

* Create the dynamic internal table definition in the dyn. program
INCTABL-LINE = 'program zdynpro.'. APPEND INCTABL.
INCTABL-LINE = 'data: begin of dyntab occurs 10,'. APPEND INCTABL.
LOOP AT STRUCT.
INCTABL-LINE = STRUCT-FILDNAME.
LNG = STRLEN( STRUCT-FILDNAME ).
IF NOT STRUCT-LENGTH IS INITIAL .
TYPESRTING(1) = '('.
TYPESRTING+1 = STRUCT-LENGTH.
TYPESRTING+5 = ')'.
CONDENSE TYPESRTING NO-GAPS.
INCTABL-LINE+LNG = TYPESRTING.
ENDIF.
INCTABL-LINE+15 = 'type '.
INCTABL-LINE+21 = STRUCT-ABPTYPE.
INCTABL-LINE+22 = ','.
APPEND INCTABL.
ENDLOOP.
INCTABL-LINE = 'end of dyntab. '.
APPEND INCTABL.

* Create the code processes the dynamic internal table
INCTABL-LINE = ' '. APPEND INCTABL.
INCTABL-LINE = 'dyntab-field1 = ''aaaaaa''.'. APPEND INCTABL.
INCTABL-LINE = 'dyntab-field1 = ''19970814''.'. APPEND INCTABL.
INCTABL-LINE = 'dyntab-field1 = 1.'. APPEND INCTABL.
INCTABL-LINE = 'append dyntab.'. APPEND INCTABL.
INCTABL-LINE = ' '. APPEND INCTABL.
INCTABL-LINE = 'loop at dyntab.'. APPEND INCTABL.
INCTABL-LINE = 'write: / dyntab.'. APPEND INCTABL.
INCTABL-LINE = 'endloop.'. APPEND INCTABL.

* Create and run the dynamic program
INSERT REPORT 'zdynpro'(001) FROM INCTABL.
SUBMIT ZDYNPRO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Raja T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739892#M321598</guid>
      <dc:creator>raja_thangamani</dc:creator>
      <dc:date>2006-12-05T15:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739893#M321599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that it might be possible,  but I'm pretty sure not worth it.  I guess you are on a release &amp;lt; 46c and can not use the code in my blog?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739893#M321599</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-05T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739894#M321600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen your suggestion in weblog but there OOPs concept are used.&lt;/P&gt;&lt;P&gt;I am working on version 4.7, can you please help me out regarding this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739894#M321600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739895#M321601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you want to use object oriented concepts,  my blog will walk you thru the entrie process?&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739895#M321601</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-05T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739896#M321602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raja,&lt;/P&gt;&lt;P&gt;Thanks for your response but the fields of the internal table are not static, they are to be taken from the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739896#M321602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739897#M321603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;Thanks for your support but my requirement is  that i don't have to use the OOPs concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739897#M321603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739898#M321604</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;Instead of Hard coding the field names, you can get it from Selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at s_select. "S_Select - selectiion Parameter

STRUCT-FILDNAME = s_select-Low. 

APPEND STRUCT.

Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward each useful asnsers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 15:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739898#M321604</guid>
      <dc:creator>raja_thangamani</dc:creator>
      <dc:date>2006-12-05T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739899#M321605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;Fine i can get the name of the field, but then how to get the type &amp;amp; length of the fields which the user has entered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 16:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739899#M321605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T16:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table without OOPs concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739900#M321606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as i know,&lt;/P&gt;&lt;P&gt;you need to use the below code to get the data type dynamically..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**** Get type object from a data object

DATA:   DATATYPE TYPE REF TO CL_ABAP_DATADESCR,
        FIELD(5) TYPE C.

DATATYPE ?= CL_ABAP_TYPEDESCR=&amp;gt;DESCRIBE_BY_DATA( FIELD ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 16:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-without-oops-concept/m-p/1739900#M321606</guid>
      <dc:creator>raja_thangamani</dc:creator>
      <dc:date>2006-12-05T16:08:51Z</dc:date>
    </item>
  </channel>
</rss>

