Dynamic graph in Smart Forms
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 ?
Thanks
Hi 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
Similar Messages
-
Dynamic picture in Smart forms
hi all,
i need to include the picture of am employee dynamically in the smart form deponding on the personnel no selected .so each page will need to include the picture. how to create graphics node dynamically / assign the picture .
can any one tell me the logic .
thanks
senthilHi Senthil,
Create a graphic node in the Smartform and under the tab 'General Attributes' fill the Name, Object and Id with variables (e.g. &NAME&, &OBJECT& and &ID&) and fill these parameters to get the picture you want at runtime.
Regards,
John. -
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 -
Writing Dynamic code in smart form
Hi All,
I have a issue on Smart form . the smart form is customized view of bbp_po(srm) for po(purchase order) details in that in a secoundary window where vedor adress is displaying .In the first line of the address name1 and name2 are displaying now my need is if the name1+name2 is more than 47 chars then i need to shift name2 to next line how can i do this dynamic code plase i need it urgently .
Thanks
channu sajjanarHi
Write code yto count the no of character, if it is more than 47 then display NAME2 in second line else write in first line.
for second line put conditionin text element NAME2 <> space.
This will work
Thanks
Shiva -
Dear,
I just want to pass dynamic internal table to smart form which i have created in print program.How it is possible and i am also using border for field in layout.
Anuj ModiHi Anuj Modi,
Smart forms are not really dynamic (except if you are talking about the number of lines), could you please explain what rendering you want to achieve exactly?
Sandra -
We have a business case to choose different logos based on a condition. This invloves significatn effort from Change mangement point of view.
Is there any solution by which I don't need to change any thing in smart forms but able to derive the graphic dynamically.
any help in this regard is appreciated.
regards,
SadamHi Harpit,
I did as follow in my requirement... i have to print logo based the company code.. for this
i have created 1 graphic window, then given the name as<b> &V_LOGO& then press the Button right arrow (looks like ">").</b> so that system will understand the name will comes form vareiable V_LOGO(is type char20. rest is same.
but some how we need to pass the logo name for this i have written code in GOBALDIFINATION-->INITIALIZATION tab...
if xxx-BUKRS = 1008.
V_LOGO = 'xxxxxxxx'.
elseif xxx-BUKRS = 1011.
V_LOGO = 'yyyyyy'.
elseif xxx-BUKRS = 1152.
V_LOGO = 'zzzzzzzz'.
endif.
Please Close this thread.. when u r problem is solved
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Regards
Naresh Reddy K
Edited by: Alvaro Tejada Galindo on Oct 1, 2008 3:25 PM -
Dynamic Changes in Smart Form ( From External Source )
Dear Sap Folks ,
Whether the SF layout attributes can be changed from the external loading program dynamically .
Please give your views on this topic.
Thanks in advance .
Best Regards,
RajHi Raja,
As far as my understanding goes this cannot be achieved by an external program but what you can do is that you can some flags that you can set in the print program and when you pass them to the smart form function module(the function module generated by the smartform) you can decide whether certain windows need to be displayed or not by giving a condition to them. You can have two windows with diferrent attributes and then switch between them with the help of flags acting as conditions.
Hope this will help
Sudhi -
ABAP - Dynamic Table in Smart Form
Dear All,
Can i assign a table at run time mens table rows and column will depend on user selection and no. of records fetched by query. Is there any utility.
Plz let me know ASAP if there is any. Looking forward to your co-operation.
Thanks & Regards,
Gulrez AlamDear All,
At the time of table creation in Smart Form, we had to assign no. of columns and its width.
In the case when no. of coulumns will be decided by the no of records return from the query. how can i link smart form with that records.
No. of coulms in the smart form will be decided on the i/p no. given by the user. it can be any no.
Plz suggest me the appropriate things.
Is it possible or not in the smart forms.
Thanks in Advance
Gulrez Alam -
Hi All,
The requirement is to display columns in the form dynamically based on the user input. For example if a country is chosen, each of the states is to come as a column. So based on the country, the no. of states is likely to change. This would call for dynamically changing the no. of columns in the smartform based on the country chosen. Is this possible to achieve in smartforms?
Regards,
Divya.You cannot have dynamic columns in smartform instead create all the required columns and display them based on the conditions passed from the program.
Refer the link -
Re: smartforms - dynamic column of tables
Regards,
Amit
Reward all helpful replies. -
Smart forms - Dynamic sizing of the windows.
Hi gurus, iam working on smartforms, i have a problem.
My requirement is: Printing a table data on the smart form. Is the window which prints this table data is resized with the amount of table data, if so, what is the procedure i should follow for to print this data in the window.
Please give me the steps to go with the above issue. iam new to smartforms. what is the size of the window i should give in the Form painter and what all the attributes i should declare.
Plz give a detailed explanation..
Regards,
chaitanyaHi Chaitanya.
I would like to suggest a few references,
[SDN - Reference for Smart form - setting dynamic window height |Smart form-setting dynamic window height;
[SDN Library - Standard Reference - Dynamic Window Height - SMARTFORM Tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef]
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
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 -
Dynamically change the table fields in smart form
hi all,
can any one suggest me the way to change the height and the width of a table dynamically in smart form.
thanx
ManishHello,
That is not possible. You cannot alter the height and width of the smartform. Mainwindows height adjust automatically according to the data.
Thanks,
Jayant -
How to change the font of variables in smart forms dynamicly
Dear all,
Is there any suggestion of how to change the font of variables in smart forms dynamicly?
Thanks in advance.Hi,
You cant change the font dynamically but tell me the scenario I will try to give the solution.
Regards,
Nageswar -
How to achieve dynamic page break in Smart form
Hi
1.How to achieve dynamic page breaks in Smart forms.
2.What are the various table types in Smart forms.
Regards<i>Dynamic page break : </i>
create a node of type COMMAND and in its attributes check "Go to new page".
<i>There are Tables and Templates in smart forms :</i>
Use node type <i>Template</i> to display a table whose layout and size (number of lines and columns) is determined before the runtime of the print program else use <i>Table</i>.
Take a look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>
Regards
Maybe you are looking for
-
Ipod disabled try again in 23257422 minutes message. how do i now use my ipod touch
I have got the message "ipod disabled try again in 23...... minutes. Is there a fix for this
-
I'm having trouble going back to iMovie 4
The non-destructive editing is killing my hard disk space. I always had good success with iMovie 4 so I want to go back. I tried to install it off the iLife DVD but the iMovie 4 choice is grayed out. Does it not want to install if it sees iMovie HD?
-
HT3529 Is there a way to password protect imessage?
Is there a way to password protect imessage for iphone 4?
-
HT204053 Why can't Find iPhone locate all my devices ?
Why can't Find iPhone locate all my devices ? It finds my iPhone, iPod, and only one of 2 iPads. Sometimes, only finds iPhone and iPod only. I don't use iCloud...had very bad experiences with it !!! Lost all my Contacts and had duplicates and triplic
-
I'm making a "board game" in Flash with Actionscript 3.0. When the player lands on a certain space, I want a window to pop up & they complete a word search game. The faster they complete the word search, the more points they would earn. I already hav