‎2008 Jun 23 6:17 PM
Hi,
I am passing an internal table data to a z-method . but when i am activating my abap program it is giving error:Internal table is not type compatible.then i have changed my declaration but only one record is coming into method from it_tab.It_tab is having more than 1 record.
my It_tab declaration in abap program :
Table:ztest.
DATA:BEGIN OF it_tab OCCURS 0.
INCLUDE STRUCTURE Ztest.
DATA:END OF it_tab.
appending data to it_tab.
calling a mthod
CALL METHOD zcl_test->update_test.
EXPORTING
i_itab = it_tab
iv_task = l_task
but i am getting only one record in i_itab from it_tab.
I_tab has been declared as I_tab type ztest.
and also I tried with table type l_tab type ztt_test but in abap program i am getting error:Internal table is not type compatible.
any idea?
thanks in advance.
‎2008 Jun 23 6:18 PM
Try this
CALL METHOD zcl_test->update_test.
EXPORTING
i_itab = it_tab[]
iv_task = l_task
‎2008 Jun 23 6:18 PM
Try this
CALL METHOD zcl_test->update_test.
EXPORTING
i_itab = it_tab[]
iv_task = l_task
‎2008 Jun 23 6:21 PM
Declare I_tab as type TABLE of ZTEST in your method.
Regards,
Ravi
‎2008 Jun 23 6:41 PM
Hi srinisap,
You had defined internal table with header line and u r passing the header... so u will get only the last record in the header... you pass the body of the table... like ITAB[].
Hope this may solve..
<removed_by_moderator>
Regards
Narin Nandivada
Edited by: Julius Bussche on Jun 23, 2008 9:13 PM