SAP ARCHIV_POPUP_OBJECT_KEY Function Module for
ARCHIV_POPUP_OBJECT_KEY is a standard archiv popup object key SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for archiv popup object key FM, simply by entering the name ARCHIV_POPUP_OBJECT_KEY into the relevant SAP transaction such as SE37 or SE38.
Function Group: OA12
Program Name: SAPLOA12
Main Program: SAPLOA12
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ARCHIV_POPUP_OBJECT_KEY pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ARCHIV_POPUP_OBJECT_KEY'".
EXPORTING
* DISPLAY = ' ' "
OBJTYPE = "
* TITLE = ' ' "
* OBJKEY = ' ' "
* LASTTYPE = ' ' "
* LASTKEY = ' ' "
* CHECKEXISTENCE = ' ' "
* GENERIC = ' ' "
* EDIT = ' ' "
IMPORTING
CHANGED = "
RETURN = "
OBJKEY = "
USE_LAST = "
EXCEPTIONS
ERROR_PARAMETER = 1 USER_CANCEL = 2
IMPORTING Parameters details for ARCHIV_POPUP_OBJECT_KEY
DISPLAY -
Data type: SWOTEDITOR-DISPLAYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJTYPE -
Data type: SWOTOBJID-OBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
TITLE -
Data type: SWOTBASDAT-SHORTTEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJKEY -
Data type: SWOTOBJID-OBJKEYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LASTTYPE -
Data type: SWOTOBJID-OBJTYPEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LASTKEY -
Data type: SWOTOBJID-OBJKEYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECKEXISTENCE -
Data type: SY-INPUTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GENERIC -
Data type: SY-INPUTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDIT -
Data type: SY-INPUTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ARCHIV_POPUP_OBJECT_KEY
CHANGED -
Data type: SY-INPUTOptional: No
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: SWOTRETURNOptional: No
Call by Reference: No ( called with pass by value option)
OBJKEY -
Data type: SWOTOBJID-OBJKEYOptional: No
Call by Reference: No ( called with pass by value option)
USE_LAST -
Data type: SY-INPUTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_PARAMETER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
USER_CANCEL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ARCHIV_POPUP_OBJECT_KEY Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_changed | TYPE SY-INPUT, " | |||
| lv_display | TYPE SWOTEDITOR-DISPLAY, " SPACE | |||
| lv_error_parameter | TYPE SWOTEDITOR, " | |||
| lv_return | TYPE SWOTRETURN, " | |||
| lv_objtype | TYPE SWOTOBJID-OBJTYPE, " | |||
| lv_user_cancel | TYPE SWOTOBJID, " | |||
| lv_title | TYPE SWOTBASDAT-SHORTTEXT, " SPACE | |||
| lv_objkey | TYPE SWOTOBJID-OBJKEY, " | |||
| lv_objkey | TYPE SWOTOBJID-OBJKEY, " SPACE | |||
| lv_use_last | TYPE SY-INPUT, " | |||
| lv_lasttype | TYPE SWOTOBJID-OBJTYPE, " SPACE | |||
| lv_lastkey | TYPE SWOTOBJID-OBJKEY, " SPACE | |||
| lv_checkexistence | TYPE SY-INPUT, " SPACE | |||
| lv_generic | TYPE SY-INPUT, " SPACE | |||
| lv_edit | TYPE SY-INPUT. " SPACE |
|   CALL FUNCTION 'ARCHIV_POPUP_OBJECT_KEY' " |
| EXPORTING | ||
| DISPLAY | = lv_display | |
| OBJTYPE | = lv_objtype | |
| TITLE | = lv_title | |
| OBJKEY | = lv_objkey | |
| LASTTYPE | = lv_lasttype | |
| LASTKEY | = lv_lastkey | |
| CHECKEXISTENCE | = lv_checkexistence | |
| GENERIC | = lv_generic | |
| EDIT | = lv_edit | |
| IMPORTING | ||
| CHANGED | = lv_changed | |
| RETURN | = lv_return | |
| OBJKEY | = lv_objkey | |
| USE_LAST | = lv_use_last | |
| EXCEPTIONS | ||
| ERROR_PARAMETER = 1 | ||
| USER_CANCEL = 2 | ||
| . " ARCHIV_POPUP_OBJECT_KEY | ||
ABAP code using 7.40 inline data declarations to call FM ARCHIV_POPUP_OBJECT_KEY
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single INPUT FROM SY INTO @DATA(ld_changed). | ||||
| "SELECT single DISPLAY FROM SWOTEDITOR INTO @DATA(ld_display). | ||||
| DATA(ld_display) | = ' '. | |||
| "SELECT single OBJTYPE FROM SWOTOBJID INTO @DATA(ld_objtype). | ||||
| "SELECT single SHORTTEXT FROM SWOTBASDAT INTO @DATA(ld_title). | ||||
| DATA(ld_title) | = ' '. | |||
| "SELECT single OBJKEY FROM SWOTOBJID INTO @DATA(ld_objkey). | ||||
| "SELECT single OBJKEY FROM SWOTOBJID INTO @DATA(ld_objkey). | ||||
| DATA(ld_objkey) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_use_last). | ||||
| "SELECT single OBJTYPE FROM SWOTOBJID INTO @DATA(ld_lasttype). | ||||
| DATA(ld_lasttype) | = ' '. | |||
| "SELECT single OBJKEY FROM SWOTOBJID INTO @DATA(ld_lastkey). | ||||
| DATA(ld_lastkey) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_checkexistence). | ||||
| DATA(ld_checkexistence) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_generic). | ||||
| DATA(ld_generic) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_edit). | ||||
| DATA(ld_edit) | = ' '. | |||
Search for further information about these or an SAP related objects