QUEUE_OPEN 

Use

To open a queue, call the function module QUEUE_OPEN with a sequence of EXPORTING parameters:

CALL FUNCTION 'QUEUE_OPEN'

EXPORTING NAME = name

TYPE = type

...

Parameters

Assign a value to each of the folowing parameters:

Parameters

Type

Explanation

NAME

C(20)

Queue name

TYPE

C(1)

Queue attribute

' ': Unique: A new queue will be generated, even if a queue with the same name already exists.

A : Appendable: An appendable queue is generated or opened (default)

OPENMODE

C(1)

Queue mode:

W : Open a queue to write (default)

R : Open a queue to read; explicit delete

D : Open a queue to read and delete

O : Open a queue to read only

DESTINATION

C(8)

Symbolic name of the target system (Table TXCOM)

DATATYPE

C(4)

Data type/processing log:

CPIC

XTAB

' ' (binary)

CLIENT

C(3)

Client in the SAP target system

USERID

C(12)

User in the SAP target system

PASSWORD

C(8)

User password

PROGRAM

C(8)

Program in the SAP target system

FORM

C(30)

Form routine in the ABAP partner program

DRIVER

C(8)

Name of the driver program

START

C(1)

Start mode

A: Automatic (in Online mode only)

M: Manual

E: Event-oriented

P: Periodically event-oriented

DATE

D(8)

Queue processing date

TIME

T(6)

Processing time

ERASE

C(1)

Delete ID

If you set a character other than a blank, the queue is deleted after processing.

QSTATE

C(1)

Queue status

': No status

C: Queue will be created

F: Queue has been finished

E: Queue error

If you do not specify a name for a queue, you can retrieve a name by extending the call to the function module QUEUE_OPEN.

CALL FUNCTION 'QUEUE_OPEN'

EXPORTING...

IMPORTING NAME = QUEUE.