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á

Similar Messages

  • Dynamic Tray Selection in Smartforms

    Hi all,
    I am looking for a solution, to set the tray in a Smartform dynamically.
    It is not sufficient to set the Tray statically on the "Output Options" tab -> Ressource Name.
    Can anybody help me?!?
    Thanks and best regards,
    SteCee

    Normally, tray selection is done using GET_PRINT_PARAMETER FM.
    Refer to these threads, may be helpful -
    Print to different output tray in SAPscript/Print Workbench
    Automatic tray selection for printing
    Regards,
    Amit

  • Dynamic color selection in Smartforms using tables

    I am printing a smartform in pdf, i am using  tables in smartforms where the number of column is dynamic, and say there can be cases where there will be no data in a particular column and if that is the case than i have to print a particular color say grey, so my question is how to achieve this functionality in smartform dynamically, i am printing it in PDF.
    Regards & thank,
    Pritam.

    you need to create the 2 text elements , and put the condtion like below
    if not value is initial.
    display text1
    else
    display text2.
    endif.
    in text2 element > Output options> put the color. which you want...

  • How to change dynamically style in smartforms

    Dear All,
              I had a requirnment to select different styles in smartforms depending on some condition, can u plz suggest me any solution for this.Thanking you.
    With best regards
    Gaurav Lashkari

    Hi,
    Goto Transaction smartform.
    Place radio button on style, then give <b>style name</b> and
    create it.
    In paragraph format right click and create node.
    Give some name it wil create a node.
    Double click on that node than u can
    change your style by using font tab.
    You can create any number of node.
    Save and activate.
    Then in your smartform->form attributes->output options
    Give your <b>style name</b>.
    Then place the cursor on the text to be modified and
    select your style from paragraph format.
    Thanks.

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Dynamic date selections in a variant

    Hi All,
    I need to dynamically change the date field of a report which runs every month end. Our working calendar is designed such that the last working day is the last Friday of the current period and hence the first working day is the last Saturday of the previous period. Now we have Fiscal Calendar variant which takes care of the last Friday part. I also know we have to select 'D' in the variant screen but my problem is in assigning the Last Saturday of the previous period in the date range field. Any hints or suggestions on this would be highly appreciated and of course rewarded generously.
    Thanks & Regards,
    Rajesh

    Hi Rajesh,
    After seecting Selection Variable "D" you have to carry out following things to cater your requirements;
    (a) Goto Name of Variable (input only using F4)
    (b) Select your variable depending upon your business requirement.
    Current Date
    From month start to today
    Current date +/- ??? days
    current date +/- ??? work days
    First day of current month
    <b>nth working day of current month</b>
    First day of next month
    First day of previous month
    Last day of previous month
    Last Day of the Current Month
    First quarter ????
    Second quarter ????
    Third quarter ????
    Fourth quarter ????
    Current date - xxx,current date + yyy
    Date - xxx, Date + yyy (work days)
    Previous month
    Current period
    (Beginning of mth-xx months, end of mth+yy months)
    I think nth working day of current month is suitable for your requirement.
    Bye,
    Muralidhara

  • Best way to load CSS depending on language

    What's the best way to load CSS depending on user language? If I am making a publishing site with 2 languages then how do I load particular CSS depending on language?
    I know one way to use is to use javascript (jquery) but I was thinking if there is a better way to do that?

    <SharePoint:CssRegistration name=”<% $SPUrl:/_layouts/projectname/styles/~language/master.css
    %>” runat=”server”/>
    http://lionadi.wordpress.com/2013/04/30/sharepoint-language-specific-css-loading/
    http://sharepoint.stackexchange.com/questions/54698/how-to-specify-which-css-files-to-load-in-sharepointcsslink-when-using-themes
    http://stackoverflow.com/questions/858990/how-can-i-target-css-to-a-particular-sharepoint-page-layout-file
    asp:Content ContentPlaceholderID="PlaceHolderAdditionalPageHead" runat="server">
    <link id="Link1" href="<% $SPUrl:~SiteCollection/Style Library/mystyle.css%>" runat="server" type="text/css" rel="stylesheet" />
    <SharePoint:ScriptLink id="jQueryCore" language="javascript" name="ui.core.js" runat="server"/>
    </asp:Content>

  • Dynamic BULK SELECT/MODIFY

    Hi,
    When using EXECUTE IMMEDIATE with a dynamically
    built SELECT/INSERT statement with varying
    tablename, fieldnames, fieldtypes and fieldcounts
    how do I make the BULK COLLECT INTO/USING parts
    dynamic too?
    Can I use RECTYPE arrays if the type depends on
    the dynamic statement? Kind of like (pseudo-code)
    procedure FETCH(p_Stmt VARCHAR2)
    valueType TABLE OF p_Stmt%REC_TYPE INDEXED BY
    BINARY_INTEGER;
    values valueType;
    LOOP
    EXECUTE IMMEDIATE p_Stmt
    BULK COLLECT INTO values LIMIT 1000;
    FOR values LOOP
    -- use values.a and values.b
    END LOOP
    END LOOP;
    FETCH('SELECT a,b FROM t');
    If I'm forced to use DBMS_SQL and bind OUT/IN arrays
    of different types do I need to pre-allocate arrays
    of each type against the chance that up to (say)
    a 100 DATE columns end up in need of beeing bound?
    Or can I reuse one array per type because the methods
    copy the arrays? Or is there a generic type that can
    be used to bind whatever type the column has?
    regards,
    Schenke

    Hi Justin,
    So I gathered (my question mentioned this option).
    I only had gotten the impression from some comments
    that DBMS_SQL may be slower than EXECUTE IMMEDIATE
    because of the extra layer of flexibility. Maybe
    there will be more parsing too.
    There seems to be no way to define the arrays needed
    for the DBMS_SQL-IN/OUT-binds dynamically. I don't
    think reusing the same array for different columns
    will work either. That means arrays must be defined
    against all possible columns or at least enough of
    each type with a dynamic allocation process (i.e.
    count the number of columns for each type and assign
    arrays with names like date1, date2, date3, ... to
    the 1., 2., 3... DATE column in the statement.)
    regards,
    Schenke

  • Dynamic row selection based on Page member selection in Planning web-form

    Hello experts
    I have requirement where, user dont want 10 webforms to enter 2 accounts line for various sparse members. Below is the dimension detail and web-form current design
    Account - Dense
    Period - Dense
    Year - Sparse
    Scenario - Sparse
    Version - Sparse
    Entity - Sparse
    Product - Sparse (600 level 0 members)
    Product dim has family1 as parent and 40 level 0 mem like that there are 10 family level 1 members, now to enter account member (only 2 member) for 6 years projection ( it means 12 periods and 6 years in column ) , i can build 10 web-forms with one web-form has one family level-0 mem in rows,
    however my question, is how can i achieve this in one web-form, instead of 10 web-forms for 400 products ?
    your help is greatly appreciated.
    Edited by: 859874 on Jul 18, 2012 8:58 PM

    Im not sure there is any simple way to get dynamic row selection based on what is selected in the page.
    If I were designing the form based on what you have stated, I would probably stick both Account and Year in the page, and the 400 products in rows. This would require the user to select the different combinations of Year / Account, but would mean only 12 columns (instead of 72).
    Alternatively you could stick Account in rows too - meaning 800 rows, but less combinations to select in Page....all depends what is deemed acceptable to the user.
    Probably other approaches that may be better than above (put Product in the Page for fun!!)
    Thanks
    JB

  • 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

  • How to dynamically include textelement in smartforms

    Hi Experts,
    I need to print payslip using smartform and need to take the values from pay99_result.
    I took all the values and filled in the internal table and passed to smart forms, but the requirement is when ever particular wage type is given for an employee only that wage type only printed in the smart forms output. we have 87 wage types.
    I designed the layout using table in window and created several table line, in the salray details table line rows values descripiton should come dynamically according to the particular month credited(affected) wage types.
    This is the salary details line item .
    desc amount annual semi annual deduction amount
    textelement1 textelement2 textelement3 ... . . . .. ...
    Inn single text element multiple coloumn need to come.
    using this text element respective values should come dynamically, i tried condition in the text element , but if condition failed (no values for wage types) whole coloumn is not displaying but for me only that row should not printed.
    Any one please guide me how to approach on this issue and how to pass the text element value dynamically ???
    With Regards,
    Thanesh

    HI,
    why dont you make use of Dynamic text concept in smartforms..which is fits in your requirement.. to make use of it..
    on a window. right click and choose Text.. it will take you to text window..in that choose text type as D Dynamic text...
    I hope this answer will help  you..
    Regards,
    Kiran

  • How to dynamically replace variables in SMARTFORM texts based on item data?

    Hi experts,
    I'm currently designing a confirmation of order using Adobe PDF forms. The general layout with tables, pictures and texts was not big deal.
    But one tiny bit doesn't work and I'm becoming more and more desperate about it.
    We need various free texts for our pdf form. I created the texts using smartform texts. Some of these texts need to be slightly dynamic, so I added some dynamic fields in it.
    For example:
         "The material is currently out of stock.You can expect shipping around week &num_week&."
    To replace the dynamic field &num_week& in my interface, I read that I have to name the dynamic field exactly like the corresponding field in my interface. In my case this would be now:
         "The material is currently out of stock.You can expect shipping around week &SLS_PRT_COM-ITEM_DETAIL-ZZ_EXTRAFIELDS-ZZWEEKNUM&."
    To see the text on my form, I added a text object with type 'text module' and the proper textname. Of course I'm able to insert text on my form, save and activate it without problems. But if I want to print the form, nothing happens as the print program exits with an error code.
    After some hours I found out that this problem only occurs if I'm trying to replace the dynamic field with a field from the item table. Using a field from head details or globals like sy-mandt works like a charm.
    So my question is: Is it possible to use item data to replace dynamic fields of a smartform text?
    Greetings and thanks in advance!
    André

    Hi
    Have a look at the links below:
    LiveCycle ES2 * Adobe LiveCycle Designer ES2
    Using floating field in Adobe Forms to display text paragraph with dynamic variables in between
    After adding the floating field it will apeare in the hierarchy pallet above or bellow the text field.
    Good luck
    Shai.

  • When opening a word document, I get this:The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document. Is there a way to solve this?

    The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document.
    The above is what I get when I open a word document. Is there a way to solve this?

    Hmmm. Apply the styles?
    Peter

  • Dynamic style with non spatial data?

    Hi all,
    Here is the situation : I have two spatial tables with attributes.
    Each row in the first one will be affected to a row or several rows in the second using a third table that links the primary keys of both tables. (the third table is actually a temporary table loaded from an xml file)
    I would like to represent that on the map using a dynamic style. My column on which is based the affectation is varchar2 column. So I can't use numeric buckets.
    Is it possible to do that? And how?
    Thank you for your help.
    Max

    Hi Max,
    for varchar2 columns you can use Collection bucket styles where the values can numbers of strings. Post the general sturcture of each table (the attributes), and how you would like to link them. You may be able to define a view linking the tables, and then use one attribute of the view for the collection style.
    Joao

  • SMARTFORM in Hebrew language

    Hello
    Anyone has experience in SMARTFORM in Hebrew language
    I have a form in EN and for testing i have convert EN  text into HE Lang (Tcode:SE63).
    When i print this invoice into HE language , SAP Convert the invoice from Right to Left(all the English char) but it works in different way.
    Example :
    1.
    EN : Schindler Nechushtan Elevators Ltd
    HE: Ltd Schindler Nechushtan Elevators
    2.
      EN: Tel: 972 3 7214400  Fax: 972 3 7214405
      HE : 7214405 Tel: 972 3 7214400  Fax: 972 3
    Do anyone has idea "How it works" and how can i start defined Hebrew forms.
    with best regards
    Ravi

    Hello Gungor
    Do you think that for HE  i should not translate from SE63 .
    I have a form in EN (dev language EN) and from SE63 i convert EN to HE (with all EN).
    Now from SE63 , I have a form in HE with English text .
    some text is converted from Right to left with strange order
    HE  --yr.comravi.shankar.tiwary at ch.schindle :E-mail
    EN will be : ravi.shankar.tiwary atch.schindler.com
    Do you have any example for me how can i handle EN + HE in same form  or how can i do it .
    do you think that in HE  i have to translate the form  not through SE63  but to logon in HE and then translate.
    With best regards
    Ravi

Maybe you are looking for