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

CX_SY_NO_HANDLER

Former Member
0 Likes
2,256

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

11 REPLIES 11
Read only

Former Member
0 Likes
1,898

Hello Robert,

Send the error. I think u have forget to paste it.

Regards,

Vasanth

Read only

0 Likes
1,898

The exact error is 'CLEANUP because of an exception from the class CX_SY_NO_HANDLER'

Robert

Read only

0 Likes
1,898

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

Read only

Former Member
0 Likes
1,898

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

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

Hello Robert,

Could u show the lines how u ahve declared the tables:

<b>I_T_VAR_RANGE[], LOCAL_PAT[]</b>

REgards,

VAsanth

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

change the second declaration

LOCAL_PAT type table of  /BIC/AZBHOPA0100 .

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

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

Read only

0 Likes
1,898

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