SAP FSCD_SAMPLE_1231 Function Module for FS-CD: Account Balance (SAP Biller Direct), Create Invoices from Items
FSCD_SAMPLE_1231 is a standard fscd sample 1231 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FS-CD: Account Balance (SAP Biller Direct), Create Invoices from Items 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 fscd sample 1231 FM, simply by entering the name FSCD_SAMPLE_1231 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FSCD_EBPP
Program Name: SAPLFSCD_EBPP
Main Program: SAPLFSCD_EBPP
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FSCD_SAMPLE_1231 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 'FSCD_SAMPLE_1231'"FS-CD: Account Balance (SAP Biller Direct), Create Invoices from Items.
EXPORTING
* I_GETDATACONTROL = "FSCM Biller Direct: Check Data
IMPORTING
E_CONTROLDATA = "Biller Direct: Control Information for Event 1231
TABLES
T_ITEMS = "FSCM Biller Direct: Item Data
T_INVOICES = "FSCM Biller Direct: Bill Data
T_ALLOCATION = "
* T_MYPAYMENTS = "Biller Direct: My Payments
* T_PAYALLOCATION = "Biller Direct: Payment Data/Bill Data Assignment
* T_PAYEXPLANATION = "Biller Direct: Payment Explanation (G/L Items)
* T_ITEM_TOTALS = "
* T_DOCUMENT_TOTALS = "
IMPORTING Parameters details for FSCD_SAMPLE_1231
I_GETDATACONTROL - FSCM Biller Direct: Check Data
Data type: FKKEBPP_CONTROLOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FSCD_SAMPLE_1231
E_CONTROLDATA - Biller Direct: Control Information for Event 1231
Data type: FKKEBPP_1231Optional: No
Call by Reference: Yes
TABLES Parameters details for FSCD_SAMPLE_1231
T_ITEMS - FSCM Biller Direct: Item Data
Data type: FKKEBPP_ITEMOptional: No
Call by Reference: No ( called with pass by value option)
T_INVOICES - FSCM Biller Direct: Bill Data
Data type: FKKEBPP_INVOICEOptional: No
Call by Reference: No ( called with pass by value option)
T_ALLOCATION -
Data type: FKKEBPP_ALLOCATIONOptional: No
Call by Reference: No ( called with pass by value option)
T_MYPAYMENTS - Biller Direct: My Payments
Data type: FKKEBPP_MYPAYMENTSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PAYALLOCATION - Biller Direct: Payment Data/Bill Data Assignment
Data type: FKKEBPP_PAYALLOCATIONOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PAYEXPLANATION - Biller Direct: Payment Explanation (G/L Items)
Data type: FKKEBPP_PAYEXPLANATIONOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ITEM_TOTALS -
Data type: FKKEBPP_TOTAMOptional: Yes
Call by Reference: Yes
T_DOCUMENT_TOTALS -
Data type: FKKEBPP_TOTDMOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FSCD_SAMPLE_1231 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: | ||||
| lt_t_items | TYPE STANDARD TABLE OF FKKEBPP_ITEM, " | |||
| lv_e_controldata | TYPE FKKEBPP_1231, " | |||
| lv_i_getdatacontrol | TYPE FKKEBPP_CONTROL, " | |||
| lt_t_invoices | TYPE STANDARD TABLE OF FKKEBPP_INVOICE, " | |||
| lt_t_allocation | TYPE STANDARD TABLE OF FKKEBPP_ALLOCATION, " | |||
| lt_t_mypayments | TYPE STANDARD TABLE OF FKKEBPP_MYPAYMENTS, " | |||
| lt_t_payallocation | TYPE STANDARD TABLE OF FKKEBPP_PAYALLOCATION, " | |||
| lt_t_payexplanation | TYPE STANDARD TABLE OF FKKEBPP_PAYEXPLANATION, " | |||
| lt_t_item_totals | TYPE STANDARD TABLE OF FKKEBPP_TOTAM, " | |||
| lt_t_document_totals | TYPE STANDARD TABLE OF FKKEBPP_TOTDM. " |
|   CALL FUNCTION 'FSCD_SAMPLE_1231' "FS-CD: Account Balance (SAP Biller Direct), Create Invoices from Items |
| EXPORTING | ||
| I_GETDATACONTROL | = lv_i_getdatacontrol | |
| IMPORTING | ||
| E_CONTROLDATA | = lv_e_controldata | |
| TABLES | ||
| T_ITEMS | = lt_t_items | |
| T_INVOICES | = lt_t_invoices | |
| T_ALLOCATION | = lt_t_allocation | |
| T_MYPAYMENTS | = lt_t_mypayments | |
| T_PAYALLOCATION | = lt_t_payallocation | |
| T_PAYEXPLANATION | = lt_t_payexplanation | |
| T_ITEM_TOTALS | = lt_t_item_totals | |
| T_DOCUMENT_TOTALS | = lt_t_document_totals | |
| . " FSCD_SAMPLE_1231 | ||
ABAP code using 7.40 inline data declarations to call FM FSCD_SAMPLE_1231
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.Search for further information about these or an SAP related objects