Skip to Content
0
Former Member
May 21, 2010 at 02:38 PM

FM accepts no formal parameters of type "u"

229 Views

Hi,

I get a strange error when calling an function module. Below you can see the (generated) data definition, my call, my function header and the errormessage i get. Any help would be appreciated.

TYPES:
  BEGIN OF DATA_PACKAGE_STRUCTURE.
     INCLUDE STRUCTURE /BIC/CS8ZBP_ALL.
TYPES:
     RECNO   LIKE sy-tabix,
  END OF DATA_PACKAGE_STRUCTURE.
DATA:
  DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
       WITH HEADER LINE
       WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.

* Get validation results & fill error table
 CALL FUNCTION 'ZBW_BP_VALIDATE_DPAK'       
   EXPORTING                                
     i_dpid     = datapackid                
     i_src      = _val_source               
     i_tgt      = _val_target               
     i_srctp    = _val_source_type          
   CHANGING                                 
     c_t_data   = data_package              
     c_t_result = _lt_result.               

...

*"*"Lokale interface:
*"  IMPORTING
*"     REFERENCE(I_REQUEST) TYPE REF TO  IF_RSBK_REQUEST_ADMINTAB_VIEW
*"       OPTIONAL
*"     REFERENCE(I_DPID) TYPE  RSDATAPID OPTIONAL
*"     REFERENCE(I_SRC) TYPE  RSBKSRCNM OPTIONAL
*"     REFERENCE(I_TGT) TYPE  RSBKTGTNM OPTIONAL
*"     REFERENCE(I_SRCTP) TYPE  RSBKSRCTP OPTIONAL
*"  CHANGING
*"     REFERENCE(C_T_DATA) TYPE  ANY TABLE
*"     REFERENCE(C_T_RESULT) TYPE  ZBW_T_BPVAL_ERROR
*"  EXCEPTIONS
*"      UNKNOWN_SOURCETYPE
*"      NO_SOURCE_DEFINED
*"      NO_SOURCETYPE_SUPPLIED

You attempted to pass the field "DATA_PACKAGE" to the formal parameter
 "C_T_DATA"
but the formal parameter "C_T_DATA" can accept only fields of
type "h". The field "C_T_DATA" has the type "u".