
FUNCTION SWO_DIALOG_OBJECT_KEY_EDIT
IMPORTING
VALUE(DISPLAY) LIKE SWOTEDITOR-DISPLAY DEFAULT SPACE
VALUE(OBJTYPE) LIKE SWOTOBJID-OBJTYPE
VALUE(TITLE) LIKE SWOTBASDAT-SHORTTEXT DEFAULT SPACE
VALUE(OBJKEY) LIKE SWOTOBJID-OBJKEY DEFAULT SPACE
VALUE(SET_CURRENT_KEY_VERSION) TYPE FLAG DEFAULT 'X'
EXPORTING
VALUE(CHANGED) LIKE SWOTEDITOR-CHANGED
VALUE(RETURN) LIKE SWOTRETURN
VALUE(OBJKEY) LIKE SWOTOBJID-OBJKEY
VALUE(LOGICAL_SYSTEM) LIKE SWOTOBJID-LOGSYS.This function module displays a dialog that contains the key fields of an object type instance. The key can be displayed or edited.
If the object type implements technical ID mapping (for example, if get_logical_structure_name method actually returns a structure name), the object key is first converted into its logical representation. The user sees and edits the logical representation only. Afterwards, it is converted back into the technical key.
|
Parameter Name |
Description |
|---|---|
|
DISPLAY |
'X' - Input is not editable |
|
OBJTYPE |
Technical identifier of the object type |
|
TITLE |
Dialog title |
|
OBJKEY |
Object key. Semantics depend on parameter I_SET_CURRENT_VERSION (see below). The returned value is the edited key, converted to the current key version format. |
|
SET_CURRENT_KEY_VERSION |
If set to ‘X’, the object key is expected to adhere to the current key version of the object type. Otherwise the key has to contain valid key information that will be adhered to. An empty version is interpreted as version 0000. |
|
CHANGED |
'X' - Input has been changed |
|
RETURN |
Return code |
|
TITLE |
Dialog title |
|
LOGICAL_SYSTEM |
Logical system where the instance is to be created |