SAP PSBW_SELECT_MILESTONE Function Module for NOTRANSL: PSBW: Selektion Meilenstein/-termine
PSBW_SELECT_MILESTONE is a standard psbw select milestone 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: PSBW: Selektion Meilenstein/-termine 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 psbw select milestone FM, simply by entering the name PSBW_SELECT_MILESTONE into the relevant SAP transaction such as SE37 or SE38.
Function Group: PSBF
Program Name: SAPLPSBF
Main Program: SAPLPSBF
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PSBW_SELECT_MILESTONE 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 'PSBW_SELECT_MILESTONE'"NOTRANSL: PSBW: Selektion Meilenstein/-termine.
EXPORTING
* I_MAX_SIZE = "
* I_READ_ADD_DATA = ' ' "Generic Type
* I_UPDMODE = SBIWA_C_UPDMODE_FULL "
IMPORTING
E_T_MLST_SELECT = "
E_T_MLTX_SELECT = "
CHANGING
C_COUNT_DATAPAK_ID = "
TABLES
I_T_SEL_TAB = "
I_T_PSP_FIELDS = "
I_T_VOR_FIELDS = "
EXCEPTIONS
NO_MORE_DATA = 1 UPDMODE_UNKNOWN = 2
IMPORTING Parameters details for PSBW_SELECT_MILESTONE
I_MAX_SIZE -
Data type: SBIWA_S_INTERFACE-MAXSIZEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_ADD_DATA - Generic Type
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UPDMODE -
Data type: SBIWA_S_INTERFACE-UPDMODEDefault: SBIWA_C_UPDMODE_FULL
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PSBW_SELECT_MILESTONE
E_T_MLST_SELECT -
Data type: PSBF_T_BIW_MLSTOptional: No
Call by Reference: Yes
E_T_MLTX_SELECT -
Data type: PSBF_T_BIW_MLTXOptional: No
Call by Reference: Yes
CHANGING Parameters details for PSBW_SELECT_MILESTONE
C_COUNT_DATAPAK_ID -
Data type: SBIWA_S_INTERFACE-DATAPAKIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PSBW_SELECT_MILESTONE
I_T_SEL_TAB -
Data type: SBIWA_T_SELECTOptional: No
Call by Reference: No ( called with pass by value option)
I_T_PSP_FIELDS -
Data type: SBIWA_T_FIELDSOptional: No
Call by Reference: No ( called with pass by value option)
I_T_VOR_FIELDS -
Data type: SBIWA_T_FIELDSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MORE_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UPDMODE_UNKNOWN - 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 PSBW_SELECT_MILESTONE 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_i_max_size | TYPE SBIWA_S_INTERFACE-MAXSIZE, " | |||
| lt_i_t_sel_tab | TYPE STANDARD TABLE OF SBIWA_T_SELECT, " | |||
| lv_no_more_data | TYPE SBIWA_T_SELECT, " | |||
| lv_e_t_mlst_select | TYPE PSBF_T_BIW_MLST, " | |||
| lv_c_count_datapak_id | TYPE SBIWA_S_INTERFACE-DATAPAKID, " | |||
| lt_i_t_psp_fields | TYPE STANDARD TABLE OF SBIWA_T_FIELDS, " | |||
| lv_e_t_mltx_select | TYPE PSBF_T_BIW_MLTX, " | |||
| lv_i_read_add_data | TYPE C, " SPACE | |||
| lv_updmode_unknown | TYPE C, " | |||
| lv_i_updmode | TYPE SBIWA_S_INTERFACE-UPDMODE, " SBIWA_C_UPDMODE_FULL | |||
| lt_i_t_vor_fields | TYPE STANDARD TABLE OF SBIWA_T_FIELDS. " |
|   CALL FUNCTION 'PSBW_SELECT_MILESTONE' "NOTRANSL: PSBW: Selektion Meilenstein/-termine |
| EXPORTING | ||
| I_MAX_SIZE | = lv_i_max_size | |
| I_READ_ADD_DATA | = lv_i_read_add_data | |
| I_UPDMODE | = lv_i_updmode | |
| IMPORTING | ||
| E_T_MLST_SELECT | = lv_e_t_mlst_select | |
| E_T_MLTX_SELECT | = lv_e_t_mltx_select | |
| CHANGING | ||
| C_COUNT_DATAPAK_ID | = lv_c_count_datapak_id | |
| TABLES | ||
| I_T_SEL_TAB | = lt_i_t_sel_tab | |
| I_T_PSP_FIELDS | = lt_i_t_psp_fields | |
| I_T_VOR_FIELDS | = lt_i_t_vor_fields | |
| EXCEPTIONS | ||
| NO_MORE_DATA = 1 | ||
| UPDMODE_UNKNOWN = 2 | ||
| . " PSBW_SELECT_MILESTONE | ||
ABAP code using 7.40 inline data declarations to call FM PSBW_SELECT_MILESTONE
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 MAXSIZE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_max_size). | ||||
| "SELECT single DATAPAKID FROM SBIWA_S_INTERFACE INTO @DATA(ld_c_count_datapak_id). | ||||
| DATA(ld_i_read_add_data) | = ' '. | |||
| "SELECT single UPDMODE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_updmode). | ||||
| DATA(ld_i_updmode) | = SBIWA_C_UPDMODE_FULL. | |||
Search for further information about these or an SAP related objects