SAP PS_ORDER_READ_ARCHIVE_OBJECT Function Module for NOTRANSL: Projekt aus Archiv lesen
PS_ORDER_READ_ARCHIVE_OBJECT is a standard ps order 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 for NOTRANSL: Projekt aus Archiv lesen processing and below is the pattern details for this FM, 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 order read archive object FM, simply by entering the name PS_ORDER_READ_ARCHIVE_OBJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CAOR
Program Name: SAPLCAOR
Main Program: SAPLCAOR
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PS_ORDER_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_ORDER_READ_ARCHIVE_OBJECT'"NOTRANSL: Projekt aus Archiv lesen.
EXPORTING
* ARCHIVE_HANDLE = 0 "ABAP System Field: Row Index of Internal Tables
TABLES
* T_AUFK = "Order master data
* T_VBAK = "Sales Document: Header Data
* T_VBAP = "Sales Document: Item Data
* T_AFKO = "Order Header Data PP Orders
* T_AFPO = "Order item
* T_AFFL = "Work order sequence
* T_AFVC = "Operation within an order
* T_AFVU = "DB structure of the user fields of the operation
* T_AFVV = "DB structure of the quantities/dates/values in the operation
* T_AFIH = "Maintenance order header
* T_PLAF = "Planned Order
EXCEPTIONS
WRONG_ACCESS_TO_ARCHIVE = 1 NOT_FOUND = 2
IMPORTING Parameters details for PS_ORDER_READ_ARCHIVE_OBJECT
ARCHIVE_HANDLE - ABAP System Field: Row Index of Internal Tables
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PS_ORDER_READ_ARCHIVE_OBJECT
T_AUFK - Order master data
Data type: AUFKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VBAK - Sales Document: Header Data
Data type: VBAKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VBAP - Sales Document: Item Data
Data type: VBAPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFKO - Order Header Data PP Orders
Data type: AFKOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFPO - Order item
Data type: AFPOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFFL - Work order sequence
Data type: AFFLOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFVC - Operation within an order
Data type: AFVCOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFVU - DB structure of the user fields of the operation
Data type: AFVUOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFVV - DB structure of the quantities/dates/values in the operation
Data type: AFVVOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFIH - Maintenance order header
Data type: AFIHOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PLAF - Planned Order
Data type: PLAFOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_ACCESS_TO_ARCHIVE - DE-EN-LANG-SWITCH-NO-TRANSLATION
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_ORDER_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_aufk | TYPE STANDARD TABLE OF AUFK, " | |||
| lv_archive_handle | TYPE SY-TABIX, " 0 | |||
| lv_wrong_access_to_archive | TYPE SY, " | |||
| lt_t_vbak | TYPE STANDARD TABLE OF VBAK, " | |||
| lt_t_vbap | TYPE STANDARD TABLE OF VBAP, " | |||
| lt_t_afko | TYPE STANDARD TABLE OF AFKO, " | |||
| lv_not_found | TYPE AFKO, " | |||
| lt_t_afpo | TYPE STANDARD TABLE OF AFPO, " | |||
| lt_t_affl | TYPE STANDARD TABLE OF AFFL, " | |||
| lt_t_afvc | TYPE STANDARD TABLE OF AFVC, " | |||
| lt_t_afvu | TYPE STANDARD TABLE OF AFVU, " | |||
| lt_t_afvv | TYPE STANDARD TABLE OF AFVV, " | |||
| lt_t_afih | TYPE STANDARD TABLE OF AFIH, " | |||
| lt_t_plaf | TYPE STANDARD TABLE OF PLAF. " |
|   CALL FUNCTION 'PS_ORDER_READ_ARCHIVE_OBJECT' "NOTRANSL: Projekt aus Archiv lesen |
| EXPORTING | ||
| ARCHIVE_HANDLE | = lv_archive_handle | |
| TABLES | ||
| T_AUFK | = lt_t_aufk | |
| T_VBAK | = lt_t_vbak | |
| T_VBAP | = lt_t_vbap | |
| T_AFKO | = lt_t_afko | |
| T_AFPO | = lt_t_afpo | |
| T_AFFL | = lt_t_affl | |
| T_AFVC | = lt_t_afvc | |
| T_AFVU | = lt_t_afvu | |
| T_AFVV | = lt_t_afvv | |
| T_AFIH | = lt_t_afih | |
| T_PLAF | = lt_t_plaf | |
| EXCEPTIONS | ||
| WRONG_ACCESS_TO_ARCHIVE = 1 | ||
| NOT_FOUND = 2 | ||
| . " PS_ORDER_READ_ARCHIVE_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM PS_ORDER_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