ARCHIV_CREATE_SYNCHRON_META 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_CREATE_SYNCHRON_META into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
OPTD
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'ARCHIV_CREATE_SYNCHRON_META' "
EXPORTING
ar_object = " toaom-ar_object Document type
* del_date = SPACE " toa01-del_date Expiration date
* note = SPACE " sapb-sapnotiz
* note = SPACE " sapb-sapnotiz Note (not used any longer)
object_id = " sapb-sapobjid Unique object key of SAP object
* path = SPACE " sapb-sappfad
* path = SPACE " sapb-sappfad Source path in file system
sap_object = " toaom-sap_object Object type of SAP object
* no_arc_delete = SPACE " toaom-ar_status If 'X' file will not be deleted from archive
* vscan_profile = '/SCMS/KPRO_CREATE' " vscan_profile
EXCEPTIONS
ERROR_ARCHIV = 1 " Archive system error
ERROR_COMMUNICATIONTABLE = 2 " Archive table error (customizing archives)
ERROR_CONNECTIONTABLE = 3 " No link table created
ERROR_KERNEL = 4 " SAP kernel error
ERROR_PARAMETER = 5 " Invalid transfer parameters
BLOCKED_BY_POLICY = 6 "
. " ARCHIV_CREATE_SYNCHRON_META
The ABAP code below is a full code listing to execute function module ARCHIV_CREATE_SYNCHRON_META 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).
SELECT single AR_OBJECT
FROM TOAOM
INTO @DATA(ld_ar_object).
SELECT single DEL_DATE
FROM TOA01
INTO @DATA(ld_del_date).
DATA(ld_note) = some text here
DATA(ld_note) = some text here
DATA(ld_object_id) = some text here
DATA(ld_path) = some text here
DATA(ld_path) = some text here
SELECT single SAP_OBJECT
FROM TOAOM
INTO @DATA(ld_sap_object).
SELECT single AR_STATUS
FROM TOAOM
INTO @DATA(ld_no_arc_delete).
DATA(ld_vscan_profile) = 'Check type of data required'. . CALL FUNCTION 'ARCHIV_CREATE_SYNCHRON_META' EXPORTING ar_object = ld_ar_object * del_date = ld_del_date * note = ld_note * note = ld_note object_id = ld_object_id * path = ld_path * path = ld_path sap_object = ld_sap_object * no_arc_delete = ld_no_arc_delete * vscan_profile = ld_vscan_profile EXCEPTIONS ERROR_ARCHIV = 1 ERROR_COMMUNICATIONTABLE = 2 ERROR_CONNECTIONTABLE = 3 ERROR_KERNEL = 4 ERROR_PARAMETER = 5 BLOCKED_BY_POLICY = 6 . " ARCHIV_CREATE_SYNCHRON_META
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 ENDIF.
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_ar_object | TYPE TOAOM-AR_OBJECT , |
| ld_del_date | TYPE TOA01-DEL_DATE , |
| ld_note | TYPE SAPB-SAPNOTIZ , |
| ld_note | TYPE SAPB-SAPNOTIZ , |
| ld_object_id | TYPE SAPB-SAPOBJID , |
| ld_path | TYPE SAPB-SAPPFAD , |
| ld_path | TYPE SAPB-SAPPFAD , |
| ld_sap_object | TYPE TOAOM-SAP_OBJECT , |
| ld_no_arc_delete | TYPE TOAOM-AR_STATUS , |
| ld_vscan_profile | TYPE VSCAN_PROFILE . |
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_CREATE_SYNCHRON_META or its description.