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: 

RSBDCSUB session log

manubhutani
Active Contributor
0 Kudos

Hi

I am calling a standard t-code ie OOPH which creates a session (sm35).

Now I am using prog RSBDCSUB (sumbit RSBDCSUB passing session name). But in this program a job is created which executes the session and then session is deleted, and only in sm37 i can see a job with the same name as session.

But i want to see the log of the session, which is not there in sm37, there is only job log.

Please help, how I can capture the session log in this case.

Thanks

Manu

1 REPLY 1

kesavadas_thekkillath
Active Contributor
0 Kudos

check the routine read_bdc_log_plain in program rsbdc_protocol.

get the data from table APQL and then use the logic.


        bapiret2-id = logtable-logmessage+74(16).
        bapiret2-number = logtable-logmessage+94(3).
        bapiret2-message_v1 = logtable-logmessage+100(20).
 
        CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
          EXPORTING
            id         = bapiret2-id
            number     = bapiret2-number
            textformat = 'ASC'
            message_v1 = bapiret2-message_v1
          IMPORTING
            message    = bapiret2-message.
        WRITE: (60) bapiret2-message.