Character Formating in Smartforms

Dear All,
How to use Condense and Right Alignment for a same variable, for example &test& is my variable, i need to use (C) and (R) for
this variable. I tried to give right alignment through smart styles also. But that is giving some space in the right side. I tried to give
&test(CR)& in smartforms itself but right alignment is coming, it is not condensing the leading space. My Variable is of type CURR. Pls help.

Hello Aravinth,
     CONDENSE is used to shrink the space between words and not used to remove
leading or trailing spaces.
     For removing leading or trailing spaces you could use LEFT or RIGHT alignment
in smartstyles or use abap statements SHIFT LEFT O SHIFT RIGHT.
You are trying to shift your variable right and remove leading spaces which you
can never achieve.If you shift right or use RIGHT alignment,you can
only remove trailing space and never leading space.
When you declare a varaible ( eg: test as char 20 ),system allocated 20 characters
spaces as its length.So the system fills the data of the variable in
this length and prints it either left or right or centre as your preference.
regards

Similar Messages

  • 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

  • Customizing font size ,format in smartform....

    Hi,
         I m tried to create new style,and created t zstyle with paragraph format as A1 Arial, bold Italic
    and character format as C1 Times, Bold with font size  as 15, and standard paragraph has A1.
    I checked and activated it succesfully.
      I used this zstyle in Form attributes>output options>style> zstyle, and n the specified windows and tables.
      But the output hasn't changed to the new style format,i m getting only the standard format, nothing has changed ...
    so, give me a soln how to do this and ay corrections i have to make....
    Thanks & Regards,
    BDK....

    Hi,
    Check these points
    1. Make sure the Smart style is active.
    2. Have you applied the Paragraph and Character format to smartform text. Just mentioning the style as zstyle in attributes will not cause any change.
    Character format must be specified like <B>Terms of Prices  :</>
    3. Try the print preview with actual printer and not with "LP01" or "LOCL"
    Regards

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • Smartforms - Change a text elements character Format

    Hello,
    I need to modify a Smartform by increasing the font size on some text elements.  When I highlight the text element to change and then click the dropdown for Character Format I can click the format I would like but it never changes.
    I've also tried resetting the character formats but it always gets back to it orginal size/settings.
    How can I change the character format in a text element?
    Thanks,
    Matt

    It appears I have to delete the field then change the character format to the font I want and finally drop the field back into place on the screen.
    If there is another way to do it, I never found it.
    Switching to the classic editor may work as well.  Worth trying.
    Thanks,
    Matt

  • Smartforms/Smartstyle How to create/upload paragraph and character formats

    Hi Folks,
    I am working on a demo IDES system. In my ECC 6.0 system, the paragraph formats were not included. How can import or include or create or upload paragraph and character formats in order to create smartforms and smartstyles.
    Waiting for your answer................
    Thanks,
    Creasy Matt

    If you Ran Smartstyles T-code and from Utilities you should got all information how to do all these activities.

  • SmartForms Character Formats, Fonts, and Sizes?

    Does anyone have any good documentation, links, or suggestions related to character formats, fonts, and sizes we can use in SmartForms? My biggest challenges are trying to decide which fonts and their sizes to use in my windows.
    For instance, what are good small, or medium, or large, font types to use under different scenarios, and what suggested sizes should be used with them? It would be nice to have some kind of a tip sheet that would refer to this. Because I spend more time playing with configuration then I do actually coding.
    Open to all or any suggestions.    Thank-You.

    hi,
    please check in these link
    SmartForms & Smartstyles
    Re: SAP Smart Forms
    hope  this will help u..
    pradeep
    Edited by: pradeep kandgal on Jan 6, 2009 3:24 PM

  • 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

  • How to create paragraph format in smartforms

    Hi All,
    Let me know how to create paragraph format in smartforms?
    Thanks&Regards
    Mahesh

    Hi
    When we create a smartform we can see in <b>global settings</b> , <b>form attributes</b>.
    In <b>form attributes</b> we set the over all style of the smartform. Goto <b>form attributes</b> and open the tab <b>output options</b>. Here you can see the <b>Style box</b>. In this style box we enter the smartstyle created in transaction code <b>smartstyles</b>.
    Open transaction <b>smartstyles</b>.
    Create a new style.
    Upon creating a new style you will see 3 folder structures under style name.
    1. Header data
    2. Paragraph format
    3. Character format
    To create paragraph format right click on the paragraph format node and click Create Node. Give it name. Now you will get a screen with 4 tabs.
    Indents and spacing
    Fonts
    Tabs
    Numbering and outline
    Here you can provide the look you want.
    Now add this smartstyle in your smartform's form attribute.
    You can also provide individual smartstyles to each text element you create by giving the name of smartstyle in its output options tab. Each text element has a individual output option tab here you can give any smartstyle.
    Click on the general attribute tab of any text element and give the paragraph format directly or by going to SAPScript editor mode.
    Any more questions you can ask me directly mailing me.
    Please do reward points if satisfied.

  • Protection of character format in Smart Forms

    Dear All,
    Similar to the "protected" option in SAP Script for Character format, please let me know "how to protect a character format in Smart forms?"
    Regards,
    Anand

    Hi,
    By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected. 
    Also, chck the following link:
    Page-protection option disabled in Folder node for Smartform
    Let me know in case you need further assistance!
    Thanks,
    Varna

  • Character Format %W Insert URL

    Does anyone have any details on the character format %W tag?
    I found it in a SAP delivered Smartform. i.e. <%W>Link1</>| <%W>Link2</> | <%W>Link3</>
    It does not appear in the character tags for the given style.
    I am looking for info on its use and parameters if any.
    Thanks in advance,
    Dave

    Hi,
    This is what I found..This character format displays the texts as a URL..
    When you click on the texts node..Next to the insert field button...There is a button to insert URL..When we do that..it inserts the
    <%W>
    Anyway check this link for details..
    http://help.sap.com/saphelp_nw70/helpdata/EN/03/7560eccf0d11d3b565006094192fe3/content.htm
    Thanks
    Naren

  • Reg paragraph formant and character format

    Hi All,
    How to assign particular paragraph formant and character formant for a particular text node that I have created.I know how to create paragraph formats and characters using smartstyles and also I assigned this smartstyle in my smartform to that particular text node,but I am not getting where do I select the paragraph format and character format to assign it to the text node?could you please suggest some body how to do this?
    Regards
    Mahesh

    Select the text you have written in the created text element and on top of the text only there is an option for Paragraph and character formats which will give you the dropdown list with all the paragraphs and character formats u have created. choose the desired one and it will reflect..
    OR alternately you can go to the editor and wite the code as in SAP SCRIPTS by providing the Paragraph name or Character name urself.
    REWARD POINTS IF USEFUL

  • 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

  • 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)

  • Character format on include text in smart form ??

    hello,
    i want to apply a character format on my include text, as we do on text elements .. how to apply it on include text ??
    thanks..

    Hey dude ,
    Just go to the <b>output option</b> of the text and include the smartstyle, where you have mentioned the required charecter format. Before doing this you should have activated your smartstyle .
    Your problem will be solved.
    Regards,
    Kunal.

Maybe you are looking for

  • IPod Touch 4th gen iOS 6.0.1 keeps crashing

    Hello My iPod keeps crashing when I open certain apps, like the App Store and also a magazine that I subscribe to that has its own app.  I have to close all the open apps and then do a reset (hold down both on/off switch and the home button).  This s

  • Issue with Transfer of File

    Hi , We have developed a ABAP code which will transfer a XML file to a location using FTP. The XML is generated using DOM in ABAP.The data is coming properly in internal tables but when it has been transferred to FTP using a Function module the XML d

  • Mac mini - built-in speakers and external speakers?

    Hello Is it possible to use built-in speaker and external speakers the same time? I have connected Mini to my sound system, but sometimes I listen to the radio and would like to use the built-in speaker. How can I do such thing without unplugging ext

  • Help with a frozen phone!

    My Blackberry is frozen... I can see phone calls but my screen is black and none of my keys work!  I have done a hard reset and also tried to downgrade the software as a fix and NOTHING is working.  Can anyone help me!

  • Jar and classpath with space in folder name?

    Hi, all. Just for fun: what if I have a jar file that is dependant on the other jar file which is placed in folder with space in its name? How would I link it in manifest file? Thanks.