Include a pie chart graphics in Smart Form
hi ,
my req. to include a pie chart graphics in Smart Form .
my logic
1) write a pie chat program using the data .
2) convert into bmp and upload into se78
3) include the pic in smart form .
is there any other way
can u please mention the class and method to include the picture directly .
currently i have downloaded the pic in the local server using the
CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT
EXPORTING
FORMAT = 3
WIDTH = 1000
HEIGHT = 3000
NAME = 'c:\s'
IMPORTING
CONTENT_TYPE = ct
CONTENT_LENGTH = cl
CONTENT = t
RETVAL = RETVAL
but the picture is not visible ( not in jpg format) . its not readble.
am attaching the code .
its urgent , please reply.
cheers
senthil
Thanks problem resolved.
Similar Messages
-
Dynamic graphics in Smart Forms
Dear All:
I have a requirement in my SMARTFORM page development that i have to place a dynamic graphics and printout.
Does anyone know how to control the dynamic graphics in Smart Forms?
Any help whould be highly appreciated.
Many thanks in advance.
Regards,
ElvisHello,
You can call the graphic dynamically as per your requirement by calling the Graphic dynamically, For ex: Name of the graphic: &WA_ITAB-FIELD1& ( which is a field of IntTab ITAB taken into Work area WA_ITAB ).
Also please note that you cannot print / overlay text in a diamond, perhaps you can have a work around to print the graphic and beside the graphic you print the Customer short name. for this you can either define a table / template.
Hope this helps you.
Best Regards,Murugesh AS -
Print Charts/Graphs on Smart Forms
Hi Seniors,
Here is a requirement on Smart Forms:
I need to print Charts on Smart Forms. I have been through many answers on SDN but unfortunately, there are not many appropriate solutions. I executed some standard reports and got Charts and graphs as output but am not able to use it to display the same on Smart Forms. I have even tried using classes for charts / graphs, business graphics(may be there would have been some sequential procedure for that).
In the Smart Form, I have tried Form Attributes>Output Options>Output Format--> XSF output
with output mode: 'Spool' and Output Device: 'XSFOUTDEV' from help.sap(I couldn't get what output device that was and was unable to execute).
I have tried executing transaction GRAL(demo reports for SAP graphics) too.
I found a report that would produce graph in Excel, I executed it, saved the graph from excel in '.bmp' format in SE78 and then printed it on Smart Form. But all I want is to have it done dynamically.
I saw answers that we can save the graph chart/graph onto the desktop, upload it and then display it on the Smart Forms. But, when i tried it, I saw that it could be saved only in '.dat' format. I have to save it dynamically in a supported format like '.bmp' and print it on the Smart Forms(the graph would change depending upon the input values). Please help me resolve this.
Thanks in Advance,
Chaitanya.Dear Bouman,
Thank you for the reply. I can write a report if would helps me to upload images dynamically. I saw your program but, here we cant give the name of the chart that comes as output. I tried to save the chart but it comes in '.dat' format but not in '.bmp' format. We may be having some classes or function modules that we need to call in a particular sequence. What other options do we have. Please help me resolve this.
Regards,
Chaitanya.C.N -
How to Printe Graphics in Smart-Forms
Guys,
Need your help
Is it possible to print graph in smart form???
If yes, if you have any document, please pass it to me
DhirajHi Ram,
Go through this hope u can understand.
How to Upload graphics (IMAGE) to your Sapscript?
Command in your Sapscript
/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP
2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
make it Zoom as 100% and save as *.TIFF
3. Open SE38 and execute program RSTXLDMC
4. Give your TIFF file path name
5. Select Bcol (for Color)
6. TEXT ID will be ZHEX-MACRO-*.
7. Inplace of * write your own logo name (ZCOMPANYLOGO)
8. Execute the program
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window
or
In 4.6x :-
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be.
/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
Reward points if help ful.
http://www.sap-img.com/ts001.htm
Sorry i think for Scripts ..
better to go for above post . it definetly works
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
I am wanting to add an interactive pie chart to a custom form
The pie chart or "wheel" is a visual for my project status form I want to share with clients. Can this be done? I only see an option to insert an image.
thanksCurrently we only support one field/item on a line. We are working on adding a feature that allows you to put multiple fields/items on a single line. We hope to have that out in a few months.
Randy -
Possible to generate graphics within smart forms dynamically like SVG ?
Hello,
I would like to generate a graphic for a smart form. This graphic will only be needed in the smart form. Therefore my question:
It is <b>possible to generate dynamically graphics using ABAP</b> as programming language? In the same line like SVG (Scalable Vector Graphics) or ChartDirector? I know it works in many other programming languages.
Smart forms can handle *.bmp and *.tif picutres. Therefore the output of this ABAP program should be a picutre within the format *.bmp and *.tif.
DanielWelcome to SDN,
I am not sure whether you can use SVG in smart form, but certainly in ABAP yes. check out the following atricle for more info.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to generate and display svg graphics in abap,%20Part%201.article
Regards
Raja -
Unable to print graphics using smart forms
Please some one help in printer settings for graphical printing in smart forms.
Instead of graphic it interprits the graphics as a text and prints text.
please urgent...................help mehey no worries I got the answer thank you.
-
Dynamic Pie charts in smartforms
Hi All,
I need to print a pie chart dynamically in smart forms.
I have seen all the threads available on this.
Can anyone guide me step by step process of doing this.Hi,
Refer to GFW_PROG* programs.
thanks,
sama -
Hi
I have searched the forums and noticed this question has been put forward many times but without a complete solution.
I have so far managed to use the IGS to create a .JPG/PNG file for me. I seem to have an error while trying to create a BMP file, basis is currently looking into this for me, i get a LISTENERRFC : error.
I'm using class : cl_igs_chart_engine
to generate a chart from the IGS, this is returned to me in a MIME table format.
Now how can I use this MIME table to insert it dynamically in the SMARTFORM. I see there is provision for Dynamic determined graphics in smart forms but i don't think it can be used here.
Does anyone know how to do this ? Is there any other more effective way of inserting dynamic graphs into SAMRTFORMS
Another question is class : cl_igs_chart_engine, how can you create a line graph instead of a bar graph ?
ThanksHi Kevin,
Dynamic graphic in samrtform is supported provided you have the BMAP ( Bitmap ) created in SAP. In the graphics node of SMARTFORM you can assign a variable &GRAPHIC& as the name. From the program pass the graphic name in variable "GRAPHIC" through samrtform interface .
The prerequisite is that the graphics should be there in SAP database at the time you call smartform .
About your other question I have no idea but I can say that if you can have a graphics created on your PC at runtime you can always upload it to SAP using report RSTXLDMC , just before calling smartform. However this would generate a lot of graphics on SAP even if it is for one time use by smartform . You will have to find a way to delete subsequently .
Cheers -
Business Graphics in Adobe Form
Hi Gurus,
One of our client has requirement of showing business graphics like Graphs, pie charts on the Adobe form. Is it possible in Adobe forms to show these graphics. If yes, then can anyone please send me some links, documents.
With Regards,
AmitAmit,
I don't think Adobe forms has the capability to display the Business graphics. I don't see any control for displaying the business graphics in library palette.
Thanks!
Surya. -
Pdf generated through API's does not display pie chart
I'm using BIP 10.1.3.4, running on Oracle Linux 5 connecting to a 11g database.
I developed an RTF using the word template builder and included a pie chart. Previewing from within Word works fine, running the report directly from BIP works fine. I then used the API's to generate the pdf programmatically to have more control.
I use RTFProcessor to convert my RTF into a XSL, DataProcessor to generate the xml data and FOProcessor to generate the final PDF. This works fine running from local JDeveloper, connecting through to the remote database.
I've now loaded the java class with the API's into the database, and as per http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12188/T421739T517850.htm#T520954, loaded up the following jar's
xdocore.jar - the core BI Publisher library
aolj.jar - although this is an Oracle E-Business Suite library, it is required for standalone implementations as well
i18nAPI_v3.jar - the i18n library used for localization functions
xdoparser.jar - the scalable XML parser and XSLT 2.0 engine
xmlparserv2-904.jar - the main XML parser/XSLT engine
bipres.jar - a charting library
bicmn.jar - a charting library
jewt4.jar - a charting support library
share.jar - a charting support library
collections.jar - you only need this if you are working with the delivery APIs or bursting engine.
The report works fine, all data tabels are shown but the pie chart is missing. I originally got the jar files from the TemplateBuilder/jlib directory. I also tried using the jar files from the BIP/xmlpserver\WEB-INF\lib directory as well. Problem remains - everything works fine except for the lack of the pie chart !
Any help would be greatly appreciated :)
Cheers,
Brentbump .... anyone had similar problems ?
-
Hello,
I'm looking for software to create pie charts with multiple levels. I tried Numbers but it didn't work out. Does anyone has tips for Numbers or other software that I can use? Thanks in advance.
Greetings,I also don't have many experiences in this kind of thing. However, I recently happened to read something about WinForms chart UI control which include the pie chart creating function. Not sure that kind of thing would be helpful or not.
-
Dynamic Pie Chart in Smart Form
Hi Frn's ,
How can i show the dynamic Pie chart in Smartform .
Thanks and Regards
Priyank DixitHi,
Refer to this link [How to display pie chart in smart forms|Re: how to display pie chart in smart forms] -
thanks for ur reply ,
my req. to get a picture of pie chart in Smart Form .
am doing
1) write a pie chat program using the dynamic data .
2) convert into bmp and upload into se78
3) read the pic in smart form .
is there any other better way
can u mention the class n method
its urgent
Am getting short dump
DATA : D TYPE GFW_EXP_DATA,
R TYPE SYMSGNO.
DATA: S TYPE STRING,
N TYPE I, gp_inst type ref to cl_gui_gp_pres.
CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT
EXPORTING
FORMAT =
IF_GRAPHIC_PROXY=>co_format_bmp
WIDTH = 50
HEIGHT = 200
NAME =
IMPORTING
CONTENT_TYPE = S
CONTENT_LENGTH = N
CONTENT = D
RETVAL = R
A RAISE statement in the program "SAPLCNDP " raised the exception
condition "DP_ERROR_GET_DATA".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
cheers
senthilHi Kai,
Thanks a lot for your reply. The note 584593 has already been implemented.
Program is calling the following statement.
elseif format = if_graphic_proxy=>co_format_bmp.
call method adapt_classref->call_method
exporting method = 'SaveImage'
p1 = 1 " save as bmp
p2 = name
p_count = 2.
endif.
But it's not creating the file.
I would really appreciate your help. Let me know if you have any suggestions.
Thanks.
B. Shah -
How to display pie chart in smart forms
hii experts,
my requirement is to display pi chart in smart forms . i have googled but could not get any meaning full results. If any one knows this pls share ..
Thanks and Regards
Aditya ShrivastavaHi
I really doubt If you did search at all in the first place. Anyhow, check this:
https://www.sdn.sap.com/irj/scn/advancedsearch?query=piechartin+smartforms&cat=sdn_all
Vishwa.
Maybe you are looking for
-
Any issues with using LDAP on LINUX for GRC 5.2 UME?
Our company is converting our LDAP servers from AIX to LINUX. The DNS name used in our UME connection should not change. Are there any issues with using LDAP on LINUX? We are currently on GRC 5.2 SP9 (in the middle of upgrading to SP12). Also, I h
-
Custom Connection Manager only works in 32bit- 0xC0011008: Error loading from XML
I have a very basic / stripped connection manager with only one property (SSIS 2012). It works fine in design time (you can open the connection manager editor and change the value), but in runtime it only works in 32bit mode. The runtime-validate-met
-
Creation of External table by using XML files.
I am in the process of loading of XML file data into the database table. I want to use the External Table feature for this loading. Though we have the external table feature with Plain/text file, is there any process of XML file data loading into the
-
SAP License Problem in EP System
Hi After completed the EP 7.0 ((SAP EHP1 for SAP Netweaver 7.0) installation on Sunsolaries with Oracle 10g. I start with the license installation. I manage to get the license ,but when i try to install the license into the server it show invalid.. i
-
I am wanting to add an event to my calendar but the red "+" is not red. What should I do?