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

go_sys_exception not defined

Former Member
0 Likes
435

I have the following code in my abap program

***********************************

go_sys_exception TYPE REF TO cx_ai_system_fault.

TRY.

CREATE OBJECT employee_data.

call method employee_data->UPLOAD_ACTION_ITEM exporting

OUTPUT = output.

commit work.

CATCH cx_ai_system_fault INTO go_sys_exception.

it_error_tab-message = go_sys_exception-errortext.

it_error_tab-code = go_sys_exception-code.

  • log this error into some error log table for reference and if required raise alerts.

ENDTRY.

********************************************

when i compile it gives me an error message saying go_sys_exception is not defined.

any idea why iam getting this error

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
405

You have not specified Data infront of delcaration or give proper declaration syntax for go_sys_exception TYPE REF TO cx_ai_system_fault.

2 REPLIES 2
Read only

Former Member
0 Likes
406

You have not specified Data infront of delcaration or give proper declaration syntax for go_sys_exception TYPE REF TO cx_ai_system_fault.

Read only

Former Member
0 Likes
405

thanks