cancel
Showing results for 
Search instead for 
Did you mean: 

Regards catch statement

Former Member
0 Kudos

Is there any thing worng in my catch statements .because when i do debug the curser not catching the catch statements

TRY.

CALL METHOD z_co_ifoasy_01_sa_gl=>execute_asynchronous

EXPORTING

output = gv_zsafe_mt_acc_gl_posting01.

CATCH cx_ai_system_fault INTO s_exception.

CATCH cx_ai_application_fault INTO s_exception_app.

ENDTRY.

IF ( s_exception IS INITIAL AND s_exception_app IS INITIAL )

.

MESSAGE i007.

ELSE.

PERFORM update_log_table.

COMMIT WORK.

MESSAGE i009. "Message sent to XI".

ENDIF.

ENDIF.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

What type of Exceptions you want to catch in Proxy?

Try to do commit work before you read exception variables for text and code.

Follow this process:

Proxy call

catch exception

commit work.

Use Exception variale to read details.

If you want to check that RFC Destination that pings your PI server is fine or not.

Call FM: BDL_SERVER_PING

to check if your PI server is down.

Regards,

Anurag Garg

prateek
Active Contributor
0 Kudos

Post this in ABAP forum.

Regards,

Prateek