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: 

Incorrect parameter with call function

murali_ram
Participant
0 Kudos

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?



1 ACCEPTED SOLUTION

rajkumarnarasimman
Active Contributor
0 Kudos

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

2 REPLIES 2

rajkumarnarasimman
Active Contributor
0 Kudos

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 Kudos

Yes Rajkumar u r correct..

🙂