<?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: Getting field label(field description ) for a data element using abap code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969040#M948056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ztest_sourav14.
DATA: wa_dd04t TYPE dd04t.

PARAMETERS: p_name TYPE rollname DEFAULT 'MATNR' OBLIGATORY.

SELECT SINGLE * FROM  dd04t
  INTO wa_dd04t
  WHERE rollname = p_name AND
        ddlanguage = sy-langu AND
        as4local   = 'A'.

IF sy-subrc = 0.
  WRITE: /1 wa_dd04t-rollname, 31 wa_dd04t-ddtext.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 12:12:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T12:12:54Z</dc:date>
    <item>
      <title>Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969035#M948051</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;Please let me know how to get field label(field description ) for a data element using abap code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969035#M948051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969036#M948052</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 use the function module   DDIF_DOMA_GET    .&lt;/P&gt;&lt;P&gt;This function module takes the name of the data element / domain and gives in back its Dictionary information.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I hope this will help you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help children of U.N World Food Program by rewarding them and encourage others to answer your queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969036#M948052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969037#M948053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the following 2 steps. Then create your ABAP program accordingly with the SELECT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. From table DD03L, give your tablename and get all of its field names and corresponding data element names.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. From table DD03T, get the description of each data element you have got in step 1.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Use Function Module DDIF_FIELDINFO_GET  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample program will look like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTABLEFIELDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: DFIES,&lt;/P&gt;&lt;P&gt;        X030L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INTTAB OCCURS 100.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE DFIES.&lt;/P&gt;&lt;P&gt;DATA: END OF INTTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: TABLENM TYPE DDOBJNAME       DEFAULT 'MSEG',&lt;/P&gt;&lt;P&gt;            FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'DDIF_FIELDINFO_GET'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          tabname              = TABLENM&lt;/P&gt;&lt;P&gt;          FIELDNAME            = FIELDNM&lt;/P&gt;&lt;P&gt;          LANGU                = SY-LANGU&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LFIELDNAME           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ALL_TYPES            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        X030L_WA             = WATAB&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DDOBJTYPE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DFIES_WA             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LINES_DESCR          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          DFIES_TAB            = INTTAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FIXED_VALUES         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          NOT_FOUND            = 1&lt;/P&gt;&lt;P&gt;          INTERNAL_ERROR       = 2&lt;/P&gt;&lt;P&gt;          OTHERS               = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         WRITE:/ 'Field name not found'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT INTTAB.&lt;/P&gt;&lt;P&gt;         WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;End of Program &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;Step 1.  &lt;/P&gt;&lt;P&gt;Run the transaction and click on System -&amp;gt; Status. Note the program name shown under the transaction code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2.  &lt;/P&gt;&lt;P&gt;Run SE49 and enter the program name you identified in step 1 (SAPLCSDI) and then press enter.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will identify the tables used, however, as you want to know the fields used as well then you may have to resort to looking at the actual code (get a developer involved if you're not one) using transaction SE80.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the transaction CS03 is assigned to a screen with a function group so it's a slightly tricker process, hence the need for a developers service.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all the tables, descriptions and fields you can refer to these tables: &lt;/P&gt;&lt;P&gt;DD02L : ALL SAP TABLE NAMES &lt;/P&gt;&lt;P&gt;DD02T : DESCRIPTION OF TABLE NAMES &lt;/P&gt;&lt;P&gt;DD03L : FIELDS IN A TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969037#M948053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969038#M948054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepali,&lt;/P&gt;&lt;P&gt;Use function module RSD_DTEL_GET to get the field labels for a data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Reward points if useful&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969038#M948054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969039#M948055</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;I tried using this FM.But itsays that this FM doesn't exist.Pl check and let me know,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969039#M948055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969040#M948056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ztest_sourav14.
DATA: wa_dd04t TYPE dd04t.

PARAMETERS: p_name TYPE rollname DEFAULT 'MATNR' OBLIGATORY.

SELECT SINGLE * FROM  dd04t
  INTO wa_dd04t
  WHERE rollname = p_name AND
        ddlanguage = sy-langu AND
        as4local   = 'A'.

IF sy-subrc = 0.
  WRITE: /1 wa_dd04t-rollname, 31 wa_dd04t-ddtext.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969040#M948056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting field label(field description ) for a data element using abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969041#M948057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 09:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-field-label-field-description-for-a-data-element-using-abap-code/m-p/3969041#M948057</guid>
      <dc:creator>former_member435771</dc:creator>
      <dc:date>2016-09-15T09:26:17Z</dc:date>
    </item>
  </channel>
</rss>

