Sapscript: setting character format to bold or italic failed

Hello,
I'd like to set character format to of text in sapscript to bold. So I created character format <NB> and assigned to it times font with bold attribute. But if I use this format to some text - for example: <NB>Some text</>, text isn't bolded. The same thing happened if I assign italic atribute to the character format.. But if I change size of this character format, the change is displayed. What's wrong?
Best regards,
Josef Motl

Hi Max,
Thank you for your reply.
I'm using times with size 10 pt.. I should see the change..
Regards,
Josef

Similar Messages

  • SAP Standard Text (SO10) Character format in Adobe forms

    Hi Friends
    I created a standradrd text using 'S010' with Few character formats like 'bold' and 'italic' but when created 'Inlude text' element in adobe forms i could see only text coming in pdf output but not the formatting. Is there any way i could get the text character formatting also from standard text to adobe?. I appreciate your help.
    Thanks

    Total Posts:  534 
    Total Questions:  183 (4 unresolved) 
    Forum Points:  0 
    You ask a lot, but never helped a living soul. Why would anybody help you/ do your job?
    By the way the same question was asked a zillion times, so if you would care to search you would not receive this comment.
    Otto

  • Paragraph format and character format in script

    hi expects,
    what is the difference between paragraph format and character format in script?

    Hi Rohit,
    Paragraph formats control the formatting of paragraphs in SAPscript  whereas Character formats are used for text formatting within paragraphs.
    Character formats will have Standard attributes like Bold, Italic, Underline, Font family, Font size etc.
    Paragraph formats will standard attributes of Character formats and in addition to this, they will margins, Indents, tabs, Alignments, Line spacing and delimeters.
    Check this link for Paragraph formats
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e02454211d189710000e8322d00/content.htm
    Check this link for Character formats
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e43454211d189710000e8322d00/content.htm
    Thanks,
    Vinay

  • Bold and italic fonts in dynamic text fields.

    I have a dynamic text field with the text "IMAGES". The font
    is Arial, it has BOLD and ITALIC checked, and has basic Latin fonts
    embedded. Now, I use Actionscript to change the text:
    textField.text = "IMAGES";
    Suddenly the text disappears! Now, it seems to me that since
    BOLD and ITALIC are checked on the text field, changing the .text
    value should simply change the text itself, which should then be
    rendered in bold and italic, and since I have bold+italic Latin
    glyphs embedded, it should display properly. But what's clearly
    happening is that when I set the text using Actionscript, it is
    attempting to display the NORMAL font instead, and since it's not
    embedded, it won't display. I know this because if I create another
    proxy text field off the screen and embed the NORMAL Arial glyphs,
    the original text field's text will display just fine - as
    normal-weight text.
    But why is this? Do I have to use a TextFormat object to set
    the text to Bold and Italic EVERY time I want to dynamicaly change
    the text? This seems silly. I simply want my text field to be bold
    and italic every time the text changes, and NO normal text!
    Any ideas?

    I met the same problem using ActionScript3 and Flash Professional CS5. There are two problems with dynamic TextFields:
    - When you set style "Bold" for a text field in CS5, the "bold" property is not available in the TextField object in ActionScript, its defaultTextFormat.bold is alway false; I don't know if we can get this property anywhere else.
    - When you change the text of the dynamic TextField object, its style changes to normal no matter whether it was bold previously.
    This is really a bug in TextField, Adobe should fix this to implement TextField in an expected way.

  • How to set Character field's Format Mask?

    dear all,
    how to set Character field's Format Mask?
    i searched the forum and found the following, where can i use this code and how to change and set its format mask.
    SRW.SET_FORMAT_MASK('mask');
    Thanks
    Muhammad Nadeem

    Nadeem,
    If you have database 10g, look into function REGEXP_REPLACE. Otherwise you can also try this (you might already know).
    SELECT SUBSTR('CHHOCMIPO07020001', 1,2)||'-'||SUBSTR('CHHOCMIPO07020001' ,3,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 5,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 7,3)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 10,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 12,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 14,4)
    FROM dual
    CH-HO-CM-IPO-07-02-0001
    If you have to use this at many places, create a function, pass the raw value, manipulate the string and return.
    FS

  • Paragraph Format / Character Format for Variable address in SAPSCRIPT

    Dear All,
       I am trying to print variable address for ship-to-party. But the address is variable address for different vendors.
    The contents like
    /:  ADDRESS PARAGRAPH AS
    /:  TITLE    &LFA1-ANRED&
    /:  NAME     &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
    /:  STREET   &LFA1-STRAS&
    /:  POBOX    &LFA1-PFACH&  CODE &LFA1-PSTL2&
    /:  CITY     &LFA1-ORT01&, &LFA1-ORT02&
    /:  POSTCODE &LFA1-PSTLZ&
    /:  COUNTRY  &LFA1-LAND1&
    /:  REGION   &LFA1-REGIO&
    /:  FROMCOUNTRY &T001-LAND1&
    /:  ENDADDRESS
    My question is, How to assign Paragragh format or character format to the above code?
    Your reply will help alot..
    Thanks and waiting
    Regards
    Anukul

    hi,
    in ur code u already gave
    /: ADDRESS PARAGRAPH AS goto paragraph formats n define or make the required changes for the paragraph format AS.
    click on character formats n define/change the character formats as breakpoint has mentioned.

  • SapScript and Texts Formatting

    Dear SDN,
    please, how can I format my texts, and get them working in my SapScript?
    I've created some texts, in SO10.
    In my Sapscript, I call them with "INCLUDE TEXT..."
    However, I have 2 problems (so far..)
    1 - I'm not able to set different format (like Arial font, Bold, etc..) in SO10.
    2 - Any simple formatting I do, doesn't work when I run the Sapscript (although everything else is fine, i.e, when I change some text it gets changed in the printing). The texts just come as courrier font, without any formatting, but in the SO10 I did some....
    What is missing in my long journey through form printing with SapScript ??
    Thank you!!
    Regards,
    Fabio

    Hi,
    if you want any specific format of text, create a STYLE with rqd paragraph & Character format using SE72.
    Now when u create the Text in SO10, first call the Style which you have created using (in Text Editor of SO10, select menu FORMAT>Change Style>select the style name which u created in SE72).
    after doing the above, when u try to create the text u ill see the additional paragraph formats which are created in the STYLE..
    Hope it helps!!
    Rgds,
    Pavan

  • Dynamic character format in SMARTFORMS

    Dear Gurus,
    I want to make a dynamic character format in smartforms. I did it in SAPscript and success.
    what I did in program before passing to smartform :
    d_note = '<XX> dynamic text </>'
    and pass it to SAPscript and smartforms :
    &d_note&
    in SAPscript I made new character format XX as BOLD and UNDERLINED. it works for SAPscript. the output become  = dynamic txt
    unfortunately when I do this in smartforms, it is a fail although I have set new character format XX as bold and underline in smartstyles. the output become = <XX> dynamic text </>
    any guru has a solution for this smartform?

    Hi Sendy,
    You cant use tags (eg- <XX>) in smartfomrs like you did in sap scripts. Use your style in the smartform( form attributes) with all character formats and paragraph formats which you need. When you create a new text module in the smartform you will get two drop down lists for the paragraph formats and character formats in the top of the editor. Type your text there and highlight then choose 'XX'(or any other character format) character format from the drop down list.
    Hope this would help.
    Cheers,
    Jeewana

  • Disable Character formatting controls

    I just wanted to control manual character formatting in InDesign CS4 and above. People gone ahead and change font using "character formatting palette" instead of the using character styles even I instructed best practising to use only character styles for various emphasis such as Italic, Bold, Bold Italic, Superscript, Subscript etc...
    I really wanted to disable for character formatting in control panel & character shortcut Ctrl+T (Win) Cmd+T (Mac) alone in InDesign CS4 and above. But the character formatting option should work in Paragraph and Character styles i.e. we should be able to create if new styles required instead of applying manual character formatting. Much appreciated if any one helps on this big issue.
    JA

    To expand a bit on Jongware's suggestion about hiding the menu command to show the character panel you can also customize the Control panel to hide the character controls, and save this as a workspace, then edit the keyboard shortcuts to remove commands you don't want used. I don't recommend this, though. It's easily circumvented by anyone with ID expereince, and a much better approach is to stress to your people how important the use of styles is, and perhaps that their jobs depend on adopting good work habits.
    One thing I WOULD recommend is that you add a set of standard character styles to ID as a default. You can make a master document someplace tha has your basic styles, then load those styles with nothing open and they will be available to all new documents, and add them to any templates as well. I think you'll find yo get much better acceptance of using styles if your people don't need to reinvent the wheel for every document they make.

  • How can I get a list of SAPScipt character formats?

    I know that SAPScript use the <> for capturing - i.e. preceed text and fields with <NN> and end with </> to change the format.
    For example <B> is for bold.
    i want to know where i can get a list of all the possbile values - have looked thru SDN and the Web with no success on this.
    I used to know this but it have been many years since used sapscript.
    Thanks

    Hi
    I am not sure that I have understood your question correctly.
    But if you want to see all the character formats available inside the form in SE71, there is a push button named "Character Format". Press that button and you would see all the character formats available for the form.
    Raveesh

  • BUG - in flash pro CC, 'bold' and 'italic' properties of TextFormat have no effect on rendered text

    Concise problem statement:
    If you compile with flash pro CC, and use the 'setTextFormat' method of a TextField, the 'bold' and 'italic' properties of the TextFormat argument have no effect on the rendered text. If you compile with flash pro CS6, the 'bold' and 'italic' properties work as expected.
    Apparently, with flash pro CC, the only way to make the text render correctly is to change the font name (add the suffix ' Bold', ' Italic', or ' Bold Italic'.) This means code which dynamically changes font styles only works in CS6 or CC, but not both. For example, if you use the 'bold' property the text renders bold in CS6 and regular in CC, whereas if you change the font name to add the suffix ' Bold', the text renders bold in CC and DOES NOT RENDER at all in CS6. This makes it difficult to transition a team from CS6 to CC.
    Steps to reproduce bug:
    1. Create an xfl with 2 TextFields on the stage, both with font "Trebuchet MS" and style "regular", one named boldTrueText containing the String "bold = true", one named fontNameText containing the String "fontName = Trebuchet MS Bold". Create 2 more TextFields on the stage for visual reference, both with font "Trebuchet MS", one with style "regular", one with style "bold".
    2. Add the following code to the Actions panel on frame 1:
    import flash.text.TextFormat;
    import flash.text.Font;
    var format:TextFormat = boldTrueText.getTextFormat();
    format.bold = true;
    boldTrueText.setTextFormat(format);
    format = fontNameText.getTextFormat();
    format.font = "Trebuchet MS Bold";
    fontNameText.setTextFormat(format);
    var fonts:Array = Font.enumerateFonts(), count:int = fonts.length;
    for (var i:int = 0; i < count; i++) {
        var font:Font = fonts[i];
        trace("fontName: " + font.fontName + ", fontStyle: " + font.fontStyle);
    3. Save, and compile with flash pro CS6 and flash pro CC.
    Results:
    With flash pro CS6, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
    With flash pro CS6, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    With flash pro CC, "bold = true" renders regular, and "fontName = Trebuchet MS Bold" renders bold.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: regular
    fontName: Trebuchet MS Bold, fontStyle: bold
    Expected results:
    The same text is rendered in both flash pro CS6 and CC. I don't know why this behavior was changed in flash pro CC - it causes silent failures in code which dynamically changes font styles. I expected the flash pro CS6 behavior to remain the same in CC, like so:
    With flash pro CC, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    If you don't want to break backward compatibility (any further), you could make both the behaviors work in flash pro CC, like so:
    With flash pro CC, "bold = true" renders bold (font is still "Trebuchet MS"), and "fontName = Trebuchet MS Bold" renders bold also.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    fontName: Trebuchet MS Bold, fontStyle: bold
    I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

    I just can't believe how there is ZERO documenation for any of this.  Flash's stylesheets have fontStyle and fontWeight properties, but they only recognize regular/italic and regular/bold respectively.
    This change in Flash CC completely breaks systems built in Flash CS6, and the font naming is actually arbitrary and is not a consistant combination of font name and style (e.g. "Eras ITC" family's bold font name is "Eras Bold ITC", but the bold version of Times New Roman is "Times New Roman Bold" (with Bold at the end, rather than the middle), and what's absolutely appaling is that the font name used at runtime is not exposed anywhere in the Flash IDE!!!  In the IDE you select a font family and font style independently, which is absolutely not what's used at runtime, because it actually uses a separate, arbitrarily named field in the font file for the font name. So we can't even know from within Flash what the proper runtime name is, unless we trace it out or open the font properties details tab in Windows explorer.
    It seems that Flash CC is always using the font "Title" that can be found in the properties of the font, NOT the font name displayed in Windows Font Preview or in Flash CC.  For example, the font name for Times New Roman Bold in Windows Font Preview is just "Times New Roman", but the font title in the properties/details tab is "Times New Roman Bold".  If they made the change to allow for specific fonts to be selected, that's fine, but it completely breaks HTML support in TextFields if it's not respecting bold and italic tags.
    This may actually be a trend on the web now, if you read this: http://www.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declara tion/ , it says: "If you’ve used one of FontSquirrel’s amazing @font-face kits, then you’re familiar with this approach to setting weights and styles. The CSS provided in every kit uses a unique font-family name for each weight and style, and sets the weight and style in the @font-face declaration to normal. [...] Notice that the font-family names are unique, with each font-family name accessing the appropriate Web font files."
    But there's just no mention of this in any documentation I can find.  What the hell.
    It's also helpful to realize that font and u tags have been deprecated in HTML5, while b and i tags have been repurposed since they still retain semantic meaning apart from style: https://www.w3.org/International/questions/qa-b-and-i-tags

  • (CS4) How to change text in character format?

    Hello scripters,
    I need help for a problem with "FindChangeByList":
    I want to change text with special elements (and more than one element),
    for example: color:black AND italic AND subscript
    (or elevated, capital, small caps)
    and change it in a character format  that i have defineted before
    (lets call it for example "01-xyz").
    As i understand it, i can make it with the "FindChangeByList-sript" and GREP
    But what must stand here "?"
    grep {find what:"?"} {change to:"?"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all double spaces and replace with single spaces.
    Can anybody help me, please?
    Yours Oliente

    Sorry,
    only now i get to try the element i got with the new script (at the end of the FindChangeList).
    But i must have make a mistake:
    text {findWhat:appliedFont:"Minion Pro", fontStyle:"Italic"} {changeTo:appliedFont:"Minion Pro", fontStyle:"Bold"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
    It says
    Fehler Nummer 25 (Mistake nr 25)
    and than show me the line i have written.
    It is the same with all elements.
    Can someone help me?
    Yours Oliente

  • Smartforms Character format problem

    Hey Guys any idea about this?
    2)
    When I give a text element a 'B1' bold character format with a P1 paragraph format both of which are already defined in smartstyles. When I click on any other button after setting these values, the character format disappears!!.
    Can some one please help me?
    Kind Regards
    Sameer

    Hi,
    As u said it should not happen.
    Have u specified the style in  output options ?
    Other wise press the icon for txt editor above syntax check.
    Then go to>Change Editor>Select the para format from f4 and write
    like  <b1> Your Text <b1>
    Regards
    Sandipan

  • Character Formats showing up in TOC

    TOC entries for, say, "Heading4", are nominally controlled by the paragraph format of the generated "Heading4TOC" format.
    Sometimes the body narrative will have local mods to the Heading4 text. Depending on what you're doing, you may want those mods to show up in the TOC, or you may not. In my case, I did not, and was surprised to see a TOC entry show up in color.
    It turns out that if you apply a Character Format to text used for TOC (and perhaps IX, LOF etc) generation, that ChrFmt is retained when rendering the TOC.
    So if you want the local enhancement to appear in the TOC, use Chr Fmt. I verified this by setting a heading word to Character Format "Symbol" (which applies the Symbol font`, all else As-Is). The TOC entry had that word in Symbol glyphs.
    if you don't want the local enhancement to appear in the TOC, use local overrides. I verified this by just doing a Format > Font > Symbol on the same word of the heading. The TOC entry had that word in roman.
    In my case, I have a table imported (as EPS) from a spreadsheet. I want the table title to appear in TOC, but of course Frame can't "see" that text. So the anchor line is that title in Heading4, which does appear in TOC. This particularly H4 has a local color override that is set invisible via Color Views. I want the TOC entry to be visible, but the Heading4 text in the body to be invisible. This works if the Heading4 has the invisible color applied with the graphics tools. It doesn't work if I use an invisible text Character Format.
    Another way to hack this particular problem is to put the Heading4 title in a text frame behind the imported image. Then it requires no character formatting magic. But you can't see it during edit, and you need to hope that the table white fills really are, and aren't just transparent.

    The TOC will only reproduce the character format of the heading if it  has that character format in its catalogue.
    Thanks for contributing that. It stands to reason that if TOC gen is honoring and replicationg the ChFmt, the easiest way to implement that is just to drag the format in with the text being cloned.
    Building on this, you can control the  appearance of the TOC entry by defining the character format – if you  wish, differently from how it is defined in the main text. So your  Heading 4 override may be coloured white in the main text, but black in  the TOC.
    Thanks again. I'm going to use this starting now, since the present manual set has need of it.
    The key aspects of the implementation:
    The ChFmt name needs to be something very self-evident to future document stewards, like "Hide_Except_TOC".
    In all .fm files except TOC, its definition is
    all As-Is, except for Color,
    which is an existing author-use-only color "Invisible Text" already set Invisible by Color Views during render.
    In the TOC file, the definition of "Hide_Except_TOC" is
    100% As-Is.
    (first time I've ever defined a format like that)

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
    I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
    Sometimes when I place the text, the formatting reverts to whatever it was in Word.  To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that.  I figured this would clear a lot of the problems I've had with fiddly formatting issues.
    I was mistaken. 
    Here is what happens:
    When I place the document it comes up in the original Courier New font, with italics and other formatting intact.  If I click "article style" which is the main article paragraph  style format, normally it changes.  but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
    But when it gets to endnotes, I'm sort of screwed.
    My endnotes style is a bulletted style, so that I can have the endnote numbers consistent.  but this seems to screw all the style formatting.
    Here is what I do:
    With the cursor in endnote text, I click "bulleted endnote style".  The character format remains the same, with a + beside the style. The endnote number format is different, however.  If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text.  This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
    I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
    Please help me figure out how to make these transitions more smoothly.  I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems. 
    Thanks
    Dan

    Sorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted.  Damn iphone. 
    I know why there are two numbers.  This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem.  Here is something interesting, though.  If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine.  Is it something to do with the character codes of those original note numbers? 
    Word drops in so many hidden codes that it screws everything up!

Maybe you are looking for