<?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: create a table with structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687955#M888046</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;how to create a table with the following fields.&lt;/P&gt;&lt;P&gt;they are requesting to create text occurs 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create a table like this ( with the following fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fSpecification&lt;/P&gt;&lt;P&gt;Harmonisation&lt;/P&gt;&lt;P&gt;Derogation Y/N&lt;/P&gt;&lt;P&gt;Derogation date from date&lt;/P&gt;&lt;P&gt;Derogation date to date&lt;/P&gt;&lt;P&gt;Derogation Text X(80) occurs 3&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;Extra address text X(80) occurs 3&lt;/P&gt;&lt;P&gt;Label validation Y/N&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;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2008 08:52:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-11T08:52:14Z</dc:date>
    <item>
      <title>create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687953#M888044</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;how to create a table with the following fields.&lt;/P&gt;&lt;P&gt;they are requesting to create text occurs 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create a table like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specification	&lt;/P&gt;&lt;P&gt;Harmonisation	&lt;/P&gt;&lt;P&gt;Derogation	Y/N&lt;/P&gt;&lt;P&gt;Derogation date from	date&lt;/P&gt;&lt;P&gt;Derogation date to	date&lt;/P&gt;&lt;P&gt;Derogation Text	X(80) occurs 3&lt;/P&gt;&lt;P&gt;Address	&lt;/P&gt;&lt;P&gt;Extra address text	X(80) occurs 3&lt;/P&gt;&lt;P&gt;Label validation	Y/N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 07:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687953#M888044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T07:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687954#M888045</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;how to create a table with the following fields.&lt;/P&gt;&lt;P&gt;they are requesting to create text occurs 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create a table like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specification&lt;/P&gt;&lt;P&gt;Harmonisation&lt;/P&gt;&lt;P&gt;Derogation Y/N&lt;/P&gt;&lt;P&gt;Derogation date from date&lt;/P&gt;&lt;P&gt;Derogation date to date&lt;/P&gt;&lt;P&gt;Derogation Text X(80) occurs 3&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;Extra address text X(80) occurs 3&lt;/P&gt;&lt;P&gt;Label validation Y/N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I understand by the Specs is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1 :&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 08:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687954#M888045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T08:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687955#M888046</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;how to create a table with the following fields.&lt;/P&gt;&lt;P&gt;they are requesting to create text occurs 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create a table like this ( with the following fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fSpecification&lt;/P&gt;&lt;P&gt;Harmonisation&lt;/P&gt;&lt;P&gt;Derogation Y/N&lt;/P&gt;&lt;P&gt;Derogation date from date&lt;/P&gt;&lt;P&gt;Derogation date to date&lt;/P&gt;&lt;P&gt;Derogation Text X(80) occurs 3&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;Extra address text X(80) occurs 3&lt;/P&gt;&lt;P&gt;Label validation Y/N&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;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 08:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687955#M888046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T08:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687956#M888047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go To se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And create the following fields with specified length or by creating data element.&lt;/P&gt;&lt;P&gt;And for Derogation Text X(80) occurs 3 field create a data element with character type (Length = 80)&lt;/P&gt;&lt;P&gt;mention the fields as Derogation Text1, Derogation Text2, Derogation Text3 with the same data element.&lt;/P&gt;&lt;P&gt;and do the same for Extra address text X(80) occurs 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if you find it helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 09:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687956#M888047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687957#M888048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I understand by the Specs is :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Fields Field Name            Type           Length
 1     : Harmonisation         C              1
 2     : Derogation            C              1
 3     : From Date             D              8
 4     : To Date               D              8
 5     : Derog. Text       Structure       [ ][ ][ ][][]
   5.1: X                      C             80
 6     : Address               C             80
 7     : Extra address     Structure       [ ][ ][ ][][] 
   7.1: X                      C             80
 8     : Label validation      C             1&lt;/CODE&gt;&lt;/PRE&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;So you need to declare two structures first and then include them in the Table declaration.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note: Table Declaration using &lt;EM&gt;'Occurs n'&lt;/EM&gt; is an obsolete statement, so please avoid it using.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As follows in the code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Structure type Declaration for Derogation Text X(80).

TYPES:
            BEGIN OF derogation_text,
                X(80),
            END OF derogation_text.

TYPES:
            fs_derogation_text TYPE 
                    STANDARD TABLE 
                                 OF derogation_text
                           INITIAL LINE SIZE 3.

* Structure type Extra Address for Extra Address X(80).

TYPES:
            BEGIN OF extra_address,
                X(80),
            END OF extra_address.

TYPES:
           fs_extra_address TYPE
                 STANDARD TABLE
                              OF extra_address
                        INITIAL LINE SIZE 3.

* Structure Type of the Main Table according to requirement.

TYPES:
            BEGIN OF type_table,
               Harmonisation TYPE C,
               Derogation       TYPE C,
               From_Date       TYPE D,
               To_Date           TYPE D,
               der_text           TYPE fs_derogation_text,
               Address(80)     TYPE C,
               extra_address  TYPE fs_extra_address, 
               Label_validation TYPE C,
           END OF type_table.        

DATA:
        itab TYPE type_table. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIAL LINE SIZE n is the replacement for Occurs n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use Occurs n statement in ABAP OBJECTS, it throws an error.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please dont use obsolete statements in you report programs.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inspire me more if this is needful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 09:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687957#M888048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687958#M888049</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;I need to create a table in Dictionary &lt;/P&gt;&lt;P&gt;How i can declare the structure in table with like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is ok with report and how can we create in Dictionary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 11:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687958#M888049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T11:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687959#M888050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First method:&lt;/P&gt;&lt;P&gt;first create the structue in the dictonary( T-code Se11 ) with the those fields mentined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then again go to dictionary and create one table  in that table include this structure , &lt;/P&gt;&lt;P&gt; jus chek the table MARA and see how the structure EMARA is included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second method:&lt;/P&gt;&lt;P&gt; Create a table first in the dictionary , in the application tool bar of the table you can find &lt;/P&gt;&lt;P&gt;  APPEND STRUCTURE , click that it will ask for a structure name give the name of that structure&lt;/P&gt;&lt;P&gt;and give the field names  and the there techincal as well as symantic attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get a table as required&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 06:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687959#M888050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T06:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: create a table with structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687960#M888051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 12:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-table-with-structure/m-p/3687960#M888051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T12:09:57Z</dc:date>
    </item>
  </channel>
</rss>

