‎2006 Nov 06 4:39 PM
After session method completed i got errors in log file.
how to upload the data from log file which i got errors?
‎2006 Nov 06 4:51 PM
Hi,
error handling in session method
analyse RSBDC_ANALYSE program in T.code SE80.Now u can see 2 includes .
Take RSBDCIL3.There u will find different Function modules .Put break point on First one .
Then goto SM35 and enter ur session name and select and Press on ANALYZE(button) application tool.Log is being dispalyed here .So Program is stopped in debugging mode .
If u clearly observe , LOG table is built using those Function module .
‎2006 Nov 06 4:52 PM
‎2006 Nov 06 5:00 PM
Hi Balu,
Please check this sample codes.
1.
BDL_GET_SESSION_INFO_LOG2.
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 log_table lines line_count.
if line_count = 0.
* raise log_is_empty.
endif.Also you can check FM BP_JOBLOG_READ and BDL_GET_SESSION_INFO_LOG.
Regards,
Ferry Lianto