SAP FMCY_START_COPY Function Module for Start copy valid for all mass processes









FMCY_START_COPY is a standard fmcy start copy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Start copy valid for all mass processes 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 fmcy start copy FM, simply by entering the name FMCY_START_COPY into the relevant SAP transaction such as SE37 or SE38.

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



Function FMCY_START_COPY 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 'FMCY_START_COPY'"Start copy valid for all mass processes
EXPORTING
I_FM_AREA = "Financial Management Area
I_FLG_ERROR = "Checkbox
* I_F_SENDERCTRL = "Sender settings for mass postings
* I_F_RECEIVERCTRL = "Receiver settings for mass postings
* I_F_GENERALCTRL_KF = "General settings for mass posting
I_F_HIERARCHYCTRL = "Use for copy in hiertarchy context
* I_F_PARALLELCTRL = "USe for parralele processing
* I_REF_BLOCK_BUILDER = "Packaging document
* I_CUST_FIELD_TAB = "Screen Selections: Table Type RSDSFIELDS
* I_T_CUST_CONDTAB = "
I_F_SELCRITTABS = "General Flag
* I_F_SOURCECTRL = "Source specific settings for copy
* I_F_TARGETCTRL = "Target specific settings for copy (except dimension values)
* I_F_GENERALCTRL = "General settings for copy
I_TECHORG = "Table of original Transactions (Technical)
* I_REF_MSG_CTX = "Application log with context
* I_F_DIMGROUPCTRL = "Grouping FM dimensions for mass postings
* I_F_ENTRYDOCCTRL = "Entry document settings for mass posting

IMPORTING
E_DB_RECORDS = "
E_NBR_PACKETS = "
E_T_DETAIL = "FM - Kernel Utilities - Table of result of checks
E_T_DETAIL_DOC = "FM - Kernel Utilities - Budget lines + DOCNR
E_T_DOCNR = "FM list table for MP proposals (header)
E_DOCYEAR = "Document Year
E_T_DETAIL_COPY_DOC = "Links source and targets during the copy of documents
E_DOCFAM = "Document Family Number

CHANGING
* C_LOG_HANDLE = "Application Log: Log Handle
* C_REF_MSG_DOC = "Application log with documents

EXCEPTIONS
NO_VALUE_FOUND = 1 PARRALEL_PROCESSING_ERROR = 2 EUQUEUE_ERROR = 3
.



IMPORTING Parameters details for FMCY_START_COPY

I_FM_AREA - Financial Management Area

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

I_FLG_ERROR - Checkbox

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

I_F_SENDERCTRL - Sender settings for mass postings

Data type: BUMP_S_SENDERCTRL
Optional: Yes
Call by Reference: Yes

I_F_RECEIVERCTRL - Receiver settings for mass postings

Data type: BUMP_S_RECEIVERCTRL
Optional: Yes
Call by Reference: Yes

I_F_GENERALCTRL_KF - General settings for mass posting

Data type: BUMP_S_GENERALCTRL
Optional: Yes
Call by Reference: Yes

I_F_HIERARCHYCTRL - Use for copy in hiertarchy context

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

I_F_PARALLELCTRL - USe for parralele processing

Data type: BUCY_S_PARALLELCTRL
Optional: Yes
Call by Reference: Yes

I_REF_BLOCK_BUILDER - Packaging document

Data type: CL_FMCY_BLOCK_BUILDER
Optional: Yes
Call by Reference: Yes

I_CUST_FIELD_TAB - Screen Selections: Table Type RSDSFIELDS

Data type: RSDSFIELDS_T
Optional: Yes
Call by Reference: Yes

I_T_CUST_CONDTAB -

Data type: RSDS_TWHERE
Optional: Yes
Call by Reference: Yes

I_F_SELCRITTABS - General Flag

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

I_F_SOURCECTRL - Source specific settings for copy

Data type: BUCY_S_SOURCECTRL
Optional: Yes
Call by Reference: Yes

I_F_TARGETCTRL - Target specific settings for copy (except dimension values)

Data type: BUCY_S_TARGETCTRL
Optional: Yes
Call by Reference: Yes

I_F_GENERALCTRL - General settings for copy

Data type: BUCY_S_GENERALCTRL
Optional: Yes
Call by Reference: Yes

I_TECHORG - Table of original Transactions (Technical)

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

I_REF_MSG_CTX - Application log with context

Data type: CL_BUBAS_APPL_LOG_CTX
Optional: Yes
Call by Reference: Yes

I_F_DIMGROUPCTRL - Grouping FM dimensions for mass postings

Data type: FMMP_S_DIMGROUP
Optional: Yes
Call by Reference: Yes

I_F_ENTRYDOCCTRL - Entry document settings for mass posting

Data type: BUMP_S_ENTRYDOCCTRL
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FMCY_START_COPY

E_DB_RECORDS -

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

E_NBR_PACKETS -

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

E_T_DETAIL - FM - Kernel Utilities - Table of result of checks

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

E_T_DETAIL_DOC - FM - Kernel Utilities - Budget lines + DOCNR

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

E_T_DOCNR - FM list table for MP proposals (header)

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

E_DOCYEAR - Document Year

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

E_T_DETAIL_COPY_DOC - Links source and targets during the copy of documents

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

E_DOCFAM - Document Family Number

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

CHANGING Parameters details for FMCY_START_COPY

C_LOG_HANDLE - Application Log: Log Handle

Data type: BALLOGHNDL
Optional: Yes
Call by Reference: Yes

C_REF_MSG_DOC - Application log with documents

Data type: CL_BUBAS_APPL_LOG_DOC
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_VALUE_FOUND - No budget values found

Data type:
Optional: No
Call by Reference: Yes

PARRALEL_PROCESSING_ERROR - Error on selection paralele proces. parameter

Data type:
Optional: No
Call by Reference: Yes

EUQUEUE_ERROR - Enqueue erro has occured

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMCY_START_COPY 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_fm_area  TYPE FIKRS, "   
lv_c_log_handle  TYPE BALLOGHNDL, "   
lv_e_db_records  TYPE I, "   
lv_no_value_found  TYPE I, "   
lv_i_flg_error  TYPE XFELD, "   
lv_i_f_senderctrl  TYPE BUMP_S_SENDERCTRL, "   
lv_i_f_receiverctrl  TYPE BUMP_S_RECEIVERCTRL, "   
lv_i_f_generalctrl_kf  TYPE BUMP_S_GENERALCTRL, "   
lv_i_f_hierarchyctrl  TYPE BUCY_S_HIERARCHYCTRL, "   
lv_i_f_parallelctrl  TYPE BUCY_S_PARALLELCTRL, "   
lv_i_ref_block_builder  TYPE CL_FMCY_BLOCK_BUILDER, "   
lv_i_cust_field_tab  TYPE RSDSFIELDS_T, "   
lv_i_t_cust_condtab  TYPE RSDS_TWHERE, "   
lv_c_ref_msg_doc  TYPE CL_BUBAS_APPL_LOG_DOC, "   
lv_e_nbr_packets  TYPE I, "   
lv_i_f_selcrittabs  TYPE FMBS_S_DIMSELTABS, "   
lv_parralel_processing_error  TYPE FMBS_S_DIMSELTABS, "   
lv_e_t_detail  TYPE FMKU_T_CHECK_RESULT, "   
lv_euqueue_error  TYPE FMKU_T_CHECK_RESULT, "   
lv_i_f_sourcectrl  TYPE BUCY_S_SOURCECTRL, "   
lv_e_t_detail_doc  TYPE FMMP_T_LINE_DOCNR, "   
lv_i_f_targetctrl  TYPE BUCY_S_TARGETCTRL, "   
lv_e_t_docnr  TYPE FMMP_T_HEADER, "   
lv_i_f_generalctrl  TYPE BUCY_S_GENERALCTRL, "   
lv_e_docyear  TYPE BUKU_DOCYEAR, "   
lv_i_techorg  TYPE BUKU_TECHORG, "   
lv_i_ref_msg_ctx  TYPE CL_BUBAS_APPL_LOG_CTX, "   
lv_e_t_detail_copy_doc  TYPE FMKU_T_DOCCOPY_LIST, "   
lv_e_docfam  TYPE BUED_DOCFAM, "   
lv_i_f_dimgroupctrl  TYPE FMMP_S_DIMGROUP, "   
lv_i_f_entrydocctrl  TYPE BUMP_S_ENTRYDOCCTRL. "   

  CALL FUNCTION 'FMCY_START_COPY'  "Start copy valid for all mass processes
    EXPORTING
         I_FM_AREA = lv_i_fm_area
         I_FLG_ERROR = lv_i_flg_error
         I_F_SENDERCTRL = lv_i_f_senderctrl
         I_F_RECEIVERCTRL = lv_i_f_receiverctrl
         I_F_GENERALCTRL_KF = lv_i_f_generalctrl_kf
         I_F_HIERARCHYCTRL = lv_i_f_hierarchyctrl
         I_F_PARALLELCTRL = lv_i_f_parallelctrl
         I_REF_BLOCK_BUILDER = lv_i_ref_block_builder
         I_CUST_FIELD_TAB = lv_i_cust_field_tab
         I_T_CUST_CONDTAB = lv_i_t_cust_condtab
         I_F_SELCRITTABS = lv_i_f_selcrittabs
         I_F_SOURCECTRL = lv_i_f_sourcectrl
         I_F_TARGETCTRL = lv_i_f_targetctrl
         I_F_GENERALCTRL = lv_i_f_generalctrl
         I_TECHORG = lv_i_techorg
         I_REF_MSG_CTX = lv_i_ref_msg_ctx
         I_F_DIMGROUPCTRL = lv_i_f_dimgroupctrl
         I_F_ENTRYDOCCTRL = lv_i_f_entrydocctrl
    IMPORTING
         E_DB_RECORDS = lv_e_db_records
         E_NBR_PACKETS = lv_e_nbr_packets
         E_T_DETAIL = lv_e_t_detail
         E_T_DETAIL_DOC = lv_e_t_detail_doc
         E_T_DOCNR = lv_e_t_docnr
         E_DOCYEAR = lv_e_docyear
         E_T_DETAIL_COPY_DOC = lv_e_t_detail_copy_doc
         E_DOCFAM = lv_e_docfam
    CHANGING
         C_LOG_HANDLE = lv_c_log_handle
         C_REF_MSG_DOC = lv_c_ref_msg_doc
    EXCEPTIONS
        NO_VALUE_FOUND = 1
        PARRALEL_PROCESSING_ERROR = 2
        EUQUEUE_ERROR = 3
. " FMCY_START_COPY




ABAP code using 7.40 inline data declarations to call FM FMCY_START_COPY

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



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!