SAP TFC_COPY_PROFILE Function Module for









TFC_COPY_PROFILE is a standard tfc copy profile SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 tfc copy profile FM, simply by entering the name TFC_COPY_PROFILE into the relevant SAP transaction such as SE37 or SE38.

Function Group: TFC_HDR_EDIT
Program Name: SAPLTFC_HDR_EDIT
Main Program: SAPLTFC_HDR_EDIT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function TFC_COPY_PROFILE 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 'TFC_COPY_PROFILE'"
EXPORTING
ID_PROFILE = "Fast Close: Task List
* ID_INSTANCE = "Counter

CHANGING
CT_HDR = "Header Information on Status Admin for Fast Close
CT_USR = "User-Dependent Data: Fast Close
CT_ORG_OBJECTS = "Customizing for Org Objects
CT_CLS_METHOD = "Closing Methods
CT_CLS_ITEM = "Hierarchies for Closing
CT_CLS_METHODT = "Closing Methods
CT_ORG = "Organizational Structure: Fast Close
CT_ITEM = "Administration of a Job (Report/Transaction or Workflow)
CT_RT_PARAM = "Parameter Values of a Remote Task in Task List
CT_DEP = "Dependencies
CT_INSTANCE = "Instances of a Profile
CT_LANG = "Language table
CT_VAL = "Characteristic Values of Org Units per Node
CT_ALL_OR = "Extracted Master Data

EXCEPTIONS
E_PROFILE_NOT_EXISTS = 1
.



IMPORTING Parameters details for TFC_COPY_PROFILE

ID_PROFILE - Fast Close: Task List

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

ID_INSTANCE - Counter

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

CHANGING Parameters details for TFC_COPY_PROFILE

CT_HDR - Header Information on Status Admin for Fast Close

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

CT_USR - User-Dependent Data: Fast Close

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

CT_ORG_OBJECTS - Customizing for Org Objects

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

CT_CLS_METHOD - Closing Methods

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

CT_CLS_ITEM - Hierarchies for Closing

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

CT_CLS_METHODT - Closing Methods

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

CT_ORG - Organizational Structure: Fast Close

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

CT_ITEM - Administration of a Job (Report/Transaction or Workflow)

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

CT_RT_PARAM - Parameter Values of a Remote Task in Task List

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

CT_DEP - Dependencies

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

CT_INSTANCE - Instances of a Profile

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

CT_LANG - Language table

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

CT_VAL - Characteristic Values of Org Units per Node

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

CT_ALL_OR - Extracted Master Data

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

EXCEPTIONS details

E_PROFILE_NOT_EXISTS - Profile does not exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TFC_COPY_PROFILE 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_ct_hdr  TYPE TFC_T_HDR, "   
lv_id_profile  TYPE TFC_PROFILE, "   
lv_e_profile_not_exists  TYPE TFC_PROFILE, "   
lv_ct_usr  TYPE TFC_IUSR, "   
lv_ct_org_objects  TYPE TFC_T_ORG_OBJECTS, "   
lv_ct_cls_method  TYPE TFC_T_CLS_METHOD, "   
lv_ct_cls_item  TYPE TFC_T_CLS_ITEM, "   
lv_ct_cls_methodt  TYPE TFC_T_CLS_METHODT, "   
lv_ct_org  TYPE TFC_IORG, "   
lv_id_instance  TYPE TFC_NUM, "   
lv_ct_item  TYPE TFC_IITEM, "   
lv_ct_rt_param  TYPE TFC_IPARAM, "   
lv_ct_dep  TYPE TFC_IDEP, "   
lv_ct_instance  TYPE TFC_T_INSTANCE, "   
lv_ct_lang  TYPE TFC_ILANG, "   
lv_ct_val  TYPE TFC_IVAL, "   
lv_ct_all_or  TYPE TFC_T_ALL_OR. "   

  CALL FUNCTION 'TFC_COPY_PROFILE'  "
    EXPORTING
         ID_PROFILE = lv_id_profile
         ID_INSTANCE = lv_id_instance
    CHANGING
         CT_HDR = lv_ct_hdr
         CT_USR = lv_ct_usr
         CT_ORG_OBJECTS = lv_ct_org_objects
         CT_CLS_METHOD = lv_ct_cls_method
         CT_CLS_ITEM = lv_ct_cls_item
         CT_CLS_METHODT = lv_ct_cls_methodt
         CT_ORG = lv_ct_org
         CT_ITEM = lv_ct_item
         CT_RT_PARAM = lv_ct_rt_param
         CT_DEP = lv_ct_dep
         CT_INSTANCE = lv_ct_instance
         CT_LANG = lv_ct_lang
         CT_VAL = lv_ct_val
         CT_ALL_OR = lv_ct_all_or
    EXCEPTIONS
        E_PROFILE_NOT_EXISTS = 1
. " TFC_COPY_PROFILE




ABAP code using 7.40 inline data declarations to call FM TFC_COPY_PROFILE

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!