CALL TRANSACTION

CALL TRANSACTION - Call a transaction

Additions:

1. ... AND SKIP FIRST SCREEN
2. ... USING itab
2a. ... MODE mode
2b. ... UPDATE f
2c. ... MESSAGES INTO itab

Effect

Calls the SAP transaction tcod; tcod can be a literal or a variable. To return from the called transaction, you use the key word LEAVE PROGRAM .

Note

You can use a namespace prefix with transaction names.

Example

CALL TRANSACTION 'SP01'. 

Effect

Skips the first screen in the transaction (provided all the required fields have been assigned values by the SPA/GPA mechanism).

Effect

Calls the transaction tcod and passes the internal table itab, which contains one or several screens in batch input format.
If necessary, one of the messages output by the transaction is returned to the fields SY-MSGID, SY-MSGTY SY-MSGNO, SY-MSGV1, ..., SY-MSGV4.

Note

A called transaction ends successfully for the following reasons:

Effect

The specified processing mode can accept the following values:

'A' Display screen
'E' Display screen only if an error occurs
'N' No display

If the addition MODE is not specified, the processing mode is set to 'A'.

Effect

The specified update mode f defines the update type. This can have one of the following values:

'A' Asynchronous update
'S' Synchronous update

If the addition UPDATE is not specified, the processing mode is set to 'A'.

Effect

The specified internal table contains all system messages that occur during CALL TRANSACTION USING ... . The internal table itab must have the structure BDCMSGCOLL.

Example

DATA BEGIN OF BDCDATA OCCURS 100. 
	 INCLUDE STRUCTURE BDCDATA. 
DATA END OF BDCDATA. 
 
DATA BEGIN OF ITAB OCCURS 10. 
	 INCLUDE STRUCTURE BDCMSGCOLL. 
DATA END OF ITAB. 
 
DATA PROGRAM LIKE SY-REPID 
 
BDCDATA-PROGRAM  = 'SAPMS38M'. 
BDCDATA-DYNPRO   = '0100'. 
BDCDATA-DYNBEGIN = 'X'. 
APPEND BDCDATA. 
CLEAR BDCDATA. 
BDCDATA-FNAM	 = 'RS38M-PROGRAMM'. 
BDCDATA-FVAL	 = PROGRAM. 
APPEND BDCDATA. 
... 
CALL TRANSACTION 'SE38'  USING BDCDATA  MODE 'N' 
						 MESSAGES INTO ITAB.

Related

SUBMIT
CALL DIALOG