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

Similar Messages

  • 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

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

  • Dynamic formating in smartforms

    I'm just curious if there is a possible to create a dynamic formatting in Smartforms. What I mean saying dynamic? Lets imaging that I've a strucure where I've following information;
    LINE_NUMBER
    TEXT
    This structure is used to build a table, where I can assign one or more text to one line.
    So my example data in this table will be:
    LINE_NUMBER | TEXT
    1 | my first item
    1 | first item description
    1 | some other text
    2 | second item
    2 | second item extended name
    2 | second item additional text
    2 | second item summary text
    and so one...
    So I can have varying texts number assigned into one line (max 8).
    Now I want to use paragraph, with 8 prepared tabs.
    Now the problem comes, how to pass this texts into tableline inside smartform and do not prepare separate lines for 1,2,3... elements?
    Any idea? It is possible to prepare data in variable which looks like:
    1,,my first item,,first item description,,some other text
    and display this data in such way, that commas will be recognized as tabs formatting in paragraph instead displaying them?

    hi..try this...
    create table->create a line type as required.
    loop at itab containing ur data.
    in the main area of the table create a row:
    right click on main area->table line
    in the output options of the row assign the line type from the drop down. in the condition of the row give the condition wa-LINE_NUMBER = 1.
    similarly create other rows(table lines) giving the conditions 1 to 8.
    that is you will have 8 table lines with conditions:
    row1 condition -> wa-LINE_NUMBER = 1
    row2 condition -> wa-LINE_NUMBER = 2
    row3 condition -> wa-LINE_NUMBER = 3
    row8 condition -> wa-LINE_NUMBER = 8
    so if line_number = 1 then row 1 will be use..
    if its 8 then row 8 will be used......
    inside the rows u can use different text elements with different para formats...

  • 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

  • Smartform Dynamic Page Format

    hi
    IS IT POSSIBLE TO HAVE DYNAMIC PAGE FORMAT IN SMARTFROMS.
    EXAMPLE: DEPENDING ON ONE CONDITION I NEED TO PRINT THE PAGE EITHER IN LANDSCAPE OR PORTRAIT.
    PLEASE HELP ME.
    THANKS IN ADVANCE.
    KIRAN.

    I htink the page format is set at the time of creating the page itself.
    YOu cannot change it depending on the condition.

  • 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

  • Dynamic style selection in smartform depending on language

    Hi
    Today I assign a style to a smartform statically in form attributes. I don't assign styles to any subnodes.
    Is it possible to make the assignment of style to the smartform dynamically at runtime?
    (If you can suggest a completely other solution for my problem, that will also be very much appreciated).
    Reason: I have a requirement to translate a lot of smartform (maybe 100+) from English to Chinese, Japanese, Korean, Russian etc.
    I'm in a Unicode environment and the translation itself seems to work quit simple.
    But there seems to be a major problem about the font.
    In our smartforms we use smartstyles with 2 fonts helve and times.
    So far we have just translated a few smartforms to Chinese with SE63. We have also translated some material texts and addresses and we have defined a test printer with CNSAPWIN.
    Test prints now shows that we can print all the Chinese texts, but all the texts and numbers that is not translated into Chinese (i.e. quantity, price, net value etc.) is printed with a bigger font size.
    Now this is a know problem discussed in more forum threads and OSS nodes, and the solution seems to be, to change the style to use special Chinese fonts and adjust the font size.
    We have tested this at it seems to solve the problem. But all the threads and notes discussing this issue is talking about "the English smartform" and u201Cthe Chinese smartform" and so on. This is not very smart.
    If we follow this strategy and creates a form for each special language (special from our perspective), we will need 5 different versions of every smartform and the time needed for future maintenance will increase dramatically.
    A much better solution would be to have one smartform that is translated with SE63 and only make 5 different styles to handle the different fonts etc. This solution requires however that we can assign the styles to the smartforms dynamically at runtime.
    Yours sincerely / Med venlig hilsen / 此致敬礼 / Mit freundlichen Grüßen / Pozdrawiam
    Thomas Madsen Nielsen

    Hi!
    In SAPScript there is an option for this, using the STYLE keyword. However I don't know will it work in Smartforms or not.
    If it is not working, I think you have to different character and paragraph formats within 1 smartstyle for each language.
    About the STYLE keyword:
    Changing the Style: STYLE Locate the document in its SAP Library structure
    The STYLE control command allows you to change the style within a text. The new style is in force until another STYLE command is issued. If you specify * as the name of the style, then the system reverts to the default paragraph of the original style or form.
    Syntax:
    /: STYLE style
    /: STYLE *
    A style set with this command has no effect in a text included with INCLUDE. The system takes the paragraph and character formats from the calling text. To use the style set with STYLE in the INCLUDE text as well, you must add DOMINANT to the command.
    Note
    If the INCLUDE text has a style assigned to it, in both cases, the system always takes the paragraph and character formats from the directly assigned style.
    Regards
    Tamá

  • 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

Maybe you are looking for

  • Obtain message id in receiver

    Hello, generally I'm trying to find out what is a message id for a message sent to given adapter. That is, there is custom adapter which works as receiver/outbound. However, I don't know how to get a message id of the sent message... Maybe on receive

  • Snapshot too old errror

    Hi Team I have a string lets say by the name v_instr :='insert into temp values(:request_id,deptno)'; IF (l_record_count = 0) THEN -- For BV -- modified by skhairna on 12Jun2008, added order source CSCC+Ciber for Data validation qry_string:= 'select

  • MAJOR Wireless, Safari, Dock & Finder issues after latest updates

    I'm having major issues after the latest AirPort, Security Fix and Safari updates in 10.5.2: Safari keeps crashing every hour, Wireless connections time out and Airport occasionally crashes when I try to turn it off/on. Sometimes the systems gets sta

  • Login via Press Ctrl-Alt-Delete to begin

    Hi, Seems to have locked myself out. Screen shows Press Ctrl-Alt-Delete to begin, on Windows 2000 Prof, but nothing happens when these keys are pressed. Help!??! Yusuf

  • Role and use of MDM for SD consultants

    is there any use of mdm to learn for sap sd consultants. Please suggest experts. how far it will be helful to me if I learn MDM , what will be my role etc