Skip to Content

Incorrect parameter with call function

Dear Guru,

DATA lo_nd_tsr_input TYPE REF TO if_wd_context_node.
DATA lo_el_tsr_input TYPE REF TO if_wd_context_element.
DATA ls_tsr_input TYPE wd_this->Element_tsr_input.
DATA lt_tsr_input type wd_this->elements_tsr_input.
DATA lv_tsrnr TYPE wd_this->Element_tsr_input-tsrnr.

data lt_tsr_input1 type table of zqm_s_nipras_tsr.
data ls_tsr_input1 type zqm_s_nipras_tsr.

*  navigate from <CONTEXT> to <TSR_INPUT> via lead selection
lo_nd_tsr_input = wd_context->get_child_node( name = wd_this->wdctx_tsr_input ).
*  get element via lead selection
lo_el_tsr_input = lo_nd_tsr_input->get_element( ).
*  @TODO handle not set lead selection
IF lo_el_tsr_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_tsr_input->get_attribute(
EXPORTING
name =  `TSRNR`
IMPORTING
value = lv_tsrnr ).

if sy-subrc = 0.

CALL FUNCTION 'ZLIMS_NIPRAS_HISTORY'
EXPORTING
LV_TSRNUMBER         = lv_tsrnr
*   IMPORTING
*     LT_TSRCATEGORY       =
TABLES
TAB_NIPRASTSR        = lt_tsr_input1
*      TAB_NIPRASLOT        =
*      TAB_TSRSTATUS        =
*      TAB_TSREMPDET        =
*      TAB_MICVALUES        =


Am getting dump like : Incorrect parameter with call funtion..i have highlited the internal table which am passing..


both structure are same.. can any one give me soltuion pls?



FM_RRAM.JPG (68.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 06, 2015 at 04:57 AM

    Hi Murali,

      The tables are not mentioned as Optional, I hope we are supposed to pass the value to all the remaining tables.

    CALL FUNCTION 'ZLIMS_NIPRAS_HISTORY'
    EXPORTING
    LV_TSRNUMBER         = lv_tsrnr
    *   IMPORTING
    *     LT_TSRCATEGORY       =
    TABLES
    TAB_NIPRASTSR        = lt_tsr_input1
    TAB_NIPRASLOT        =                         " Pass the Parameter, It is not optional one
    TAB_TSRSTATUS        =                        " Pass the Parameter, It is not optional one   
    TAB_TSREMPDET        =                       " Pass the Parameter, It is not optional one
    TAB_MICVALUES        =                       " Pass the Parameter, It is not optional one


    Else kindly tick the optional check box in the Function module.

    Regards

    Rajkumar Narasimman


    FM_RRAM.JPG (68.0 kB)
    Add comment
    10|10000 characters needed characters exceeded