04-20-2010 9:00 AM
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
04-20-2010 9:15 AM
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.