Skip to Content
author's profile photo Former Member
Former Member

Table parameter Types for this Function module

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 07: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,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2008 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.