SAP FSC_SAMPLE_S782 Function Module for FI-CA: Dummy (Correspondence Request for Balance Interest Calculation)









FSC_SAMPLE_S782 is a standard fsc sample s782 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FI-CA: Dummy (Correspondence Request for Balance Interest Calculation) 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 fsc sample s782 FM, simply by entering the name FSC_SAMPLE_S782 into the relevant SAP transaction such as SE37 or SE38.

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



Function FSC_SAMPLE_S782 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 'FSC_SAMPLE_S782'"FI-CA: Dummy (Correspondence Request for Balance Interest Calculation)
EXPORTING
I_DFSCIHISTIOB = "Balance Interest Calculation by Contract Account: History (Detail)
I_FKKCOINFO = "FI-CA Correspondence - Info Structure for Corresp. Creation
I_BASICS = "Mass Activities: Global Values for All Mass Activities
I_FIKEY = "Reconciliation Key for General Ledger
I_CHGID = "Charges Schedule

IMPORTING
E_CHG_POSTED = "Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')

CHANGING
C_SUCCESS_NUM = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for FSC_SAMPLE_S782

I_DFSCIHISTIOB - Balance Interest Calculation by Contract Account: History (Detail)

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

I_FKKCOINFO - FI-CA Correspondence - Info Structure for Corresp. Creation

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

I_BASICS - Mass Activities: Global Values for All Mass Activities

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

I_FIKEY - Reconciliation Key for General Ledger

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

I_CHGID - Charges Schedule

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

EXPORTING Parameters details for FSC_SAMPLE_S782

E_CHG_POSTED - Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')

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

CHANGING Parameters details for FSC_SAMPLE_S782

C_SUCCESS_NUM -

Data type: I
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR -

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

Copy and paste ABAP code example for FSC_SAMPLE_S782 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_error  TYPE STRING, "   
lv_e_chg_posted  TYPE BOOLE-BOOLE, "   
lv_c_success_num  TYPE I, "   
lv_i_dfscihistiob  TYPE DFSCIHISTIOB, "   
lv_i_fkkcoinfo  TYPE FKKCOINFO, "   
lv_i_basics  TYPE FKK_MAD_BASICS, "   
lv_i_fikey  TYPE FKKKO-FIKEY, "   
lv_i_chgid  TYPE TFK070C-CHGID. "   

  CALL FUNCTION 'FSC_SAMPLE_S782'  "FI-CA: Dummy (Correspondence Request for Balance Interest Calculation)
    EXPORTING
         I_DFSCIHISTIOB = lv_i_dfscihistiob
         I_FKKCOINFO = lv_i_fkkcoinfo
         I_BASICS = lv_i_basics
         I_FIKEY = lv_i_fikey
         I_CHGID = lv_i_chgid
    IMPORTING
         E_CHG_POSTED = lv_e_chg_posted
    CHANGING
         C_SUCCESS_NUM = lv_c_success_num
    EXCEPTIONS
        ERROR = 1
. " FSC_SAMPLE_S782




ABAP code using 7.40 inline data declarations to call FM FSC_SAMPLE_S782

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 BOOLE FROM BOOLE INTO @DATA(ld_e_chg_posted).
 
 
 
 
 
"SELECT single FIKEY FROM FKKKO INTO @DATA(ld_i_fikey).
 
"SELECT single CHGID FROM TFK070C INTO @DATA(ld_i_chgid).
 


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!