SAP ACTIVITY_PROCESS_WITH_POPUP Function Module for NOTRANSL: Vorgangsprüfung und -durchführung mit Message-Handling und Popup
ACTIVITY_PROCESS_WITH_POPUP is a standard activity process with popup 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: Vorgangsprüfung und -durchführung mit Message-Handling und Popup 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 activity process with popup FM, simply by entering the name ACTIVITY_PROCESS_WITH_POPUP into the relevant SAP transaction such as SE37 or SE38.
Function Group: CO01
Program Name: SAPLCO01
Main Program: SAPLCO01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ACTIVITY_PROCESS_WITH_POPUP 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 'ACTIVITY_PROCESS_WITH_POPUP'"NOTRANSL: Vorgangsprüfung und -durchführung mit Message-Handling und Popup.
EXPORTING
OBJNR = "Object Number for Status Management
VRGNG = "
* CHECK_ONLY = ' ' "
* POPUP_WARNING_WHEN_ERROR = ' ' "
* SUPPRESS_WARNING = ' ' "
* RESET_MESSAGE_ID = ' ' "
IMPORTING
ACTIVITY_SUCCESS = "
ACTIVITY_NOT_ALLOWED = "
CANCELLED_BY_USER = "
IMPORTING Parameters details for ACTIVITY_PROCESS_WITH_POPUP
OBJNR - Object Number for Status Management
Data type: JSTO-OBJNROptional: No
Call by Reference: No ( called with pass by value option)
VRGNG -
Data type: TJ01-VRGNGOptional: No
Call by Reference: No ( called with pass by value option)
CHECK_ONLY -
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_WARNING_WHEN_ERROR -
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_WARNING -
Data type: IREF-IINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RESET_MESSAGE_ID -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ACTIVITY_PROCESS_WITH_POPUP
ACTIVITY_SUCCESS -
Data type: IREF-IINDOptional: No
Call by Reference: No ( called with pass by value option)
ACTIVITY_NOT_ALLOWED -
Data type: IREF-IINDOptional: No
Call by Reference: No ( called with pass by value option)
CANCELLED_BY_USER -
Data type: IREF-IINDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ACTIVITY_PROCESS_WITH_POPUP 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_objnr | TYPE JSTO-OBJNR, " | |||
| lv_activity_success | TYPE IREF-IIND, " | |||
| lv_vrgng | TYPE TJ01-VRGNG, " | |||
| lv_activity_not_allowed | TYPE IREF-IIND, " | |||
| lv_check_only | TYPE IREF-IIND, " SPACE | |||
| lv_cancelled_by_user | TYPE IREF-IIND, " | |||
| lv_popup_warning_when_error | TYPE IREF-IIND, " SPACE | |||
| lv_suppress_warning | TYPE IREF-IIND, " SPACE | |||
| lv_reset_message_id | TYPE BOOLE_D. " SPACE |
|   CALL FUNCTION 'ACTIVITY_PROCESS_WITH_POPUP' "NOTRANSL: Vorgangsprüfung und -durchführung mit Message-Handling und Popup |
| EXPORTING | ||
| OBJNR | = lv_objnr | |
| VRGNG | = lv_vrgng | |
| CHECK_ONLY | = lv_check_only | |
| POPUP_WARNING_WHEN_ERROR | = lv_popup_warning_when_error | |
| SUPPRESS_WARNING | = lv_suppress_warning | |
| RESET_MESSAGE_ID | = lv_reset_message_id | |
| IMPORTING | ||
| ACTIVITY_SUCCESS | = lv_activity_success | |
| ACTIVITY_NOT_ALLOWED | = lv_activity_not_allowed | |
| CANCELLED_BY_USER | = lv_cancelled_by_user | |
| . " ACTIVITY_PROCESS_WITH_POPUP | ||
ABAP code using 7.40 inline data declarations to call FM ACTIVITY_PROCESS_WITH_POPUP
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 OBJNR FROM JSTO INTO @DATA(ld_objnr). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_activity_success). | ||||
| "SELECT single VRGNG FROM TJ01 INTO @DATA(ld_vrgng). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_activity_not_allowed). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_check_only). | ||||
| DATA(ld_check_only) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_cancelled_by_user). | ||||
| "SELECT single IIND FROM IREF INTO @DATA(ld_popup_warning_when_error). | ||||
| DATA(ld_popup_warning_when_error) | = ' '. | |||
| "SELECT single IIND FROM IREF INTO @DATA(ld_suppress_warning). | ||||
| DATA(ld_suppress_warning) | = ' '. | |||
| DATA(ld_reset_message_id) | = ' '. | |||
Search for further information about these or an SAP related objects