<?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 problem in  using function module parameters in abap program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-function-module-parameters-in-abap-program/m-p/8058313#M1612466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to use the coding present in on one of the function module 'AS_API_INFOSTRUC_FIND'  i got the problem using the function module parameters in my abap program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the parameters inside fm&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"       IMPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(I_FIELDCAT) TYPE  AIND_FCAT&lt;/P&gt;&lt;P&gt;*"             VALUE(I_FIELDS) TYPE  TABLE OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(I_OBLIGATORY_FIELDS) TYPE  TABLE OPTIONAL&lt;/P&gt;&lt;P&gt;*"       EXPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(E_INFOSTRUC) TYPE  AIND_DESC&lt;/P&gt;&lt;P&gt;*"             REFERENCE(E_ALL_FIELDS) TYPE  TABLE&lt;/P&gt;&lt;P&gt;*"             REFERENCE(E_MATCHING_FIELDS) TYPE  TABLE&lt;/P&gt;&lt;P&gt;*"       EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"              NO_INFOSTRUC_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to declare     E_ALL_FIELDS  parameter    in my abap program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared as  &lt;/P&gt;&lt;P&gt;data: E_ALL_FIELDS TYPE TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but   the system throws error that &lt;/P&gt;&lt;P&gt;'type of field 'TABLE'  is generic .no table line has been specified'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use it in my abap program how can i declare in my abap program .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 11:38:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-05T11:38:13Z</dc:date>
    <item>
      <title>problem in  using function module parameters in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-function-module-parameters-in-abap-program/m-p/8058313#M1612466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to use the coding present in on one of the function module 'AS_API_INFOSTRUC_FIND'  i got the problem using the function module parameters in my abap program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the parameters inside fm&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"       IMPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(I_FIELDCAT) TYPE  AIND_FCAT&lt;/P&gt;&lt;P&gt;*"             VALUE(I_FIELDS) TYPE  TABLE OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(I_OBLIGATORY_FIELDS) TYPE  TABLE OPTIONAL&lt;/P&gt;&lt;P&gt;*"       EXPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(E_INFOSTRUC) TYPE  AIND_DESC&lt;/P&gt;&lt;P&gt;*"             REFERENCE(E_ALL_FIELDS) TYPE  TABLE&lt;/P&gt;&lt;P&gt;*"             REFERENCE(E_MATCHING_FIELDS) TYPE  TABLE&lt;/P&gt;&lt;P&gt;*"       EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"              NO_INFOSTRUC_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to declare     E_ALL_FIELDS  parameter    in my abap program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared as  &lt;/P&gt;&lt;P&gt;data: E_ALL_FIELDS TYPE TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but   the system throws error that &lt;/P&gt;&lt;P&gt;'type of field 'TABLE'  is generic .no table line has been specified'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use it in my abap program how can i declare in my abap program .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 11:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-function-module-parameters-in-abap-program/m-p/8058313#M1612466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-05T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem in  using function module parameters in abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-function-module-parameters-in-abap-program/m-p/8058314#M1612467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to declare the table using any specific type.&lt;/P&gt;&lt;P&gt;The type table in the FM is generic so you can pass any type you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: BEGIN OF ty_fields,
         fieldname LIKE dfies-fieldname,
       END OF ty_fields,



TYPES: TY_T_GLU1              LIKE GLU1                     OCCURS 0,
       ty_t_fields            type ty_fields                occurs 0.



  DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
        lt_matching_fields    TYPE ty_t_fields WITH HEADER LINE.


    CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
         EXPORTING
              i_fieldcat         = ft_fieldcat-fieldcat
              i_fields           = ft_fields_filled[]
         IMPORTING
              e_infostruc        = lv_info_struct_name
              e_all_fields       = lt_info_struct_fields[]
              e_matching_fields  = lt_matching_fields[]
         EXCEPTIONS
              no_infostruc_found = 1.




&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 11:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-function-module-parameters-in-abap-program/m-p/8058314#M1612467</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-05T11:40:38Z</dc:date>
    </item>
  </channel>
</rss>

