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

ABAP Syntax Error - Please Help

Former Member
0 Likes
894

Hi,

This code is generated automatically when creating a form Class (I copied Form Levels from 2

different Form Classes). However, when activating a custom Application Form (which uses this new

custom form class) - I get the following error message:

The "TABLES" parameter "T_CORRESP2" does not match category "USING" of formal

parameter "X_SEL".

I believe that it is from this part of the code - I don't understand what the problem means:

&----


*& Form read_form READ_CORRESP1

&----


*& Use the selection object X_SEL to fill table YT_CORRESP1

*& from the DB-table DFKKCOH

*&

*& X_SEL contains the components:

*& from_date like sy-datum => start date

*& to_date like sy-datum => end date

*& ranges like efg_ranges occurs 0 => selection table 0

*& ranges1 like efg_ranges occurs 0 => selection table 1

*& ranges2 like efg_ranges occurs 0 => selection table 2

*& ...

*& ranges9 like efg_ranges occurs 0 => selection table 9

&----


*& --> X_SEL *

*& <-- YT_CORRESP1 *

&----


FORM READ_CORRESP1

TABLES

YT_CORRESP1 TYPE G_TYPE_TAB_CORRESP1

USING

X_SEL TYPE EFG00_SELECTION.

DATA: L_RANGES LIKE EFG_RANGES.

REFRESH YT_CORRESP1.

CLEAR YT_CORRESP1.

========================================================================================

Please help. What could the problem be? where is the problem located and how do I go about fixing it?

This is very important.

Thank You,

John

5 REPLIES 5
Read only

Former Member
0 Likes
743

Hi,

It seems to be there is difference between the actual and formal parameters of the subroutine.

Please check the perform of the subroutine READ_CORRESP1.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
743

Where is the PERFORM call?

Please send the PERFORM call code.

There is a type mis-mtach in the PERFORM call and the FORM definition.

Hope this helps.

Sanjeev

Read only

0 Likes
743

....

Edited by: John Damion on Jan 4, 2008 6:15 PM

Read only

0 Likes
743

Found the perform:

DATA: T_CORRESP2 TYPE TABLE OF DFKKCOH

WITH HEADER LINE.

PERFORM READ_CORRESP2

TABLES

T_CORRESP1

T_CORRESP2.

FORM READ_CORRESP2

TABLES

T_CORRESP2 TYPE G_TYPE_TAB_CORRESP2

USING

x_sel TYPE efg00_selection.

Edited by: John Damion on Jan 4, 2008 6:16 PM

Read only

0 Likes
743

John,

It looks there is a mismatch beteen the parameters called

Try this....

PERFORM READ_CORRESP2

TABLES

T_CORRESP1

T_CORRESP2

USING

X_SEL.

FORM READ_CORRESP2

TABLES

T_CORRESP1 TYPE G_TYPE_TAB_CORRESP1

T_CORRESP2 TYPE G_TYPE_TAB_CORRESP2

USING

x_sel TYPE efg00_selection.