on 07-08-2008 10:38 AM
Hi all,
we want to create a Smartform which will be saved (as batch) in the content server as PDF (that´s easy.. )
But we want to include a diagramm into the PDF ( in the middle of the PDF ).
The diagramm contains data which are saved on the table & must generated while the batchjob is running. To save a Image ( SE78.. ) in the mime rep. is not really the right way...
Have anybody an idea, how to create a Diagramm > move it into the SSF > create a PDF and save that on the content server ??
Hi,
You can upload the image to SE78 programatically, say for instance with name XYZ.
You can display this graphics in the smartform. Thus the image will be displayed in the PDF. Once you get the PDF generated, you can again delete the image in SE78 programatically. Thus there will not be any image stored in SE78.
You can use the FM SAPSCRIPT_CONVERT_BITMAP_BDS to convert the bitmap image into BDS document.
Use the class cl_bds_document_set to upload this document to SE78.
can refer to the standard subroutine import_bitmap_bds of LSTXBITMAPSF05.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
maybe the question by me was not clearly enough:
Info:
The diagramm contains data which are saved on the table & must generated while the batchjob is running.
Q1: have anybody an idea how to create a diagram in batch mode.
Q2: how can I move this dynamic diagramm, into the Form ( same batchjob as creating diagramm).
To Q2: I think the answer from Siva could help
but Q1 ????????
robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There are few class for generating diagrams under the graphics framework.
http://help.sap.com/saphelp_nw04/helpdata/en/45/644c3e873e2f95e10000000a155369/frameset.htm
Hope this link should help you.
Hiii!!
May be this link will help you.
sapabap.iespana.es/manuales/pdf/smart.pdf
Regards
Abhijeet Kulshreshtha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi robert ,
welcome,
First u have to place graphic window in smartform. And then add logo to the graphic window.
To upload logo u have to use the follwoing method.
Using tcode SE78, u can upload logo to the smartform.
Inserting Logo in SmartForm
Follow the given steps in order to add a logo,
1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
4) Select any picture and set its Resolution in DPI
5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
6) Set any other parameters if required, save and activate.
7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
😎 User TCode SE78 to upload new pictures and logos.
or----
u can
Try executing program RSTXLDMC program. There also you can upload a graphic.
Run RSTXLDMC
Enter file name C:MAILCOMPLOGO.TIF
Resolution for Tiff file
Absolute X-position
Absolute Y-position
Absolute positioning
Reserved height
Shift to right
UOM = CM
Text title
Line width for text = 132
Text name ZHEX-MACRO-COMPLOGO
Text ID ST
Text language = E
Postscript scaling
Width & Height according to PS scaling
Number of Tiff gray levels (2,4,9) 2
Then Create a new window 'COMP' with attributes;
Window COMP description Company Logo
Window type CONST
Left margin 7.00 CH window width 10.00 CH
Upper margin LN window height 8.00 LN
Finally u can make use of the text name and text id to print the logo.
Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed !
Also, refer this link it will be highly useful.
Check the printer settings and resoltuion of the graphic in smartform
Try to print the same logo output in some other printer and confirm whether it is printing like that only
see the links
look at Thread Dynamic Graph in smartforms
Refer the links also -
Reward points for useful Answers
Regards
shankar
reward me if usefulll
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.