SAP PS_STAT_INTEGRATED_ACT_CHECK Function Module for NOTRANSL: Statusprüfung für PSP-Elemente (auch von extern)
PS_STAT_INTEGRATED_ACT_CHECK is a standard ps stat integrated act check 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: Statusprüfung für PSP-Elemente (auch von extern) 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 stat integrated act check FM, simply by entering the name PS_STAT_INTEGRATED_ACT_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: CJPN
Program Name: SAPLCJPN
Main Program: SAPLCJPN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PS_STAT_INTEGRATED_ACT_CHECK 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_STAT_INTEGRATED_ACT_CHECK'"NOTRANSL: Statusprüfung für PSP-Elemente (auch von extern).
EXPORTING
* CHECK_ONLY = 'X' "Only status check, no status change
* NO_POPUP = ' ' "With GET_MESSAGE = 'X', do not send query screen
* GET_MESSAGE = ' ' "Log output is required
* I_INDEX = 1 "
* I_OBJNR = ' ' "
* I_POSID = ' ' "
* I_PSPNR = '00000000' "
* I_RESET = ' ' "
I_VRGNG = "
* NO_BUFFER = ' ' "Read WBS element directly or from buffer
IMPORTING
ERROR_OCCURRED = "Indicator of Whether an Error Occurred
E_PRPS = "
WARNING_OCCURRED = "
TABLES
* E_MARKL = "
* I_PRPS = "
EXCEPTIONS
NOT_ALLOWED = 1 NOT_FOUND = 2 PSP_NOT_FOUND = 3 WRONG_INPUT = 4
IMPORTING Parameters details for PS_STAT_INTEGRATED_ACT_CHECK
CHECK_ONLY - Only status check, no status change
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_POPUP - With GET_MESSAGE = 'X', do not send query screen
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GET_MESSAGE - Log output is required
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INDEX -
Data type: SY-TABIXDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJNR -
Data type: PRPS-OBJNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_POSID -
Data type: PRPS-POSIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PSPNR -
Data type: PRPS-PSPNRDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RESET -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VRGNG -
Data type: TJ01-VRGNGOptional: No
Call by Reference: No ( called with pass by value option)
NO_BUFFER - Read WBS element directly or from buffer
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PS_STAT_INTEGRATED_ACT_CHECK
ERROR_OCCURRED - Indicator of Whether an Error Occurred
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_PRPS -
Data type: PRPSOptional: No
Call by Reference: No ( called with pass by value option)
WARNING_OCCURRED -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PS_STAT_INTEGRATED_ACT_CHECK
E_MARKL -
Data type: RCJ_MARKLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRPS -
Data type: PRPSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_ALLOWED - Transaction not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND - Operation does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PSP_NOT_FOUND - WBS element is not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INPUT - Wrong entry of the selection criteria
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PS_STAT_INTEGRATED_ACT_CHECK 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_e_markl | TYPE STANDARD TABLE OF RCJ_MARKL, " | |||
| lv_check_only | TYPE C, " 'X' | |||
| lv_not_allowed | TYPE C, " | |||
| lv_error_occurred | TYPE C, " | |||
| lv_no_popup | TYPE C, " SPACE | |||
| lv_e_prps | TYPE PRPS, " | |||
| lt_i_prps | TYPE STANDARD TABLE OF PRPS, " | |||
| lv_not_found | TYPE PRPS, " | |||
| lv_get_message | TYPE C, " SPACE | |||
| lv_i_index | TYPE SY-TABIX, " 1 | |||
| lv_psp_not_found | TYPE SY, " | |||
| lv_warning_occurred | TYPE C, " | |||
| lv_i_objnr | TYPE PRPS-OBJNR, " SPACE | |||
| lv_wrong_input | TYPE PRPS, " | |||
| lv_i_posid | TYPE PRPS-POSID, " SPACE | |||
| lv_i_pspnr | TYPE PRPS-PSPNR, " '00000000' | |||
| lv_i_reset | TYPE C, " SPACE | |||
| lv_i_vrgng | TYPE TJ01-VRGNG, " | |||
| lv_no_buffer | TYPE C. " SPACE |
|   CALL FUNCTION 'PS_STAT_INTEGRATED_ACT_CHECK' "NOTRANSL: Statusprüfung für PSP-Elemente (auch von extern) |
| EXPORTING | ||
| CHECK_ONLY | = lv_check_only | |
| NO_POPUP | = lv_no_popup | |
| GET_MESSAGE | = lv_get_message | |
| I_INDEX | = lv_i_index | |
| I_OBJNR | = lv_i_objnr | |
| I_POSID | = lv_i_posid | |
| I_PSPNR | = lv_i_pspnr | |
| I_RESET | = lv_i_reset | |
| I_VRGNG | = lv_i_vrgng | |
| NO_BUFFER | = lv_no_buffer | |
| IMPORTING | ||
| ERROR_OCCURRED | = lv_error_occurred | |
| E_PRPS | = lv_e_prps | |
| WARNING_OCCURRED | = lv_warning_occurred | |
| TABLES | ||
| E_MARKL | = lt_e_markl | |
| I_PRPS | = lt_i_prps | |
| EXCEPTIONS | ||
| NOT_ALLOWED = 1 | ||
| NOT_FOUND = 2 | ||
| PSP_NOT_FOUND = 3 | ||
| WRONG_INPUT = 4 | ||
| . " PS_STAT_INTEGRATED_ACT_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM PS_STAT_INTEGRATED_ACT_CHECK
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.| DATA(ld_check_only) | = 'X'. | |||
| DATA(ld_no_popup) | = ' '. | |||
| DATA(ld_get_message) | = ' '. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_i_index). | ||||
| DATA(ld_i_index) | = 1. | |||
| "SELECT single OBJNR FROM PRPS INTO @DATA(ld_i_objnr). | ||||
| DATA(ld_i_objnr) | = ' '. | |||
| "SELECT single POSID FROM PRPS INTO @DATA(ld_i_posid). | ||||
| DATA(ld_i_posid) | = ' '. | |||
| "SELECT single PSPNR FROM PRPS INTO @DATA(ld_i_pspnr). | ||||
| DATA(ld_i_pspnr) | = '00000000'. | |||
| DATA(ld_i_reset) | = ' '. | |||
| "SELECT single VRGNG FROM TJ01 INTO @DATA(ld_i_vrgng). | ||||
| DATA(ld_no_buffer) | = ' '. | |||
Search for further information about these or an SAP related objects