SAP KAPA_GET_PROFIDS Function Module for
KAPA_GET_PROFIDS is a standard kapa get profids 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 kapa get profids FM, simply by entering the name KAPA_GET_PROFIDS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CY20
Program Name: SAPLCY20
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KAPA_GET_PROFIDS 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 'KAPA_GET_PROFIDS'".
EXPORTING
IE_TCNT = "Project Information System: PS Info Profile
IE_TCYPT = "Texts for criteria grouping
IE_TCYD = "Profile for detailed capacity list
IE_TCYF = "Profile detailed list: Displayed fields
IE_TCYS = "Profile detailed list: Sort criteria
IE_TCYP = "Profile detailed list: Criteria grouping
IE_TCNTT = "Texts for Overall Profile in Project Info System
IE_TCYDT = "Texts for overall profile detailed list
IE_TCYFT = "Texts for displayed fields profile
IE_TCYST = "Texts for sort criteria profile
IMPORTING
IE_TCNT = "Project Information System: PS Info Profile
IE_TCYPT = "Texts for criteria grouping
E_FLG_SAVE_TCNT = "Generic Type
E_FLG_SAVE_TCYD = "Generic Type
E_FLG_SAVE_TCYF = "Generic Type
E_FLG_SAVE_TCYS = "Generic Type
E_FLG_SAVE_TCYP = "Generic Type
IE_TCYD = "Profile for detailed capacity list
IE_TCYF = "Profile detailed list: Displayed fields
IE_TCYS = "Profile detailed list: Sort criteria
IE_TCYP = "Profile detailed list: Criteria grouping
IE_TCNTT = "Texts for Overall Profile in Project Info System
IE_TCYDT = "Texts for overall profile detailed list
IE_TCYFT = "Texts for displayed fields profile
IE_TCYST = "Texts for sort criteria profile
EXCEPTIONS
NO_SAVING = 1
IMPORTING Parameters details for KAPA_GET_PROFIDS
IE_TCNT - Project Information System: PS Info Profile
Data type: TCNTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYPT - Texts for criteria grouping
Data type: TCYPTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYD - Profile for detailed capacity list
Data type: TCYDOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYF - Profile detailed list: Displayed fields
Data type: TCYFOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYS - Profile detailed list: Sort criteria
Data type: TCYSOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYP - Profile detailed list: Criteria grouping
Data type: TCYPOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCNTT - Texts for Overall Profile in Project Info System
Data type: TCNTTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYDT - Texts for overall profile detailed list
Data type: TCYDTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYFT - Texts for displayed fields profile
Data type: TCYFTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYST - Texts for sort criteria profile
Data type: TCYSTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KAPA_GET_PROFIDS
IE_TCNT - Project Information System: PS Info Profile
Data type: TCNTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYPT - Texts for criteria grouping
Data type: TCYPTOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_SAVE_TCNT - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_SAVE_TCYD - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_SAVE_TCYF - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_SAVE_TCYS - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_SAVE_TCYP - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYD - Profile for detailed capacity list
Data type: TCYDOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYF - Profile detailed list: Displayed fields
Data type: TCYFOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYS - Profile detailed list: Sort criteria
Data type: TCYSOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYP - Profile detailed list: Criteria grouping
Data type: TCYPOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCNTT - Texts for Overall Profile in Project Info System
Data type: TCNTTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYDT - Texts for overall profile detailed list
Data type: TCYDTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYFT - Texts for displayed fields profile
Data type: TCYFTOptional: No
Call by Reference: No ( called with pass by value option)
IE_TCYST - Texts for sort criteria profile
Data type: TCYSTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_SAVING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KAPA_GET_PROFIDS 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_ie_tcnt | TYPE TCNT, " | |||
| lv_ie_tcnt | TYPE TCNT, " | |||
| lv_no_saving | TYPE TCNT, " | |||
| lv_ie_tcypt | TYPE TCYPT, " | |||
| lv_ie_tcypt | TYPE TCYPT, " | |||
| lv_e_flg_save_tcnt | TYPE C, " | |||
| lv_e_flg_save_tcyd | TYPE C, " | |||
| lv_e_flg_save_tcyf | TYPE C, " | |||
| lv_e_flg_save_tcys | TYPE C, " | |||
| lv_e_flg_save_tcyp | TYPE C, " | |||
| lv_ie_tcyd | TYPE TCYD, " | |||
| lv_ie_tcyd | TYPE TCYD, " | |||
| lv_ie_tcyf | TYPE TCYF, " | |||
| lv_ie_tcyf | TYPE TCYF, " | |||
| lv_ie_tcys | TYPE TCYS, " | |||
| lv_ie_tcys | TYPE TCYS, " | |||
| lv_ie_tcyp | TYPE TCYP, " | |||
| lv_ie_tcyp | TYPE TCYP, " | |||
| lv_ie_tcntt | TYPE TCNTT, " | |||
| lv_ie_tcntt | TYPE TCNTT, " | |||
| lv_ie_tcydt | TYPE TCYDT, " | |||
| lv_ie_tcydt | TYPE TCYDT, " | |||
| lv_ie_tcyft | TYPE TCYFT, " | |||
| lv_ie_tcyft | TYPE TCYFT, " | |||
| lv_ie_tcyst | TYPE TCYST, " | |||
| lv_ie_tcyst | TYPE TCYST. " |
|   CALL FUNCTION 'KAPA_GET_PROFIDS' " |
| EXPORTING | ||
| IE_TCNT | = lv_ie_tcnt | |
| IE_TCYPT | = lv_ie_tcypt | |
| IE_TCYD | = lv_ie_tcyd | |
| IE_TCYF | = lv_ie_tcyf | |
| IE_TCYS | = lv_ie_tcys | |
| IE_TCYP | = lv_ie_tcyp | |
| IE_TCNTT | = lv_ie_tcntt | |
| IE_TCYDT | = lv_ie_tcydt | |
| IE_TCYFT | = lv_ie_tcyft | |
| IE_TCYST | = lv_ie_tcyst | |
| IMPORTING | ||
| IE_TCNT | = lv_ie_tcnt | |
| IE_TCYPT | = lv_ie_tcypt | |
| E_FLG_SAVE_TCNT | = lv_e_flg_save_tcnt | |
| E_FLG_SAVE_TCYD | = lv_e_flg_save_tcyd | |
| E_FLG_SAVE_TCYF | = lv_e_flg_save_tcyf | |
| E_FLG_SAVE_TCYS | = lv_e_flg_save_tcys | |
| E_FLG_SAVE_TCYP | = lv_e_flg_save_tcyp | |
| IE_TCYD | = lv_ie_tcyd | |
| IE_TCYF | = lv_ie_tcyf | |
| IE_TCYS | = lv_ie_tcys | |
| IE_TCYP | = lv_ie_tcyp | |
| IE_TCNTT | = lv_ie_tcntt | |
| IE_TCYDT | = lv_ie_tcydt | |
| IE_TCYFT | = lv_ie_tcyft | |
| IE_TCYST | = lv_ie_tcyst | |
| EXCEPTIONS | ||
| NO_SAVING = 1 | ||
| . " KAPA_GET_PROFIDS | ||
ABAP code using 7.40 inline data declarations to call FM KAPA_GET_PROFIDS
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.Search for further information about these or an SAP related objects