2006 Jan 17 10:28 AM
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
2006 Jan 17 10:35 AM
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.
2006 Jan 17 10:32 AM
2006 Jan 17 10:34 AM
Hi,
You can see the rror log in SM35 itself. Not sure if there is any function module read the log.
Regards,
Suresh Datti
2006 Jan 17 10:33 AM
all the run-time errors are recorded in the transaction ST22.
it contains the user name field which shows your runtime errors
2006 Jan 17 10:34 AM
Hi Savitha.
Do you wanna display the log in the program?
For errors u can use st22.
Abdul
2006 Jan 17 10:34 AM
2006 Jan 17 10:35 AM
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.
2006 Jan 17 10:40 AM
2006 Jan 17 10:44 AM
2006 Jan 17 10:44 AM
call the program RSBDCLOG from your BDC Program to capture the error logs..
Abdul
2006 Jan 17 10:37 AM
if you wanna capture error log then call the program <b>RSBDCLOG</b> from your BDC Program..
Abdul
2006 Jan 17 10:39 AM
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.
2006 Jan 17 11:19 AM
hi,
Can u plz explain what values should I pass to these variables.
pf_sessitype,
pf_sessno
2006 Jan 17 11:25 AM
check out the code for DSVAS_FL_GET_ERROR
u will get those values by calling this FM
2006 Jan 17 11:29 AM
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.
2006 Jan 17 10:39 AM