QUEUE_CLOSE
Use
To close a queue, call the function module QUEUE_CLOSE with the EXPORTING parameter NAME.
CALL FUNCTION 'QUEUE_CLOSE'
EXPORTING NAME = name
OPENMODE = 'W'.