Skip to Content
author's profile photo
Former Member

TABLE parameters are obsolete!

Dear Experts,

I am working on creating a function module for generic extraction. When I am working on my function module using

RSAX_BIW_GET_GET_DATA_SIMPLE as a template, I have run into an error "TABLE parameters are obsolete!"

when I have clicked on Table tab to specify the following:

Parameter Name: E_T_DATA

Typing: LIKE

Associated Type: <the structure name which I have created for this FM>

Optional check: checked

I got stucked with my function module and have to abort it before exit.

Could anyone help me to resolve this problem?

If you could, could you also explain to me how E_T_DATA and the structure I have created related in the above setting?

Thanks and appreciated.

Arthur

Add comment
10|10000 characters needed characters exceeded

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Feb 28, 2008 at 08:20 PM

    You must create a table line on SE11 and then create an IMPORT parameter pointing to that table line...TABLES are obsolete and shouldn't be used...

    Greetings,

    Blag.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 28, 2008 at 09:08 PM

    I faced the same problem some time back, are u on ecc 6.00?

    normally when u click once after creating the impor export struc it says TABLE parameters are obsolete!

    Click on it once or twice more and it lets you create the table structure.

    Rgds

    Sameer

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 28, 2008 at 08:23 PM

    Instead of declaring as structure please use as table type

    for reference check fm FKK_NR_ITEMS_GET and type FKKNRP_T

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 28, 2008 at 08:35 PM

    The correct name is RSAX_BIW_GET_DATA_SIMPLE.

    Please see ABAP Help on CALL FUNCTION command, it explains the new syntax in 6.10:

    "Use additions parameter_list or parameter_tables (as of release 6.10) to statically or dynamically assign actual parameters to the formal parameters of the function module and return values to the non-class-based exceptions."

    "CALL FUNCTION - parameter_tables

    Syntax

    ... [PARAMETER-TABLE ptab]

    [EXCEPTION-TABLE etab]... . "

    In your example the function module will have a parameter (structure) E_T_DATA with the same fields as "<the structure name which I have created for this FM>". In the FM code you will be able to refer to those fields as E_T_DATA-<field name>.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jul 28, 2010 at 08:10 AM

    Hi,

    I followed all the above steps. But, my function module source code works properly if the parameters are in TABLES not CHANGING, so I cut the rows from CHANGING and pasted it in TABLES, and now it doesnt give the OBSOLETE PARAMETERS error and works fine. And the ironic thing is, cut and paste from CHANGING to TABLES works without the table types too.

    I donot find a sense as to how it works this way, but anyways it works.

    -Disha.

    Add comment
    10|10000 characters needed characters exceeded