‎2008 Jan 04 4:55 PM
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
‎2008 Jan 04 5:00 PM
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.
‎2008 Jan 04 5:02 PM
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
‎2008 Jan 04 5:05 PM
‎2008 Jan 04 5:14 PM
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
‎2008 Jan 04 5:22 PM
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.