SAP K_PRCTR_OBJ_SET_REPORT Function Module for
K_PRCTR_OBJ_SET_REPORT is a standard k prctr obj set report 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 k prctr obj set report FM, simply by entering the name K_PRCTR_OBJ_SET_REPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: KPRC
Program Name: SAPLKPRC
Main Program: SAPLKPRC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_PRCTR_OBJ_SET_REPORT 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_PRCTR_OBJ_SET_REPORT'".
EXPORTING
KOKRS = "
* SET = "
* COMM = "
* REPORT = "
* SETNAME = "
* TITLE = "
CHANGING
* TABL_PRCTR_OBJ = "
TABLES
COSEL = "
PRCTR_TAB = "
EXCEPTIONS
SET_ALREADY_EXISTS = 1 SETNAME_TOO_LONG = 2 NO_KOKRS = 3 SET_ERROR = 4 NO_OBJECTS_FOUND = 5
IMPORTING Parameters details for K_PRCTR_OBJ_SET_REPORT
KOKRS -
Data type: KOKRSOptional: No
Call by Reference: Yes
SET -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
COMM -
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
REPORT -
Data type: RGJNROptional: Yes
Call by Reference: Yes
SETNAME -
Data type: CHAR10Optional: Yes
Call by Reference: Yes
TITLE -
Data type: SETTEXTOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for K_PRCTR_OBJ_SET_REPORT
TABL_PRCTR_OBJ -
Data type: TAB_PRCTR_OBJOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_PRCTR_OBJ_SET_REPORT
COSEL -
Data type: COSELOptional: No
Call by Reference: Yes
PRCTR_TAB -
Data type: FAGL_RANGE_PRCTROptional: No
Call by Reference: Yes
EXCEPTIONS details
SET_ALREADY_EXISTS -
Data type:Optional: No
Call by Reference: Yes
SETNAME_TOO_LONG -
Data type:Optional: No
Call by Reference: Yes
NO_KOKRS -
Data type:Optional: No
Call by Reference: Yes
SET_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_OBJECTS_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for K_PRCTR_OBJ_SET_REPORT 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_cosel | TYPE STANDARD TABLE OF COSEL, " | |||
| lv_kokrs | TYPE KOKRS, " | |||
| lv_tabl_prctr_obj | TYPE TAB_PRCTR_OBJ, " | |||
| lv_set_already_exists | TYPE TAB_PRCTR_OBJ, " | |||
| lv_set | TYPE CHAR1, " | |||
| lt_prctr_tab | TYPE STANDARD TABLE OF FAGL_RANGE_PRCTR, " | |||
| lv_setname_too_long | TYPE FAGL_RANGE_PRCTR, " | |||
| lv_comm | TYPE BOOLE_D, " | |||
| lv_no_kokrs | TYPE BOOLE_D, " | |||
| lv_report | TYPE RGJNR, " | |||
| lv_set_error | TYPE RGJNR, " | |||
| lv_setname | TYPE CHAR10, " | |||
| lv_no_objects_found | TYPE CHAR10, " | |||
| lv_title | TYPE SETTEXT. " |
|   CALL FUNCTION 'K_PRCTR_OBJ_SET_REPORT' " |
| EXPORTING | ||
| KOKRS | = lv_kokrs | |
| SET | = lv_set | |
| COMM | = lv_comm | |
| REPORT | = lv_report | |
| SETNAME | = lv_setname | |
| TITLE | = lv_title | |
| CHANGING | ||
| TABL_PRCTR_OBJ | = lv_tabl_prctr_obj | |
| TABLES | ||
| COSEL | = lt_cosel | |
| PRCTR_TAB | = lt_prctr_tab | |
| EXCEPTIONS | ||
| SET_ALREADY_EXISTS = 1 | ||
| SETNAME_TOO_LONG = 2 | ||
| NO_KOKRS = 3 | ||
| SET_ERROR = 4 | ||
| NO_OBJECTS_FOUND = 5 | ||
| . " K_PRCTR_OBJ_SET_REPORT | ||
ABAP code using 7.40 inline data declarations to call FM K_PRCTR_OBJ_SET_REPORT
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