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: 

How to get error messages from SM35 log. How to get this from TemSe objects

Former Member
0 Kudos

Hi can any body say how to get SM35 error log from TemSe objects? Is there any function modules which an give error messages of a session.

Thanks and Regards

Harish

4 REPLIES 4

Former Member
0 Kudos

chk this FM

'DSVAS_PROC_SESSION_ERRORS_GET'

Former Member
0 Kudos

try this


1.BDL_GET_SESSION_INFO_LOG
2. CALL FUNCTION 'RSTS_OPEN_RLC'
    EXPORTING
      NAME         = LOG_NAME
      CLIENT       = LOG_CLIENT
      AUTHORITY    = 'BATCH'
      PROM         = 'I'
      RECTYP       = 'VNL----'
    EXCEPTIONS
      FB_CALL_HANDLE =  4
      FB_ERROR       =  8
      FB_RSTS_NOCONV = 12
      FB_RSTS_OTHER  = 16
      NO_OBJECT      = 20
      OTHERS         = 24.

  IF SY-SUBRC > 0.
     EXIT.
  ENDIF.

  CALL FUNCTION 'RSTS_READ'
    TABLES
      DATATAB  = LOG_TABLE
    EXCEPTIONS
      FB_CALL_HANDLE =  4
      FB_ERROR       =  8
      FB_RSTS_NOCONV = 12
      FB_RSTS_OTHER  = 16
      OTHERS         = 16.

  IF SY-SUBRC > 0.
     EXIT.
  ENDIF.

  CALL FUNCTION 'RSTS_CLOSE'
    EXCEPTIONS
      OTHERS = 4.

  IF SY-SUBRC > 0.
    EXIT.
  ENDIF.

*  describe table plain_log lines line_count.
*  if line_count = 0.
*    raise log_is_empty.
*  endif.

 

Former Member
0 Kudos

Hi

try these FM

<b>BP_JOBLOG_READ</b>

<b>BDL_GET_SESSION_INFO_LOG</b>

plz reward if useful

Former Member
0 Kudos

hii

check the package SLOG..you will find useful function modules