SAP FM_CO_TRANSFER_SIM_TO_BUFFER Function Module for NOTRANSL: Simulation PS-Cash Transfer
FM_CO_TRANSFER_SIM_TO_BUFFER is a standard fm co transfer sim to buffer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Simulation PS-Cash Transfer 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 fm co transfer sim to buffer FM, simply by entering the name FM_CO_TRANSFER_SIM_TO_BUFFER into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMPR
Program Name: SAPLFMPR
Main Program: SAPLFMPR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_CO_TRANSFER_SIM_TO_BUFFER 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 'FM_CO_TRANSFER_SIM_TO_BUFFER'"NOTRANSL: Simulation PS-Cash Transfer.
EXPORTING
* P_REFRESH = ' ' "
* P_RETRIEVE = ' ' "
* I_FLG_NO_INS = ' ' "
* I_FLG_DELETE_ITEMS = ' ' "
* I_FLG_UPD_ITEMS = ' ' "
* I_FLG_NO_DEL_COBK = ' ' "
CHANGING
* P_SIM = ' ' "
* P_DEBUG = ' ' "
* P_TEST = ' ' "
TABLES
* COFP_NEW = "
* BKPF_DB = "
* EKKO_DB = "
* COBK_NEW = "
* COFP_OLD = "Document Lines (project cash management)
* COFP_SIM = "
* COBK_SIM = "
* DOC_COLL = "
* COFP_DB = "
* COBK_DB = "
* BSEG_DB = "
IMPORTING Parameters details for FM_CO_TRANSFER_SIM_TO_BUFFER
P_REFRESH -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
P_RETRIEVE -
Data type: FLAGDefault: SPACE
Optional: No
Call by Reference: Yes
I_FLG_NO_INS -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_DELETE_ITEMS -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_UPD_ITEMS -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_NO_DEL_COBK -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for FM_CO_TRANSFER_SIM_TO_BUFFER
P_SIM -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_DEBUG -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_TEST -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FM_CO_TRANSFER_SIM_TO_BUFFER
COFP_NEW -
Data type: COFPOptional: Yes
Call by Reference: Yes
BKPF_DB -
Data type: BKPFOptional: Yes
Call by Reference: Yes
EKKO_DB -
Data type: EKKOOptional: Yes
Call by Reference: Yes
COBK_NEW -
Data type: COBKOptional: Yes
Call by Reference: Yes
COFP_OLD - Document Lines (project cash management)
Data type: COFPOptional: Yes
Call by Reference: Yes
COFP_SIM -
Data type: COFPOptional: Yes
Call by Reference: Yes
COBK_SIM -
Data type: COBKOptional: Yes
Call by Reference: Yes
DOC_COLL -
Data type: STANDARD TABLEOptional: Yes
Call by Reference: Yes
COFP_DB -
Data type: COFPOptional: Yes
Call by Reference: Yes
COBK_DB -
Data type: COBKOptional: Yes
Call by Reference: Yes
BSEG_DB -
Data type: BSEGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FM_CO_TRANSFER_SIM_TO_BUFFER 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_p_sim | TYPE FLAG, " SPACE | |||
| lt_cofp_new | TYPE STANDARD TABLE OF COFP, " | |||
| lv_p_refresh | TYPE FLAG, " SPACE | |||
| lt_bkpf_db | TYPE STANDARD TABLE OF BKPF, " | |||
| lt_ekko_db | TYPE STANDARD TABLE OF EKKO, " | |||
| lv_p_debug | TYPE FLAG, " SPACE | |||
| lt_cobk_new | TYPE STANDARD TABLE OF COBK, " | |||
| lv_p_retrieve | TYPE FLAG, " SPACE | |||
| lv_p_test | TYPE FLAG, " SPACE | |||
| lt_cofp_old | TYPE STANDARD TABLE OF COFP, " | |||
| lv_i_flg_no_ins | TYPE FMDY-XFELD, " SPACE | |||
| lt_cofp_sim | TYPE STANDARD TABLE OF COFP, " | |||
| lv_i_flg_delete_items | TYPE FMDY-XFELD, " SPACE | |||
| lt_cobk_sim | TYPE STANDARD TABLE OF COBK, " | |||
| lv_i_flg_upd_items | TYPE FMDY-XFELD, " SPACE | |||
| lt_doc_coll | TYPE STANDARD TABLE OF STANDARD TABLE, " | |||
| lv_i_flg_no_del_cobk | TYPE FMDY-XFELD, " SPACE | |||
| lt_cofp_db | TYPE STANDARD TABLE OF COFP, " | |||
| lt_cobk_db | TYPE STANDARD TABLE OF COBK, " | |||
| lt_bseg_db | TYPE STANDARD TABLE OF BSEG. " |
|   CALL FUNCTION 'FM_CO_TRANSFER_SIM_TO_BUFFER' "NOTRANSL: Simulation PS-Cash Transfer |
| EXPORTING | ||
| P_REFRESH | = lv_p_refresh | |
| P_RETRIEVE | = lv_p_retrieve | |
| I_FLG_NO_INS | = lv_i_flg_no_ins | |
| I_FLG_DELETE_ITEMS | = lv_i_flg_delete_items | |
| I_FLG_UPD_ITEMS | = lv_i_flg_upd_items | |
| I_FLG_NO_DEL_COBK | = lv_i_flg_no_del_cobk | |
| CHANGING | ||
| P_SIM | = lv_p_sim | |
| P_DEBUG | = lv_p_debug | |
| P_TEST | = lv_p_test | |
| TABLES | ||
| COFP_NEW | = lt_cofp_new | |
| BKPF_DB | = lt_bkpf_db | |
| EKKO_DB | = lt_ekko_db | |
| COBK_NEW | = lt_cobk_new | |
| COFP_OLD | = lt_cofp_old | |
| COFP_SIM | = lt_cofp_sim | |
| COBK_SIM | = lt_cobk_sim | |
| DOC_COLL | = lt_doc_coll | |
| COFP_DB | = lt_cofp_db | |
| COBK_DB | = lt_cobk_db | |
| BSEG_DB | = lt_bseg_db | |
| . " FM_CO_TRANSFER_SIM_TO_BUFFER | ||
ABAP code using 7.40 inline data declarations to call FM FM_CO_TRANSFER_SIM_TO_BUFFER
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.| DATA(ld_p_sim) | = ' '. | |||
| DATA(ld_p_refresh) | = ' '. | |||
| DATA(ld_p_debug) | = ' '. | |||
| DATA(ld_p_retrieve) | = ' '. | |||
| DATA(ld_p_test) | = ' '. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_no_ins). | ||||
| DATA(ld_i_flg_no_ins) | = ' '. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_delete_items). | ||||
| DATA(ld_i_flg_delete_items) | = ' '. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_upd_items). | ||||
| DATA(ld_i_flg_upd_items) | = ' '. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_no_del_cobk). | ||||
| DATA(ld_i_flg_no_del_cobk) | = ' '. | |||
Search for further information about these or an SAP related objects