SAP PAKETE_WINDOW2 Function Module for NOTRANSL: Window aller moeglichen Strategiepakete
PAKETE_WINDOW2 is a standard pakete window2 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: Window aller moeglichen Strategiepakete 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 pakete window2 FM, simply by entering the name PAKETE_WINDOW2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPM5
Program Name: SAPLIPM5
Main Program: SAPLIPM5
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PAKETE_WINDOW2 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 'PAKETE_WINDOW2'"NOTRANSL: Window aller moeglichen Strategiepakete.
EXPORTING
* OPERATION_NR = ' ' "Transaction number for maintenance package allocation
STRAT = "Strategy from routing header
* TERMA = ' ' "Indicator whether access via routing
* TREFFER = ' ' "
TABLES
VERW_PAK = "
* WP_TAB = "Table with selection result
EXCEPTIONS
PROCESS_CANCELED = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIPM5_001 Planned Date for Task List Counter Reading (Individual Forecast)
EXIT_SAPLIPM5_002 Determination of Planned Date for Time-Based Maintenance Plans
IMPORTING Parameters details for PAKETE_WINDOW2
OPERATION_NR - Transaction number for maintenance package allocation
Data type: PLPOD-VORNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STRAT - Strategy from routing header
Data type: MPLA-STRATOptional: No
Call by Reference: No ( called with pass by value option)
TERMA - Indicator whether access via routing
Data type: MHIS-TERMADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TREFFER -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PAKETE_WINDOW2
VERW_PAK -
Data type: T351POptional: No
Call by Reference: No ( called with pass by value option)
WP_TAB - Table with selection result
Data type: T351XOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PROCESS_CANCELED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PAKETE_WINDOW2 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_verw_pak | TYPE STANDARD TABLE OF T351P, " | |||
| lv_operation_nr | TYPE PLPOD-VORNR, " SPACE | |||
| lv_process_canceled | TYPE PLPOD, " | |||
| lv_strat | TYPE MPLA-STRAT, " | |||
| lt_wp_tab | TYPE STANDARD TABLE OF T351X, " | |||
| lv_terma | TYPE MHIS-TERMA, " SPACE | |||
| lv_treffer | TYPE MHIS. " SPACE |
|   CALL FUNCTION 'PAKETE_WINDOW2' "NOTRANSL: Window aller moeglichen Strategiepakete |
| EXPORTING | ||
| OPERATION_NR | = lv_operation_nr | |
| STRAT | = lv_strat | |
| TERMA | = lv_terma | |
| TREFFER | = lv_treffer | |
| TABLES | ||
| VERW_PAK | = lt_verw_pak | |
| WP_TAB | = lt_wp_tab | |
| EXCEPTIONS | ||
| PROCESS_CANCELED = 1 | ||
| . " PAKETE_WINDOW2 | ||
ABAP code using 7.40 inline data declarations to call FM PAKETE_WINDOW2
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 VORNR FROM PLPOD INTO @DATA(ld_operation_nr). | ||||
| DATA(ld_operation_nr) | = ' '. | |||
| "SELECT single STRAT FROM MPLA INTO @DATA(ld_strat). | ||||
| "SELECT single TERMA FROM MHIS INTO @DATA(ld_terma). | ||||
| DATA(ld_terma) | = ' '. | |||
| DATA(ld_treffer) | = ' '. | |||
Search for further information about these or an SAP related objects