SAP PM_ARCH_ORDER_READ Function Module for NOTRANSL: Auftrag aus dem Archiv lesen
PM_ARCH_ORDER_READ is a standard pm arch order read 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: Auftrag aus dem 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 pm arch order read FM, simply by entering the name PM_ARCH_ORDER_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: PMH0
Program Name: SAPLPMH0
Main Program: SAPLPMH0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PM_ARCH_ORDER_READ 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 'PM_ARCH_ORDER_READ'"NOTRANSL: Auftrag aus dem Archiv lesen.
EXPORTING
* AUFNR = "Order Number
TABLES
* ET_CAUFVD = "Dialog Structure for Order Headers and Item
* ET_AFVGD = "Order: Dialog Table for Table AFVG (Order Operation)
* ET_RESBD = "Reservation/Dependent Requirements
* ET_AFFLB = "Order: Document table structure for AFFL
* ET_PMCO = "Cost structure of maintenance order
* ET_PMCOQT = "Quantity structure for the maintenance order
* ET_PMCO_OP = "Cost structure of maintenance order
* ET_PMCOQT_OP = "Quantity structure for the maintenance order
EXCEPTIONS
NOT_EXIST = 1
IMPORTING Parameters details for PM_ARCH_ORDER_READ
AUFNR - Order Number
Data type: CAUFV-AUFNROptional: Yes
Call by Reference: Yes
TABLES Parameters details for PM_ARCH_ORDER_READ
ET_CAUFVD - Dialog Structure for Order Headers and Item
Data type: CAUFVDOptional: Yes
Call by Reference: Yes
ET_AFVGD - Order: Dialog Table for Table AFVG (Order Operation)
Data type: AFVGDOptional: Yes
Call by Reference: Yes
ET_RESBD - Reservation/Dependent Requirements
Data type: RESBDOptional: Yes
Call by Reference: Yes
ET_AFFLB - Order: Document table structure for AFFL
Data type: AFFLBOptional: Yes
Call by Reference: Yes
ET_PMCO - Cost structure of maintenance order
Data type: PMCOOptional: Yes
Call by Reference: Yes
ET_PMCOQT - Quantity structure for the maintenance order
Data type: PMCOQTOptional: Yes
Call by Reference: Yes
ET_PMCO_OP - Cost structure of maintenance order
Data type: PMCO_OPOptional: Yes
Call by Reference: Yes
ET_PMCOQT_OP - Quantity structure for the maintenance order
Data type: PMCOQT_OPOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_EXIST - Does Not Exist
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PM_ARCH_ORDER_READ 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_aufnr | TYPE CAUFV-AUFNR, " | |||
| lt_et_caufvd | TYPE STANDARD TABLE OF CAUFVD, " | |||
| lv_not_exist | TYPE CAUFVD, " | |||
| lt_et_afvgd | TYPE STANDARD TABLE OF AFVGD, " | |||
| lt_et_resbd | TYPE STANDARD TABLE OF RESBD, " | |||
| lt_et_afflb | TYPE STANDARD TABLE OF AFFLB, " | |||
| lt_et_pmco | TYPE STANDARD TABLE OF PMCO, " | |||
| lt_et_pmcoqt | TYPE STANDARD TABLE OF PMCOQT, " | |||
| lt_et_pmco_op | TYPE STANDARD TABLE OF PMCO_OP, " | |||
| lt_et_pmcoqt_op | TYPE STANDARD TABLE OF PMCOQT_OP. " |
|   CALL FUNCTION 'PM_ARCH_ORDER_READ' "NOTRANSL: Auftrag aus dem Archiv lesen |
| EXPORTING | ||
| AUFNR | = lv_aufnr | |
| TABLES | ||
| ET_CAUFVD | = lt_et_caufvd | |
| ET_AFVGD | = lt_et_afvgd | |
| ET_RESBD | = lt_et_resbd | |
| ET_AFFLB | = lt_et_afflb | |
| ET_PMCO | = lt_et_pmco | |
| ET_PMCOQT | = lt_et_pmcoqt | |
| ET_PMCO_OP | = lt_et_pmco_op | |
| ET_PMCOQT_OP | = lt_et_pmcoqt_op | |
| EXCEPTIONS | ||
| NOT_EXIST = 1 | ||
| . " PM_ARCH_ORDER_READ | ||
ABAP code using 7.40 inline data declarations to call FM PM_ARCH_ORDER_READ
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 AUFNR FROM CAUFV INTO @DATA(ld_aufnr). | ||||
Search for further information about these or an SAP related objects