SAP BCA_US_CHANGE_ACCOUNT_CLOSE Function Module for Change Account for Close









BCA_US_CHANGE_ACCOUNT_CLOSE is a standard bca us change account close SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Account for Close 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 bca us change account close FM, simply by entering the name BCA_US_CHANGE_ACCOUNT_CLOSE into the relevant SAP transaction such as SE37 or SE38.

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



Function BCA_US_CHANGE_ACCOUNT_CLOSE 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 'BCA_US_CHANGE_ACCOUNT_CLOSE'"Change Account for Close
EXPORTING
I_BKKRS = "Bank Area
* I_ACNUM_INT = "Internal account number for current account
I_ACNUM_EXT = "Account number for current account
I_POSTDATE = "Date and time, current (application server) date
* I_LOCAL = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

EXCEPTIONS
NO_UPDATE = 1
.



IMPORTING Parameters details for BCA_US_CHANGE_ACCOUNT_CLOSE

I_BKKRS - Bank Area

Data type: BKK40-BKKRS
Optional: No
Call by Reference: Yes

I_ACNUM_INT - Internal account number for current account

Data type: BKK40-ACNUM_INT
Optional: Yes
Call by Reference: Yes

I_ACNUM_EXT - Account number for current account

Data type: BKK42-ACNUM_EXT
Optional: No
Call by Reference: Yes

I_POSTDATE - Date and time, current (application server) date

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

I_LOCAL - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_UPDATE -

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

Copy and paste ABAP code example for BCA_US_CHANGE_ACCOUNT_CLOSE 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_i_bkkrs  TYPE BKK40-BKKRS, "   
lv_no_update  TYPE BKK40, "   
lv_i_acnum_int  TYPE BKK40-ACNUM_INT, "   
lv_i_acnum_ext  TYPE BKK42-ACNUM_EXT, "   
lv_i_postdate  TYPE SY-DATUM, "   
lv_i_local  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'BCA_US_CHANGE_ACCOUNT_CLOSE'  "Change Account for Close
    EXPORTING
         I_BKKRS = lv_i_bkkrs
         I_ACNUM_INT = lv_i_acnum_int
         I_ACNUM_EXT = lv_i_acnum_ext
         I_POSTDATE = lv_i_postdate
         I_LOCAL = lv_i_local
    EXCEPTIONS
        NO_UPDATE = 1
. " BCA_US_CHANGE_ACCOUNT_CLOSE




ABAP code using 7.40 inline data declarations to call FM BCA_US_CHANGE_ACCOUNT_CLOSE

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 BKKRS FROM BKK40 INTO @DATA(ld_i_bkkrs).
 
 
"SELECT single ACNUM_INT FROM BKK40 INTO @DATA(ld_i_acnum_int).
 
"SELECT single ACNUM_EXT FROM BKK42 INTO @DATA(ld_i_acnum_ext).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_postdate).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_local).
 


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!