SAP K_PROJECT_SELECT Function Module for Project Selection for CO Processes (Settlement, Overhead, ...)
K_PROJECT_SELECT is a standard k project select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Project Selection for CO Processes (Settlement, Overhead, ...) 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 k project select FM, simply by entering the name K_PROJECT_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: KAOP
Program Name: SAPLKAOP
Main Program: SAPLKAOP
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_PROJECT_SELECT 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 'K_PROJECT_SELECT'"Project Selection for CO Processes (Settlement, Overhead, ...).
EXPORTING
* I_VARIANT = ' ' "Selection Variant
* I_NOSELECT = ' ' "No Selection (Determine Report/Variant only)
* I_KOKRS = ' ' "Controlling Area
* SELART = 'PR ' "
IMPORTING
E_VARIANT = "Selection Variant
E_REPORT = "Selection report
E_KOKRS = "Controlling Area
TABLES
T_OBJNR = "Object Number Table
IMPORTING Parameters details for K_PROJECT_SELECT
I_VARIANT - Selection Variant
Data type: RSVAR-VARIANTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NOSELECT - No Selection (Determine Report/Variant only)
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOKRS - Controlling Area
Data type: TKA01-KOKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELART -
Data type: KASS_SELARTDefault: 'PR '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_PROJECT_SELECT
E_VARIANT - Selection Variant
Data type: RSVAR-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
E_REPORT - Selection report
Data type: RSVAR-REPORTOptional: No
Call by Reference: No ( called with pass by value option)
E_KOKRS - Controlling Area
Data type: RKAUF-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_PROJECT_SELECT
T_OBJNR - Object Number Table
Data type: IONRBOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_PROJECT_SELECT 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_t_objnr | TYPE STANDARD TABLE OF IONRB, " | |||
| lv_e_variant | TYPE RSVAR-VARIANT, " | |||
| lv_i_variant | TYPE RSVAR-VARIANT, " SPACE | |||
| lv_e_report | TYPE RSVAR-REPORT, " | |||
| lv_i_noselect | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_e_kokrs | TYPE RKAUF-KOKRS, " | |||
| lv_i_kokrs | TYPE TKA01-KOKRS, " SPACE | |||
| lv_selart | TYPE KASS_SELART. " 'PR ' |
|   CALL FUNCTION 'K_PROJECT_SELECT' "Project Selection for CO Processes (Settlement, Overhead, ...) |
| EXPORTING | ||
| I_VARIANT | = lv_i_variant | |
| I_NOSELECT | = lv_i_noselect | |
| I_KOKRS | = lv_i_kokrs | |
| SELART | = lv_selart | |
| IMPORTING | ||
| E_VARIANT | = lv_e_variant | |
| E_REPORT | = lv_e_report | |
| E_KOKRS | = lv_e_kokrs | |
| TABLES | ||
| T_OBJNR | = lt_t_objnr | |
| . " K_PROJECT_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM K_PROJECT_SELECT
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 VARIANT FROM RSVAR INTO @DATA(ld_e_variant). | ||||
| "SELECT single VARIANT FROM RSVAR INTO @DATA(ld_i_variant). | ||||
| DATA(ld_i_variant) | = ' '. | |||
| "SELECT single REPORT FROM RSVAR INTO @DATA(ld_e_report). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_noselect). | ||||
| DATA(ld_i_noselect) | = ' '. | |||
| "SELECT single KOKRS FROM RKAUF INTO @DATA(ld_e_kokrs). | ||||
| "SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs). | ||||
| DATA(ld_i_kokrs) | = ' '. | |||
| DATA(ld_selart) | = 'PR '. | |||
Search for further information about these or an SAP related objects