SAP FCJ_SET_BALANCE Function Module for









FCJ_SET_BALANCE is a standard fcj set balance 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 fcj set balance FM, simply by entering the name FCJ_SET_BALANCE into the relevant SAP transaction such as SE37 or SE38.

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



Function FCJ_SET_BALANCE 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 'FCJ_SET_BALANCE'"
EXPORTING
I_COMP_CODE = "
I_CAJO_NUMBER = "
* I_REC_TYPE = "
I_TIME_STAMP = "
I_CURRENCY = "
I_CLOSING_SUM = "
I_ACCOUNTANT = "
I_SARCH = "

EXCEPTIONS
ENTER_BALANCE_ERROR = 1
.



IMPORTING Parameters details for FCJ_SET_BALANCE

I_COMP_CODE -

Data type: TCJ_BALANCE-COMP_CODE
Optional: No
Call by Reference: Yes

I_CAJO_NUMBER -

Data type: TCJ_BALANCE-CAJO_NUMBER
Optional: No
Call by Reference: Yes

I_REC_TYPE -

Data type: TCJ_BALANCE-REC_TYPE
Optional: Yes
Call by Reference: Yes

I_TIME_STAMP -

Data type: TCJ_BALANCE-TIME_STAMP
Optional: No
Call by Reference: Yes

I_CURRENCY -

Data type: TCJ_BALANCE-CURRENCY
Optional: No
Call by Reference: Yes

I_CLOSING_SUM -

Data type: TCJ_BALANCE-CLOSING_SUM
Optional: No
Call by Reference: Yes

I_ACCOUNTANT -

Data type: TCJ_BALANCE-ACCOUNTANT
Optional: No
Call by Reference: Yes

I_SARCH -

Data type: TCJ_BALANCE-SARCH
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ENTER_BALANCE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FCJ_SET_BALANCE 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_comp_code  TYPE TCJ_BALANCE-COMP_CODE, "   
lv_enter_balance_error  TYPE TCJ_BALANCE, "   
lv_i_cajo_number  TYPE TCJ_BALANCE-CAJO_NUMBER, "   
lv_i_rec_type  TYPE TCJ_BALANCE-REC_TYPE, "   
lv_i_time_stamp  TYPE TCJ_BALANCE-TIME_STAMP, "   
lv_i_currency  TYPE TCJ_BALANCE-CURRENCY, "   
lv_i_closing_sum  TYPE TCJ_BALANCE-CLOSING_SUM, "   
lv_i_accountant  TYPE TCJ_BALANCE-ACCOUNTANT, "   
lv_i_sarch  TYPE TCJ_BALANCE-SARCH. "   

  CALL FUNCTION 'FCJ_SET_BALANCE'  "
    EXPORTING
         I_COMP_CODE = lv_i_comp_code
         I_CAJO_NUMBER = lv_i_cajo_number
         I_REC_TYPE = lv_i_rec_type
         I_TIME_STAMP = lv_i_time_stamp
         I_CURRENCY = lv_i_currency
         I_CLOSING_SUM = lv_i_closing_sum
         I_ACCOUNTANT = lv_i_accountant
         I_SARCH = lv_i_sarch
    EXCEPTIONS
        ENTER_BALANCE_ERROR = 1
. " FCJ_SET_BALANCE




ABAP code using 7.40 inline data declarations to call FM FCJ_SET_BALANCE

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 COMP_CODE FROM TCJ_BALANCE INTO @DATA(ld_i_comp_code).
 
 
"SELECT single CAJO_NUMBER FROM TCJ_BALANCE INTO @DATA(ld_i_cajo_number).
 
"SELECT single REC_TYPE FROM TCJ_BALANCE INTO @DATA(ld_i_rec_type).
 
"SELECT single TIME_STAMP FROM TCJ_BALANCE INTO @DATA(ld_i_time_stamp).
 
"SELECT single CURRENCY FROM TCJ_BALANCE INTO @DATA(ld_i_currency).
 
"SELECT single CLOSING_SUM FROM TCJ_BALANCE INTO @DATA(ld_i_closing_sum).
 
"SELECT single ACCOUNTANT FROM TCJ_BALANCE INTO @DATA(ld_i_accountant).
 
"SELECT single SARCH FROM TCJ_BALANCE INTO @DATA(ld_i_sarch).
 


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!