SAP BCA_US_CHANGE_ACCOUNT_STATUS Function Module for Change Account Status









BCA_US_CHANGE_ACCOUNT_STATUS is a standard bca us change account status 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 Status 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 status FM, simply by entering the name BCA_US_CHANGE_ACCOUNT_STATUS 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_STATUS 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_STATUS'"Change Account Status
EXPORTING
I_BKKRS = "Bank Area
I_ACNUM_INT = "Internal account number for current account
I_ACNUM_EXT = "Account number for current account
* I_STATUS = "Account status enhancement
* I_DELDATE = "Date account closed
* I_LOCAL = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* I_COUNTRY = "Bank country key
* I_REGION = "Region (State, Province, County)

EXCEPTIONS
NO_UPDATE = 1
.



IMPORTING Parameters details for BCA_US_CHANGE_ACCOUNT_STATUS

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: No
Call by Reference: Yes

I_ACNUM_EXT - Account number for current account

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

I_STATUS - Account status enhancement

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

I_DELDATE - Date account closed

Data type: BKK40-DELDATE
Optional: Yes
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

I_COUNTRY - Bank country key

Data type: TBKK01-BANKS
Optional: Yes
Call by Reference: Yes

I_REGION - Region (State, Province, County)

Data type: ADRC-REGION
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_UPDATE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BCA_US_CHANGE_ACCOUNT_STATUS 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_status  TYPE BKK40-STATUS_ADD, "   
lv_i_deldate  TYPE BKK40-DELDATE, "   
lv_i_local  TYPE BOOLE-BOOLE, "   
lv_i_country  TYPE TBKK01-BANKS, "   
lv_i_region  TYPE ADRC-REGION. "   

  CALL FUNCTION 'BCA_US_CHANGE_ACCOUNT_STATUS'  "Change Account Status
    EXPORTING
         I_BKKRS = lv_i_bkkrs
         I_ACNUM_INT = lv_i_acnum_int
         I_ACNUM_EXT = lv_i_acnum_ext
         I_STATUS = lv_i_status
         I_DELDATE = lv_i_deldate
         I_LOCAL = lv_i_local
         I_COUNTRY = lv_i_country
         I_REGION = lv_i_region
    EXCEPTIONS
        NO_UPDATE = 1
. " BCA_US_CHANGE_ACCOUNT_STATUS




ABAP code using 7.40 inline data declarations to call FM BCA_US_CHANGE_ACCOUNT_STATUS

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 STATUS_ADD FROM BKK40 INTO @DATA(ld_i_status).
 
"SELECT single DELDATE FROM BKK40 INTO @DATA(ld_i_deldate).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_local).
 
"SELECT single BANKS FROM TBKK01 INTO @DATA(ld_i_country).
 
"SELECT single REGION FROM ADRC INTO @DATA(ld_i_region).
 


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!