‎2008 Jan 17 3:42 PM
Hello,
I need to create a graphic in SAP, something like a building in RE module, with areas that I can select or drag with mouse.
I see that SAP has many type of Graphics, but I don't know what kind of them I need.
Thanks.
‎2008 Jan 18 12:48 PM
Hi,
You can do the graphics by Object Oriented concepts. Just for an example see the sample program sap_picture_demo_icon .
Regards,
Renjith Michael.
Edited by: Renjith Michael on Jan 18, 2008 6:20 PM
‎2008 Jan 18 12:44 PM
Hi ,
You can use FM GRAPH_MATRIX_3D
for graphical 3D display.
Here is the sample code:
data: begin of tab occurs 0,
class(10) type c,
val1(2) type i,
val2(2) type i,
val3(2) type i,
end of tab.
data: begin of opttab occurs 1,
c(20),
end of opttab.
tab-class = 'SAP'.
tab-val1 = '10'.
tab-val2 = '15'.
tab-val3 = '20'.
append tab.
clear tab.
tab-class = 'ORACLE'.
tab-val1 = '08'.
tab-val2 = '12'.
tab-val3 = '18'.
append tab.
clear tab.
tab-class = 'E-BIZ'.
tab-val1 = '20'.
tab-val2 = '13'.
tab-val3 = '08'.
append tab.
clear tab.
*&-- Type of diagram
opttab = 'FIFRST = 3D'.
append opttab.
*&-- Kind of object
opttab = 'P3TYPE = TO'.
append opttab.
*&-- Colors of the Objects
opttab = 'P3CTYP = RO'.
append opttab.
*&-- Main title Size
opttab = 'TISIZE = 1'.
append opttab.
*&-- Background Color
opttab = 'CLBACK = X'.
append opttab.
call function 'GRAPH_MATRIX_3D'
exporting
col1 = '2005'
col2 = '2006'
col3 = '2007'
dim2 = 'Practices'
dim1 = 'Years'
titl = 'Growth In Percentage'
tables
data = tab
opts = opttab
exceptions
others = 1.
‎2008 Jan 18 12:48 PM
Hi,
You can do the graphics by Object Oriented concepts. Just for an example see the sample program sap_picture_demo_icon .
Regards,
Renjith Michael.
Edited by: Renjith Michael on Jan 18, 2008 6:20 PM
‎2008 Jan 18 12:56 PM
Use transaction SE78 to import graphics to SAP.
To Include graphics in the form there are two ways-
1. In the form painter,use menu Edit->Graphic->Create
2. Using the INCLUDE statement in a window.
To use an INCLUDE statment, in the script editor and use menu Include->Graphic. The include can look like this for a bitmap:
/: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON