SAP Function Modules

ARCHIV_BARCODE_GLOBAL SAP Function module







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
remote enabled module settings


Pattern for FM ARCHIV_BARCODE_GLOBAL - ARCHIV BARCODE GLOBAL





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

ABAP code example for Function Module 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).

DATA:
ld_return  TYPE SAPB-RETURN .


SELECT single AR_OBJECT
FROM TOAOM
INTO @DATA(ld_ar_object).


SELECT single AR_STATUS
FROM TOAOM
INTO @DATA(ld_no_doc_change).


DATA(ld_object_id) = some text here

SELECT single SAP_OBJECT
FROM TOAOM
INTO @DATA(ld_sap_object).


SELECT single BARCODE_IN
FROM TOACM
INTO @DATA(ld_updatetask).


SELECT single AR_STATUS
FROM TOAOM
INTO @DATA(ld_no_check).


SELECT single AR_STATUS
FROM TOAOM
INTO @DATA(ld_no_popup).


DATA(ld_barcode) = some text here . CALL FUNCTION 'ARCHIV_BARCODE_GLOBAL' EXPORTING * ar_object = ld_ar_object * no_doc_change = ld_no_doc_change object_id = ld_object_id sap_object = ld_sap_object * updatetask = ld_updatetask * no_check = ld_no_check * no_popup = ld_no_popup * barcode = ld_barcode IMPORTING return = ld_return EXCEPTIONS ERROR_CONNECTIONTABLE = 1 NO_BARCODE = 2 USER_EXIT = 3 EARLY_CAPTURING = 4 ERROR_BARCODE = 5 ERROR_DOCUMENTTYPE = 6 NO_AUTHORITY = 7 . " ARCHIV_BARCODE_GLOBAL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .


SELECT single AR_OBJECT
FROM TOAOM
INTO ld_ar_object.


SELECT single AR_STATUS
FROM TOAOM
INTO ld_no_doc_change.


ld_object_id = some text here

SELECT single SAP_OBJECT
FROM TOAOM
INTO ld_sap_object.


SELECT single BARCODE_IN
FROM TOACM
INTO ld_updatetask.


SELECT single AR_STATUS
FROM TOAOM
INTO ld_no_check.


SELECT single AR_STATUS
FROM TOAOM
INTO ld_no_popup.


ld_barcode = some text here

SAP Documentation for FM ARCHIV_BARCODE_GLOBAL


Late input of original documents with bar code entry can be integrated due to this function module. ...See here for full SAP fm documentation

Contribute (Add Comments)

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.