SAP ARCHIV_ANALYSE_RETURN Function Module for









ARCHIV_ANALYSE_RETURN is a standard archiv analyse return 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 analyse return FM, simply by entering the name ARCHIV_ANALYSE_RETURN into the relevant SAP transaction such as SE37 or SE38.

Function Group: ARCHIVOBJECT
Program Name: SAPLARCHIVOBJECT
Main Program: SAPLARCHIVOBJECT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ARCHIV_ANALYSE_RETURN 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_ANALYSE_RETURN'"
EXPORTING
ARCHIV_ID = "
* STATUS = "
* ERROR_ID = "
* TEXT = ' ' "
* MESSAGESTRING = ' ' "
* METHOD = ' ' "

EXCEPTIONS
ERROR_COMMUNICATIONTABLE = 1 ERROR_KERNEL = 2 ERROR_ARCHIV = 3 ERROR_SCANQUEUE = 4 ERROR_PROTOCOL = 5
.



IMPORTING Parameters details for ARCHIV_ANALYSE_RETURN

ARCHIV_ID -

Data type: TOAV0-ARCHIV_ID
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS -

Data type: P
Optional: Yes
Call by Reference: No ( called with pass by value option)

ERROR_ID -

Data type: TOAER-RET_CODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXT -

Data type: RS38M-ITEX132
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGESTRING -

Data type: SAPB-SAPMESSAGE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

METHOD -

Data type: TOAIN-APPLMETHOD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_COMMUNICATIONTABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_KERNEL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_ARCHIV -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_SCANQUEUE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_PROTOCOL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ARCHIV_ANALYSE_RETURN 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_archiv_id  TYPE TOAV0-ARCHIV_ID, "   
lv_error_communicationtable  TYPE TOAV0, "   
lv_status  TYPE P, "   
lv_error_kernel  TYPE P, "   
lv_error_id  TYPE TOAER-RET_CODE, "   
lv_error_archiv  TYPE TOAER, "   
lv_text  TYPE RS38M-ITEX132, "   SPACE
lv_error_scanqueue  TYPE RS38M, "   
lv_messagestring  TYPE SAPB-SAPMESSAGE, "   SPACE
lv_error_protocol  TYPE SAPB, "   
lv_method  TYPE TOAIN-APPLMETHOD. "   SPACE

  CALL FUNCTION 'ARCHIV_ANALYSE_RETURN'  "
    EXPORTING
         ARCHIV_ID = lv_archiv_id
         STATUS = lv_status
         ERROR_ID = lv_error_id
         TEXT = lv_text
         MESSAGESTRING = lv_messagestring
         METHOD = lv_method
    EXCEPTIONS
        ERROR_COMMUNICATIONTABLE = 1
        ERROR_KERNEL = 2
        ERROR_ARCHIV = 3
        ERROR_SCANQUEUE = 4
        ERROR_PROTOCOL = 5
. " ARCHIV_ANALYSE_RETURN




ABAP code using 7.40 inline data declarations to call FM ARCHIV_ANALYSE_RETURN

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 ARCHIV_ID FROM TOAV0 INTO @DATA(ld_archiv_id).
 
 
 
 
"SELECT single RET_CODE FROM TOAER INTO @DATA(ld_error_id).
 
 
"SELECT single ITEX132 FROM RS38M INTO @DATA(ld_text).
DATA(ld_text) = ' '.
 
 
"SELECT single SAPMESSAGE FROM SAPB INTO @DATA(ld_messagestring).
DATA(ld_messagestring) = ' '.
 
 
"SELECT single APPLMETHOD FROM TOAIN INTO @DATA(ld_method).
DATA(ld_method) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!