2007 Mar 13 1:52 PM
Hi All,
I have a function call within a class that is returning the above error. The error is encountered as I step through the code and hit the following statement. Any ideas why this is occuring?
CALL FUNCTION 'ZBW_HR_PA_VAR_TABLE'
EXPORTING
I_T_VAR_RANGE = I_T_VAR_RANGE[]
TABLES
LOCAL_DIM = LOCAL_PAT[]
EXCEPTIONS
NO_ENTRIES = 1
OTHERS = 2.
The function module processes correctly through SE37 and the test tool so I know that the logic is good.
Robert
Hi All,
I have a function call within a class that is returning the above error. The error is encountered as I step through the code and hit the following statement. Any ideas why this is occuring?
CALL FUNCTION 'ZBW_HR_PA_VAR_TABLE'
EXPORTING
I_T_VAR_RANGE = I_T_VAR_RANGE[]
TABLES
LOCAL_DIM = LOCAL_PAT[]
EXCEPTIONS
NO_ENTRIES = 1
OTHERS = 2.
The function module processes correctly through SE37 and the test tool so I know that the logic is good.
Robert
2007 Mar 13 1:59 PM
Hello Robert,
Send the error. I think u have forget to paste it.
Regards,
Vasanth
2007 Mar 13 2:01 PM
The exact error is 'CLEANUP because of an exception from the class CX_SY_NO_HANDLER'
Robert
2007 Mar 13 2:04 PM
Hello Robert,
I think u have declared the itab I_T_VAR_RANGE[] with header line.
If so make the change.
Also please go through this document:
http://help.sap.com/saphelp_nw04/helpdata/en/83/636d1712fc11d5991e00508b5d5211/frameset.htm
Regards,
Vasanth
2007 Mar 13 2:02 PM
Hi robert,
I guess you are trying to use an internal table with header line in OO context ,
Dont do that and checkout if it works
2007 Mar 13 2:05 PM
That's fine. The function module uses the TABLES statement. Can I do this with a function call within a class or should I be using the IMPORT/EXPORT statements?
Robert
2007 Mar 13 2:08 PM
Hello Robert,
Could u show the lines how u ahve declared the tables:
<b>I_T_VAR_RANGE[], LOCAL_PAT[]</b>
REgards,
VAsanth
2007 Mar 13 2:13 PM
For the function module the declaration is under the 'TABLES' tab as follows:
LOCAL_DIM LIKE /BIC/AZBHOPA0100 'ODS Object ZBHOPA01 : Active Records'
I_T_VAR_RANGE LIKE RRRANGEEXIT 'BW: Simplified variable structure'
The actual definitions of these are as follows:
i_t_var_range TYPE RRS0_T_VAR_RANGE
LOCAL_PAT LIKE /BIC/AZBHOPA0100 OCCURS 0 WITH HEADER LINE
Robert
2007 Mar 13 2:15 PM
change the second declaration
LOCAL_PAT type table of /BIC/AZBHOPA0100 .
2007 Mar 13 2:15 PM
Hello Robert,
The problem is here
LOCAL_PAT LIKE /BIC/AZBHOPA0100 OCCURS 0 WITH HEADER LINE
Change this line to
<b>LOCAL_PAT type table of /BIC/AZBHOPA0100 .</b>
Declarea work area and append the data to the table LOCAL_PAT.
Hope this solve ur problem,
If useful reward.
Vasanth
2007 Mar 13 2:29 PM
I have changed the references so that I now have TYPE TABLE OF as well as the work area definition LIKE LINE OF. Unfortunately I am still getting this error. Perhaps I should use the EXPORT/IMPORT instead of TABLES statement?
Robert
2007 Mar 13 2:33 PM
Hello,
Don't use line of declare like for example:
DATA: WA_MRMRSEG TYPE LINE OF MRM_TAB_MRMRSEG,
WA_RECH TYPE Z48M_LIEF_RECH,
WA_EKPO TYPE EKPO.
DATA: L_R_USR21 TYPE USR21,
L_R_ADR6 TYPE ADR6.
* data for send function
DATA DOC_DATA TYPE SODOCCHGI1.
DATA OBJECT_ID TYPE SOFOLENTI1-OBJECT_ID.
DATA OBJCONT TYPE TABLE OF SOLI.
DATA WA_OBJCONT TYPE SOLI.
DATA RECEIVER TYPE TABLE OF SOMLRECI1.
DATA WA_RECEIVER TYPE SOMLRECI1.
All the tables and work areas should be declared as <b>TYPE LINE OF</b>
REgards,
VAsanth
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |