SAP PROFITCENTER_SELECT Function Module for
PROFITCENTER_SELECT is a standard profitcenter select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 profitcenter select FM, simply by entering the name PROFITCENTER_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RKPM
Program Name: SAPLRKPM
Main Program: SAPLRKPM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PROFITCENTER_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 'PROFITCENTER_SELECT'".
EXPORTING
PROFIT_CTR = "Profit Center
CO_AREA = "Controlling Area
INACTIVE_VERSION = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* WITH_TEXT = 'X' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* TEXT_LANGUAGE = SY-LANGU "Language Key of Current Text Environment
TABLES
* ET_PRCT2 = "
* ET_CEPC_BUKRS = "Assignment of Profit Centers to a Company Code
* ET_CEPCT = "Texts for Profit Center Master Data
EXCEPTIONS
INVALID_INPUT = 1
IMPORTING Parameters details for PROFITCENTER_SELECT
PROFIT_CTR - Profit Center
Data type: PRCTROptional: No
Call by Reference: No ( called with pass by value option)
CO_AREA - Controlling Area
Data type: KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
INACTIVE_VERSION - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
WITH_TEXT - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LANGUAGE - Language Key of Current Text Environment
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PROFITCENTER_SELECT
ET_PRCT2 -
Data type: PRCT2Optional: Yes
Call by Reference: Yes
ET_CEPC_BUKRS - Assignment of Profit Centers to a Company Code
Data type: CEPC_BUKRSOptional: Yes
Call by Reference: Yes
ET_CEPCT - Texts for Profit Center Master Data
Data type: CEPCTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INVALID_INPUT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PROFITCENTER_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_et_prct2 | TYPE STANDARD TABLE OF PRCT2, " | |||
| lv_profit_ctr | TYPE PRCTR, " | |||
| lv_invalid_input | TYPE PRCTR, " | |||
| lv_co_area | TYPE KOKRS, " | |||
| lt_et_cepc_bukrs | TYPE STANDARD TABLE OF CEPC_BUKRS, " | |||
| lt_et_cepct | TYPE STANDARD TABLE OF CEPCT, " | |||
| lv_inactive_version | TYPE BOOLE_D, " | |||
| lv_with_text | TYPE BOOLE_D, " 'X' | |||
| lv_text_language | TYPE SYLANGU. " SY-LANGU |
|   CALL FUNCTION 'PROFITCENTER_SELECT' " |
| EXPORTING | ||
| PROFIT_CTR | = lv_profit_ctr | |
| CO_AREA | = lv_co_area | |
| INACTIVE_VERSION | = lv_inactive_version | |
| WITH_TEXT | = lv_with_text | |
| TEXT_LANGUAGE | = lv_text_language | |
| TABLES | ||
| ET_PRCT2 | = lt_et_prct2 | |
| ET_CEPC_BUKRS | = lt_et_cepc_bukrs | |
| ET_CEPCT | = lt_et_cepct | |
| EXCEPTIONS | ||
| INVALID_INPUT = 1 | ||
| . " PROFITCENTER_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM PROFITCENTER_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.| DATA(ld_with_text) | = 'X'. | |||
| DATA(ld_text_language) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects