* Daten an Grafik ьbergeben
CALL FUNCTION 'GRAPH_RECEIVE'
IMPORTING
MCODE = M_TYP
EXCEPTIONS
INV_COMMUNICATION = 1
NO_BATCH = 2.
IF NOT SY-SUBRC IS INITIAL.
EXIT.
ENDIF.
CASE M_TYP.
WHEN SGRC_CONST-M_TYP_D.
EXIT.
WHEN SGRC_CONST-M_TYP_I.
* Auswertung der Daten von der Grafik (fьr Drucken)
CALL FUNCTION 'BARC_GRAPHIC_PAI'
IMPORTING
GRAPH_CMD = GRAPH_CMD
TABLES
BOXES = BOXES
BOX_VALS = BOX_VALS
DELETIONS = DELETIONS
NODES = NODES
NODE_VALS = NODE_VALS
POSITIONS = POSITIONS
LINKS = LINKS
LINK_VALS = LINK_VALS
EXCEPTIONS
INV_WINID = 1.
ABAP_CMD = GRAPH_CMD.
STAT = SGRC_CONST-STAT_4. "Wait for input
ENDCASE.
ENDDO.
*---------------------------------------------------------------------*
* FORM MAKE_BOX *
*---------------------------------------------------------------------*
* Erzeugen einer Box *
*---------------------------------------------------------------------*
FORM MAKE_BOX TABLES BOXES STRUCTURE BCBOXES
BOX_VALS STRUCTURE BCVALS
POSITIONS STRUCTURE BCPOSITION
USING CHART LIKE BCCHART-ID
ID TYPE I
FORMAT
COLOR
TEXT
ROW TYPE I.
*---------------------------------------------------------------------*
* FORM SET_BOXES *
*---------------------------------------------------------------------*
* Erzeugen der Boxen fьr den Tabellenteil der Grafik *
*---------------------------------------------------------------------*
FORM SET_BOXES TABLES BOXES STRUCTURE BCBOXES
BOX_VALS STRUCTURE BCVALS
POSITIONS STRUCTURE BCPOSITION
USING CHART LIKE BCCHART-ID.
*Text elements
*----------------------------------------------------------
* 001 Boxes
* 002 Box number 1
* 003 Box number 2
* 004 Box number 3
* 005 Box number 4
* 006 Box number 5
*Selection texts
*----------------------------------------------------------
* GRUPPE Graphic profile group
* INDEX Graphic profile index
* NAME Graphic profile name
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.