SAP /SAPAPO/DM_CBF_ROUNDING Function Module for Round the Time Series Values in Chars-Based Forecasting
/SAPAPO/DM_CBF_ROUNDING is a standard /sapapo/dm cbf rounding SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Round the Time Series Values in Chars-Based Forecasting 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 /sapapo/dm cbf rounding FM, simply by entering the name /SAPAPO/DM_CBF_ROUNDING into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_CHAR_VAL_SEL
Program Name: /SAPAPO/SAPLDM_CHAR_VAL_SEL
Main Program: /SAPAPO/SAPLDM_CHAR_VAL_SEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_CBF_ROUNDING 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 '/SAPAPO/DM_CBF_ROUNDING'"Round the Time Series Values in Chars-Based Forecasting.
EXPORTING
IT_LINES = "Tabellentyp: Externer Zeilenindex Planungsmatrix
IT_COLS = "Tabellentyp: Externer Spaltenindex Planungsmatrix
IT_PLOB_VALUES = "Tabelle von Merkmalsausprägungen zum Plob
* IV_PARAMT = '0.001' "Wert Matrixelement
CHANGING
CT_TAB = "Tabellentyp: Planungsmatrix extern
EXCEPTIONS
INVALID_DATA_STATUS = 1 INVALID_ROUNDING = 2
IMPORTING Parameters details for /SAPAPO/DM_CBF_ROUNDING
IT_LINES - Tabellentyp: Externer Zeilenindex Planungsmatrix
Data type: /SAPAPO/TS_LINES_EXT_TABOptional: No
Call by Reference: Yes
IT_COLS - Tabellentyp: Externer Spaltenindex Planungsmatrix
Data type: /SAPAPO/TS_COLS_EXT_TABOptional: No
Call by Reference: Yes
IT_PLOB_VALUES - Tabelle von Merkmalsausprägungen zum Plob
Data type: /SAPAPO/TS_PLOB_VALUES_TABOptional: No
Call by Reference: Yes
IV_PARAMT - Wert Matrixelement
Data type: /SAPAPO/MXVALDefault: '0.001'
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for /SAPAPO/DM_CBF_ROUNDING
CT_TAB - Tabellentyp: Planungsmatrix extern
Data type: /SAPAPO/TS_TAB_EXT_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_DATA_STATUS -
Data type:Optional: No
Call by Reference: Yes
INVALID_ROUNDING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_CBF_ROUNDING 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_ct_tab | TYPE /SAPAPO/TS_TAB_EXT_TAB, " | |||
| lv_it_lines | TYPE /SAPAPO/TS_LINES_EXT_TAB, " | |||
| lv_invalid_data_status | TYPE /SAPAPO/TS_LINES_EXT_TAB, " | |||
| lv_it_cols | TYPE /SAPAPO/TS_COLS_EXT_TAB, " | |||
| lv_invalid_rounding | TYPE /SAPAPO/TS_COLS_EXT_TAB, " | |||
| lv_it_plob_values | TYPE /SAPAPO/TS_PLOB_VALUES_TAB, " | |||
| lv_iv_paramt | TYPE /SAPAPO/MXVAL. " '0.001' |
|   CALL FUNCTION '/SAPAPO/DM_CBF_ROUNDING' "Round the Time Series Values in Chars-Based Forecasting |
| EXPORTING | ||
| IT_LINES | = lv_it_lines | |
| IT_COLS | = lv_it_cols | |
| IT_PLOB_VALUES | = lv_it_plob_values | |
| IV_PARAMT | = lv_iv_paramt | |
| CHANGING | ||
| CT_TAB | = lv_ct_tab | |
| EXCEPTIONS | ||
| INVALID_DATA_STATUS = 1 | ||
| INVALID_ROUNDING = 2 | ||
| . " /SAPAPO/DM_CBF_ROUNDING | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_CBF_ROUNDING
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.| DATA(ld_iv_paramt) | = '0.001'. | |||
Search for further information about these or an SAP related objects