SAP CNET_GET_PROFILE_CONTENTS Function Module for Determine the data belonging to the graphics profile









CNET_GET_PROFILE_CONTENTS is a standard cnet get profile contents SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine the data belonging to the graphics profile 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 cnet get profile contents FM, simply by entering the name CNET_GET_PROFILE_CONTENTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNET
Program Name: SAPLCNET
Main Program:
Appliation area: S
Release date: 16-Apr-1997
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CNET_GET_PROFILE_CONTENTS 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 'CNET_GET_PROFILE_CONTENTS'"Determine the data belonging to the graphics profile
EXPORTING
* GET_CLUSTER_DEFS = 'x' "Determine cluster types
PROFILE = "Graphics profile
* GET_CLUSTER_FORMAT_DEFS = 'x' "Determine cluster formats
* GET_COLOR_DEFS = 'x' "Determine color attributes
* GET_FIELD_DEFS = 'x' "Determine field attributes
* GET_FORMAT_DEFS = 'x' "Determine formats
* GET_LINE_DEFS = 'x' "Determine link types
* GET_NODE_DEFS = 'x' "Determine node types
* GET_OPTION_DEFS = 'x' "Determine settings in options profile
* GRAPH_TYPE = ' ' "Graphic type

IMPORTING
OPTION_DEFS = "Option profile contents
PROFILE_DEFS = "Graphics profile contents

TABLES
* CLUSTER_DEFS = "Cluster profile contents
* CLUSTER_FORMAT_DEFS = "Contents of cluster format attributes
* COLOR_DEFS = "Contents of color attributes
* FIELD_DEFS = "Field attribute contents
* FORMAT_DEFS = "Format attribute contents
* LINE_DEFS = "Link profile contents
* NODE_DEFS = "Node profile contents

EXCEPTIONS
CLUSTER_DEFS_NOT_FOUND = 1 INV_PROFILE = 2 LINE_DEFS_NOT_FOUND = 3 NODE_DEFS_NOT_FOUND = 4 OPTION_DEFS_NOT_FOUND = 5
.



IMPORTING Parameters details for CNET_GET_PROFILE_CONTENTS

GET_CLUSTER_DEFS - Determine cluster types

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

PROFILE - Graphics profile

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

GET_CLUSTER_FORMAT_DEFS - Determine cluster formats

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

GET_COLOR_DEFS - Determine color attributes

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

GET_FIELD_DEFS - Determine field attributes

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

GET_FORMAT_DEFS - Determine formats

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

GET_LINE_DEFS - Determine link types

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

GET_NODE_DEFS - Determine node types

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

GET_OPTION_DEFS - Determine settings in options profile

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

GRAPH_TYPE - Graphic type

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

EXPORTING Parameters details for CNET_GET_PROFILE_CONTENTS

OPTION_DEFS - Option profile contents

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

PROFILE_DEFS - Graphics profile contents

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

TABLES Parameters details for CNET_GET_PROFILE_CONTENTS

CLUSTER_DEFS - Cluster profile contents

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

CLUSTER_FORMAT_DEFS - Contents of cluster format attributes

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

COLOR_DEFS - Contents of color attributes

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

FIELD_DEFS - Field attribute contents

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

FORMAT_DEFS - Format attribute contents

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

LINE_DEFS - Link profile contents

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

NODE_DEFS - Node profile contents

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

EXCEPTIONS details

CLUSTER_DEFS_NOT_FOUND - Cluster types not found

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

INV_PROFILE - Incorrect graphics profile

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

LINE_DEFS_NOT_FOUND - Link profile not found

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

NODE_DEFS_NOT_FOUND - Node profile not found

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

OPTION_DEFS_NOT_FOUND - Option profile not found

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

Copy and paste ABAP code example for CNET_GET_PROFILE_CONTENTS 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_option_defs  TYPE TCNO, "   
lt_cluster_defs  TYPE STANDARD TABLE OF TCNC, "   
lv_get_cluster_defs  TYPE TCNC, "   'x'
lv_cluster_defs_not_found  TYPE TCNC, "   
lv_profile  TYPE NET_PROFIL, "   
lv_inv_profile  TYPE NET_PROFIL, "   
lv_profile_defs  TYPE TCNG, "   
lt_cluster_format_defs  TYPE STANDARD TABLE OF TFMT, "   
lv_get_cluster_format_defs  TYPE TFMT, "   'x'
lt_color_defs  TYPE STANDARD TABLE OF THLT, "   
lv_get_color_defs  TYPE THLT, "   'x'
lv_line_defs_not_found  TYPE THLT, "   
lt_field_defs  TYPE STANDARD TABLE OF TFAT, "   
lv_get_field_defs  TYPE TFAT, "   'x'
lv_node_defs_not_found  TYPE TFAT, "   
lt_format_defs  TYPE STANDARD TABLE OF TFMT, "   
lv_get_format_defs  TYPE TFMT, "   'x'
lv_option_defs_not_found  TYPE TFMT, "   
lt_line_defs  TYPE STANDARD TABLE OF TCNL, "   
lv_get_line_defs  TYPE TCNL, "   'x'
lt_node_defs  TYPE STANDARD TABLE OF TCNN, "   
lv_get_node_defs  TYPE TCNN, "   'x'
lv_get_option_defs  TYPE TCNN, "   'x'
lv_graph_type  TYPE TCNN. "   SPACE

  CALL FUNCTION 'CNET_GET_PROFILE_CONTENTS'  "Determine the data belonging to the graphics profile
    EXPORTING
         GET_CLUSTER_DEFS = lv_get_cluster_defs
         PROFILE = lv_profile
         GET_CLUSTER_FORMAT_DEFS = lv_get_cluster_format_defs
         GET_COLOR_DEFS = lv_get_color_defs
         GET_FIELD_DEFS = lv_get_field_defs
         GET_FORMAT_DEFS = lv_get_format_defs
         GET_LINE_DEFS = lv_get_line_defs
         GET_NODE_DEFS = lv_get_node_defs
         GET_OPTION_DEFS = lv_get_option_defs
         GRAPH_TYPE = lv_graph_type
    IMPORTING
         OPTION_DEFS = lv_option_defs
         PROFILE_DEFS = lv_profile_defs
    TABLES
         CLUSTER_DEFS = lt_cluster_defs
         CLUSTER_FORMAT_DEFS = lt_cluster_format_defs
         COLOR_DEFS = lt_color_defs
         FIELD_DEFS = lt_field_defs
         FORMAT_DEFS = lt_format_defs
         LINE_DEFS = lt_line_defs
         NODE_DEFS = lt_node_defs
    EXCEPTIONS
        CLUSTER_DEFS_NOT_FOUND = 1
        INV_PROFILE = 2
        LINE_DEFS_NOT_FOUND = 3
        NODE_DEFS_NOT_FOUND = 4
        OPTION_DEFS_NOT_FOUND = 5
. " CNET_GET_PROFILE_CONTENTS




ABAP code using 7.40 inline data declarations to call FM CNET_GET_PROFILE_CONTENTS

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.

 
 
DATA(ld_get_cluster_defs) = 'x'.
 
 
 
 
 
 
DATA(ld_get_cluster_format_defs) = 'x'.
 
 
DATA(ld_get_color_defs) = 'x'.
 
 
 
DATA(ld_get_field_defs) = 'x'.
 
 
 
DATA(ld_get_format_defs) = 'x'.
 
 
 
DATA(ld_get_line_defs) = 'x'.
 
 
DATA(ld_get_node_defs) = 'x'.
 
DATA(ld_get_option_defs) = 'x'.
 
DATA(ld_graph_type) = ' '.
 


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!