SAP Function Modules

FM_CO_TRANSFER_SIM_TO_BUFFER SAP Function module







FM_CO_TRANSFER_SIM_TO_BUFFER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FM_CO_TRANSFER_SIM_TO_BUFFER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FMPR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FM_CO_TRANSFER_SIM_TO_BUFFER - FM CO TRANSFER SIM TO BUFFER





CALL FUNCTION 'FM_CO_TRANSFER_SIM_TO_BUFFER' "
  EXPORTING
*   p_refresh = SPACE           " flag
    p_retrieve = SPACE          " flag
*   i_flg_no_ins = SPACE        " fmdy-xfeld
*   i_flg_delete_items = SPACE  " fmdy-xfeld
*   i_flg_upd_items = SPACE     " fmdy-xfeld
*   i_flg_no_del_cobk = SPACE   " fmdy-xfeld
* TABLES
*   cofp_new =                  " cofp
*   cobk_new =                  " cobk
*   cofp_old =                  " cofp          Document Lines (project cash management)
*   cofp_sim =                  " cofp
*   cobk_sim =                  " cobk
*   doc_coll =                  " standard table
*   cofp_db =                   " cofp
*   cobk_db =                   " cobk
*   bseg_db =                   " bseg
*   bkpf_db =                   " bkpf
*   ekko_db =                   " ekko
* CHANGING
*   p_sim = SPACE               " flag
*   p_debug = SPACE             " flag
*   p_test = SPACE              " flag
    .  "  FM_CO_TRANSFER_SIM_TO_BUFFER

ABAP code example for Function Module FM_CO_TRANSFER_SIM_TO_BUFFER





The ABAP code below is a full code listing to execute function module FM_CO_TRANSFER_SIM_TO_BUFFER including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_cofp_new  TYPE STANDARD TABLE OF COFP,"TABLES PARAM
wa_cofp_new  LIKE LINE OF it_cofp_new ,
it_cobk_new  TYPE STANDARD TABLE OF COBK,"TABLES PARAM
wa_cobk_new  LIKE LINE OF it_cobk_new ,
it_cofp_old  TYPE STANDARD TABLE OF COFP,"TABLES PARAM
wa_cofp_old  LIKE LINE OF it_cofp_old ,
it_cofp_sim  TYPE STANDARD TABLE OF COFP,"TABLES PARAM
wa_cofp_sim  LIKE LINE OF it_cofp_sim ,
it_cobk_sim  TYPE STANDARD TABLE OF COBK,"TABLES PARAM
wa_cobk_sim  LIKE LINE OF it_cobk_sim ,
it_doc_coll  TYPE STANDARD TABLE OF STANDARD TABLE,"TABLES PARAM
wa_doc_coll  LIKE LINE OF it_doc_coll ,
it_cofp_db  TYPE STANDARD TABLE OF COFP,"TABLES PARAM
wa_cofp_db  LIKE LINE OF it_cofp_db ,
it_cobk_db  TYPE STANDARD TABLE OF COBK,"TABLES PARAM
wa_cobk_db  LIKE LINE OF it_cobk_db ,
it_bseg_db  TYPE STANDARD TABLE OF BSEG,"TABLES PARAM
wa_bseg_db  LIKE LINE OF it_bseg_db ,
it_bkpf_db  TYPE STANDARD TABLE OF BKPF,"TABLES PARAM
wa_bkpf_db  LIKE LINE OF it_bkpf_db ,
it_ekko_db  TYPE STANDARD TABLE OF EKKO,"TABLES PARAM
wa_ekko_db  LIKE LINE OF it_ekko_db .

DATA(ld_p_sim) = 'Check type of data required'.
DATA(ld_p_debug) = 'Check type of data required'.
DATA(ld_p_test) = 'Check type of data required'.
DATA(ld_p_refresh) = 'Check type of data required'.
DATA(ld_p_retrieve) = 'Check type of data required'.

DATA(ld_i_flg_no_ins) = some text here

DATA(ld_i_flg_delete_items) = some text here

DATA(ld_i_flg_upd_items) = some text here

DATA(ld_i_flg_no_del_cobk) = some text here

"populate fields of struture and append to itab
append wa_cofp_new to it_cofp_new.

"populate fields of struture and append to itab
append wa_cobk_new to it_cobk_new.

"populate fields of struture and append to itab
append wa_cofp_old to it_cofp_old.

"populate fields of struture and append to itab
append wa_cofp_sim to it_cofp_sim.

"populate fields of struture and append to itab
append wa_cobk_sim to it_cobk_sim.

"populate fields of struture and append to itab
append wa_doc_coll to it_doc_coll.

"populate fields of struture and append to itab
append wa_cofp_db to it_cofp_db.

"populate fields of struture and append to itab
append wa_cobk_db to it_cobk_db.

"populate fields of struture and append to itab
append wa_bseg_db to it_bseg_db.

"populate fields of struture and append to itab
append wa_bkpf_db to it_bkpf_db.

"populate fields of struture and append to itab
append wa_ekko_db to it_ekko_db. . CALL FUNCTION 'FM_CO_TRANSFER_SIM_TO_BUFFER' EXPORTING * p_refresh = ld_p_refresh p_retrieve = ld_p_retrieve * i_flg_no_ins = ld_i_flg_no_ins * i_flg_delete_items = ld_i_flg_delete_items * i_flg_upd_items = ld_i_flg_upd_items * i_flg_no_del_cobk = ld_i_flg_no_del_cobk * TABLES * cofp_new = it_cofp_new * cobk_new = it_cobk_new * cofp_old = it_cofp_old * cofp_sim = it_cofp_sim * cobk_sim = it_cobk_sim * doc_coll = it_doc_coll * cofp_db = it_cofp_db * cobk_db = it_cobk_db * bseg_db = it_bseg_db * bkpf_db = it_bkpf_db * ekko_db = it_ekko_db * CHANGING * p_sim = ld_p_sim * p_debug = ld_p_debug * p_test = ld_p_test . " FM_CO_TRANSFER_SIM_TO_BUFFER
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_p_sim  TYPE FLAG ,
ld_p_refresh  TYPE FLAG ,
it_cofp_new  TYPE STANDARD TABLE OF COFP ,
wa_cofp_new  LIKE LINE OF it_cofp_new,
ld_p_debug  TYPE FLAG ,
ld_p_retrieve  TYPE FLAG ,
it_cobk_new  TYPE STANDARD TABLE OF COBK ,
wa_cobk_new  LIKE LINE OF it_cobk_new,
ld_p_test  TYPE FLAG ,
ld_i_flg_no_ins  TYPE FMDY-XFELD ,
it_cofp_old  TYPE STANDARD TABLE OF COFP ,
wa_cofp_old  LIKE LINE OF it_cofp_old,
ld_i_flg_delete_items  TYPE FMDY-XFELD ,
it_cofp_sim  TYPE STANDARD TABLE OF COFP ,
wa_cofp_sim  LIKE LINE OF it_cofp_sim,
ld_i_flg_upd_items  TYPE FMDY-XFELD ,
it_cobk_sim  TYPE STANDARD TABLE OF COBK ,
wa_cobk_sim  LIKE LINE OF it_cobk_sim,
ld_i_flg_no_del_cobk  TYPE FMDY-XFELD ,
it_doc_coll  TYPE STANDARD TABLE OF STANDARD TABLE ,
wa_doc_coll  LIKE LINE OF it_doc_coll,
it_cofp_db  TYPE STANDARD TABLE OF COFP ,
wa_cofp_db  LIKE LINE OF it_cofp_db,
it_cobk_db  TYPE STANDARD TABLE OF COBK ,
wa_cobk_db  LIKE LINE OF it_cobk_db,
it_bseg_db  TYPE STANDARD TABLE OF BSEG ,
wa_bseg_db  LIKE LINE OF it_bseg_db,
it_bkpf_db  TYPE STANDARD TABLE OF BKPF ,
wa_bkpf_db  LIKE LINE OF it_bkpf_db,
it_ekko_db  TYPE STANDARD TABLE OF EKKO ,
wa_ekko_db  LIKE LINE OF it_ekko_db.

ld_p_sim = 'Check type of data required'.
ld_p_refresh = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cofp_new to it_cofp_new.
ld_p_debug = 'Check type of data required'.
ld_p_retrieve = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cobk_new to it_cobk_new.
ld_p_test = 'Check type of data required'.

ld_i_flg_no_ins = some text here

"populate fields of struture and append to itab
append wa_cofp_old to it_cofp_old.

ld_i_flg_delete_items = some text here

"populate fields of struture and append to itab
append wa_cofp_sim to it_cofp_sim.

ld_i_flg_upd_items = some text here

"populate fields of struture and append to itab
append wa_cobk_sim to it_cobk_sim.

ld_i_flg_no_del_cobk = some text here

"populate fields of struture and append to itab
append wa_doc_coll to it_doc_coll.

"populate fields of struture and append to itab
append wa_cofp_db to it_cofp_db.

"populate fields of struture and append to itab
append wa_cobk_db to it_cobk_db.

"populate fields of struture and append to itab
append wa_bseg_db to it_bseg_db.

"populate fields of struture and append to itab
append wa_bkpf_db to it_bkpf_db.

"populate fields of struture and append to itab
append wa_ekko_db to it_ekko_db.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FM_CO_TRANSFER_SIM_TO_BUFFER or its description.