‎2008 Jul 22 8:22 PM
I am using K_HIERARCHY_TABLES_READ to get the profit centers for a given profit center group.
I have the following declarations for the parameters of this FM:
TYPE-POOLS: gseth.
Declarations for Profit Center Group
DATA: g_pcgrp TYPE rgsbs-class,
g_setid TYPE rgsbs-setnr,
g_info TYPE grphinfo,
g_overwrite TYPE sy-datar.
DATA:
i_nodes TYPE STANDARD TABLE OF gseth_node_tab,
i_values TYPE STANDARD TABLE OF gseth_val_tab,
i_masterdata TYPE STANDARD TABLE OF grpmdline.
When this is run, its taking me into a dump and it says:
The reason for the exception is:
The system tried to pass internal table "I_NODES" to the formal
parameter "T_NODES", but a type conflict occurred between the
formal and the actual parameter.
Pl help me to correct this dump and error.
Thanks
Kiran
‎2008 Jul 22 8:29 PM
I think this statement is incorrect
i_nodes TYPE STANDARD TABLE OF gseth_node_tab,
gseth_node_tab is already a table.
try with something like
i_nodes TYPE gseth_node_tab,
‎2008 Jul 22 8:29 PM
I think this statement is incorrect
i_nodes TYPE STANDARD TABLE OF gseth_node_tab,
gseth_node_tab is already a table.
try with something like
i_nodes TYPE gseth_node_tab,
‎2008 Jul 22 8:33 PM
DATA:
i_nodes TYPE STANDARD TABLE OF gseth_node_tab,
i_values TYPE STANDARD TABLE OF gseth_val_tab,
i_masterdata TYPE STANDARD TABLE OF grpmdline.change your declarations
to the below...
DATA:
i_nodes TYPE gseth_node_tab,
i_values TYPE gseth_val_tab,
i_masterdata TYPE STANDARD TABLE OF grpmdline.