Application Development 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: 

Urgent - Doubt in Session

Former Member
0 Kudos

Hi All,

After execution of the session i need to capture the errors. Is there any function module to get the errors by passing the session details.

Thanks,

Savitha

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

I think what she meant was 'How to capture the error messages that we get in the error log of sm35 after we process the BDC session.

15 REPLIES 15

Former Member
0 Kudos

Use transaction st22

0 Kudos

Hi,

You can see the rror log in SM35 itself. Not sure if there is any function module read the log.

Regards,

Suresh Datti

Former Member
0 Kudos

all the run-time errors are recorded in the transaction ST22.

it contains the user name field which shows your runtime errors

abdul_hakim
Active Contributor
0 Kudos

Hi Savitha.

Do you wanna display the log in the program?

For errors u can use st22.

Abdul

Former Member
0 Kudos

Try with the FM DSVAS_PROC_SESSION_ERRORS_GET

former_member181962
Active Contributor
0 Kudos

I think what she meant was 'How to capture the error messages that we get in the error log of sm35 after we process the BDC session.

0 Kudos

i have to capture the error log programatically.

0 Kudos

Read this post.

0 Kudos

call the program RSBDCLOG from your BDC Program to capture the error logs..

Abdul

abdul_hakim
Active Contributor
0 Kudos

if you wanna capture error log then call the program <b>RSBDCLOG</b> from your BDC Program..

Abdul

Former Member
0 Kudos

ls_session_number-sessitype = pf_sessitype.

ls_session_number-sessno = pf_sessno.

CALL FUNCTION 'DSVAS_PROC_SESSION_ERRORS_GET'

EXPORTING

ps_session_number = ls_session_number

pf_handle = pf_handle

IMPORTING

pt_errors = lt_errors

EXCEPTIONS

session_number_invalid = 1

OTHERS = 2.

0 Kudos

hi,

Can u plz explain what values should I pass to these variables.

pf_sessitype,

pf_sessno

0 Kudos

check out the code for DSVAS_FL_GET_ERROR

u will get those values by calling this FM

0 Kudos

Hi Savitha,

u need to pass both

ls_session_number: its same as structure DSVASSESSINSTID.

ls_session_number-sessitype = pf_sessitype.

ls_session_number-sessno = pf_sessno.

Former Member
0 Kudos

try this functional module

DSVAS_FL_GET_ERROR