on 04-28-2009 2:28 PM
Hi gurus,
can anybody tell me how to print graphs,charts according to data in smartforms?
Thanks,
sanjay
Hi Sanjay.
I have the same requirement as you had . Could you please tell me how u achieved Barchart in
Smartform? instead of getting it in Graphical editor.
Thanks,
Gowri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using following FMs,
GRAPH_2D --Demo program GRBUSG_1
GRAPH_3D .--Demo program GRBUSG_2
GRAPH_MATRIX_2D--Demo program GRBUSG_3
GRAPH_MATRIX_3D--Demo program
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to the trx-DWDM and go for the option workbench demos and select the option graphics library, u get the programs that displays the graphics, u can refer to that and write code accordingly in ur program lines of the smartforms.
Linear graphs are not possible in smartforms however you can print barcharts.
1) Create a window resembling the bar with some background color.
2) Now create a table with one cell whose position and width overlap the created window. then according to the data you fill up the table, contents of the cell will be space.
3) That way the window will be reduced from the top and hence will represent a bar displaying data.
4) Similarly you can create other windows and their corresponding tables so that at the end it looks like a bar chart.
U can look at this wiki as well
Hope it helps.
Regards,
Manish
Edited by: MANISH GUPTA on May 22, 2009 7:14 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
May be you try like this...
Create a window and then use program lines...
Call the FM passing the internal table of the smartform interface...
CALL FUNCTION 'GRAPH_2D'
EXPORTING
TITL = TEXT-001
TABLES
DATA = DATA.
wherein 'DATA' is the internal table with the first column is a TEXT and the second one is a VALUE.
Regards,
Ram
Edited by: Ramakrishna Peri on May 22, 2009 10:32 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You create a window resembling the bar with some background colour.If you print the window, it will print like a bar with the colour that you have given.
Now, create a table with one cell whose position and width should overlap the created window.
Then according to the data you fill up the table (note that the contents of the cell will be space).
That way the widow will be reduced from the top and hence will represent a bar displaying data.
Silmilarly you can create other windows and their corresponding tables so at the end it looks like a bar-chart.It works well and I have done it.
First you try with one window and table.Let me know if you need more clarification.
Regards,
Sandip.
Edited by: Sandip Panigrahi on Apr 28, 2009 4:08 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.