SAP ARCHIV_POPUP_BARCODE Function Module for
ARCHIV_POPUP_BARCODE is a standard archiv popup barcode 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 barcode FM, simply by entering the name ARCHIV_POPUP_BARCODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: OPTE
Program Name: SAPLOPTE
Main Program: SAPLOPTE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ARCHIV_POPUP_BARCODE 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_BARCODE'".
EXPORTING
* BARCODETYPE = ' ' "Bar code type (only for bar code check)
* X_ACTIV = ' ' "Bar code entry active
* X_NO_CANCEL = ' ' "No cancel option for bar code entry
* X_DUPLICATE = ' ' "
* RETURN = ' ' "Return value
* NO_ARCHIV_CUSTOMIZE = ' ' "No call to ARCHIV_CUSTOMIZE_BARCODE
* NO_GLOBAL_SET = ' ' "
* DOKUMENTART = ' ' "ArchiveLink document type
* NO_DOC_CHANGE = ' ' "If 'X' document type cannot be changed manually
OBJECT = "SAP object type
* OBJECT_ID = ' ' "SAP ArchiveLink: Object ID (Object Identifier)
* NO_CHECK = ' ' "'X': No active check
* NO_POPUP = ' ' "'X': Bar code dialog box will not be displayed
* BARCODE = ' ' "
* X_CHECK = ' ' "Check transferred bar code
IMPORTING
BARCODE_ID = "Value entered for bar code
DOKUMENTART = "ArchiveLink document type
EXCEPTIONS
EARLY_CAPTURING = 1 ERROR_BARCODE = 2 ERROR_DOKUMENTART = 3 NO_AUTHORITY = 4 NO_BARCODE = 5 USER_EXIT = 6 BARCODE_EMPTY = 7
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLOPTE_001 Business Document Service: Customer Exit Bar Code
IMPORTING Parameters details for ARCHIV_POPUP_BARCODE
BARCODETYPE - Bar code type (only for bar code check)
Data type: TOACM-BARCODE_TYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ACTIV - Bar code entry active
Data type: TOACM-BARCODE_INDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_CANCEL - No cancel option for bar code entry
Data type: TOACM-NO_CANCELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DUPLICATE -
Data type: TOACM-DUPLICATEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return value
Data type: SAPB-RETURNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_ARCHIV_CUSTOMIZE - No call to ARCHIV_CUSTOMIZE_BARCODE
Data type: TOAOM-AR_STATUSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_GLOBAL_SET -
Data type: TOAOM-AR_STATUSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DOKUMENTART - ArchiveLink document type
Data type: TOADV-AR_OBJECTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DOC_CHANGE - If 'X' document type cannot be changed manually
Data type: TOAOM-AR_STATUSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT - SAP object type
Data type: TOAOM-SAP_OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
OBJECT_ID - SAP ArchiveLink: Object ID (Object Identifier)
Data type: SAPB-SAPOBJIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_CHECK - 'X': No active check
Data type: TOAOM-AR_STATUSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_POPUP - 'X': Bar code dialog box will not be displayed
Data type: TOAOM-AR_STATUSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BARCODE -
Data type: TOAV0-ARC_DOC_IDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CHECK - Check transferred bar code
Data type: TOACM-OPTICAL_ARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ARCHIV_POPUP_BARCODE
BARCODE_ID - Value entered for bar code
Data type: TOAV0-ARC_DOC_IDOptional: No
Call by Reference: No ( called with pass by value option)
DOKUMENTART - ArchiveLink document type
Data type: TOADV-AR_OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EARLY_CAPTURING - Early input active
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_BARCODE - Not allowed/empty bar code
Data type:Optional: No
Call by Reference: Yes
ERROR_DOKUMENTART - Error in connection table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - Bar code entry not active for user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_BARCODE - No bar code entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
USER_EXIT - Canceled by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BARCODE_EMPTY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ARCHIV_POPUP_BARCODE 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_barcode_id | TYPE TOAV0-ARC_DOC_ID, " | |||
lv_barcodetype | TYPE TOACM-BARCODE_TY, " SPACE | |||
lv_early_capturing | TYPE TOACM, " | |||
lv_x_activ | TYPE TOACM-BARCODE_IN, " SPACE | |||
lv_x_no_cancel | TYPE TOACM-NO_CANCEL, " SPACE | |||
lv_x_duplicate | TYPE TOACM-DUPLICATE, " SPACE | |||
lv_return | TYPE SAPB-RETURN, " SPACE | |||
lv_no_archiv_customize | TYPE TOAOM-AR_STATUS, " SPACE | |||
lv_no_global_set | TYPE TOAOM-AR_STATUS, " SPACE | |||
lv_dokumentart | TYPE TOADV-AR_OBJECT, " | |||
lv_dokumentart | TYPE TOADV-AR_OBJECT, " SPACE | |||
lv_error_barcode | TYPE TOADV, " | |||
lv_no_doc_change | TYPE TOAOM-AR_STATUS, " SPACE | |||
lv_error_dokumentart | TYPE TOAOM, " | |||
lv_object | TYPE TOAOM-SAP_OBJECT, " | |||
lv_no_authority | TYPE TOAOM, " | |||
lv_object_id | TYPE SAPB-SAPOBJID, " SPACE | |||
lv_no_barcode | TYPE SAPB, " | |||
lv_no_check | TYPE TOAOM-AR_STATUS, " SPACE | |||
lv_user_exit | TYPE TOAOM, " | |||
lv_no_popup | TYPE TOAOM-AR_STATUS, " SPACE | |||
lv_barcode_empty | TYPE TOAOM, " | |||
lv_barcode | TYPE TOAV0-ARC_DOC_ID, " SPACE | |||
lv_x_check | TYPE TOACM-OPTICAL_AR. " SPACE |
  CALL FUNCTION 'ARCHIV_POPUP_BARCODE' " |
EXPORTING | ||
BARCODETYPE | = lv_barcodetype | |
X_ACTIV | = lv_x_activ | |
X_NO_CANCEL | = lv_x_no_cancel | |
X_DUPLICATE | = lv_x_duplicate | |
RETURN | = lv_return | |
NO_ARCHIV_CUSTOMIZE | = lv_no_archiv_customize | |
NO_GLOBAL_SET | = lv_no_global_set | |
DOKUMENTART | = lv_dokumentart | |
NO_DOC_CHANGE | = lv_no_doc_change | |
OBJECT | = lv_object | |
OBJECT_ID | = lv_object_id | |
NO_CHECK | = lv_no_check | |
NO_POPUP | = lv_no_popup | |
BARCODE | = lv_barcode | |
X_CHECK | = lv_x_check | |
IMPORTING | ||
BARCODE_ID | = lv_barcode_id | |
DOKUMENTART | = lv_dokumentart | |
EXCEPTIONS | ||
EARLY_CAPTURING = 1 | ||
ERROR_BARCODE = 2 | ||
ERROR_DOKUMENTART = 3 | ||
NO_AUTHORITY = 4 | ||
NO_BARCODE = 5 | ||
USER_EXIT = 6 | ||
BARCODE_EMPTY = 7 | ||
. " ARCHIV_POPUP_BARCODE |
ABAP code using 7.40 inline data declarations to call FM ARCHIV_POPUP_BARCODE
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 ARC_DOC_ID FROM TOAV0 INTO @DATA(ld_barcode_id). | ||||
"SELECT single BARCODE_TY FROM TOACM INTO @DATA(ld_barcodetype). | ||||
DATA(ld_barcodetype) | = ' '. | |||
"SELECT single BARCODE_IN FROM TOACM INTO @DATA(ld_x_activ). | ||||
DATA(ld_x_activ) | = ' '. | |||
"SELECT single NO_CANCEL FROM TOACM INTO @DATA(ld_x_no_cancel). | ||||
DATA(ld_x_no_cancel) | = ' '. | |||
"SELECT single DUPLICATE FROM TOACM INTO @DATA(ld_x_duplicate). | ||||
DATA(ld_x_duplicate) | = ' '. | |||
"SELECT single RETURN FROM SAPB INTO @DATA(ld_return). | ||||
DATA(ld_return) | = ' '. | |||
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_no_archiv_customize). | ||||
DATA(ld_no_archiv_customize) | = ' '. | |||
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_no_global_set). | ||||
DATA(ld_no_global_set) | = ' '. | |||
"SELECT single AR_OBJECT FROM TOADV INTO @DATA(ld_dokumentart). | ||||
"SELECT single AR_OBJECT FROM TOADV INTO @DATA(ld_dokumentart). | ||||
DATA(ld_dokumentart) | = ' '. | |||
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_no_doc_change). | ||||
DATA(ld_no_doc_change) | = ' '. | |||
"SELECT single SAP_OBJECT FROM TOAOM INTO @DATA(ld_object). | ||||
"SELECT single SAPOBJID FROM SAPB INTO @DATA(ld_object_id). | ||||
DATA(ld_object_id) | = ' '. | |||
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_no_check). | ||||
DATA(ld_no_check) | = ' '. | |||
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_no_popup). | ||||
DATA(ld_no_popup) | = ' '. | |||
"SELECT single ARC_DOC_ID FROM TOAV0 INTO @DATA(ld_barcode). | ||||
DATA(ld_barcode) | = ' '. | |||
"SELECT single OPTICAL_AR FROM TOACM INTO @DATA(ld_x_check). | ||||
DATA(ld_x_check) | = ' '. | |||
Search for further information about these or an SAP related objects