<?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: Query DD03L using an ABAP program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649464#M2014933</link>
    <description>&lt;P&gt;Hello Abit&lt;/P&gt;&lt;P&gt;Thank you for your followup. &lt;/P&gt;&lt;P&gt;While your code's syntax is correct, I get no output on my end. &lt;/P&gt;&lt;P&gt;Best reagrds&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 14:50:09 GMT</pubDate>
    <dc:creator>sas70</dc:creator>
    <dc:date>2023-01-06T14:50:09Z</dc:date>
    <item>
      <title>Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649458#M2014927</link>
      <description>&lt;P&gt;Hello Professionals&lt;/P&gt;
  &lt;P&gt;I am trying to leverage the code posted in this place (below) to output the technical fieldnames and related attributes from some SAP tables like T000, T001...&lt;/P&gt;
  &lt;P&gt;However, while the code's syntax is correct, I get no output. I am coming from a web development background and ABAP is new to me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report  ZMY_ALV_10&lt;BR /&gt;*&amp;amp;&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp;&lt;BR /&gt;*&amp;amp;&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;&lt;BR /&gt;REPORT ZMY_ALV_10.&lt;BR /&gt;&lt;BR /&gt;FIELD-SYMBOLS:&lt;BR /&gt;&amp;lt;fieldname&amp;gt; TYPE ANY, "Name of field&lt;BR /&gt;&amp;lt;line&amp;gt; TYPE ANY, "Line structure for table&lt;BR /&gt;&amp;lt;fieldvalue&amp;gt; TYPE ANY. "Value of field&lt;BR /&gt;&lt;BR /&gt;DATA: l_shorttext LIKE dd03m-ddtext.&lt;BR /&gt;&lt;BR /&gt;DATA: wa_dd03l LIKE dd03l.&lt;BR /&gt;DATA WA_PA1_DELTA.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM dd03l INTO wa_dd03l&lt;BR /&gt;&lt;BR /&gt;WHERE tabname = 'ZHR_INTER_PA1_DL'.&lt;BR /&gt;* Assign name of field&lt;BR /&gt;ASSIGN COMPONENT 2 OF STRUCTURE wa_dd03l TO &amp;lt;fieldname&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;* Assign structure for internal table&lt;BR /&gt;ASSIGN wa_pa1_delta TO &amp;lt;line&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;* Assign field value from structure&lt;BR /&gt;ASSIGN COMPONENT &amp;lt;fieldname&amp;gt; OF STRUCTURE &amp;lt;line&amp;gt; TO &amp;lt;fieldvalue&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;* Find DD text for field&lt;BR /&gt;SELECT SINGLE ddtext&lt;BR /&gt;FROM dd03m&lt;BR /&gt;INTO l_shorttext&lt;BR /&gt;WHERE tabname = 'ZHR_INTER_PA1_DL' AND&lt;BR /&gt;fieldname = &amp;lt;fieldname&amp;gt; AND&lt;BR /&gt;ddlanguage = 'EN'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;WRITE: / &amp;lt;fieldname&amp;gt;, l_shorttext, ' : ', &amp;lt;fieldvalue&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;ENDSELECT.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Source : &lt;A href="https://www.henrikfrank.dk/abaptips/abapindex.htm?page=abap%20language%2Fdynamic%20programming%2Fdynamically%20read%20fields%20-%20fieldnames%20and%20fieldcontents.htm" target="test_blank"&gt;https://www.henrikfrank.dk/abaptips/abapindex.htm?page=abap%20language%2Fdynamic%20programming%2Fdynamically%20read%20fields%20-%20fieldnames%20and%20fieldcontents.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 18:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649458#M2014927</guid>
      <dc:creator>sas70</dc:creator>
      <dc:date>2023-01-05T18:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649459#M2014928</link>
      <description>&lt;P&gt;What is your requirement? Can you explain in details?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 05:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649459#M2014928</guid>
      <dc:creator>adityaIngale66</dc:creator>
      <dc:date>2023-01-06T05:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649460#M2014929</link>
      <description>&lt;P&gt;Aditya, &lt;/P&gt;&lt;P&gt;Thank you for the followup. Basically I am collecting configuration and master data tables within specific clients and trying to download their structure to Excel as well access these tables programmatically to perform some summing and grouping by specific fields to summarise transactions by targeted field names such as Material type, document type, or even by any structural elements such as storage location, sales office…to collect some KPIs somewhat mimic the behaviour of ST13 (Table analysis).&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Omar &lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 08:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649460#M2014929</guid>
      <dc:creator>sas70</dc:creator>
      <dc:date>2023-01-06T08:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649461#M2014930</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you try this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS:&lt;BR /&gt;&amp;lt;fieldname&amp;gt; TYPE ANY, "Name of field&lt;BR /&gt;&amp;lt;line&amp;gt; TYPE ANY, "Line structure for table&lt;BR /&gt;&amp;lt;fieldvalue&amp;gt; TYPE ANY. "Value of field&lt;BR /&gt;&lt;BR /&gt;DATA: l_shorttext LIKE dd03m-ddtext.&lt;BR /&gt;&lt;BR /&gt;DATA: wa_dd03l LIKE dd03l.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM dd03l INTO wa_dd03l&lt;BR /&gt;&lt;BR /&gt;WHERE tabname = 'ZHR_INTER_PA1_DL'.&lt;BR /&gt;* Assign name of field&lt;BR /&gt;ASSIGN COMPONENT 2 OF STRUCTURE wa_dd03l TO &amp;lt;fieldname&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;* Assign structure for internal table&lt;BR /&gt;ASSIGN wa_dd03l TO &amp;lt;line&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;* Assign field value from structure&lt;BR /&gt;ASSIGN COMPONENT 2 OF STRUCTURE &amp;lt;line&amp;gt; TO &amp;lt;fieldvalue&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;* Find DD text for field&lt;BR /&gt;SELECT SINGLE ddtext&lt;BR /&gt;FROM dd03m&lt;BR /&gt;INTO l_shorttext&lt;BR /&gt;WHERE tabname = 'ZHR_INTER_PA1_DL' AND&lt;BR /&gt;fieldname = &amp;lt;fieldname&amp;gt; AND&lt;BR /&gt;ddlanguage = 'EN'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;WRITE: / &amp;lt;fieldname&amp;gt;, l_shorttext, ' : ', &amp;lt;fieldvalue&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;ENDSELECT.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2023 11:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649461#M2014930</guid>
      <dc:creator>abityildiz</dc:creator>
      <dc:date>2023-01-06T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649462#M2014931</link>
      <description>&lt;P&gt;To read and display table content of an arbitrary table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS tabname TYPE tabname.&lt;BR /&gt;&lt;BR /&gt;DATA dataref TYPE REF TO data.&lt;BR /&gt;CREATE DATA dataref TYPE TABLE OF (tabname).&lt;BR /&gt;&lt;BR /&gt;FIELD-SYMBOLS &amp;lt;lt_data&amp;gt; TYPE ANY TABLE.&lt;BR /&gt;ASSIGN dataref-&amp;gt;* TO &amp;lt;lt_data&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM (tabname) INTO TABLE @&amp;lt;lt_data&amp;gt;.&lt;BR /&gt;cl_demo_output=&amp;gt;display( &amp;lt;lt_data&amp;gt; ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To read and display table structure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA lt_comp TYPE TABLE OF dd03p.&lt;BR /&gt;CALL FUNCTION 'DD_TABL_GET'&lt;BR /&gt;  EXPORTING&lt;BR /&gt;    tabl_name   = tabname&lt;BR /&gt;    withtext    = abap_true&lt;BR /&gt;    langu       = 'E'&lt;BR /&gt;  TABLES&lt;BR /&gt;    dd03p_tab_a = lt_comp&lt;BR /&gt;  EXCEPTIONS&lt;BR /&gt;    OTHERS      = 1.&lt;BR /&gt;&lt;BR /&gt;DATA lt_desc TYPE TABLE OF string.&lt;BR /&gt;lt_desc = VALUE #( FOR &amp;lt;wa&amp;gt; IN lt_comp ( |Name { &amp;lt;wa&amp;gt;-fieldname }, data type { &amp;lt;wa&amp;gt;-rollname }, description { &amp;lt;wa&amp;gt;-ddtext }| ) ).&lt;BR /&gt;cl_demo_output=&amp;gt;display( lt_desc ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2023 11:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649462#M2014931</guid>
      <dc:creator>touzik_itc</dc:creator>
      <dc:date>2023-01-06T11:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649463#M2014932</link>
      <description>&lt;P&gt;Hello Andrei&lt;/P&gt;&lt;P&gt;Thank you for the follow-up.&lt;/P&gt;&lt;P&gt;The first piece of code does not work for me as I am running Pack 7 so my editor does not recognize the inline declarations made in your code.&lt;/P&gt;&lt;P&gt;For the second piece, I get an error message that field &amp;lt;tabname&amp;gt; is unknown.&lt;/P&gt;&lt;P&gt;Best reagrds&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649463#M2014932</guid>
      <dc:creator>sas70</dc:creator>
      <dc:date>2023-01-06T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649464#M2014933</link>
      <description>&lt;P&gt;Hello Abit&lt;/P&gt;&lt;P&gt;Thank you for your followup. &lt;/P&gt;&lt;P&gt;While your code's syntax is correct, I get no output on my end. &lt;/P&gt;&lt;P&gt;Best reagrds&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649464#M2014933</guid>
      <dc:creator>sas70</dc:creator>
      <dc:date>2023-01-06T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query DD03L using an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649465#M2014934</link>
      <description>&lt;P&gt;Hello Omar,&lt;/P&gt;&lt;P&gt;what kind of error do you get in the first part? All variables and field symbols are declared explicitly here. In the second part there is no field symbol &amp;lt;tabname&amp;gt;. The variable tabname is decalared in the first part with a PARAMETERS statement.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 10:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-dd03l-using-an-abap-program/m-p/12649465#M2014934</guid>
      <dc:creator>touzik_itc</dc:creator>
      <dc:date>2023-01-09T10:48:16Z</dc:date>
    </item>
  </channel>
</rss>

