<?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: Internal Table Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482972#M559693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wel i would like to add a point...&lt;/P&gt;&lt;P&gt;u can give ur own names for the Internal table fields...but it wil always good if u maintain the same name....&lt;/P&gt;&lt;P&gt;whenever we are writing a program...we should think in others perspective view  also ie good programming...since other should also understand ur coding easily ...for this purpose in every project we use a standard notations for coding techniques like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for select option should start with S_&lt;/P&gt;&lt;P&gt;parameter  P_&lt;/P&gt;&lt;P&gt;Internal table GT_&lt;/P&gt;&lt;P&gt;Types TY_&lt;/P&gt;&lt;P&gt;Global var G_&lt;/P&gt;&lt;P&gt;Local var L_&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;Balaji ( reward points if this helps u ..)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2007 09:23:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-29T09:23:34Z</dc:date>
    <item>
      <title>Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482965#M559686</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;Can I give a field name of an internal table other than the corresponding DB table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Mohit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 07:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482965#M559686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482966#M559687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;yes u can give ur own fields also in the internal table apart from DB table fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u have to populate them explicitly...&lt;/P&gt;&lt;P&gt;like  u cant use select &amp;lt;fields&amp;gt; from &amp;lt;dbtable &amp;gt; into table itab..&lt;/P&gt;&lt;P&gt;something like this type...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 1,&lt;/P&gt;&lt;P&gt;         matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;         name(20),&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt; select matnr from mara into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt;   itab-name = 'xyz'.&lt;/P&gt;&lt;P&gt;   modify  itab transporting name .&lt;/P&gt;&lt;P&gt;   write : / itab-matnr,&lt;/P&gt;&lt;P&gt;             itab-name.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Premalatha G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 07:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482966#M559687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482967#M559688</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;u can give but u should create a internal table with TYPES keyword then asign all database fields and your own required fields to find and create a internal table with respect to types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin o itab,&lt;/P&gt;&lt;P&gt;               matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;               ersda like mara-ersda,&lt;/P&gt;&lt;P&gt;               ernam like mara-ernam,&lt;/P&gt;&lt;P&gt;               num type i,&lt;/P&gt;&lt;P&gt;               name type ,&lt;/P&gt;&lt;P&gt;               aluri type char,&lt;/P&gt;&lt;P&gt;          end of itab.&lt;/P&gt;&lt;P&gt;data: jtab type itab occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\if helpfl reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 07:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482967#M559688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482968#M559689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Yes, you can give field name without corresponding of original tabl, but you should use Corresponding key in syntax.&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;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;           WAERS LIKE TCURC-WAERS,&lt;/P&gt;&lt;P&gt;           ALTWR LIKE  TCURS-ALTWR,&lt;/P&gt;&lt;P&gt;           END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM TCURS INTO CORRESPONDING FIELDS OF TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF USEFULL REWARD POINTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 08:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482968#M559689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T08:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482969#M559690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;YOU CAN GIVE IT NO PROBLEM BUT YOU HAVE TO DECLARE IN THIS MANNER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TY_VBAK,&lt;/P&gt;&lt;P&gt;        VBELN TYPE VBELN_VA,&lt;/P&gt;&lt;P&gt;        ERDAT TYPE ERDAT,&lt;/P&gt;&lt;P&gt;        ERZET TYPE ERZET,&lt;/P&gt;&lt;P&gt;        ERNAM TYPE ERNAM,&lt;/P&gt;&lt;P&gt;        END OF TY_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TY_VBAP,&lt;/P&gt;&lt;P&gt;        VBELN TYPE VBELN_VA,&lt;/P&gt;&lt;P&gt;        POSNR TYPE POSNR_VA,&lt;/P&gt;&lt;P&gt;        MATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;        MATWA TYPE MATWA,&lt;/P&gt;&lt;P&gt;        END OF TY_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TY_MARA,&lt;/P&gt;&lt;P&gt;        MATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;        MTART TYPE MTART,&lt;/P&gt;&lt;P&gt;        MBRSH TYPE MBRSH,&lt;/P&gt;&lt;P&gt;        MATKL TYPE MATKL,&lt;/P&gt;&lt;P&gt;        ANY(4) ,&lt;/P&gt;&lt;P&gt;        END OF TY_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : TT_VBAK TYPE STANDARD TABLE OF TY_VBAK,&lt;/P&gt;&lt;P&gt;        TT_VBAP TYPE STANDARD TABLE OF TY_VBAP,&lt;/P&gt;&lt;P&gt;        TT_MARA TYPE STANDARD TABLE OF TY_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : IT_VBAK TYPE TT_VBAK WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       IT_VBAP TYPE TT_VBAP WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       IT_MARA TYPE TT_MARA WITH HEADER LINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 09:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482969#M559690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482970#M559691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mohit,&lt;/P&gt;&lt;P&gt;yes u can define an internal table field other than DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_mara,&lt;/P&gt;&lt;P&gt;          mat type mara-matnr,&lt;/P&gt;&lt;P&gt;          end of ty_mara.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;types : it_mara type standard table of ty_mara.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this may be helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward in case useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 09:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482970#M559691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T09:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482971#M559692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use your own name in internal table.It wont affect DB tables.&lt;/P&gt;&lt;P&gt;But you should use properly.Mostly internal tame will be related to DB table name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;MARA table.&lt;/P&gt;&lt;P&gt;so internal name will be ITAB_MARA or IT_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before using internal table you have to declare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO TABLE ITAB_MARA WHERE MATNR  = MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.................................................&lt;/P&gt;&lt;P&gt;.................................................&lt;/P&gt;&lt;P&gt;....................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its useful reward points.&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;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 09:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482971#M559692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T09:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482972#M559693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wel i would like to add a point...&lt;/P&gt;&lt;P&gt;u can give ur own names for the Internal table fields...but it wil always good if u maintain the same name....&lt;/P&gt;&lt;P&gt;whenever we are writing a program...we should think in others perspective view  also ie good programming...since other should also understand ur coding easily ...for this purpose in every project we use a standard notations for coding techniques like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for select option should start with S_&lt;/P&gt;&lt;P&gt;parameter  P_&lt;/P&gt;&lt;P&gt;Internal table GT_&lt;/P&gt;&lt;P&gt;Types TY_&lt;/P&gt;&lt;P&gt;Global var G_&lt;/P&gt;&lt;P&gt;Local var L_&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;Balaji ( reward points if this helps u ..)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 09:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482972#M559693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T09:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482973#M559694</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;It is depending upon your requirement.&lt;/P&gt;&lt;P&gt;First create Work area with all required field and create internal atble if you want particular fileds.&lt;/P&gt;&lt;P&gt;eg:data: begin of wa.&lt;/P&gt;&lt;P&gt;&amp;lt;required fields&amp;gt;&lt;/P&gt;&lt;P&gt;end of wa.&lt;/P&gt;&lt;P&gt;data:itab like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want all fields from database table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:itab like EKKO with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 09:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-fields/m-p/2482973#M559694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T09:46:30Z</dc:date>
    </item>
  </channel>
</rss>

