SAP CNIF_TRACE_CREATE Function Module for NOTRANSL: create a trace of the EPS input data









CNIF_TRACE_CREATE is a standard cnif trace create 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: create a trace of the EPS input data 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 cnif trace create FM, simply by entering the name CNIF_TRACE_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CNIF_TRACE_CREATE 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 'CNIF_TRACE_CREATE'"NOTRANSL: create a trace of the EPS input data
EXPORTING
I_NAME = "Local file for upload/download
* I_PROJECT_DEFINITION = "BAPI structure project definition
* I_PROJECT_DEFINITION_UPD = "BAPI Structure Project Definition (Update Fields)

TABLES
* I_METHOD_PROJECT = "BAPI structure: Processing methods
* I_ACTIVITY_UPDATE = "Update structure: Network activity
* I_ACT_ELEMENT = "BAPI Structure for Activity Elements
* I_ACT_ELEMENT_UPDATE = "Update Structure: ActivityElement
* I_ACT_MILESTONE = "BAPI Structure for Milestones under Network Activity
* I_ACT_MILESTONE_UPDATE = "BAPI Structure Milestones under Activity (Update Fields)
* I_RELATION = "BAPI structure for network relationships
* I_RELATION_UPDATE = "Update structure: Network relations
* I_WBS_ELEMENT_TABLE_UPDATE = "BAPI Structure WBS elements (Update Fields)
* I_WBS_ELEMENT_TABLE = "BAPI Structure WBS Elements incl. some Date Fields PRTE
* I_WBS_MILESTONE_TABLE = "BAPI Structure for Milestones under WBS Elements
* I_WBS_MILESTONE_TABLE_UPDATE = "BAPI Structure Milestones under WBS Elements (Update Fields)
* I_WBS_HIERARCHIE_TABLE = "BAPI transfer structure: WBS hierarchy
* I_NETWORK = "Network BAPI structure
* I_NETWORK_UPDATE = "Network header BAPI structure update
* I_ACTIVITY = "BAPI structure for network activities

EXCEPTIONS
TRACE_NOT_CREATED = 1
.



IMPORTING Parameters details for CNIF_TRACE_CREATE

I_NAME - Local file for upload/download

Data type: RLGRAP-FILENAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_PROJECT_DEFINITION - BAPI structure project definition

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

I_PROJECT_DEFINITION_UPD - BAPI Structure Project Definition (Update Fields)

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

TABLES Parameters details for CNIF_TRACE_CREATE

I_METHOD_PROJECT - BAPI structure: Processing methods

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

I_ACTIVITY_UPDATE - Update structure: Network activity

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

I_ACT_ELEMENT - BAPI Structure for Activity Elements

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

I_ACT_ELEMENT_UPDATE - Update Structure: ActivityElement

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

I_ACT_MILESTONE - BAPI Structure for Milestones under Network Activity

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

I_ACT_MILESTONE_UPDATE - BAPI Structure Milestones under Activity (Update Fields)

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

I_RELATION - BAPI structure for network relationships

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

I_RELATION_UPDATE - Update structure: Network relations

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

I_WBS_ELEMENT_TABLE_UPDATE - BAPI Structure WBS elements (Update Fields)

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

I_WBS_ELEMENT_TABLE - BAPI Structure WBS Elements incl. some Date Fields PRTE

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

I_WBS_MILESTONE_TABLE - BAPI Structure for Milestones under WBS Elements

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

I_WBS_MILESTONE_TABLE_UPDATE - BAPI Structure Milestones under WBS Elements (Update Fields)

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

I_WBS_HIERARCHIE_TABLE - BAPI transfer structure: WBS hierarchy

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

I_NETWORK - Network BAPI structure

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

I_NETWORK_UPDATE - Network header BAPI structure update

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

I_ACTIVITY - BAPI structure for network activities

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

EXCEPTIONS details

TRACE_NOT_CREATED -

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

Copy and paste ABAP code example for CNIF_TRACE_CREATE 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_name  TYPE RLGRAP-FILENAME, "   
lt_i_method_project  TYPE STANDARD TABLE OF BAPI_METHOD_PROJECT, "   
lv_trace_not_created  TYPE BAPI_METHOD_PROJECT, "   
lt_i_activity_update  TYPE STANDARD TABLE OF BAPI_NETWORK_ACTIVITY_UP, "   
lt_i_act_element  TYPE STANDARD TABLE OF BAPI_ACT_ELEMENT, "   
lt_i_act_element_update  TYPE STANDARD TABLE OF BAPI_ACT_ELEMENT_UPD, "   
lt_i_act_milestone  TYPE STANDARD TABLE OF BAPI_ACT_MILESTONE, "   
lt_i_act_milestone_update  TYPE STANDARD TABLE OF BAPI_ACT_MILESTONE_UPD, "   
lt_i_relation  TYPE STANDARD TABLE OF BAPI_NETWORK_RELATION, "   
lt_i_relation_update  TYPE STANDARD TABLE OF BAPI_NETWORK_RELATION_UP, "   
lv_i_project_definition  TYPE BAPI_PROJECT_DEFINITION, "   
lt_i_wbs_element_table_update  TYPE STANDARD TABLE OF BAPI_WBS_ELEMENT_UPDATE, "   
lt_i_wbs_element_table  TYPE STANDARD TABLE OF BAPI_WBS_ELEMENT, "   
lv_i_project_definition_upd  TYPE BAPI_PROJECT_DEFINITION_UP, "   
lt_i_wbs_milestone_table  TYPE STANDARD TABLE OF BAPI_WBS_MILESTONE, "   
lt_i_wbs_milestone_table_update  TYPE STANDARD TABLE OF BAPI_WBS_MILESTONE_UPD, "   
lt_i_wbs_hierarchie_table  TYPE STANDARD TABLE OF BAPI_WBS_HIERARCHIE, "   
lt_i_network  TYPE STANDARD TABLE OF BAPI_NETWORK, "   
lt_i_network_update  TYPE STANDARD TABLE OF BAPI_NETWORK_UPDATE, "   
lt_i_activity  TYPE STANDARD TABLE OF BAPI_NETWORK_ACTIVITY. "   

  CALL FUNCTION 'CNIF_TRACE_CREATE'  "NOTRANSL: create a trace of the EPS input data
    EXPORTING
         I_NAME = lv_i_name
         I_PROJECT_DEFINITION = lv_i_project_definition
         I_PROJECT_DEFINITION_UPD = lv_i_project_definition_upd
    TABLES
         I_METHOD_PROJECT = lt_i_method_project
         I_ACTIVITY_UPDATE = lt_i_activity_update
         I_ACT_ELEMENT = lt_i_act_element
         I_ACT_ELEMENT_UPDATE = lt_i_act_element_update
         I_ACT_MILESTONE = lt_i_act_milestone
         I_ACT_MILESTONE_UPDATE = lt_i_act_milestone_update
         I_RELATION = lt_i_relation
         I_RELATION_UPDATE = lt_i_relation_update
         I_WBS_ELEMENT_TABLE_UPDATE = lt_i_wbs_element_table_update
         I_WBS_ELEMENT_TABLE = lt_i_wbs_element_table
         I_WBS_MILESTONE_TABLE = lt_i_wbs_milestone_table
         I_WBS_MILESTONE_TABLE_UPDATE = lt_i_wbs_milestone_table_update
         I_WBS_HIERARCHIE_TABLE = lt_i_wbs_hierarchie_table
         I_NETWORK = lt_i_network
         I_NETWORK_UPDATE = lt_i_network_update
         I_ACTIVITY = lt_i_activity
    EXCEPTIONS
        TRACE_NOT_CREATED = 1
. " CNIF_TRACE_CREATE




ABAP code using 7.40 inline data declarations to call FM CNIF_TRACE_CREATE

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.

"SELECT single FILENAME FROM RLGRAP INTO @DATA(ld_i_name).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!