Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Associated table type of the Table parameters in function module

Former Member
0 Kudos

Hi,

If I want to select all the associated table types of the Table parameters used in a given function module in a report, how can that be done ?

Thanks.

Regards,

Rajesh

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Hi Rajesh,

YOu can Query the table: FUPARAREF

Pass fm name to FUNCNAME.

PARAMTYPE = 'T'

Regards,

Ravi

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

Hi Rajesh,

YOu can Query the table: FUPARAREF

Pass fm name to FUNCNAME.

PARAMTYPE = 'T'

Regards,

Ravi

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Try this.



report zrich_0001 .

data: import type table of rsimp with header line,
      change type table of rscha with header line,
      export type table of rsexp with header line,
      tables type table of rstbl with header line,
      except type table of rsexc with header line,
      docume type table of rsfdo with header line,
      source type table of rssource with header line.

parameters: p_func type rs38l-name.

call function 'RPY_FUNCTIONMODULE_READ'
  exporting
    functionname             = p_func
  tables
    import_parameter         = import
    changing_parameter       = change
    export_parameter         = export
    tables_parameter         = tables
    exception_list           = except
    documentation            = docume
    source                   = source
 exceptions
   error_message            = 1
   function_not_found       = 2
   invalid_name             = 3
   others                   = 4.

loop at tables.
  write:/ tables-parameter,
          tables-dbstruct,
          tables-types,
          tables-optional,
          tables-typ,
          tables-class,
          tables-ref_class,
          tables-line_of,
          tables-table_of.
endloop.

Regards,

Rich Heilman

Former Member
0 Kudos
CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
EXPORTING
FUNCNAME = FUNCNAME
* IMPORTING
* GLOBAL_FLAG = I01
* REMOTE_CALL = I02
* UPDATE_TASK = I03
TABLES
EXCEPTION_LIST = IF_EXCEPT
EXPORT_PARAMETER = IF_EXPORT
IMPORT_PARAMETER = IF_IMPORT
CHANGING_PARAMETER = IF_CHANGE
TABLES_PARAMETER = IF_TABLES
EXCEPTIONS
ERROR_MESSAGE = 01
FUNCTION_NOT_FOUND = 02
INVALID_NAME = 03.