‎2008 Oct 27 5:57 PM
Hi ,
My requirement is to read the log of SM35.For exmpla ecustomer creation after running the session I should
read log and store for which legacy numbers SAP customer is created and for which its failed.
As specified in one of the logs
Get your TEMSEID MANDANT from APQL table, and call these four function modules in sequence.
DATA: CHARCP LIKE RSTSTYPE-CHARCO VALUE '0000'.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
AUTHORITY = ' '
CLIENT = APQL-MANDANT
NAME = APQL-TEMSEID
IMPORTING
CHARCO = CHARCP
EXCEPTIONS
FB_ERROR = 1
FB_RSTS_OTHER = 2
NO_OBJECT = 3
NO_PERMISSION = 4
OTHERS = 5.
CALL FUNCTION 'RSTS_OPEN_RLC'
EXPORTING
NAME = APQL-TEMSEID
CLIENT = APQL-MANDANT
AUTHORITY = 'BATCH'
PROM = 'I'
RECTYP = 'VNL----'
CHARCO = CHARCP
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.
LOG_TABLE will contain the log you want.
LOG_TABLE is having only
ENTERDATE LIKE BTCTLE-ENTERDATE,
ENTERTIME LIKE BTCTLE-ENTERTIME,
LOGMESSAGE(400) TYPE C,
In t´he log message I am not getting the exact message displayed in SM35 log and also I need index number of the record.
Please suggest
‎2008 Oct 28 11:58 AM
bdc-log is incomplete.
customer no. is only displayed by creations and not by changes.
better use: call transaction 'XD01' ...messages into mtab.
A.
‎2008 Oct 28 12:09 PM
First of all i dont suppose that you can get the complete details of the queue id in this manner .
There has to be robust code in order to achieve this .
Because the queue id is not at all touched through this.
Can u confirm from seeing into the queue dump and check if the data u r creating is present there.
Queue dump analysis and check on the fields where customer is getting created.
Vijay.