CALL DIALOG

CALL DIALOG - Call a dialog module

Additions:

1. ... AND SKIP FIRST SCREEN
2. ... EXPORTING f1 FROM g1 ... fn FROM gn
3. ... IMPORTING f1 TO g1 ... fn TO gn
4. ... USING itab ... MODE mode.

Effect

Calls the dialog module dial; dial can be a literal or a variable.
To edit dialog modules, choose Tools -> ABAP Workbench -> Development -> Programming environ. -> Dialog modules.

Effect

Processes the first screen of the dialog module in the background, if all required entry fields have been filled.

Effect

Specifies all data objects (fields, field strings, internal tables) to be passed to the dialog module. If the names in the calling and called programs are identical, you can omit "FROM g1". Otherwise, fi refers to the field in the dialog module, while gi specifies the field in the calling program.

Effect

Specifies all data objects (fields, field strings, internal tables) to be returned from the dialog module. If the names in the calling and called programs are identical, you can omit "TO g1". Otherwise, fi refers to the field in the dialog module, while gi specifies the field in the calling program.

Examples

DATA: BEGIN OF ITAB, 
		LINE(72), 
	END   OF ITAB, 
	TITLE LIKE SY-TITLE. 
 
CALL DIALOG 'RS_EDIT_TABLE' 
	EXPORTING SOURCETAB FROM ITAB 
			TITLE 
	IMPORTING SOURCETAB TO   ITAB.

The system field SY-SUBRC is automatically exported and imported.

Effect

Calls the dialog module dial and also passes the internal table itab which contains one or more screens in batch input format.
If required, the dialog module may return a message to the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, SY-MSGV1, ..., SY-MSGV4.

The specified processing mode mode can accept the following values:

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

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

The

return code

is set as follows:

All lock arguments are automatically exported and imported.
In contrast to a transaction, a dialog module does not form its own LUW (see Transaction Processing). Any update requests which occur there are not processed until the calling program executes a COMMIT WORK.

Related

CALL TRANSACTION, CALL FUNCTION