Use differents fonts in a smartform
Hi Experts!!!
I need help with this problem, I have to make a smartforms with data from PE51, I do this in this way, first I read the data from PE51, after, I execute the program ZRPCTDE0 and make changes in this, for example, I take the data with the table LINDA, that's is a string of 132 caracteres. I also make a smartform, the structure of this smartforms is, I read the table linda and I print all the data in the smartforms, and after, for make the tables, make the title.... I put a lot of windows with the corresponding lines. The problem is that I want to change the type of font of some data of the smartform, but I don't know how to do this, can anybody help me?
Also I want to know how can I use the conditions of the smarforms, I don't understand the way of using this.
Please help me!!
Thanks a lot,
Regards,
Rebeca
I have done this but the problem is that I want to use differents kinds of fonts, the problem is that when I read the PE51 I read all the lines at the same time, so I can't change only one data, I change all the smartforms,
this is the last code
IF NOT it_xform[] IS INITIAL.
CLEAR v_name.
MOVE formular TO p_form.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = p_form
IMPORTING
fm_name = v_name.
So now, when I call the smartforms, I've a loop to the table it_xform and I write the it_xform-linda, and in this text I put the style for all the line, but I don't want to write all the line with the same font, I want to change the second line with a different font... It's difficult to explain...
Do you know how can I use the conditions ?
Thanks a lot for your rapid answer!
Regards,
Rebeca
Similar Messages
-
How to change font size in smartform and set layout of smartform
Dear abapers,
I want to change font size in smartform and also set the layout of smart form how can we do this.
Thank you sir.Hi,
you can do it first you need to goto smartforms tcode there click on radiobutton 'Style'.
Give any name and click on create. Right sideyou can find character format right click on it and create a node .A pop will raise gve a 2 characterlike z1 or a1 etc click on font tab gve size and font style and click on save and activate. Use this style in your smartform you can apply what ever styles created in styles you can use it in your smartform by that smartstyle name.
When we create text in output options give your smart style name and click on general attributes . Select your text and apply the style what thse size it should be and what the font style it should be.
Goto smartforms tcode and select formpainter in application bar set layout according to your requirement.
Thanks,
venkat -
Hi All,
I have a requirement where i need to display Large Font size in Smartform. I am able to display the same for the PRINTER in print preview.
But when i print the smartform, the font is printed in very small size.
I think it is because the printer is not supporting the font.
Please let me know the workaround for such problem.
Thanks,
Best regards,
Prashantmethod for font size....
Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
frm ur pc only u can get this font file..
go to control panel , in tat go to font and select your desired font file..
now give the path of this font file in se73..
after doing that this file will be uploaded into ur SAP server.
Se73 - > True type font installation - > Font name - > specify the name of the font file - > execute -
What is the use of FOLDER NODE in SMARTFORMS?
what is the use of FOLDER NODE in SMARTFORMS?
please explain.Hi,
By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward all helpfull answers
Regards
Omkar -
Using custom fonts in the Navigation pane
Hi
I'm using custom fonts in my webhelp. To do this, I created a folder for the web versions of the custom fonts and put it in the same folder as my css. I then added the font face elements to the top of my css (in Notepad). Next I used the custom font name for all the style defined in the css (in Notepad). That makes the content of the topics use the custom font. All good.
Next, I edited the htt file (in Notepad) to use the name of the custom font. Now the breadcrumbs and topic footer use the custom font. All good.
Finally, I want to use the custom font in the navigation pane (the text next to the books and page icons). I edited the skn file (in Notepad) to use the custom font. I also added a dependency for my css to the bottom of the skn file. Then I generated the webhelp.
When I launch the help, the browser (IE) doesn’t allow running scripts or ActiveX controls (this is normal). At this point, the TOC in the Navigation pane looks like it uses the correct font. Once I click to allow IE to run scripts, etc. the font in the TOC changes to something that looks like Times or some default serif font. So, it appears that something in the javascript is changing the font.
For good measure, I checked the whtdhtml file and the custom font name is used there.
Any ideas on what's happening and how to get my custom font to appear in the Navigation pane?
BTW, I use images only in the toolbar pane (that spans the top of the webhelp window), so I don't need to specify the custom font there.
DeborahHi William
I found one error. In the skin file, I had added a dependency to my css. It was missing a slash (/) to point to the correct folder level. Now that I've added that, the TOC displays the same font as the Index, Search results, and the topic (content, breadcrumbs, and footer). So, that's good, but on closer inspection, it looks like Verdana, not my custom font.
I changed the font in whthost.js to the name of my custom font and generated the help, but it made no difference. I also changed the font and just opened the help without generating and got the same results.
For your second suggestion, you mean whtdhtml.htm not whtdhtml.js? The custom font is in the lines:
setFont("Normal", "MyFont","10pt","Black","Normal","Normal","none");
setFont("Hover", "MyFont","10pt","#004080","Normal","Normal","underline");
I added the <font> tag to this file, but the tag just shows up as plain text within the webhelp TOC (no matter where I insert it in the file).
I also tried changing the font to my custom font for the Index body and Search results using the steps in Rick's Skinny on Skins (editing the whibody.htm and whfbody.htm files). When I do this, the serif font appears in the Index body and Search results.
It seems like the files cannot "see" my custom fonts (which are in a folder at the same level as my css).
Deborah -
Using custom fonts in app development?
Could somebody inform me if it is possible to use custom fonts of choice when developing an app. If so are there any restrictions? I have read that sinds OS 3.2 iPhonesupports custom fonts, ttf and otf fonts. Is this not the case also for the ipad? Or am I completely off track?
If one can add custom fonts do they work along the same lines as embedded webfonts, availale for all users even if they are not on their ipad?
I am a media design lecturer looking for correct info for my students who are doing the visual design voor an app.
Thanks in advance.
Toronot00Hi William
I found one error. In the skin file, I had added a dependency to my css. It was missing a slash (/) to point to the correct folder level. Now that I've added that, the TOC displays the same font as the Index, Search results, and the topic (content, breadcrumbs, and footer). So, that's good, but on closer inspection, it looks like Verdana, not my custom font.
I changed the font in whthost.js to the name of my custom font and generated the help, but it made no difference. I also changed the font and just opened the help without generating and got the same results.
For your second suggestion, you mean whtdhtml.htm not whtdhtml.js? The custom font is in the lines:
setFont("Normal", "MyFont","10pt","Black","Normal","Normal","none");
setFont("Hover", "MyFont","10pt","#004080","Normal","Normal","underline");
I added the <font> tag to this file, but the tag just shows up as plain text within the webhelp TOC (no matter where I insert it in the file).
I also tried changing the font to my custom font for the Index body and Search results using the steps in Rick's Skinny on Skins (editing the whibody.htm and whfbody.htm files). When I do this, the serif font appears in the Index body and Search results.
It seems like the files cannot "see" my custom fonts (which are in a folder at the same level as my css).
Deborah -
How do i add new font to sap(smartform)
hi, all!
now, i have one thing to be solved!
i'm using smartforms for developing form program.
i can't find what i want to use new font in sap.
so i added new font to sap using se73 t-code. but some are missing, for example i can't use bold...
so, if anybody have these experience... tell me how to...
best regards,
gy cho.hi,
For SE73, on screen
There is a button 'True Type-Font Importian'.
On pressing this button you will go to next screen.
Give unique name of font and .ttf file of your computer.
If you select Bold or Italic, select different font file respectivly.
and Execute.
Fonts are centralized for SAP.
if you are not authorized to do cross-client activity, it will not allow you.
Usually Basis Team does this for developers. -
Difference between HR Forms Smartforms sapscript and PE51
Hai all,
Could anyone give me the exact difference between HR Forms Smartforms sapscript and PE51.
Thanks in advance,
S.Jenibalet.HR Forms
The Layout Editor can be used is Adobe Designing tool or Smart form Tool.
The HR Forms Workplace (which will be called the Forms Workplace from now
on) will enable you in future to create flexible reports with an attractive layout for HR master data,
personnel time data, and payroll results.
Smartforms
SMARTFORMS as the SAPScript successor tool is also used to generate formatted documents which can contain logos, tables and other formatting objects. And this documents can look like a pre-printed documents that normal ABAP codes cannot possible.The SAP SmartForms replace the SAPscript forms. SAP SmartForms offer the following advantages: 1)Creating and maintaining forms requiring half the time 2) Adapting forms without any programming knowledge due to entirely graphical user interface 3) Web Publishing using the generated XML output Here you will get some SAP SMARTFORMS tutorials and PDF guides to download.
You use SAP Smart Forms to create and maintain forms for mass printing in SAP Systems. As
output medium SAP Smart Forms support a printer, a fax, e-mail, or the Internet (by using the
generated XML output).
sapscript
SAPSCRIPTS are used to generate formatted documents which can contain logos, tables and other formatting objects. And this documents can look like a pre printed documents that normal ABAP codes cannot possible. SAPscript comprises these five components: 1)an editor for entering and editing the lines of a text. 2)styles and forms for print layout. 3)the composer as central output module. 4)a programming interface 5)several database tables for storing texts, styles and forms. Here you will get some SAPSCRIPTS tutorials and Pdf guides to download.
PE51
There are Limitataions for PE51.You can use only for HR module specifically for Payroll. -
Russian does not perfectly be supported by font HELVE in smartform.
hi!!!
We are now developing Russian report in smartform in solution manager 7.01. We use font HELVE for the smartform, however, it seems font HELVE does not perfectly support Russian as some text on the printed pdf get overlapped. Could some one help?
Regards,
ClarkHi Clark,
For Russian characters you should use Russian fonts like HELVCYR. TIMECYR or COURCYR in the sapscript or smartform. You also need to ensure that the correct language key is used. Also for PDF conversion you need to upload true type fonts that support the Russian characters un der font families HELVCYR, TIMECYR and COURCYR as described in SAP note #322998.
regards,
Aidan -
Hi All,
I want to get a list of smartforms and scripts which is using a particular font.
eg: I want to know which are the smartforms and scripts which is using the font 'ARIAL'.
Please tell me any way to get this...
Regards,
Nikhilcheck the below tables
TFO01
TFO02
TFO03
TFO04
TFO05
TFO06
TFO07
TFO08
TFO09
TFO10
TFO11
TFO12
TFO13
TFO14
TFO15
TFO16
TFO17
TFO18
TFORM01
TFORM01R
TFORM01T -
The "Roman" font is not being recognized in Firefox 4.0. As such, I cannot read any previously posted topics or post any new topics on websites using this font.
I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6. -
I downloaded the file from 1001freefonts.com
I've looked at many tutorials about embedding custom fonts - I'm not sure what they are achieving, they never seem to have a step about importing TTF file or anything.
Thanks!close flash pro.
right click the downloaded font file > click install.
start flash pro.
among other ways to use that font, you should be able to find it in the properties panel when you select the text tool. -
How do I use a font variation in a pages document? or other app for that matter? I no longer have the "viewer" - glyph option in the special characters pane (under edit in toolbar). I know the varaition ia available because I can see it in my font book. I depended on that alot so I need to find a way to still use character and embellishments. I don't want to have to go back to my od computer (from2007) Please Help!
I really don't understand.
The menu item is available :
Maybe, you didn't activate the tool :
Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 23:10:17
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How do I use a font that a user of my screen saver might not have?
I am trying to do a little experiment with fonts. I downloaded a font that was not previously installed on my computer, and am trying to make a "Hello, World!" screen saver with that font(which I installed).
The problem is that I can not even use that font. When I attempt to make a "Hello, World!" screen saver with that font, it uses the default font. Here's the code:
#import "saverView.h"
@implementation saverView
- (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
self = [super initWithFrame:frame isPreview:isPreview];
if (self) {
[self setAnimationTimeInterval:1/30.0];
//either my mistake is here:
hylianFont = [NSFont fontWithName:@"Ancient Hylian - English" size:20];
attrs = [NSMutableDictionary dictionaryWithCapacity:2];
//NSForegroundColorAttributeName -- [Color green]
[attrs setValue:[NSColor greenColor] forKey: NSForegroundColorAttributeName];
// or it is here:
[attrs setValue:hylianFont forKey: NSFontAttributeName];
displayer = [[NSAttributedString alloc] initWithString:@"Hello, World!" attributes:attrs];
return self;
//... more stuff I do not use...
//simply draws "Hello, World!" in green at the top right of the screen.
//meant to draw it in the different font, but draws it in the standard font.
- (void)animateOneFrame
[displayer drawInRect:[self bounds]];
return;
@end
Where did I mistype?I think I solved the problem. I just put the font and the screen saver in a pkg file, and make the pkg file install the font. Or I guess I could keep the font in my screen saver and test it that way. Either way, I found the answer.
-
How to use two fonts in one passage?
I usually use PAGES to write compositions and every time i try to use another font to revise the composition, the font will change back automatically to the font that I used for writing compositions. It bothered me a lot..... How can i revise the composition with another font without change back automatically
Hi.
You can execute scenario from command line http://docs.oracle.com/cd/E14571_01/integrate.1111/e12643/running_executions.htm#BABJEHIG:
On UNIX systems:
./startscen.sh <scenario_name> <scenario_version> <context_code> [<log_level>] [-AGENT_URL=<remote_agent_url>] [-NAME=<local_agent_name>] [-SESSION_NAME=<session_name>] [-KEYWORDS=<keywords>] [<variable>=<value>]*
On Windows systems:
startscen.bat <scenario_name> <scenario_version> <context_code> [<log_level>] [-AGENT_URL=<remote_agent_url>] ["-NAME=<local_agent_name>"] ["-SESSION_NAME=<session_name>"] ["-KEYWORDS=<keywords>"] ["<variable>=<value>"]*
Maybe you are looking for
-
Game center games sync amongst multiple iDevices.
Hi I have an iPhone 4 and 2 iPads for my daugthers to play and learn. Both my daugthers are young and can't use thier own apple IDs yet and I don't want to keep more than one ID so that I'm using my own ID on all the three iDevices. The problem is th
-
Loading unpacked Zoned data into NUMBER data types
I need to use SQL*Loader to load data created on an MVS machine (EBCDIC) which is FTP'd to AIX (converted to ASCII during the FTP). Some of the data elements have signed unpacked numeric data. These need to be loaded into two types of fields in Oracl
-
Dual Core Intel iMac 10.5.5 suddenly sees no firewire video decks
We have 7 iMacs used in a general area for students to digitize. This week NONE of them will see any sort of video deck or camera through the firewire port. I did repair permissions, unplugged everything for 10 minutes (including power), zapped the p
-
Set_window_property locked to maximize
set_window_property('WINDOW1',window_state,maximize); how is it possible to lock it on maximize so the user wont be able to change it? thanks
-
How to integrate DWR and JAVA Webservice?
This is S.korea! so sorry for my poor English :-P I'm developing java Web service and my client is Ajax system.My toolkit for Ajax is DWR. But I don't know how to integrated DWR and Java Web service! Function invocation in web service is synchronous.