SAP BAPI_COND_POST_DECRE_BALANCES Function Module for Debit/Credit Amounts and Balances for a Posting Period
BAPI_COND_POST_DECRE_BALANCES is a standard bapi cond post decre balances SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Debit/Credit Amounts and Balances for a Posting Period 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 bapi cond post decre balances FM, simply by entering the name BAPI_COND_POST_DECRE_BALANCES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FB9K
Program Name: SAPLFB9K
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_COND_POST_DECRE_BALANCES 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 'BAPI_COND_POST_DECRE_BALANCES'"Debit/Credit Amounts and Balances for a Posting Period.
EXPORTING
I_COUNTRY = "Bank Country
I_BANKKEY = "Bank Key
I_ACCOUNT = "External Account Number
I_POST_DATE_START = "Start Date of the Period
I_POST_DATE_END = "End Date of the Period
IMPORTING
E_RC = "Return Code (See Long Text)
TABLES
E_T_POST_DECRE_BAL = "Balance Table
IMPORTING Parameters details for BAPI_COND_POST_DECRE_BALANCES
I_COUNTRY - Bank Country
Data type: IBKK9_DECRE_POST-COUNTRYOptional: No
Call by Reference: No ( called with pass by value option)
I_BANKKEY - Bank Key
Data type: IBKK9_DECRE_POST-BANKKEYOptional: No
Call by Reference: No ( called with pass by value option)
I_ACCOUNT - External Account Number
Data type: IBKK9_DECRE_POST-ACCOUNTOptional: No
Call by Reference: No ( called with pass by value option)
I_POST_DATE_START - Start Date of the Period
Data type: IBKK9_DECRE_POST-POST_DATEOptional: No
Call by Reference: No ( called with pass by value option)
I_POST_DATE_END - End Date of the Period
Data type: IBKK9_DECRE_POST-POST_DATEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_COND_POST_DECRE_BALANCES
E_RC - Return Code (See Long Text)
Data type: IBKK_MISC-RC2Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_COND_POST_DECRE_BALANCES
E_T_POST_DECRE_BAL - Balance Table
Data type: IBKK9_DECRE_POSTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_COND_POST_DECRE_BALANCES 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_e_rc | TYPE IBKK_MISC-RC2, " | |||
| lv_i_country | TYPE IBKK9_DECRE_POST-COUNTRY, " | |||
| lt_e_t_post_decre_bal | TYPE STANDARD TABLE OF IBKK9_DECRE_POST, " | |||
| lv_i_bankkey | TYPE IBKK9_DECRE_POST-BANKKEY, " | |||
| lv_i_account | TYPE IBKK9_DECRE_POST-ACCOUNT, " | |||
| lv_i_post_date_start | TYPE IBKK9_DECRE_POST-POST_DATE, " | |||
| lv_i_post_date_end | TYPE IBKK9_DECRE_POST-POST_DATE. " |
|   CALL FUNCTION 'BAPI_COND_POST_DECRE_BALANCES' "Debit/Credit Amounts and Balances for a Posting Period |
| EXPORTING | ||
| I_COUNTRY | = lv_i_country | |
| I_BANKKEY | = lv_i_bankkey | |
| I_ACCOUNT | = lv_i_account | |
| I_POST_DATE_START | = lv_i_post_date_start | |
| I_POST_DATE_END | = lv_i_post_date_end | |
| IMPORTING | ||
| E_RC | = lv_e_rc | |
| TABLES | ||
| E_T_POST_DECRE_BAL | = lt_e_t_post_decre_bal | |
| . " BAPI_COND_POST_DECRE_BALANCES | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_COND_POST_DECRE_BALANCES
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 RC2 FROM IBKK_MISC INTO @DATA(ld_e_rc). | ||||
| "SELECT single COUNTRY FROM IBKK9_DECRE_POST INTO @DATA(ld_i_country). | ||||
| "SELECT single BANKKEY FROM IBKK9_DECRE_POST INTO @DATA(ld_i_bankkey). | ||||
| "SELECT single ACCOUNT FROM IBKK9_DECRE_POST INTO @DATA(ld_i_account). | ||||
| "SELECT single POST_DATE FROM IBKK9_DECRE_POST INTO @DATA(ld_i_post_date_start). | ||||
| "SELECT single POST_DATE FROM IBKK9_DECRE_POST INTO @DATA(ld_i_post_date_end). | ||||
Search for further information about these or an SAP related objects