SAP PS_VSORDER_READ_ARCHIVE_OBJECT Function Module for









PS_VSORDER_READ_ARCHIVE_OBJECT is a standard ps vsorder read archive object 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 ps vsorder read archive object FM, simply by entering the name PS_VSORDER_READ_ARCHIVE_OBJECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CAVS
Program Name: SAPLCAVS
Main Program: SAPLCAVS
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PS_VSORDER_READ_ARCHIVE_OBJECT 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 'PS_VSORDER_READ_ARCHIVE_OBJECT'"
EXPORTING
* ARCHIVE_HANDLE = 0 "Archive to be Read

TABLES
* T_VSAFAB = "
* T_VSAUFK = "
* T_VSEBAN = "
* T_VSEBKN = "
* T_VSFPLA = "
* T_VSFPLT = "
* T_VSJEST = "
* T_VSJSTO = "
* T_VSKBED = "
* T_VSKBEZ = "
* T_VSKOPF = "
* T_VSAFFH = "
* T_VSMLST = "
* T_VSNPTX = "
* T_VSPLAF = "
* T_VSPSTX = "
* T_VSRESB = "
* T_VSRPSCO = "
* T_VSRSDB = "
* T_VSSTEU = "
* T_VSVBAK = "
* T_VSVBAP = "
* T_VSAFFL = "
* T_VSVBEP = "
* T_VSVBKD = "
* T_VSAFIH = "
* T_VSAFKO = "
* T_VSAFPO = "
* T_VSAFVC = "
* T_VSAFVU = "
* T_VSAFVV = "

EXCEPTIONS
WRONG_ACCESS_TO_ARCHIVE = 1 NOT_FOUND = 2
.



IMPORTING Parameters details for PS_VSORDER_READ_ARCHIVE_OBJECT

ARCHIVE_HANDLE - Archive to be Read

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

TABLES Parameters details for PS_VSORDER_READ_ARCHIVE_OBJECT

T_VSAFAB -

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

T_VSAUFK -

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

T_VSEBAN -

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

T_VSEBKN -

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

T_VSFPLA -

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

T_VSFPLT -

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

T_VSJEST -

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

T_VSJSTO -

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

T_VSKBED -

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

T_VSKBEZ -

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

T_VSKOPF -

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

T_VSAFFH -

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

T_VSMLST -

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

T_VSNPTX -

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

T_VSPLAF -

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

T_VSPSTX -

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

T_VSRESB -

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

T_VSRPSCO -

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

T_VSRSDB -

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

T_VSSTEU -

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

T_VSVBAK -

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

T_VSVBAP -

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

T_VSAFFL -

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

T_VSVBEP -

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

T_VSVBKD -

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

T_VSAFIH -

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

T_VSAFKO -

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

T_VSAFPO -

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

T_VSAFVC -

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

T_VSAFVU -

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

T_VSAFVV -

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

EXCEPTIONS details

WRONG_ACCESS_TO_ARCHIVE - Archive not Opened for Reading

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

NOT_FOUND -

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

Copy and paste ABAP code example for PS_VSORDER_READ_ARCHIVE_OBJECT 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:
lt_t_vsafab  TYPE STANDARD TABLE OF VSAFAB_CN, "   
lv_archive_handle  TYPE SY-TABIX, "   0
lv_wrong_access_to_archive  TYPE SY, "   
lt_t_vsaufk  TYPE STANDARD TABLE OF VSAUFK_CN, "   
lt_t_vseban  TYPE STANDARD TABLE OF VSEBAN_CN, "   
lt_t_vsebkn  TYPE STANDARD TABLE OF VSEBKN_CN, "   
lt_t_vsfpla  TYPE STANDARD TABLE OF VSFPLA_CN, "   
lt_t_vsfplt  TYPE STANDARD TABLE OF VSFPLT_CN, "   
lt_t_vsjest  TYPE STANDARD TABLE OF VSJEST_CN, "   
lt_t_vsjsto  TYPE STANDARD TABLE OF VSJSTO_CN, "   
lt_t_vskbed  TYPE STANDARD TABLE OF VSKBED_CN, "   
lt_t_vskbez  TYPE STANDARD TABLE OF VSKBEZ_CN, "   
lt_t_vskopf  TYPE STANDARD TABLE OF VSKOPF, "   
lt_t_vsaffh  TYPE STANDARD TABLE OF VSAFFH_CN, "   
lv_not_found  TYPE VSAFFH_CN, "   
lt_t_vsmlst  TYPE STANDARD TABLE OF VSMLST_CN, "   
lt_t_vsnptx  TYPE STANDARD TABLE OF VSNPTX_CN, "   
lt_t_vsplaf  TYPE STANDARD TABLE OF VSPLAF_CN, "   
lt_t_vspstx  TYPE STANDARD TABLE OF VSPSTX_CN, "   
lt_t_vsresb  TYPE STANDARD TABLE OF VSRESB_CN, "   
lt_t_vsrpsco  TYPE STANDARD TABLE OF VSRPSCO_CN, "   
lt_t_vsrsdb  TYPE STANDARD TABLE OF VSRSDB_CN, "   
lt_t_vssteu  TYPE STANDARD TABLE OF VSSTEU, "   
lt_t_vsvbak  TYPE STANDARD TABLE OF VSVBAK_CN, "   
lt_t_vsvbap  TYPE STANDARD TABLE OF VSVBAP_CN, "   
lt_t_vsaffl  TYPE STANDARD TABLE OF VSAFFL_CN, "   
lt_t_vsvbep  TYPE STANDARD TABLE OF VSVBEP_CN, "   
lt_t_vsvbkd  TYPE STANDARD TABLE OF VSVBKD_CN, "   
lt_t_vsafih  TYPE STANDARD TABLE OF VSAFIH_CN, "   
lt_t_vsafko  TYPE STANDARD TABLE OF VSAFKO_CN, "   
lt_t_vsafpo  TYPE STANDARD TABLE OF VSAFPO_CN, "   
lt_t_vsafvc  TYPE STANDARD TABLE OF VSAFVC_CN, "   
lt_t_vsafvu  TYPE STANDARD TABLE OF VSAFVU_CN, "   
lt_t_vsafvv  TYPE STANDARD TABLE OF VSAFVV_CN. "   

  CALL FUNCTION 'PS_VSORDER_READ_ARCHIVE_OBJECT'  "
    EXPORTING
         ARCHIVE_HANDLE = lv_archive_handle
    TABLES
         T_VSAFAB = lt_t_vsafab
         T_VSAUFK = lt_t_vsaufk
         T_VSEBAN = lt_t_vseban
         T_VSEBKN = lt_t_vsebkn
         T_VSFPLA = lt_t_vsfpla
         T_VSFPLT = lt_t_vsfplt
         T_VSJEST = lt_t_vsjest
         T_VSJSTO = lt_t_vsjsto
         T_VSKBED = lt_t_vskbed
         T_VSKBEZ = lt_t_vskbez
         T_VSKOPF = lt_t_vskopf
         T_VSAFFH = lt_t_vsaffh
         T_VSMLST = lt_t_vsmlst
         T_VSNPTX = lt_t_vsnptx
         T_VSPLAF = lt_t_vsplaf
         T_VSPSTX = lt_t_vspstx
         T_VSRESB = lt_t_vsresb
         T_VSRPSCO = lt_t_vsrpsco
         T_VSRSDB = lt_t_vsrsdb
         T_VSSTEU = lt_t_vssteu
         T_VSVBAK = lt_t_vsvbak
         T_VSVBAP = lt_t_vsvbap
         T_VSAFFL = lt_t_vsaffl
         T_VSVBEP = lt_t_vsvbep
         T_VSVBKD = lt_t_vsvbkd
         T_VSAFIH = lt_t_vsafih
         T_VSAFKO = lt_t_vsafko
         T_VSAFPO = lt_t_vsafpo
         T_VSAFVC = lt_t_vsafvc
         T_VSAFVU = lt_t_vsafvu
         T_VSAFVV = lt_t_vsafvv
    EXCEPTIONS
        WRONG_ACCESS_TO_ARCHIVE = 1
        NOT_FOUND = 2
. " PS_VSORDER_READ_ARCHIVE_OBJECT




ABAP code using 7.40 inline data declarations to call FM PS_VSORDER_READ_ARCHIVE_OBJECT

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 TABIX FROM SY INTO @DATA(ld_archive_handle).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!