<?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 LENGTH in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/13706464#M2028097</link>
    <description>&lt;P&gt;Hi, the length lengths of the structdescr-&amp;gt;components table are doubled. how do I solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;SELECT lifnr, surbel, tedbf, eysbel, degkul, degtar, degsaa, iso_9001, iso_9001_t,
      iatf_16949, iatf_16949_t, surbel_t, iso_14001, iso_14001_t, iso_45001,
      iso_45001_t, iso_27001, iso_27001_t, iso_50001, iso_50001_t, iso_genel, iso_genel_t
          FROM zbtmm_t_0001 WHERE  (  ( iso_genel_t &amp;gt;= '20230101'  AND iso_genel_t &amp;lt;= '20250101' ) OR
              ( iso_50001_t  &amp;gt;= '20230101'  AND iso_50001_t  &amp;lt;= '20250101' ) OR
              ( iso_27001_t  &amp;gt;= '20230101'  AND iso_27001_t  &amp;lt;= '20250101' ) OR
              ( iso_45001_t  &amp;gt;= '20230101'  AND iso_45001_t  &amp;lt;= '20250101' ) OR
              ( iso_14001_t  &amp;gt;= '20230101'  AND iso_14001_t  &amp;lt;= '20250101' ) OR
              ( surbel_t     &amp;gt;= '20230101' AND surbel_t     &amp;lt;= '20250101' ) OR
              ( iatf_16949_t &amp;gt;= '20230101'  AND iatf_16949_t &amp;lt;= '20250101' ) OR
              ( iso_9001_t   &amp;gt;= '20230101'  AND iso_9001_t   &amp;lt;= '20250101' ) ) INTO TABLE &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(lt_analok).


DATA(tabledescr) = CAST cl_abap_tabledescr( cl_abap_typedescr=&amp;gt;describe_by_data( lt_analok ) ).
DATA(structdescr) = CAST cl_abap_structdescr( tabledescr-&amp;gt;get_table_line_type( ) ).

DATA index TYPE i value 1 .

LOOP AT structdescr-&amp;gt;components INTO DATA(component).

  WRITE: / index , ' ' , component-name ,  ' '  , component-type_kind , ' ' , component-length.

  index = index + 1.

ENDLOOP.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 08:00:49 GMT</pubDate>
    <dc:creator>Arslan1</dc:creator>
    <dc:date>2024-05-20T08:00:49Z</dc:date>
    <item>
      <title>LENGTH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/13706464#M2028097</link>
      <description>&lt;P&gt;Hi, the length lengths of the structdescr-&amp;gt;components table are doubled. how do I solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;SELECT lifnr, surbel, tedbf, eysbel, degkul, degtar, degsaa, iso_9001, iso_9001_t,
      iatf_16949, iatf_16949_t, surbel_t, iso_14001, iso_14001_t, iso_45001,
      iso_45001_t, iso_27001, iso_27001_t, iso_50001, iso_50001_t, iso_genel, iso_genel_t
          FROM zbtmm_t_0001 WHERE  (  ( iso_genel_t &amp;gt;= '20230101'  AND iso_genel_t &amp;lt;= '20250101' ) OR
              ( iso_50001_t  &amp;gt;= '20230101'  AND iso_50001_t  &amp;lt;= '20250101' ) OR
              ( iso_27001_t  &amp;gt;= '20230101'  AND iso_27001_t  &amp;lt;= '20250101' ) OR
              ( iso_45001_t  &amp;gt;= '20230101'  AND iso_45001_t  &amp;lt;= '20250101' ) OR
              ( iso_14001_t  &amp;gt;= '20230101'  AND iso_14001_t  &amp;lt;= '20250101' ) OR
              ( surbel_t     &amp;gt;= '20230101' AND surbel_t     &amp;lt;= '20250101' ) OR
              ( iatf_16949_t &amp;gt;= '20230101'  AND iatf_16949_t &amp;lt;= '20250101' ) OR
              ( iso_9001_t   &amp;gt;= '20230101'  AND iso_9001_t   &amp;lt;= '20250101' ) ) INTO TABLE &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(lt_analok).


DATA(tabledescr) = CAST cl_abap_tabledescr( cl_abap_typedescr=&amp;gt;describe_by_data( lt_analok ) ).
DATA(structdescr) = CAST cl_abap_structdescr( tabledescr-&amp;gt;get_table_line_type( ) ).

DATA index TYPE i value 1 .

LOOP AT structdescr-&amp;gt;components INTO DATA(component).

  WRITE: / index , ' ' , component-name ,  ' '  , component-type_kind , ' ' , component-length.

  index = index + 1.

ENDLOOP.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 08:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/13706464#M2028097</guid>
      <dc:creator>Arslan1</dc:creator>
      <dc:date>2024-05-20T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: LENGTH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/13706658#M2028101</link>
      <description>&lt;P&gt;It's the length in bytes, so in a Unicode system (all systems since ABAP 7.53) where each character is 2 bytes, you simply divide by 2 to get the number of characters (cl_abap_char_utilities=&amp;gt;charsize).&lt;/P&gt;&lt;P&gt;Do it only when it's a character-based type of course.&lt;/P&gt;&lt;P&gt;NB: a question title like "Length in RTTS is doubled" would be better than just "LENGTH".&lt;/P&gt;&lt;P&gt;EDIT: your question is not about "ABAP Connectivity", better choose "ABAP Development" in SAP Managed Tags.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 11:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/length/m-p/13706658#M2028101</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-05-20T11:02:07Z</dc:date>
    </item>
  </channel>
</rss>

