SAP CY01_SPLITTING_INITIALIZATION Function Module for NOTRANSL: Initialization for the definition of splits and assignment of pe









CY01_SPLITTING_INITIALIZATION is a standard cy01 splitting initialization 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: Initialization for the definition of splits and assignment of pe 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 cy01 splitting initialization FM, simply by entering the name CY01_SPLITTING_INITIALIZATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: CY18
Program Name: SAPLCY18
Main Program: SAPLCY18
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CY01_SPLITTING_INITIALIZATION 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 'CY01_SPLITTING_INITIALIZATION'"NOTRANSL: Initialization for the definition of splits and assignment of pe
EXPORTING
* CURRENT_CAPREQ_IMP = "Index to object
* DISPATCH_ALWAYS_IMP = "Dummy data element for reference structure
* CURRENT_OPERATION_IMP = "Index to object
* CURRENT_ORDER_IMP = "Index to object
* ASSIGNMENT_TO_PERSONNEL_IMP = ' ' "Dummy data element for reference structure
* ASSIGNMENT_TO_IND_CAP_IMP = ' ' "Dummy data element for reference structure
* CAPACITY_CATEGORIES_IMP = ' ' "Dummy data element for reference structures
APPLICATION_IMP = "Application that uses split logic
* OVERALL_PROFILE_IMP = ' ' "Overall profile for capacity leveling
* AKTYP_IMP = ' ' "Activity category in SAP transaction

IMPORTING
NO_INITIAL_VIEW = "Dummy data element for reference structure

EXCEPTIONS
INVALID_VALUE_FOR_CAP_CAT = 1 NO_CAPACITY_REQUIREMENTS = 2 NOTHING_SPECIFIED = 3
.



IMPORTING Parameters details for CY01_SPLITTING_INITIALIZATION

CURRENT_CAPREQ_IMP - Index to object

Data type: CYSEL_OBJ-INDEXAKT
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPATCH_ALWAYS_IMP - Dummy data element for reference structure

Data type: CYREFS-FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

CURRENT_OPERATION_IMP - Index to object

Data type: CYSEL_OBJ-INDEXAKT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CURRENT_ORDER_IMP - Index to object

Data type: CYSEL_OBJ-INDEXAKT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ASSIGNMENT_TO_PERSONNEL_IMP - Dummy data element for reference structure

Data type: CYREFS-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ASSIGNMENT_TO_IND_CAP_IMP - Dummy data element for reference structure

Data type: CYREFS-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CAPACITY_CATEGORIES_IMP - Dummy data element for reference structures

Data type: CYREFS-CHARACTER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

APPLICATION_IMP - Application that uses split logic

Data type: CYSPLTVIEW-APPL
Optional: No
Call by Reference: No ( called with pass by value option)

OVERALL_PROFILE_IMP - Overall profile for capacity leveling

Data type: TCY30-PROFILE_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AKTYP_IMP - Activity category in SAP transaction

Data type: RC27S-AKTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CY01_SPLITTING_INITIALIZATION

NO_INITIAL_VIEW - Dummy data element for reference structure

Data type: CYREFS-FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_VALUE_FOR_CAP_CAT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CAPACITY_REQUIREMENTS - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOTHING_SPECIFIED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CY01_SPLITTING_INITIALIZATION 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_no_initial_view  TYPE CYREFS-FLAG, "   
lv_current_capreq_imp  TYPE CYSEL_OBJ-INDEXAKT, "   
lv_invalid_value_for_cap_cat  TYPE CYSEL_OBJ, "   
lv_dispatch_always_imp  TYPE CYREFS-FLAG, "   
lv_current_operation_imp  TYPE CYSEL_OBJ-INDEXAKT, "   
lv_no_capacity_requirements  TYPE CYSEL_OBJ, "   
lv_current_order_imp  TYPE CYSEL_OBJ-INDEXAKT, "   
lv_nothing_specified  TYPE CYSEL_OBJ, "   
lv_assignment_to_personnel_imp  TYPE CYREFS-FLAG, "   SPACE
lv_assignment_to_ind_cap_imp  TYPE CYREFS-FLAG, "   SPACE
lv_capacity_categories_imp  TYPE CYREFS-CHARACTER, "   SPACE
lv_application_imp  TYPE CYSPLTVIEW-APPL, "   
lv_overall_profile_imp  TYPE TCY30-PROFILE_ID, "   SPACE
lv_aktyp_imp  TYPE RC27S-AKTYP. "   SPACE

  CALL FUNCTION 'CY01_SPLITTING_INITIALIZATION'  "NOTRANSL: Initialization for the definition of splits and assignment of pe
    EXPORTING
         CURRENT_CAPREQ_IMP = lv_current_capreq_imp
         DISPATCH_ALWAYS_IMP = lv_dispatch_always_imp
         CURRENT_OPERATION_IMP = lv_current_operation_imp
         CURRENT_ORDER_IMP = lv_current_order_imp
         ASSIGNMENT_TO_PERSONNEL_IMP = lv_assignment_to_personnel_imp
         ASSIGNMENT_TO_IND_CAP_IMP = lv_assignment_to_ind_cap_imp
         CAPACITY_CATEGORIES_IMP = lv_capacity_categories_imp
         APPLICATION_IMP = lv_application_imp
         OVERALL_PROFILE_IMP = lv_overall_profile_imp
         AKTYP_IMP = lv_aktyp_imp
    IMPORTING
         NO_INITIAL_VIEW = lv_no_initial_view
    EXCEPTIONS
        INVALID_VALUE_FOR_CAP_CAT = 1
        NO_CAPACITY_REQUIREMENTS = 2
        NOTHING_SPECIFIED = 3
. " CY01_SPLITTING_INITIALIZATION




ABAP code using 7.40 inline data declarations to call FM CY01_SPLITTING_INITIALIZATION

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 FLAG FROM CYREFS INTO @DATA(ld_no_initial_view).
 
"SELECT single INDEXAKT FROM CYSEL_OBJ INTO @DATA(ld_current_capreq_imp).
 
 
"SELECT single FLAG FROM CYREFS INTO @DATA(ld_dispatch_always_imp).
 
"SELECT single INDEXAKT FROM CYSEL_OBJ INTO @DATA(ld_current_operation_imp).
 
 
"SELECT single INDEXAKT FROM CYSEL_OBJ INTO @DATA(ld_current_order_imp).
 
 
"SELECT single FLAG FROM CYREFS INTO @DATA(ld_assignment_to_personnel_imp).
DATA(ld_assignment_to_personnel_imp) = ' '.
 
"SELECT single FLAG FROM CYREFS INTO @DATA(ld_assignment_to_ind_cap_imp).
DATA(ld_assignment_to_ind_cap_imp) = ' '.
 
"SELECT single CHARACTER FROM CYREFS INTO @DATA(ld_capacity_categories_imp).
DATA(ld_capacity_categories_imp) = ' '.
 
"SELECT single APPL FROM CYSPLTVIEW INTO @DATA(ld_application_imp).
 
"SELECT single PROFILE_ID FROM TCY30 INTO @DATA(ld_overall_profile_imp).
DATA(ld_overall_profile_imp) = ' '.
 
"SELECT single AKTYP FROM RC27S INTO @DATA(ld_aktyp_imp).
DATA(ld_aktyp_imp) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!