SAP 2002_CREATE_INTERNAL_NW_TABLES Function Module for NOTRANSL: creates the internal network tables from BAPI import tables
2002_CREATE_INTERNAL_NW_TABLES is a standard 2002 create internal nw tables 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: creates the internal network tables from BAPI import tables 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 2002 create internal nw tables FM, simply by entering the name 2002_CREATE_INTERNAL_NW_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: 2002
Program Name: SAPL2002
Main Program: SAPL2002
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function 2002_CREATE_INTERNAL_NW_TABLES 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 '2002_CREATE_INTERNAL_NW_TABLES'"NOTRANSL: creates the internal network tables from BAPI import tables.
TABLES
C_METHOD_PROJECT = "Interface structure for transferring object methods
I_RELATION = "BAPI structure for network relationships
I_RELATION_UPDATE = "Update structure: Network relations
E_CAUFVD = "Dialog Structure for Order Headers and Items
E_CAUFVD_UPDATE = "Field string CAUFVD (for editing BAPIs)
E_AFVGD = "Order: Dialog table for Table AFVG (order operation)
E_AFVGD_UPDATE = "Field string AFVGD (for editing BAPIs)
C_MLSTD = "Milestone I/O Table
C_MLSTD_UPDATE = "BAPI Structure Milestones under WBS Elements (Update Fields)
E_AFABD = "Network: Dialog table for AFAB
E_AFABD_UPDATE = "Field string AFABD (for editing BAPIs)
I_NETWORK = "Network BAPI structure
E_MESSAGES = "Output Structure for CIM Error Management and Analysis
I_NETWORK_UPDATE = "Network header BAPI structure update
I_ACTIVITY = "BAPI structure for network activities
I_ACTIVITY_UPDATE = "Update structure: Network activity
I_ACTIVITY_ELEMENT = "BAPI Structure for Activity Elements
I_ACTIVITY_ELEMENT_UPDATE = "Update Structure: ActivityElement
I_ACTIVITY_MILESTONE = "BAPI Structure for Milestones under Network Activity
I_ACTIVITY_MILESTONE_UPDATE = "BAPI Structure Milestones under Activity (Update Fields)
EXCEPTIONS
ERROR_OCCURED = 1
TABLES Parameters details for 2002_CREATE_INTERNAL_NW_TABLES
C_METHOD_PROJECT - Interface structure for transferring object methods
Data type: IFOBJMETHDOptional: No
Call by Reference: No ( called with pass by value option)
I_RELATION - BAPI structure for network relationships
Data type: BAPI_NETWORK_RELATIONOptional: No
Call by Reference: No ( called with pass by value option)
I_RELATION_UPDATE - Update structure: Network relations
Data type: BAPI_NETWORK_RELATION_UPOptional: No
Call by Reference: No ( called with pass by value option)
E_CAUFVD - Dialog Structure for Order Headers and Items
Data type: CAUFVDOptional: No
Call by Reference: No ( called with pass by value option)
E_CAUFVD_UPDATE - Field string CAUFVD (for editing BAPIs)
Data type: CAUFVD_UPDATEOptional: No
Call by Reference: No ( called with pass by value option)
E_AFVGD - Order: Dialog table for Table AFVG (order operation)
Data type: AFVGDOptional: No
Call by Reference: No ( called with pass by value option)
E_AFVGD_UPDATE - Field string AFVGD (for editing BAPIs)
Data type: AFVGD_UPDATEOptional: No
Call by Reference: No ( called with pass by value option)
C_MLSTD - Milestone I/O Table
Data type: MLSTDOptional: No
Call by Reference: No ( called with pass by value option)
C_MLSTD_UPDATE - BAPI Structure Milestones under WBS Elements (Update Fields)
Data type: MLSTD_UPDATEOptional: No
Call by Reference: No ( called with pass by value option)
E_AFABD - Network: Dialog table for AFAB
Data type: AFABDOptional: No
Call by Reference: No ( called with pass by value option)
E_AFABD_UPDATE - Field string AFABD (for editing BAPIs)
Data type: AFABD_UPDATEOptional: No
Call by Reference: No ( called with pass by value option)
I_NETWORK - Network BAPI structure
Data type: BAPI_NETWORKOptional: No
Call by Reference: No ( called with pass by value option)
E_MESSAGES - Output Structure for CIM Error Management and Analysis
Data type: CMFMSGOptional: No
Call by Reference: No ( called with pass by value option)
I_NETWORK_UPDATE - Network header BAPI structure update
Data type: BAPI_NETWORK_UPDATEOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTIVITY - BAPI structure for network activities
Data type: BAPI_NETWORK_ACTIVITYOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTIVITY_UPDATE - Update structure: Network activity
Data type: BAPI_NETWORK_ACTIVITY_UPOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTIVITY_ELEMENT - BAPI Structure for Activity Elements
Data type: BAPI_ACT_ELEMENTOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTIVITY_ELEMENT_UPDATE - Update Structure: ActivityElement
Data type: BAPI_ACT_ELEMENT_UPDOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTIVITY_MILESTONE - BAPI Structure for Milestones under Network Activity
Data type: BAPI_ACT_MILESTONEOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTIVITY_MILESTONE_UPDATE - BAPI Structure Milestones under Activity (Update Fields)
Data type: BAPI_ACT_MILESTONE_UPDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for 2002_CREATE_INTERNAL_NW_TABLES 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_error_occured | TYPE STRING, " | |||
| lt_c_method_project | TYPE STANDARD TABLE OF IFOBJMETHD, " | |||
| lt_i_relation | TYPE STANDARD TABLE OF BAPI_NETWORK_RELATION, " | |||
| lt_i_relation_update | TYPE STANDARD TABLE OF BAPI_NETWORK_RELATION_UP, " | |||
| lt_e_caufvd | TYPE STANDARD TABLE OF CAUFVD, " | |||
| lt_e_caufvd_update | TYPE STANDARD TABLE OF CAUFVD_UPDATE, " | |||
| lt_e_afvgd | TYPE STANDARD TABLE OF AFVGD, " | |||
| lt_e_afvgd_update | TYPE STANDARD TABLE OF AFVGD_UPDATE, " | |||
| lt_c_mlstd | TYPE STANDARD TABLE OF MLSTD, " | |||
| lt_c_mlstd_update | TYPE STANDARD TABLE OF MLSTD_UPDATE, " | |||
| lt_e_afabd | TYPE STANDARD TABLE OF AFABD, " | |||
| lt_e_afabd_update | TYPE STANDARD TABLE OF AFABD_UPDATE, " | |||
| lt_i_network | TYPE STANDARD TABLE OF BAPI_NETWORK, " | |||
| lt_e_messages | TYPE STANDARD TABLE OF CMFMSG, " | |||
| lt_i_network_update | TYPE STANDARD TABLE OF BAPI_NETWORK_UPDATE, " | |||
| lt_i_activity | TYPE STANDARD TABLE OF BAPI_NETWORK_ACTIVITY, " | |||
| lt_i_activity_update | TYPE STANDARD TABLE OF BAPI_NETWORK_ACTIVITY_UP, " | |||
| lt_i_activity_element | TYPE STANDARD TABLE OF BAPI_ACT_ELEMENT, " | |||
| lt_i_activity_element_update | TYPE STANDARD TABLE OF BAPI_ACT_ELEMENT_UPD, " | |||
| lt_i_activity_milestone | TYPE STANDARD TABLE OF BAPI_ACT_MILESTONE, " | |||
| lt_i_activity_milestone_update | TYPE STANDARD TABLE OF BAPI_ACT_MILESTONE_UPD. " |
|   CALL FUNCTION '2002_CREATE_INTERNAL_NW_TABLES' "NOTRANSL: creates the internal network tables from BAPI import tables |
| TABLES | ||
| C_METHOD_PROJECT | = lt_c_method_project | |
| I_RELATION | = lt_i_relation | |
| I_RELATION_UPDATE | = lt_i_relation_update | |
| E_CAUFVD | = lt_e_caufvd | |
| E_CAUFVD_UPDATE | = lt_e_caufvd_update | |
| E_AFVGD | = lt_e_afvgd | |
| E_AFVGD_UPDATE | = lt_e_afvgd_update | |
| C_MLSTD | = lt_c_mlstd | |
| C_MLSTD_UPDATE | = lt_c_mlstd_update | |
| E_AFABD | = lt_e_afabd | |
| E_AFABD_UPDATE | = lt_e_afabd_update | |
| I_NETWORK | = lt_i_network | |
| E_MESSAGES | = lt_e_messages | |
| I_NETWORK_UPDATE | = lt_i_network_update | |
| I_ACTIVITY | = lt_i_activity | |
| I_ACTIVITY_UPDATE | = lt_i_activity_update | |
| I_ACTIVITY_ELEMENT | = lt_i_activity_element | |
| I_ACTIVITY_ELEMENT_UPDATE | = lt_i_activity_element_update | |
| I_ACTIVITY_MILESTONE | = lt_i_activity_milestone | |
| I_ACTIVITY_MILESTONE_UPDATE | = lt_i_activity_milestone_update | |
| EXCEPTIONS | ||
| ERROR_OCCURED = 1 | ||
| . " 2002_CREATE_INTERNAL_NW_TABLES | ||
ABAP code using 7.40 inline data declarations to call FM 2002_CREATE_INTERNAL_NW_TABLES
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