SAP Function Modules

CNET_GRAPHIC_HIERARCHY_PBO SAP Function module - Start the hierarchy graphics at PBO time







CNET_GRAPHIC_HIERARCHY_PBO is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CNET_GRAPHIC_HIERARCHY_PBO into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CNET
Released Date: 16.04.1997
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CNET_GRAPHIC_HIERARCHY_PBO - CNET GRAPHIC HIERARCHY PBO





CALL FUNCTION 'CNET_GRAPHIC_HIERARCHY_PBO' "Start the hierarchy graphics at PBO time
* EXPORTING
*   abap_cmd = SPACE            " net_graph-abap_cmd  Command to graphics
*   confirm = SPACE             " net_set-confirm  Indicator: Confirm mode
*   control_handle =            " cntl_handle   Control handle
*   indxkey =                   " indx-srtfd    Database key for archive
*   profile = 'SAP DEFAULT     0'  " net_profil  Graphics profile
*   pwdid = SPACE               " net_graph-pwdid  Parent window ID
*   set_focus = 'X'             " net_graph-flag  Indicator: Set focus
*   sort = 'X'                  " net_graph-flag  Indicator: Sort nodes
*   so_contents = SPACE         " sos00-s_objdes  Document title
*   so_send = SPACE             " net_graph-flag  Indicator: Send graphic
*   stat = SPACE                " net_graph-stat  Status
*   status_text = SPACE         " net_graph-statustext  Status line text
*   super = SPACE               " net_graph-super  Parameter for closing windows
*   titlebar = SPACE            " net_graph-titlebar  Window title
*   wait_for_input = 'X'        " net_graph-flag  Indicator: Wait for input
*   winid = SPACE               " net_graph-winid  Window identification
*   instance =                  " cl_gui_netchart  Network nesting
* TABLES
*   clusters =                  " cng_clustr    Cluster (currently w/o function)
*   cvals =                     " net_cvals     Cluster attributes (currently w/o function)
*   deletions =                 " net_delete    Objects to be deleted
*   inodes =                    " cng_inodes    Insertable nodes
*   nodes =                     " chg_nodes     Nodes
*   nvals =                     " net_nvals     Node attributes
*   pnodes =                    " cng_pnodes    Stack nodes
*   pvals =                     " net_nvals     Stack node attributes
  EXCEPTIONS
    ERR_IN_PROFILE = 1          "               Error in the graphics profile
    INV_PROFILE = 2             "               Incorrect graphics profile
    INV_WINID = 3               "               Incorrect window ID
    .  "  CNET_GRAPHIC_HIERARCHY_PBO

ABAP code example for Function Module CNET_GRAPHIC_HIERARCHY_PBO





The ABAP code below is a full code listing to execute function module CNET_GRAPHIC_HIERARCHY_PBO including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_clusters  TYPE STANDARD TABLE OF CNG_CLUSTR,"TABLES PARAM
wa_clusters  LIKE LINE OF it_clusters ,
it_cvals  TYPE STANDARD TABLE OF NET_CVALS,"TABLES PARAM
wa_cvals  LIKE LINE OF it_cvals ,
it_deletions  TYPE STANDARD TABLE OF NET_DELETE,"TABLES PARAM
wa_deletions  LIKE LINE OF it_deletions ,
it_inodes  TYPE STANDARD TABLE OF CNG_INODES,"TABLES PARAM
wa_inodes  LIKE LINE OF it_inodes ,
it_nodes  TYPE STANDARD TABLE OF CHG_NODES,"TABLES PARAM
wa_nodes  LIKE LINE OF it_nodes ,
it_nvals  TYPE STANDARD TABLE OF NET_NVALS,"TABLES PARAM
wa_nvals  LIKE LINE OF it_nvals ,
it_pnodes  TYPE STANDARD TABLE OF CNG_PNODES,"TABLES PARAM
wa_pnodes  LIKE LINE OF it_pnodes ,
it_pvals  TYPE STANDARD TABLE OF NET_NVALS,"TABLES PARAM
wa_pvals  LIKE LINE OF it_pvals .


DATA(ld_abap_cmd) = some text here

DATA(ld_confirm) = some text here
DATA(ld_control_handle) = 'Check type of data required'.

SELECT single SRTFD
FROM INDX
INTO @DATA(ld_indxkey).

DATA(ld_profile) = 'Check type of data required'.

DATA(ld_pwdid) = some text here

DATA(ld_set_focus) = some text here

DATA(ld_sort) = some text here

DATA(ld_so_contents) = some text here

DATA(ld_so_send) = some text here

DATA(ld_stat) = some text here

DATA(ld_status_text) = some text here

DATA(ld_super) = some text here

DATA(ld_titlebar) = some text here

DATA(ld_wait_for_input) = some text here

DATA(ld_winid) = some text here
DATA(ld_instance) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_clusters to it_clusters.

"populate fields of struture and append to itab
append wa_cvals to it_cvals.

"populate fields of struture and append to itab
append wa_deletions to it_deletions.

"populate fields of struture and append to itab
append wa_inodes to it_inodes.

"populate fields of struture and append to itab
append wa_nodes to it_nodes.

"populate fields of struture and append to itab
append wa_nvals to it_nvals.

"populate fields of struture and append to itab
append wa_pnodes to it_pnodes.

"populate fields of struture and append to itab
append wa_pvals to it_pvals. . CALL FUNCTION 'CNET_GRAPHIC_HIERARCHY_PBO' * EXPORTING * abap_cmd = ld_abap_cmd * confirm = ld_confirm * control_handle = ld_control_handle * indxkey = ld_indxkey * profile = ld_profile * pwdid = ld_pwdid * set_focus = ld_set_focus * sort = ld_sort * so_contents = ld_so_contents * so_send = ld_so_send * stat = ld_stat * status_text = ld_status_text * super = ld_super * titlebar = ld_titlebar * wait_for_input = ld_wait_for_input * winid = ld_winid * instance = ld_instance * TABLES * clusters = it_clusters * cvals = it_cvals * deletions = it_deletions * inodes = it_inodes * nodes = it_nodes * nvals = it_nvals * pnodes = it_pnodes * pvals = it_pvals EXCEPTIONS ERR_IN_PROFILE = 1 INV_PROFILE = 2 INV_WINID = 3 . " CNET_GRAPHIC_HIERARCHY_PBO
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_abap_cmd  TYPE NET_GRAPH-ABAP_CMD ,
it_clusters  TYPE STANDARD TABLE OF CNG_CLUSTR ,
wa_clusters  LIKE LINE OF it_clusters,
ld_confirm  TYPE NET_SET-CONFIRM ,
it_cvals  TYPE STANDARD TABLE OF NET_CVALS ,
wa_cvals  LIKE LINE OF it_cvals,
ld_control_handle  TYPE CNTL_HANDLE ,
it_deletions  TYPE STANDARD TABLE OF NET_DELETE ,
wa_deletions  LIKE LINE OF it_deletions,
ld_indxkey  TYPE INDX-SRTFD ,
it_inodes  TYPE STANDARD TABLE OF CNG_INODES ,
wa_inodes  LIKE LINE OF it_inodes,
ld_profile  TYPE NET_PROFIL ,
it_nodes  TYPE STANDARD TABLE OF CHG_NODES ,
wa_nodes  LIKE LINE OF it_nodes,
ld_pwdid  TYPE NET_GRAPH-PWDID ,
it_nvals  TYPE STANDARD TABLE OF NET_NVALS ,
wa_nvals  LIKE LINE OF it_nvals,
ld_set_focus  TYPE NET_GRAPH-FLAG ,
it_pnodes  TYPE STANDARD TABLE OF CNG_PNODES ,
wa_pnodes  LIKE LINE OF it_pnodes,
ld_sort  TYPE NET_GRAPH-FLAG ,
it_pvals  TYPE STANDARD TABLE OF NET_NVALS ,
wa_pvals  LIKE LINE OF it_pvals,
ld_so_contents  TYPE SOS00-S_OBJDES ,
ld_so_send  TYPE NET_GRAPH-FLAG ,
ld_stat  TYPE NET_GRAPH-STAT ,
ld_status_text  TYPE NET_GRAPH-STATUSTEXT ,
ld_super  TYPE NET_GRAPH-SUPER ,
ld_titlebar  TYPE NET_GRAPH-TITLEBAR ,
ld_wait_for_input  TYPE NET_GRAPH-FLAG ,
ld_winid  TYPE NET_GRAPH-WINID ,
ld_instance  TYPE CL_GUI_NETCHART .


ld_abap_cmd = some text here

"populate fields of struture and append to itab
append wa_clusters to it_clusters.

ld_confirm = some text here

"populate fields of struture and append to itab
append wa_cvals to it_cvals.
ld_control_handle = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_deletions to it_deletions.

SELECT single SRTFD
FROM INDX
INTO ld_indxkey.


"populate fields of struture and append to itab
append wa_inodes to it_inodes.
ld_profile = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_nodes to it_nodes.

ld_pwdid = some text here

"populate fields of struture and append to itab
append wa_nvals to it_nvals.

ld_set_focus = some text here

"populate fields of struture and append to itab
append wa_pnodes to it_pnodes.

ld_sort = some text here

"populate fields of struture and append to itab
append wa_pvals to it_pvals.

ld_so_contents = some text here

ld_so_send = some text here

ld_stat = some text here

ld_status_text = some text here

ld_super = some text here

ld_titlebar = some text here

ld_wait_for_input = some text here

ld_winid = some text here
ld_instance = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CNET_GRAPHIC_HIERARCHY_PBO or its description.