01-31-2007 2:17 PM
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
01-31-2007 2:20 PM
Hi Rajesh,
YOu can Query the table: FUPARAREF
Pass fm name to FUNCNAME.
PARAMTYPE = 'T'
Regards,
Ravi
01-31-2007 2:20 PM
Hi Rajesh,
YOu can Query the table: FUPARAREF
Pass fm name to FUNCNAME.
PARAMTYPE = 'T'
Regards,
Ravi
01-31-2007 2:25 PM
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
01-31-2007 2:34 PM
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.