SAP PS_ARCHIVE_RUN_HELP Function Module for
PS_ARCHIVE_RUN_HELP is a standard ps archive run help 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 archive run help FM, simply by entering the name PS_ARCHIVE_RUN_HELP into the relevant SAP transaction such as SE37 or SE38.
Function Group: CAIS
Program Name: SAPLCAIS
Main Program: SAPLCAIS
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PS_ARCHIVE_RUN_HELP 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_ARCHIVE_RUN_HELP'".
EXPORTING
* FLG_DELETE_ONLY = ' ' "Archiving note for administrative data
* FLG_NO_DELETE_ONLY = ' ' "Archiving note for administrative data
* FLG_READY_ONLY = 'X' "Archiving note for administrative data
IMPORTING
ARCHIVE_RUN = "Archiving Session Number
TABLES
* RNG_PROJECT = "PS: WBS range (ID: project definition)
* RNG_ELEMENT = "PS: Item range (ID: WBS element)
* RNG_NET = "PS: Order number range (networks, production orders...)
EXCEPTIONS
NO_SELECT = 1
IMPORTING Parameters details for PS_ARCHIVE_RUN_HELP
FLG_DELETE_ONLY - Archiving note for administrative data
Data type: ADMI_RUN-DELETE_FLGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_NO_DELETE_ONLY - Archiving note for administrative data
Data type: ADMI_RUN-DELETE_FLGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_READY_ONLY - Archiving note for administrative data
Data type: ADMI_RUN-DELETE_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PS_ARCHIVE_RUN_HELP
ARCHIVE_RUN - Archiving Session Number
Data type: ADMI_RUN-DOCUMENTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PS_ARCHIVE_RUN_HELP
RNG_PROJECT - PS: WBS range (ID: project definition)
Data type: RNG_PSPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
RNG_ELEMENT - PS: Item range (ID: WBS element)
Data type: RNG_POSIDOptional: Yes
Call by Reference: No ( called with pass by value option)
RNG_NET - PS: Order number range (networks, production orders...)
Data type: RNG_AUFNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_SELECT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PS_ARCHIVE_RUN_HELP 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_no_select | TYPE STRING, " | |||
| lv_archive_run | TYPE ADMI_RUN-DOCUMENT, " | |||
| lt_rng_project | TYPE STANDARD TABLE OF RNG_PSPID, " | |||
| lv_flg_delete_only | TYPE ADMI_RUN-DELETE_FLG, " SPACE | |||
| lt_rng_element | TYPE STANDARD TABLE OF RNG_POSID, " | |||
| lv_flg_no_delete_only | TYPE ADMI_RUN-DELETE_FLG, " SPACE | |||
| lt_rng_net | TYPE STANDARD TABLE OF RNG_AUFNR, " | |||
| lv_flg_ready_only | TYPE ADMI_RUN-DELETE_FLG. " 'X' |
|   CALL FUNCTION 'PS_ARCHIVE_RUN_HELP' " |
| EXPORTING | ||
| FLG_DELETE_ONLY | = lv_flg_delete_only | |
| FLG_NO_DELETE_ONLY | = lv_flg_no_delete_only | |
| FLG_READY_ONLY | = lv_flg_ready_only | |
| IMPORTING | ||
| ARCHIVE_RUN | = lv_archive_run | |
| TABLES | ||
| RNG_PROJECT | = lt_rng_project | |
| RNG_ELEMENT | = lt_rng_element | |
| RNG_NET | = lt_rng_net | |
| EXCEPTIONS | ||
| NO_SELECT = 1 | ||
| . " PS_ARCHIVE_RUN_HELP | ||
ABAP code using 7.40 inline data declarations to call FM PS_ARCHIVE_RUN_HELP
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 DOCUMENT FROM ADMI_RUN INTO @DATA(ld_archive_run). | ||||
| "SELECT single DELETE_FLG FROM ADMI_RUN INTO @DATA(ld_flg_delete_only). | ||||
| DATA(ld_flg_delete_only) | = ' '. | |||
| "SELECT single DELETE_FLG FROM ADMI_RUN INTO @DATA(ld_flg_no_delete_only). | ||||
| DATA(ld_flg_no_delete_only) | = ' '. | |||
| "SELECT single DELETE_FLG FROM ADMI_RUN INTO @DATA(ld_flg_ready_only). | ||||
| DATA(ld_flg_ready_only) | = 'X'. | |||
Search for further information about these or an SAP related objects