<?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: Funtion Module Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831705#M354415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zex33 .

TABLES: dfies,
x030l.

DATA: BEGIN OF inttab OCCURS 100.
INCLUDE STRUCTURE dfies.
DATA: END OF inttab.

PARAMETERS: tablenm TYPE ddobjname DEFAULT 'MARA'.
*fieldnm TYPE dfies-fieldname DEFAULT 'MATNR'.

CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = tablenm
*fieldname = fieldnm
langu = sy-langu
* LFIELDNAME = ' '
* ALL_TYPES = ' '
* IMPORTING
* X030L_WA = WATAB
* DDOBJTYPE =
* DFIES_WA =
* LINES_DESCR =
TABLES
dfies_tab = inttab
* FIXED_VALUES =
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.

IF sy-subrc &amp;lt;&amp;gt; 0.
WRITE:/ 'Field name not found'.
ENDIF.

LOOP AT inttab.
WRITE:/ inttab-fieldname,inttab-leng , inttab-datatype.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 07:52:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T07:52:41Z</dc:date>
    <item>
      <title>Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831699#M354409</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;I want to know the funtion module which can be used to download a table fields into an internal table by mentioning the table name For ex: If i give MARA a a parameter to a function module the table fields must be downloaded to some internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831699#M354409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831700#M354410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use table&amp;lt;b&amp;gt; DD03L&amp;lt;/b&amp;gt; for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831700#M354410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831701#M354411</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;We have a FM in HR Module named HR_READ_INFOTYPE where we can pass the Infotype name and pass other Exporting Parameters and we can get the data from the Transparent table to the internal table. This is possible because we have common Primary fields in most of the HR Tables. But, as it is not the same case with the Other Modules, I think we wont be having any such FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ishaq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831701#M354411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831702#M354412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramprabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the fields of the db table u can use this fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CACS_GET_TABLE_FIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;sampath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*award helpful answers and close the thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831702#M354412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831703#M354413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this FM&lt;/P&gt;&lt;P&gt;DDIF_TABL_GET  or DDIF_FIELDINFO_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831703#M354413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831704#M354414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM - RM_TABLE_FIELDS_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831704#M354414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831705#M354415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zex33 .

TABLES: dfies,
x030l.

DATA: BEGIN OF inttab OCCURS 100.
INCLUDE STRUCTURE dfies.
DATA: END OF inttab.

PARAMETERS: tablenm TYPE ddobjname DEFAULT 'MARA'.
*fieldnm TYPE dfies-fieldname DEFAULT 'MATNR'.

CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = tablenm
*fieldname = fieldnm
langu = sy-langu
* LFIELDNAME = ' '
* ALL_TYPES = ' '
* IMPORTING
* X030L_WA = WATAB
* DDOBJTYPE =
* DFIES_WA =
* LINES_DESCR =
TABLES
dfies_tab = inttab
* FIXED_VALUES =
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.

IF sy-subrc &amp;lt;&amp;gt; 0.
WRITE:/ 'Field name not found'.
ENDIF.

LOOP AT inttab.
WRITE:/ inttab-fieldname,inttab-leng , inttab-datatype.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831705#M354415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831706#M354416</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;You have to write a Zfunc module using the following code in tcode se37&lt;/P&gt;&lt;P&gt;FUNCTION Z_TMP_UXDOWNLOAD .&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(I_FILE) LIKE  RLGRAP-FILENAME&lt;/P&gt;&lt;P&gt;*"     REFERENCE(I_SEP) TYPE  ANY&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      I_TABLE&lt;/P&gt;&lt;P&gt;*"      I_OUT OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      FILE_ERROR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Global data declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols: &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;  data: w_line(2000) type c,&lt;/P&gt;&lt;P&gt;        t_line like w_line occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_table.&lt;/P&gt;&lt;P&gt;    do.&lt;/P&gt;&lt;P&gt;      assign component sy-index of structure I_TABLE to &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-index eq '1'.&lt;/P&gt;&lt;P&gt;        w_line = &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        concatenate w_line &amp;lt;f1&amp;gt;&lt;/P&gt;&lt;P&gt;               into w_line&lt;/P&gt;&lt;P&gt;               separated by i_sep.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append w_line to t_line.&lt;/P&gt;&lt;P&gt;    clear w_line.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at t_line.&lt;/P&gt;&lt;P&gt;    i_out = t_line.&lt;/P&gt;&lt;P&gt;    append i_out.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  open dataset i_file for output in text mode.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'File open error' raising FILE_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  loop at t_line.&lt;/P&gt;&lt;P&gt;    transfer t_line to i_file.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  close dataset i_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;Please reward for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831706#M354416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Funtion Module Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831707#M354417</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;It works .Thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/funtion-module-help/m-p/1831707#M354417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:32:38Z</dc:date>
    </item>
  </channel>
</rss>

