SAP CJHX_OBJECTS_OF_AREA Function Module for NOTRANSL: Kontierungsinformation zu PSP-Elementen eines Bukrs/Kokrs
CJHX_OBJECTS_OF_AREA is a standard cjhx objects of area 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: Kontierungsinformation zu PSP-Elementen eines Bukrs/Kokrs 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 cjhx objects of area FM, simply by entering the name CJHX_OBJECTS_OF_AREA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CJHX
Program Name: SAPLCJHX
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CJHX_OBJECTS_OF_AREA 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 'CJHX_OBJECTS_OF_AREA'"NOTRANSL: Kontierungsinformation zu PSP-Elementen eines Bukrs/Kokrs.
EXPORTING
* BUKRS = ' ' "Company Code
* KOKRS = ' ' "Controlling Area
* ONLY_PLINT = ' ' "Indicator for Integrated Planning
* CHECK_PLAN_VALUES = ' ' "Selection flag
* VERSN = '000' "Version
* GJAHR = "Fiscal Year
IMPORTING
PLAN_VALUES_FOUND = "Selection flag
TABLES
* T_COIOB = "Conversion of Object Number and Object Data
* T_PERIODS = "Period structure
IMPORTING Parameters details for CJHX_OBJECTS_OF_AREA
BUKRS - Company Code
Data type: T001-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOKRS - Controlling Area
Data type: TKA01-KOKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_PLINT - Indicator for Integrated Planning
Data type: PRPS-PLINTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_PLAN_VALUES - Selection flag
Data type: RCWBS-SEL01Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSN - Version
Data type: COSP-VERSNDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GJAHR - Fiscal Year
Data type: COSP-GJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CJHX_OBJECTS_OF_AREA
PLAN_VALUES_FOUND - Selection flag
Data type: RCWBS-SEL01Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CJHX_OBJECTS_OF_AREA
T_COIOB - Conversion of Object Number and Object Data
Data type: COIOBOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PERIODS - Period structure
Data type: PERIODSOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CJHX_OBJECTS_OF_AREA 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_bukrs | TYPE T001-BUKRS, " SPACE | |||
| lt_t_coiob | TYPE STANDARD TABLE OF COIOB, " | |||
| lv_plan_values_found | TYPE RCWBS-SEL01, " | |||
| lv_kokrs | TYPE TKA01-KOKRS, " SPACE | |||
| lt_t_periods | TYPE STANDARD TABLE OF PERIODS, " | |||
| lv_only_plint | TYPE PRPS-PLINT, " SPACE | |||
| lv_check_plan_values | TYPE RCWBS-SEL01, " SPACE | |||
| lv_versn | TYPE COSP-VERSN, " '000' | |||
| lv_gjahr | TYPE COSP-GJAHR. " |
|   CALL FUNCTION 'CJHX_OBJECTS_OF_AREA' "NOTRANSL: Kontierungsinformation zu PSP-Elementen eines Bukrs/Kokrs |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| KOKRS | = lv_kokrs | |
| ONLY_PLINT | = lv_only_plint | |
| CHECK_PLAN_VALUES | = lv_check_plan_values | |
| VERSN | = lv_versn | |
| GJAHR | = lv_gjahr | |
| IMPORTING | ||
| PLAN_VALUES_FOUND | = lv_plan_values_found | |
| TABLES | ||
| T_COIOB | = lt_t_coiob | |
| T_PERIODS | = lt_t_periods | |
| . " CJHX_OBJECTS_OF_AREA | ||
ABAP code using 7.40 inline data declarations to call FM CJHX_OBJECTS_OF_AREA
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 BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| DATA(ld_bukrs) | = ' '. | |||
| "SELECT single SEL01 FROM RCWBS INTO @DATA(ld_plan_values_found). | ||||
| "SELECT single KOKRS FROM TKA01 INTO @DATA(ld_kokrs). | ||||
| DATA(ld_kokrs) | = ' '. | |||
| "SELECT single PLINT FROM PRPS INTO @DATA(ld_only_plint). | ||||
| DATA(ld_only_plint) | = ' '. | |||
| "SELECT single SEL01 FROM RCWBS INTO @DATA(ld_check_plan_values). | ||||
| DATA(ld_check_plan_values) | = ' '. | |||
| "SELECT single VERSN FROM COSP INTO @DATA(ld_versn). | ||||
| DATA(ld_versn) | = '000'. | |||
| "SELECT single GJAHR FROM COSP INTO @DATA(ld_gjahr). | ||||
Search for further information about these or an SAP related objects