help needed on retreving QID from APQI table
I am using RBIBGL00 standard batch program in my report to create a batch session and in turn execute it.
Batch session is getting created and it is getting executed as well.
Now i need to retreive the batch information (succes/failure msgs) from the log
so i am writing code as:
select QID to display session log
SELECT SINGLE qid
WHERE datatyp = gc_bdc
AND groupid = p_group
AND progid = sy-repid
AND userid = sy-uname
AND credate = sy-datum.
But qid is not getting fetched.
Please help me to resolve this issue.