ARCHIV_BARCODE_GLOBAL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ARCHIV_BARCODE_GLOBAL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
OPTE
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'ARCHIV_BARCODE_GLOBAL' "
EXPORTING
* ar_object = " toaom-ar_object ArchiveLink document type
* no_doc_change = SPACE " toaom-ar_status If 'X' document type cannot be changed manually
object_id = " sapb-sapobjid Object ID of SAP object type
sap_object = " toaom-sap_object SAP object type
* updatetask = SPACE " toacm-barcode_in Update takes place in UPDATE TASK
* no_check = SPACE " toaom-ar_status 'X': No active check
* no_popup = SPACE " toaom-ar_status 'X': Bar code dialog box will not be displayed
* barcode = SPACE " toav0-arc_doc_id Value entered for bar code
IMPORTING
return = " sapb-return
EXCEPTIONS
ERROR_CONNECTIONTABLE = 1 " No entry in connection table
NO_BARCODE = 2 " No bar code entry active
USER_EXIT = 3 " Canceled by user
EARLY_CAPTURING = 4 " Early input active
ERROR_BARCODE = 5 " Invalid/blank bar code
ERROR_DOCUMENTTYPE = 6 " Error in connection table
NO_AUTHORITY = 7 " Bar code entry not active for user
. " ARCHIV_BARCODE_GLOBAL
The ABAP code below is a full code listing to execute function module ARCHIV_BARCODE_GLOBAL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_return | TYPE SAPB-RETURN . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_return | TYPE SAPB-RETURN , |
| ld_ar_object | TYPE TOAOM-AR_OBJECT , |
| ld_no_doc_change | TYPE TOAOM-AR_STATUS , |
| ld_object_id | TYPE SAPB-SAPOBJID , |
| ld_sap_object | TYPE TOAOM-SAP_OBJECT , |
| ld_updatetask | TYPE TOACM-BARCODE_IN , |
| ld_no_check | TYPE TOAOM-AR_STATUS , |
| ld_no_popup | TYPE TOAOM-AR_STATUS , |
| ld_barcode | TYPE TOAV0-ARC_DOC_ID . |
Late input of original documents with bar code entry can be integrated
due to this function module.
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ARCHIV_BARCODE_GLOBAL or its description.