<?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: function module - DDIF_FIELDINFO_GET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182317#M757652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data l_dfies_wa type dfies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_FIELDINFO_GET' destination desti&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;     tABNAME              = p_tabname&lt;/P&gt;&lt;P&gt;     FIELDNAME            = p_fieldname&lt;/P&gt;&lt;P&gt;     ALL_TYPES            = 'x'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     DFIES_WA             = l_dfies_wa&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;     DFIES_TAB            = p_dfies&lt;/P&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;  case sy-subrc.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;    when 1.&lt;/P&gt;&lt;P&gt;      message e009 with p_tabname p_fieldname.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message e010 with 'DDIF_FIELDINFO_GET'.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;  if not l_dfies_wa is initial.&lt;/P&gt;&lt;P&gt;    append l_dfies_wa to p_dfies.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 07:11:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T07:11:00Z</dc:date>
    <item>
      <title>function module - DDIF_FIELDINFO_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182314#M757649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we select first 10 fields of  table dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone send me a sample code using fm DDIF_FIELDINFO_GET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 06:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182314#M757649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T06:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: function module - DDIF_FIELDINFO_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182315#M757650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field(DFIES-POSITION) of the TABLES paramater(DFIES_TAB) returned by the FM holds the position of the field in the data dictionary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 06:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182315#M757650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T06:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: function module - DDIF_FIELDINFO_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182316#M757651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to extract first 10 fields of a dictionary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write Select Query for table DD03L &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select tabname fieldname &lt;/P&gt;&lt;P&gt;  from DD03l&lt;/P&gt;&lt;P&gt;  into corresponding fields of i_dd03l&lt;/P&gt;&lt;P&gt;  where tabname in s_table&lt;/P&gt;&lt;P&gt;     and position in s_position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_table is select option for DD03l-tabname&lt;/P&gt;&lt;P&gt;s_position is select option for table field DD03L-POSITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to know FM here is the prototype. Try it out.&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;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;          DFIES_TAB            = INTTAB&lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;All the very best to you.&lt;/P&gt;&lt;P&gt;  - Mohan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MohanVamsi Krishna on Dec 28, 2007 1:56 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MohanVamsi Krishna on Dec 28, 2007 1:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 06:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182316#M757651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: function module - DDIF_FIELDINFO_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182317#M757652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data l_dfies_wa type dfies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DDIF_FIELDINFO_GET' destination desti&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;     tABNAME              = p_tabname&lt;/P&gt;&lt;P&gt;     FIELDNAME            = p_fieldname&lt;/P&gt;&lt;P&gt;     ALL_TYPES            = 'x'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     DFIES_WA             = l_dfies_wa&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;     DFIES_TAB            = p_dfies&lt;/P&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;  case sy-subrc.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;    when 1.&lt;/P&gt;&lt;P&gt;      message e009 with p_tabname p_fieldname.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message e010 with 'DDIF_FIELDINFO_GET'.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;  if not l_dfies_wa is initial.&lt;/P&gt;&lt;P&gt;    append l_dfies_wa to p_dfies.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 07:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182317#M757652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T07:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: function module - DDIF_FIELDINFO_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182318#M757653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Krithika,&lt;/P&gt;&lt;P&gt;A simple prog. using the FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dbdiff_values type ddfixvalues,&lt;/P&gt;&lt;P&gt;      dbdiff_val    type ddfixvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function &amp;#145;DDIF_FIELDINFO_GET&amp;#146;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            tabname      = &amp;#145;VBAK&amp;#146;  &amp;#148; Table Name&lt;/P&gt;&lt;P&gt;            fieldname    = &amp;#145;VBTYP&amp;#146;&lt;/P&gt;&lt;P&gt;            lfieldname   = &amp;#145;VBTYP&amp;#146;&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            fixed_values = dbdiff_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at dbdiff_values into  dbdiff_val.&lt;/P&gt;&lt;P&gt;    write:/ dbdiff_val-low, dbdiff_val-ddtext.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Reward if hrlpful.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 08:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-ddif-fieldinfo-get/m-p/3182318#M757653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T08:40:10Z</dc:date>
    </item>
  </channel>
</rss>

