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 read the session logs to an internal table and how to send it through an email?

Former Member
0 Kudos
307

Hi Experts,

I want to read the session log (batch log) for a particular session and i want to send it through an email this is my requirement and i tried to read the session log into an internal for that i used the function modules
BDC_PROTOCOL_SELECT_QID
RSTS_OPEN_RLC
RSTS_READ
RSTS_CLOSE
but it is not working,

by using these function modules i am able to read the session log but the final internal table struture is not in a proper way, my requirement is it should read the log as it is in the "log created on" tab in sm35:
for example see the below session log in sm35 in "log created on" tab, i need to read same into an internal table and i need to send it through an email. can any one please provide me the solution.

Thanks in advance.

02:37:08 Session XXXXXX is being processed by user XXXXXX in mode N on server XXXXXX                           S 00 300
02:37:08          Processing statistics                        0                                                0                            S 00 370
02:37:08          0 transactions read                           0                                               0                             S 00 363
02:37:08          0 transactions processed                  0                                               0                             S 00 364
02:37:08          0 transactions with errors                  0                                               0                             S 00 365
02:37:08          0 transactions deleted                       0                                               0                            S 00 366
02:37:08 Batch input processing ended                     0                                               0                             S 00 382
________ ____________________________________________________________________________________________________________

Thanks,
Koushik

2 REPLIES 2

former_member226419
Contributor
0 Kudos
120

This message was moderated.

Former Member
0 Kudos
120

Bharath,

SAP uses the same set of FMs you have mentioned above. I debugged from SM35 and below is what I saw. There is just one FM missing from the ones you provided above. Try adding the same as the first FM and see if that works.

check the below include and add the missing FM:

RSBDCIL3

thanks,

Vikram.M