Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?



Tags:
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question