Hi,
I have two queries regarding bdc session method.
1.Is there is any function module / report to start the
session by providing the session name.
2.Is there is any function module / reprot to retrieve
status of the session and log.
Looking for your help for the above...queries..
Thanks and Regards,
K Vijayasekar.
Hi Vijayasekar
The FM <b>"BDC_OPEN_GROUP"</b> gives an queue id to the batch session through the parameter <b>"qid"</b>.
Using this parameter you can start batch sessions by submitting the program <b>"rsbdcbtc"</b>.
<u><b>e.g.</b></u>
... CALL FUNCTION 'BDC_OPEN_GROUP' ... EXPORTING qid <queue_id> ... ... SUBMIT rsbdcbtc WITH queue-id EQ <queue_id> [AND RETURN] .
<u>For your second question</u>, you may utilize the FM <b>"SHOW_JOBSTATE"</b> after knowing the background job name for the batch session.
Hope this helps...
*--Serdar
Vijayasekar,
-> make select from apqi
here's the description of the state:
` ': No status / New
C: Queue will be created
F: Queue has been finished
E: Queue error
Andreas
Hi,
if you want to start a BI-Session from your programm and wait until it ends you may try this:
search the Id of the session:
SELECT * FROM APQI WHERE GROUPID EQ MAPPENAM AND
CREATOR = USER AND QSTATE = .... AND ....
then
SUBMIT RSBDCBTC WITH QUEUE-ID EQ APQI-QID AND RETURN.
Viktor
Add a comment