Application Development and Automation 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: 
Read only

Table parameter Types for this Function module

Former Member
0 Likes
590

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

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,

2 REPLIES 2
Read only

Former Member
0 Likes
494

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,

Read only

Former Member
0 Likes
493
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.