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

Function RKD_REPORT_DIVIDE 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 'RKD_REPORT_DIVIDE'".
EXPORTING
* I_COMMIT_WORK = 'X' "
* I_EXPORT_FLAG = 'X' "
I_DIVISION_RULE = "
IMPORTING
E_RKB1D_RECEIVE = "
E_REPORT_RECEIVE = "
CHANGING
C_RKB1D_SEND = "
C_REPORT_SEND = "
EXCEPTIONS
DIVISION_RULE_NOT_SUPPORTED = 1 EXISTING_RECEIVER_REPORT = 2 SENSELESS_DIVISION_RULE = 3 INSERT_NOT_POSSIBLE = 4
IMPORTING Parameters details for RKD_REPORT_DIVIDE
I_COMMIT_WORK -
Data type: CCVALID-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_EXPORT_FLAG -
Data type: CCVALID-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DIVISION_RULE -
Data type: RKD5_SC_DIVISION_RULEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RKD_REPORT_DIVIDE
E_RKB1D_RECEIVE -
Data type: RKB1DOptional: No
Call by Reference: No ( called with pass by value option)
E_REPORT_RECEIVE -
Data type: RKD_SC_REPORTOptional: No
Call by Reference: Yes
CHANGING Parameters details for RKD_REPORT_DIVIDE
C_RKB1D_SEND -
Data type: RKB1DOptional: No
Call by Reference: No ( called with pass by value option)
C_REPORT_SEND -
Data type: RKD_SC_REPORTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DIVISION_RULE_NOT_SUPPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXISTING_RECEIVER_REPORT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SENSELESS_DIVISION_RULE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INSERT_NOT_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKD_REPORT_DIVIDE 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_c_rkb1d_send | TYPE RKB1D, " | |||
| lv_i_commit_work | TYPE CCVALID-XFELD, " 'X' | |||
| lv_e_rkb1d_receive | TYPE RKB1D, " | |||
| lv_division_rule_not_supported | TYPE RKB1D, " | |||
| lv_c_report_send | TYPE RKD_SC_REPORT, " | |||
| lv_i_export_flag | TYPE CCVALID-XFELD, " 'X' | |||
| lv_e_report_receive | TYPE RKD_SC_REPORT, " | |||
| lv_existing_receiver_report | TYPE RKD_SC_REPORT, " | |||
| lv_i_division_rule | TYPE RKD5_SC_DIVISION_RULE, " | |||
| lv_senseless_division_rule | TYPE RKD5_SC_DIVISION_RULE, " | |||
| lv_insert_not_possible | TYPE RKD5_SC_DIVISION_RULE. " |
|   CALL FUNCTION 'RKD_REPORT_DIVIDE' " |
| EXPORTING | ||
| I_COMMIT_WORK | = lv_i_commit_work | |
| I_EXPORT_FLAG | = lv_i_export_flag | |
| I_DIVISION_RULE | = lv_i_division_rule | |
| IMPORTING | ||
| E_RKB1D_RECEIVE | = lv_e_rkb1d_receive | |
| E_REPORT_RECEIVE | = lv_e_report_receive | |
| CHANGING | ||
| C_RKB1D_SEND | = lv_c_rkb1d_send | |
| C_REPORT_SEND | = lv_c_report_send | |
| EXCEPTIONS | ||
| DIVISION_RULE_NOT_SUPPORTED = 1 | ||
| EXISTING_RECEIVER_REPORT = 2 | ||
| SENSELESS_DIVISION_RULE = 3 | ||
| INSERT_NOT_POSSIBLE = 4 | ||
| . " RKD_REPORT_DIVIDE | ||
ABAP code using 7.40 inline data declarations to call FM RKD_REPORT_DIVIDE
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 XFELD FROM CCVALID INTO @DATA(ld_i_commit_work). | ||||
| DATA(ld_i_commit_work) | = 'X'. | |||
| "SELECT single XFELD FROM CCVALID INTO @DATA(ld_i_export_flag). | ||||
| DATA(ld_i_export_flag) | = 'X'. | |||
Search for further information about these or an SAP related objects