<?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: problem while reading structure of table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509477#M1423215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in ecc 6 length wise it is reading twice from table mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is because 4.7 is non-unicode system, while ECC 6.0 is unicode system. &lt;/P&gt;&lt;P&gt;In in non-Unicode 1char = 1byte, in Unicode 1 char = 2bytes. That's why you get the length doubled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 12:52:33 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-01-08T12:52:33Z</dc:date>
    <item>
      <title>problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509476#M1423214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : it_tabdescr type abap_compdescr_tab,&lt;/P&gt;&lt;P&gt;         wa_tabdescr type abap_compdescr.&lt;/P&gt;&lt;P&gt;  data : ref_table_descr type ref to cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Return structure of the table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ref_table_descr ?= cl_abap_typedescr=&amp;gt;describe_by_name( 'MARA' ).&lt;/P&gt;&lt;P&gt;  it_tabdescr[] = ref_table_descr-&amp;gt;components[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tabdescr[] contains following fields..&lt;/P&gt;&lt;P&gt;   length    TYPE i,&lt;/P&gt;&lt;P&gt;    decimals  TYPE i,&lt;/P&gt;&lt;P&gt;    type_kind TYPE abap_typekind,&lt;/P&gt;&lt;P&gt;    name      TYPE abap_compname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is working fine in 4.7..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in ecc 6  length wise it is reading twice from table mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 4.7 mandt  length 3&lt;/P&gt;&lt;P&gt; ecc6   mandt  length 6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 12:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509476#M1423214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T12:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509477#M1423215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in ecc 6 length wise it is reading twice from table mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is because 4.7 is non-unicode system, while ECC 6.0 is unicode system. &lt;/P&gt;&lt;P&gt;In in non-Unicode 1char = 1byte, in Unicode 1 char = 2bytes. That's why you get the length doubled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 12:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509477#M1423215</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-01-08T12:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509478#M1423216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Instead of You can use FM TR_NAMETAB_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 13:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509478#M1423216</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-01-08T13:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509479#M1423217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to over come with this problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the all fields name with their length and type by using the table name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 13:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509479#M1423217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509480#M1423218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: DDFIELDS TYPE DDFIELDS ,
      WA_DDFIELDS LIKE LINE OF DDFIELDS.

CALL FUNCTION 'TR_NAMETAB_GET'
  EXPORTING
    IV_TABNAME                       = 'MARA'
   IV_GET_LENGTHS_IN_CHARMODE       = 'X'
 IMPORTING
   ET_DFIES                         = DDFIELDS
 EXCEPTIONS
   NOT_FOUND                        = 1
   OTHERS                           = 2.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
ELSE.
  LOOP AT DDFIELDS INTO WA_DDFIELDS.
    WRITE: / WA_DDFIELDS-FIELDNAME, WA_DDFIELDS-LENG,  WA_DDFIELDS-DATATYPE.
  ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 13:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509480#M1423218</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-01-08T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509481#M1423219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The approach you took is correct one. in ECC just loop through the it_tabdescr[] and divide the length by 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 13:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509481#M1423219</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-01-08T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509482#M1423220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using this  Fm TR_NAMETAB_GET..  its of no use. the length is twice the actual length. please help me out with another solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 13:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509482#M1423220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509483#M1423221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my table &lt;STRONG&gt;currency&lt;/STRONG&gt; field length is 13.. it shows only 7.. Then how to over come this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 14:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509483#M1423221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T14:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading structure of table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509484#M1423222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When divide by 2, it will give wrong value for Type 'P', etc ie. VOLUM. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 14:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-reading-structure-of-table/m-p/6509484#M1423222</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-01-08T14:01:50Z</dc:date>
    </item>
  </channel>
</rss>

