Use
You can use the function module QUEUE_SCHEDULE to schedule the queue processing program in R/3 background processing. This module is called internally at QUEUE_CLOSE, if you select the processing mode Q_AUTOSTART and if the queue has been opened in write mode.
Automatic processing of a queue is handled by scheduling the assigned ABAP program (driver) in the R/3 background job scheduling system.

Start mode A is not possible from an update task. Here, you must call the function module explicitly from the dialog task.
CALL FUNCTION 'QUEUE_SCHEDULE'
EXPORTING
NAME = Name of Queue
PROGRAM = Name of processing Program
START = Start Mode
DATE = Date of Processing
TIME = Time of processing
COMMITX = implicit Commit of Logical Unit of Work (LUW)
EXCEPTIONS
INVALID_PARAMETER
SCHEDULE_PROBLEM.
Integration
Queue processing
Automatic queue processing is handled by scheduling of the assigned ABAP program (driver) in the R/3 background scheduling system (transaction code SM36), where it can be monitored. Messages are logged in the background processing environment.
You can call a queue processing program manually via queue administration or directly.
For event-oriented processing, SAP_QEVENT is internally triggered by event parameter Name of Queue.
A scheduled batch job is required which starts a variant of the processing program and waits for this event.
These actions are largely performed automatically when creating a queue via the queue transaction SM38.