Skip to Content
0
Dec 05, 2013 at 08:00 AM

check if a queue is processed

30 Views

Hi, I am trying to check if a queue recently create was processed.

For this I have the below code:

* Create

CALL FUNCTION 'TRFC_SET_QUEUE_NAME'

EXPORTING

qname = 'queue_name'

EXCEPTIONS

invalid_queue_name = 1

OTHERS = 2.

* Execute

CALL FUNCTION 'FUNCTION_A'

IN BACKGROUND TASK

EXPORTING

***************************

***************************

IMPORTING

et_return = lt_return.

COMMIT WORK AND WAIT.

WAIT UP TO 2 SECONDS.

The thing is would have to check some things that my FUNCTION_A, already did, but I dont know if it was executed right or not.

I mean isted of using wait up sentence, I would like to check correctly the status of the queue.

Does anybody knows a probably solution.

Thanks in advance.

Regards