SAP Reports / Programs | Basis Components | Frontend Services - Use subcomponents (see SAP Note 1322184) | Graphic(BC-FES-GRA) SAP BC

NETZOCX2 SAP ABAP Report - Demonstration Program: Network Control with Callback Processing







NETZOCX2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter NETZOCX2 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT NETZOCX2. "Basic submit
SUBMIT NETZOCX2 AND RETURN. "Return to original report after report execution complete
SUBMIT NETZOCX2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PRF_NAME = Name
Selection Text: PRF_INDX = Index
Selection Text: PRF_GRUP = Group
Title: Demonstration Program: Network Control with Callback Processing
Text Symbol: 009 = Title
Text Symbol: 010 = Graphic prfl
Text Symbol: 021 = Test
Text Symbol: 006 = Link modified
Text Symbol: 001 = Node inserted
Text Symbol: 002 = Node copied
Text Symbol: 003 = Node / link deleted
Text Symbol: 004 = Link inserted
Text Symbol: 005 = Node modified
Text Symbol: 022 = No Object Selected
Text Symbol: 029 = Typ.7
Text Symbol: 030 = Node 1
Text Symbol: 031 = Node 2
Text Symbol: 032 = Node 3
Text Symbol: 033 = Node 4
Text Symbol: 028 = Typ.6
Text Symbol: 023 = Typ.1
Text Symbol: 024 = Typ.2
Text Symbol: 025 = Typ.3
Text Symbol: 026 = Typ.4
Text Symbol: 027 = Typ.5
Text Symbol: 008 = Positions determined
Text Symbol: 007 = Selections determined
Text Symbol: 054 = Text k
Text Symbol: 053 = Text j
Text Symbol: 052 = Text i
Text Symbol: 051 = Text h
Text Symbol: 050 = Text g
Text Symbol: 055 = Text l
Text Symbol: 056 = Frame modified
Text Symbol: 049 = Text f
Text Symbol: 038 = Text b
Text Symbol: 037 = Text a
Text Symbol: 036 = Node 7





Text Symbol: 035 = Node 6
Text Symbol: 034 = Node 5
Text Symbol: 039 = Text c
Text Symbol: 048 = Text e
Text Symbol: 047 = Text d
Text Symbol: 044 = Frame 2
Text Symbol: 043 = Frame 1
Text Symbol: 040 = 6


INCLUDES used within this REPORT NETZOCX2

INCLUDE APPLG_AUTO_TEST_INIT.
INCLUDE APPLG_AUTO_TEST_FORM.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

NETWORK_CREATE CALL FUNCTION 'NETWORK_CREATE' EXPORTING owner_repid = sgrc_const-main_repid dynnr = sgrc_const-main_dynnr CHANGING handle = netz_ocx EXCEPTIONS create_error = 1 OTHERS = 2.

SGRC_ADD_CALLBACK CALL FUNCTION 'SGRC_ADD_CALLBACK' EXPORTING call_back_form = 'PBO_CALLBACK' call_back_prog = g_repid pbo = 'X' winid = net_const-def_id control_handle = netz_ocx.

SGRC_ADD_CALLBACK CALL FUNCTION 'SGRC_ADD_CALLBACK' EXPORTING call_back_form = 'ACTION_CALLBACK' call_back_prog = g_repid pai = 'X' pai_interest = 'I' "Benutzerkommando winid = net_const-def_id control_handle = netz_ocx.

SGRC_ADD_CALLBACK CALL FUNCTION 'SGRC_ADD_CALLBACK' EXPORTING call_back_form = 'EXIT_CALLBACK' call_back_prog = g_repid pai = 'X' pai_interest = 'D' "Grafik geschloßen winid = net_const-def_id control_handle = netz_ocx.

SGRC_MAIN_LOOP CALL FUNCTION 'SGRC_MAIN_LOOP' EXPORTING control_handle = netz_ocx.

CNET_GRAPHIC_PAI CALL FUNCTION 'CNET_GRAPHIC_PAI' EXPORTING control_handle = netz_ocx "für OCX-Umstellung IMPORTING gr_mes = gr_mes gr_mode = mode gr_sel_field = sel_field TABLES boxes = boxes_tab bvals = bvals_tab clusters = clusters_tab cvals = cvals_tab deletions = delete_tab frames = frames_tab fvals = fvals_tab lines = lines_tab lvals = lvals_tab nodes = net_nodes_tab nvals = nvals_tab positions = positions_tab EXCEPTIONS inv_winid = 01.

SGRC_POPUP_TO_CHANGE_HEADER CALL FUNCTION 'SGRC_POPUP_TO_CHANGE_HEADER' EXPORTING text_imp = headertext default_text_imp = def_headertext IMPORTING text_exp = headertext.

CNET_LOGIC_NETWORK CALL FUNCTION 'CNET_LOGIC_NETWORK' EXPORTING confirm = net_const-confirm_yes lg_mes = lg_mes lg_mode = mode TABLES all_lines = all_lines_tab all_lvals = all_lvals_tab all_nodes = all_nodes_tab all_nvals = all_nvals_tab deletions = delete_tab lines = lines_tab lvals = lvals_tab nodes = net_nodes_tab nvals = nvals_tab.

CNET_GRAPHIC_NETWORK_PBO CALL FUNCTION 'CNET_GRAPHIC_NETWORK_PBO' EXPORTING control_handle = netz_ocx abap_cmd = abap_cmd confirm = net_const-confirm_yes profile = profile stat = stat status_text = status_text TABLES clusters = clusters_tab cvals = cvals_tab deletions = delete_tab inodes = inodes_tab lines = lines_tab lvals = lvals_tab nodes = net_nodes_tab nvals = nvals_tab positions = positions_tab EXCEPTIONS err_in_profile = 01 inv_profile = 02 inv_winid = 03.

CNET_GRAPHIC_PAI CALL FUNCTION 'CNET_GRAPHIC_PAI' EXPORTING control_handle = netz_ocx at_control_destroy = sgrc_const-yes.

CONTROL_DESTROY CALL FUNCTION 'CONTROL_DESTROY' CHANGING h_control = netz_ocx EXCEPTIONS OTHERS = 1.

CNET_SET_OPTIONS CALL FUNCTION 'CNET_SET_OPTIONS' EXPORTING noboxmove = net_const-yes.

CNET_LOGIC_NETWORK CALL FUNCTION 'CNET_LOGIC_NETWORK' TABLES all_lines = all_lines_tab all_lvals = all_lvals_tab all_nodes = all_nodes_tab all_nvals = all_nvals_tab deletions = delete_tab lines = lines_tab lvals = lvals_tab nodes = net_nodes_tab nvals = nvals_tab.

CNET_GRAPHIC_NETWORK_PBO





CALL FUNCTION 'CNET_GRAPHIC_NETWORK_PBO' EXPORTING abap_cmd = abap_cmd confirm = net_const-confirm_yes profile = profile stat = stat status_text = status_text control_handle = netz_ocx "für OCX-Umstellung TABLES clusters = clusters_tab cvals = cvals_tab deletions = delete_tab inodes = inodes_tab lines = lines_tab lvals = lvals_tab nodes = net_nodes_tab nvals = nvals_tab positions = positions_tab EXCEPTIONS err_in_profile = 1 inv_profile = 2 inv_winid = 3.

CNET_FIELD_TO_INDEX_CVALS CALL FUNCTION 'CNET_FIELD_TO_INDEX_CVALS' EXPORTING cluster_type = all_clusters-type TABLES cvals = cvals.

CNET_FIELD_TO_INDEX_LVALS CALL FUNCTION 'CNET_FIELD_TO_INDEX_LVALS' EXPORTING line_type = all_lines-type TABLES lvals = lvals.

CNET_FIELD_TO_INDEX_NVALS CALL FUNCTION 'CNET_FIELD_TO_INDEX_NVALS' EXPORTING node_type = all_nodes-type TABLES nvals = nvals.

CNET_SET_LEGEND CALL FUNCTION 'CNET_SET_LEGEND' EXPORTING foot_line = foot_line head_line = head_line legend_type = net_const-type_a TABLES legend = legend.

GRAPH_SET_CUA_STATUS CALL FUNCTION 'GRAPH_SET_CUA_STATUS' EXPORTING program = prog status = 'GRAFIK' TABLES excluding = excluding_tab EXCEPTIONS inv_cua_info = 1.

CNET_MAKE_BOXES CALL FUNCTION 'CNET_MAKE_BOXES' TABLES boxes = boxes bvals = bvals.

CNET_SET_TIMEEGG_TEXT CALL FUNCTION 'CNET_SET_TIMEEGG_TEXT' EXPORTING text = time_egg_text.

CNET_SET_LABEL CALL FUNCTION 'CNET_SET_LABEL' EXPORTING id = nvals-id text = text.

SCROLLING_IN_TABLE CALL FUNCTION 'SCROLLING_IN_TABLE' EXPORTING entry_act = entry_act entry_to = entry_to last_page_full = space loops = line_count ok_code = save_ok-code IMPORTING entry_new = entry_new EXCEPTIONS no_entry_or_page_act = 01 no_entry_to = 02 no_ok_code_or_page_go = 03.

SCROLLING_IN_TABLE CALL FUNCTION 'SCROLLING_IN_TABLE' EXPORTING entry_act = entry_act entry_to = entry_to last_page_full = space loops = line_count_1 ok_code = save_ok-code IMPORTING entry_new = entry_new EXCEPTIONS no_entry_or_page_act = 01 no_entry_to = 02 no_ok_code_or_page_go = 03.

SCROLLING_IN_TABLE CALL FUNCTION 'SCROLLING_IN_TABLE' EXPORTING entry_act = entry_act entry_to = entry_to last_page_full = space loops = line_count_1 ok_code = save_ok-code IMPORTING entry_new = entry_new EXCEPTIONS no_entry_or_page_act = 01 no_entry_to = 02 no_ok_code_or_page_go = 03.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name NETZOCX2 or its description.