Paramètre | Reférence | Type | Long. | Valeur par déf. | Facultatif | Description |
---|---|---|---|---|---|---|
GRAPH_CMD | NET_GRAPH-GR_MES | C | 12 | SPACE | X | User command |
Paramètre | Reférence | Long. | Facultatif | Description |
---|---|---|---|---|
ALL_BOXES | BCBOXES | 20 | X | Box object tables |
ALL_BOX_VALS | BCVALS | 88 | X | Object tables of box attributes |
ALL_LINKS | BCLINKS | 24 | X | Link object tables |
ALL_LINK_VALS | BCNVALS | 92 | X | Object tables of link attributes |
ALL_NODES | BCNODES | 16 | X | Node object tables |
ALL_NODE_VALS | BCNVALS | 92 | X | Object table of node attributes |
ALL_POSITIONS | BCPOSITION | 16 | X | Object table of the objects to be positioned |
BOXES | BCBOXES | 20 | X | Box transfer table |
BOX_VALS | BCVALS | 88 | X | Transfer table of box attributes |
DELETIONS | BCDELETE | 12 | X | Transfer table of the objects to be deleted |
LINKS | BCLINKS | 24 | X | Link transfer table |
LINK_VALS | BCNVALS | 92 | X | Transfer table of link attributes |
NODES | BCNODES | 16 | X | Node transfer table |
NODE_VALS | BCNVALS | 92 | X | Transfer table of node attributes |
POSITIONS | BCPOSITION | 16 | X | Transfer table of objects to be positioned |
Confirm mode: ============== - Update of the tables ALL_NODES, ALL_NVALS, ALL_BOXES, ALL_BVALS and ALL_POSITIONS. - Formatting or extension of the data returned by the graphics module. The tables NODES, NVALS, BOXES, BVALS, POSITIONS and DELETIONS can be returned to the graphics module in the dialog loop. Non-confirm mode: ================== - Update the tables ALL_NODES, ALL_NVALS, ALL_BOXES, ALL_BVALS and ALL_POSITIONS. Note: ========== This modules provides the semantics for editing the transfer tablesbased on user commands. If the application already manages the data for the graphic (in buffertables, for example), we recommend that you copy this module to thecorresponding function group and adjust it accordingly (the semanticsstay the same). Short character for user action in the graphic. (Constants are provided in the Include 'LBARCCON'.) The following user actions can be reported back to the ABAP: In confirm mode (see 'BARC_GRAPHIC_PBO' parameter 'CONFIRM'): 'ABACK' (BC_CONST-ASK_FOR_BACK) The F-15 key was pressed. 'ACON' (BC_CONST-ASK_FOR_CONNECT) A link was inserted in the graphic. For data see table LINKS. 'ADEL' (BC_CONST-ASK_FOR_DELETE) Objects are to be deleted. For data see table DELETIONS. 'ADUP' (BC_CONST-ASK-FOR_DUPLICATE) One or more objects are to be duplicated. For data see tableBOXES, NODES, POSITIONS. 'AEXIT' (BC_CONST-ASK_FOR_EXIT) The F3 button was pressed. 'AINS' (BC_CONST-ASK_FOR_INSERT) An object is to be inserted. For data see tables BOXES, NODES, NODE_VALS, POSITIONS. 'AMOD' (BC_CONST-ASK_FOR_MODIFY) An object is to be changed. For data see tables BOX_VALS, NODE_VALS. 'AMOVEBOX' (BC_CONST-ASK_FOR_MOVEBOX) A box is to be shifted. For data see table POSITIONS. 'AMOVELAYER' (BC_CONST-ASK_FOR_MOVELAYER) A layer is to be shifted. For data see table NODE_VALS. 'AMOVENODE' (BC_CONST-ASK_FOR_MOVENODE) A node is to be shifted within a chart. For data see tables NODE_VALS, POSITIONS. A node is to be shifted beyond chart limits . For data see tables NODES, NODE_VALS, POSITIONS, DELETIONS 'AQUIT' (BC_CONST-ASK_FOR_QUIT) The F12 key was pressed. 'ASCALELEFT' (BC_CONST-ASK_FOR_SCALELEFT) A layer is to be scaled left. For data see table NODE_VALS. 'ASCALERIGHT' (BC_CONST-ASK_FOR_SCALERIGHT) A layer is to be scaled right. For data see table NODE_VALS. In non-confirm mode (see 'BARC_GRAPHIC_PBO' parameter 'CONFIRM'): Independent values: 'DBCL' (BC_CONST-DOUBLE_CLICK) An object was double-clicked. For data see tables BOXES, NODES, LINKS. When double-clicking a box field the field GR_SEL_FIELD was filled with its name. 'SEL' (BC_CONST-GET_SELECTION) ABAP_CMD = 'SEL' (function module BARC-GRAPHIC_PBO) queried the current object selection. For data see tables BOXES, NODES, LINKS. 'CUSTOM' (BC_CONST-GET_SETTINGS) ABAP_CMD = 'CUSTOM' (function module BARC_GRAPHIC_PBO) queried the current settings For data see the exporting parameter SETTINGS. 'U' (BC_CONST-TIMER) A timer event was reached (see field timer in customizing options). Table of the graphical objects of the table area to be inserted in thegraphic or contained in the graphic. Table structure: --------------- ID = Identification Beginning with 1, the table should be numbered serially. TYPE = Type of graphical object. All possible entries are listed below. TYPE|Name or meaning |Constants in LBARCCON ----+----------------------------------------+------------------------ B |Graphical object (border box) |BC_CONST-BORDER_BOX |for the chart header | R |Graphical object (row box) for the table|BC_CONST-ROW_BOX |area header and the individual graphical| |objects in the table area | C |Column box |BC_CONST-COLUMN_BOX The listed constants are in the Include 'LBARCCON' CHART_ID = ID of the chart in which the graphical object is to be inserted FORM_TYPE = Form type of the graphical object Form type maintenance is done in customizing. If the form type specified here does not exist in the specified graphic profile then the standard form type (00) is used. COLOR_TYPE = Color type of the graphical object Color type maintenance is done in customizing. If the color type specified here does not exist in the specified graphic profile then the standard color type (00) is used. Attributes of the graphical object of the table area, which alreadyexist in the graphic or are to be sent to the graphic. Table structure: --------------- ID = Identification of the graphical object FL = Attribute type VAL = Attribute value The following table lists all possible attributes as well as theattribute values resulting from them. FL | VAL |Constants in LBARCCON ---------+----------------------------------+-------------------------- '0' |Any 40-character text | '1'-'99' |Any 40-character text | 'L' |Graphical object line color |BC_CONST-LINE_COLOR 'B' |Graph. obj. background color |BC_CONST-BACKGROUND_COLOR 'F' |Graphical object form type |BC_CONST-FORM_TYPE 'h' |Graphical object color type |BC_CONST-COLOR_TYPE Constants for all attribute types (FL) are provided in Include'LBARCCON'. Table of links to be inserted in the graphic, or links already in thegraphic. Table structure: --------------- ID = Link identification Beginning with 1 the link identification should be numbered serially. CHART_ID = ID of the chart in which the link should be inserted. NODEPRE_ID = Identification of predecessor object NODESUC_ID = Identification of successor object FORM_TYPE = Form type of node Form type maintenance is done in customizing. If the form type specified here does not exist in the graphic profile then the standard form type (00) is used. COLOR_TYPE = Color type of node Color type maintenance is done in customizing. If the color type specified here does not exist in the graphic profile then the standard color type (00) is used. AOB = Type of relationship The following values can be used: Value| Name |Constant in LBARCCON -----+-------------------+--------------------- AA | SS relationship | BC_CONST-LINK_AOB_AA AE | SF relationship | BC_CONST-LINK_AOB_AE EA | FS relationship | BC_CONST-LINK_AOB_EA EE | FF relationship | BC_CONST-LINK_AOB_EE If no relationship type is specified, and the direction of the link isnot specified in the link attributes, then an FS relationship is alwaysinserted. The direction of a link with the relationships specifiedabove is explained below: SS relationship (AOB = AA): FF relationship (AOB = EE): +---------------+ +---------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ FS relationship (AOB = EA): SF relationship (AOB = AE): +-----------+ +-------------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ Attributes of links to be sent to the graphic or links already in thegraphic. Table structure: --------------- ID = Identification of the link CHART_ID = Identification of the chart in which the link is to be inserted FL = Attribute type; VAL = Attribute value The following table lists all possible values for the attribute typeand value, their meaning as well as the constants reserved for them. FL |Constant |VAL ---+-------------------------+--------------------------------------- h |BC_CONST-COLOR_TYPE |Color type of the link P |BC_CONST-LINK_PREDECESSOR|ID of link predecessor object S |BC_CONST-LINK_SUCCESSOR |ID of link successor object V |BC_CONST-LINK_VISIBILITY |1 = visible (=standard) 0 = not visible T |BC_CONST-LINK_TYPE |1 = orthogonal (=standard) 0 = diagonal Y |BC_CONST-LINK_PORT |Values between 0 and 20 See port calc. Port calculation ------------------ The port determines where the link begins on the predecessor object andwhere it ends on the successor object. The relationship type is alsodetermined. Port calculation for the predecessor and successor objectis executed as follows: Predecessor: Successor: +-----+ +-----+ | 1 | Link | 1 | |0 2|--------------------------|0 2| | 3 | | 3 | +-----+ +-----+ The numbers in the objects serve the port calculation. To generate alink like the one displayed above, calculate the port as follows: Port = ( For the above link: Port = ( 2 * 4 ) + 0 = 8 Since in this way the SS, FF and SF relationships always begin in themiddle of the node, special ports are provided, listed as follows: SS relationship with port 16: SS relationship with port 17: Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +---------------+ +---------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ FF relationship with port 18: FF relationship with port 19: Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +---------------+ +---------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ FS relationship with port 20: FS relationship with port 21: Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +-----------+ +-----------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ SF relationship with port 22 SF relationship with port 23/24 Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +-------------------+ +-------------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ The relationship specified in the table links is transformed into thefollowing ports: Rel.|Name |Port |Constants in LBARCCON ----+-----------------+-----+------------------------------------- SS |SS relationship |16 |BC_CONST-LINK_PORT_16 FF |FF relationship |18 |BC_CONST-LINK_PORT_18 SF |SF relationship |22 |BC_CONST-LINK_PORT_22 FS |FS relationship |20 |BC_CONST-LINK_PORT_20 If these standard settings are not used then the port of a link must beset explicitly as above. Table of all nodes to be included in the bar chart graphic, or already there. Table structure: --------------- ID = Node identification Beginning at 1 the node dentification should be numbered serially. CHART_ID = ID of the chart in which the node is to be inserted FORM_TYPE = Form type of the node Form type maintenance is done in customizing. If the form type specified here does not exist in the graphic profile then the default form type (00) is used. COLOR_TYPE = Color type of the node Color type maintenance is done in customizing. If the color type specified here does not exist in the graphic profile then the default color type (00) is used. Table of attributes of nodes that are already in the bar chartr graphicor are ready to be sent. Table structure: --------------- ID = Node ID CHART_ID = Chart ID FL = Attribute type VAL = Attribute value The following table lists all possible attribute types, the attributevalues resulting from them and the relevant constants in the Includefile LBARCCON. FL | VAL -----+------------------------------------------------------------- A |Layer type (Layer type maintenance is done in customizing. If | a layer type specified here does not exist then the | default layer type (00) is used.) R |Layer type - " - S |'1' --> Selected or '0' --> Cancel selection C |Calendar identification 0 |Any 40-character text 1-99 |Date in the form,:'TT:MM:JJJJ:HH:MM:SS' or any 40-character |text. FL | Konstanten im LBARCCON -----+----------------------- A |BC_CONST-ADD_LAYER R |BC_CONST-REMOVE_LAYER S |BC_CONST-SET_CALENDAR C |BC_CONST-SELECTED_NODE Table with all positions of boxes and nodes that are to be insertedinto the bar chart graphic or that are already there. Positions are thelines in the bar chart graphic. Table structure: --------------- CHART_ID = Chart ID OBJ_TYPE = Object type OBJ_ID = Object ID ROW_NUMBER = Line number for the positioning of the boxes and nodes in lines of the bar chart. Note that the boxes for the chart and the table area titles are NOT to be positioned. The following table lists all possible values for the field OBJ_TYPE,their meaning, as well as the relevant constants in the Include fileLBARCCON. OBJ_TYPE |Meaning |Constant in LBARCCON ---------+----------------------------------+-------------------------- B |Graphical object in table area and|BC_CONST-BOX_OBJECT |chart title | N |Graphical object in diagram area |BC_CONST-NODE_OBJECT Table of boxes to be inserted in the bar chart graphic. Table structure: --------------- ID = Identification Beginning with 1 the identification should be numbered serially. TYPE = Graphical object type. The following lists all possible entries. TYPE|Name or meaning |Constrants in LBARCCON ----+----------------------------------------+------------------------ B |Graphical object (border box) |BC_CONST-BORDER_BOX |for the chart header | R |Graphical object (row box) for the table|BC_CONST-ROW_BOX |area header and the individual graphical| |objects in the table area | C |Column box |BC_CONST-COLUMN_BOX The constants listed are in the Include 'LBARCCON' CHART_ID = ID of the chart in which the graphical object is to be inserted FORM_TYPE = Form type of the graphical object Form type maintenance is done in customizing. If the form type specified here does not exist in the specified profile then the standard form type (00) is used. COLOR_TYPE = Color type of the graphical object Color type maintenance is done in customizing. If the color type specified here does not exist in the specified profile then the standard color type (00) is used. Table for the attributes of the boxes to be sent to the bar chartgraphic. Table structure: --------------- ID = Identification of the graphical object FL = Attribute type VAL = Attribute value The following table lists all possible attribute types and theattribute values resulting from them. FL | VAL |Constants in LBARCCON ---------+----------------------------------+-------------------------- '0' |Any 40-character text | '1'-'99' |Any 40-character text | 'L' |Graphical object line color |BC_CONST-LINE_COLOR 'B' |Graph. obj. background color |BC_CONST-BACKGROUND_COLOR 'F' |Graphical object form type |BC_CONST-FORM_TYPE 'h' |Graphical object color type |BC_CONST-COLOR_TYPE Constants are provided for all attribute types in the Include'LBARCCON'. Table of all objects to be removed from the bar chart graphic. Table structure: --------------- CHART_ID = Identification of the chart to which the object is assigned OBJ_TYPE = Object type OBJ_ID = Identification of the object to be deleted The following lists all possible object types that can be deleted via the table DELETIONS. OBJ_TYPE|Meaning |Constants in LBARCCON --------+-------------------------------------+----------------------- 'B' |Graph. obj. in table area (boxes) |BC_CONST-BOX_OBJECT 'C' |Chart |BC_CONST-CHART_OBJECT 'D' |Date line |BC_CONST-DATELINE_OBJECT 'G' |Time grid |BC_CONST-GRID_OBJECT 'N' |Graph. obj. in diag. area (node) |BC_CONST-NODE_OBJECT 'R' |Time scale (ribbons) |BC_CONST-RIBBON_OBJECT 'K' |Links |BC_CONST-LINK_OBJECT Constants are provided for all object types (OBJ_TYPE) in the Include'LBARCCON'. Table of links to be inserted in the graphic. Table structure: --------------- ID = Identification of the link Beginning with 1 the link identification should be numbered serially. CHART_ID = ID of the chart in which the link is to be inserted. NODEPRE_ID = Identification of the predecessor object NODESUC_ID = Identification of the successor object FORM_TYPE = Form type of the node Form type maintenance is done in customizing. If the form type specified here does not exist in the graphic profile then the standard form type (00) is used. COLOR_TYPE = Color type of the node Color type maintenance is done in customizing. If the color type specified here does not exist in the graphic profile then the standard color type (00) is used. AOB = Relationship type The following values can be used: Wert | Name |Constant im LBARCCON -----+-------------------+--------------------- AA | SS relationship | BC_CONST-LINK_AOB_AA AE | SF relationship | BC_CONST-LINK_AOB_AE EA | FS relationship | BC_CONST-LINK_AOB_EA EE | FF realtionship | BC_CONST-LINK_AOB_EE If no relationship type is specified and the link attributes do notspecify the direction of the link then an FS relationship is alwaysinserted. The relationships specified above are depicted below: SS relationship (AOB = AA): FF relationship (AOB = EE): +---------------+ +---------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ FS relationship (AOB = EA): SF relationship (AOB = AE): +-----------+ +-------------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ Attributes of links to be sent to the graphic. Table structure: --------------- ID = Link identification CHART_ID = Identification of the chart in which the link is to be inserted FL = Attribute types; VAL = Attribute values The following lists all possible values for the attribute type andvalue, their meaning and the constants reserved for them. FL |Constant |VAL ---+-------------------------+--------------------------------------- h |BC_CONST-COLOR_TYPE |Link color type P |BC_CONST-LINK_PREDECESSOR|ID of link predecessor object S |BC_CONST-LINK_SUCCESSOR |ID of link successor object V |BC_CONST-LINK_VISIBILITY |1 = visible (=standard) 0 = not visible T |BC_CONST-LINK_TYPE |1 = orthogonal (=standard) 0 = diagonal Y |BC_CONST-LINK_PORT |Values between 0 and 20 See port calc. Port calculation ------------------ The port determines where the link begins on the predecessor object andends on the successor object. The relationship type is also determined.Port calculation for the predecessor and successor object is carriedout as follows: Predecessor: Successor: +-----+ +-----+ | 1 | Link | 1 | |0 2|--------------------------|0 2| | 3 | | 3 | +-----+ +-----+ The numbers in the objects serve the port calculation. To generate thelink depicted above calculate the port as follows: Port = ( For the above link: Port = ( 2 * 4 ) + 0 = 8 Since in this way the SS, FF and SF relationships always begin in themiddle of the node, special ports are provided, as listed below: SS relationship with port 16: SS relationship with port 17: Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +---------------+ +---------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ FF relationship with port 18: FF relationship with port 19: Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +---------------+ +---------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ FS relationship with port 20: FS relationship with port 21: Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +-----------+ +-----------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ SF relationship with port 22 SF relationship with port 23/24 Constant: BC_CONST-LINK_PORT_16 Constant: BC_CONST-LINK_PORT_17 +-------------------+ +-------------------+ | | | | +---+ +---+ +---+ +---+ | | | | | | | | +---+ +---+ +---+ +---+ The relationship specified in the table links is transformed into thefollowing ports: Rel.|Name |Port |Constants in LBARCCON ----+-----------------+-----+------------------------------------- SS |SS relationship |16 |BC_CONST-LINK_PORT_16 FF |FF relationship |18 |BC_CONST-LINK_PORT_18 SF |SF relationship |22 |BC_CONST-LINK_PORT_22 FS |FS relationship |20 |BC_CONST-LINK_PORT_20 If these standard settings are not used then the port of a link must beset explicitly, as described above. Table of nodes to be inserted in the bar chart graphic. Table structure: --------------- ID = Node identification Beginning at 1 the node identification should be numbered serially. CHART_ID = ID of the chart in which the node is to be inserted. FORM_TYPE = Form type of the node Form type maintenance is done in customizing. If the form type specified here does not exist in the graphic then the default form type (00) is used. COLOR_TYPE = Color type of the node Color type maintenance is done in customizing. If the color type specified here does not exist in the graphic then the default color type (00) is used. Table of attributes of the nodes to be sent to the bar chart graphic. Table structure: --------------- ID = Node ID CHART_ID = Chart ID FL = Attribute type VAL = Attribute values The following table lists all possible attribute types, the attributevalues resulting from them and the constants reserved for the attributetypes in the Include file LBARCCON. FL | VAL -----+------------------------------------------------------------- A |Layer type (Layer types are maintained in curtomizing. | If a layer type specified here does not exist then the | default layer type (00) is used.) R |Layer type - " - S |'1' --> selected or '0' --> cancel selection C |Calendar identification 0 |Any 40-character text 1-99 |Date in the form:'TT:MM:JJJJ:HH:MM:SS' or any |40-character text FL |Constants in LBARCCON -----+----------------------- A |BC_CONST-ADD_LAYER R |BC_CONST-REMOVE_LAYER S |BC_CONST-SET_CALENDAR C |BC_CONST-SELECTED_NODE Table with all positions of boxes and nodes to be inserted in the barchart graphic. Positions are the lines in the different charts in thebar chart graphic. Table structure: --------------- CHART_ID = Chart ID OBJ_TYPE = Object type OBJ_ID = Object ID ROW_NUMBER = Line number for the positioning of boxes and nodes in the lines of the bar chart. Note that the boxes for the chart and the table area headers are NOT to be positioned. Th following lists all possible values for the field OBJ_TYPE, theirmeaning, as well as the constants reserved in the Include fileLBARCCON. OBJ_TYPE |Meaning |Constant in LBARCCON ---------+----------------------------------+-------------------------- B |Graphical object in table area and|BC_CONST-BOX_OBJECT |in the chart title | N |Graphical object in diagram area |BC_CONST-NODE_OBJECT |