I am posting an accounting document through FB01 by submitting the report RFBIBL00 along with the file through which a Batch session gets generated in SM35.The Batch session is then processed by submitting the report RSBDCSUB. My code is as shown below:
SUBMIT rfbibl00 WITH ds_name = co_file_output
WITH callmode = co_batch AND RETURN.
Process Batch session
WITH mappe = gv_name_jd
WITH von = sy-datlo
WITH bis = sy-datlo
My requirement is to capture the document number from the log of the processed batch session. Can anyone suggest me how to go about this.
Thanks in Advance,