Regording diff paragraph fornmats in scripts

hi
experts can u pz  solve my requirement.
in my layout in my mainwindow
i want to dispaly 1st line and last line in english and middile line in jerman language
how can i do this in scripts?
pz solve my problem

hi
just create two character format in se72.
or in se 71
then write the text line in engish in the text editor.
and give the character format in the left side by cliking the search help.
repeat the same thing for germany in the same window .
rewards if helpful
sachhidananda

Similar Messages

  • What is the diff b/w Sap Scripts and Smart Forms

    Hi,
          Whats the diff b/w SAP Scripts and Smart Forms..
             I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st  and SIMILARLY FOR SMARTFORMS WHETHER FM'S  R FORMS.
    Thanks & Regards,
    Gopi.

    Hi
    Difference with SMARTFORMS vs. SapScript(SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated.
    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    check out this link:
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Reward points if helpful.
    Regards,
    Swathi.

  • Use of "Next paragraph same page" check box in paragraph format of SCRIPT?

    Hi Guys,
    What is the use of "Next paragraph same page" check box in paragraph format of SCRIPT?
    Don't Send me the F1 help ....i am not clear with that help it is quite confusing.
    Provide example if possible.
    Solutions will be rewarded.
    Regards,
    GURU

    Hello.
    You probably know the idea of PROTECT command. It makes that a paragraph wont break in two. If it fit's totaly in one page it will print in that page. If not, it will print totaly in the second page (won't break at the middle).
    The checkbox you are asking, makes the same with two paragraphs. This means that if you have paragraphs A and B (A becomes first) and if paragraph A has that option, the next paragraph won't break, and appear in the second page. If paragraph A is in first page, paragraph B will print in first page too, or they will both print in second page.
    Try it.
    Best regards.
    Valter Oliveira.

  • Change any paragraph style by script

    Hi !!!
    Is it possible change a selected paragraph with any paragraph style by script?
    Example:
    My paragraph style is:
    Font: Garamond, size 7pt, color: black, align justfy (or any selected paragraph style)
    Script to set the selected paragraph with paragraph style describe above to:
    Font: Humanist, sise 8pt, color: black, align justfy
    Drop caps: number of lines: 3, one or more caracteres: 2

    I got it.
    But there is a trouble.
    How can I change into this script the first caracter dropcaps to fill tint 30% Black?
    var myPara = app.selection[0].paragraphs[0];
    var myChar = myPara.characters[0];
    myPara.dropCapCharacters = 1;
    myPara.dropCapLines = 2;
    myPara.dropcapDetail = 1;
    myPara.firstLineIndent = 0;

  • [JS] How to break link to paragraph style from script?

    I don't found the command break link to paragraph style from script.
    I want "unapply" the style from the text, but leave the formatting intact.
    Can help me?

    In the interface it's a separate command ("Break link to style"), but it seems in a script you have to use
    Paragraph.applyParagraphStyle (using:ParagraphStyle[, clearingOverrides:bool=true])
    You cannot use "null" or something similar for "ParagraphStyle", so I guess the idea is to use paragraph style #0 in your document (which is always "[No Paragraph Style]"). Be sure to set "clearing Overrides" to false, as it defaults to true.
    The following single line works on your current paragraph:
    app.activeDocument.selection[0].paragraphs[0].applyParagraphStyle (app.activeDocument.paragraphStyles[0], false);

  • TAB in paragraph format for Script

    hi,
    i am doubt with the tabs for paragraph format in the script. how actually it work? i try to make change on the tab, but some time even i put a larger value, the space in the output will become smaller, can anyone explain to me how the tab actually work?
    thanks

    Thanks you very much.
    but one more question, let say, if i have 3 tabs for an output.
    HARLO,,MY,,WORLD,,!
    any i configure the tabs as, 20, 30,15 all in CH
    so after the "HARLO, it will have 20 CH of spacing, follow by "MY", 30 spacing, and 'MY" 15 spacing, end with "!"?
    it this the way it works?
    or it works in accumulate way, which include the text display as well?
    i found in the forum, say that, it will fix the length of a field( if i display a field), even there is no any value in that field. so how does it work on this?
    alot of question very thansk for the temper.

  • Paragraph format in scripts

    hi experts,
    in scripts, in paragraph formats we have a tan called "outline".
    can any one help me to know abt that. plz give me what is the purpose of it, n how to implement that one. i mean how to use it.
    thanks in advance for ur responce.

    hi
    good
    The paragraph numbering and marking attributes are used to structure texts into chapters, subchapters, and sections. Numbering is carried out automatically by SAPscript.
    You can create an outline with the entry options available:
    Outline
    Enter the name of the highest-level paragraph in an outline hierarchy here. The outline hierarchy is created by assigning this paragraph to all outline paragraphs.
    Outline level
    Enter the level in the outline hierarchy. The outline levels of the paragraphs are numbered upwards from 1; the highest outline level therefore has the outline number 1.
    Number margin
    Specify the space between numbering and window border. Note that your numbering may extend into the text area of the paragraph if the difference between the left margin and the number margin is not great enough to hold the numbering characters.
    Left/right delimiter
    Specify the character that precedes or follows the numbering.
    Number chaining
    Specify whether you want the paragraph numbering of the paragraph to be preceded by the numbering of all higher paragraphs in the hierarchy.
    Example for number chaining
    with   without
    3.     3.
    3.1     1.
    3.2     2.
    3.2.1     1.
    Character string
    Specify the numbering format. The numbering can be assigned a different font or character format to the rest of the paragraph.
    Numbering type
    ARABIC
    Arabic numerals: 1, 2, 3.
    CHAR Fixed character: letter or numeral, entered in the field
    LETTER Letters: A-Z
    ROMAN Roman numerals: I, II, III, IV
    Depending upon the numbering type that you select, the following attributes may also apply:
    Fixed character
    Define the fixed character to be used for numbering. You should only make an entry in the field Fixed character if you have specified CHAR as the numbering type. Fixed characters include + - and o .
    Output length
    Enter the number of characters for Arabic numerals.
    Upper case
    Specify for letters or Roman numerals.
    check this link hope this will help you to solve your problem.
    http://abapprogramming.blogspot.com/2007/11/sap-script-controls-2.html
    thanks
    mrutyun^

  • How do I change text within a paragraph in VB-script?

    I am having some problems with changing the text inside a paragraph without affecting the styling of other paragraphs. It may be that I am using a wrong approach to changing existing text, I don't really know.
    As an example, I have the following two paragraphs inside a table cell:
    12
    35
    These two paragraphs have different paragraph styles applied to them.
    If I now change the contents of the first paragraph to a 1 digit number, the style of the second paragraph changes to the same style as the first one.
    Paragraph1.Contents = "4" & Chr(13)
    The text is correct after the change, but the styling on the second paragraph is wrong:
    4
    35
    I have also tried using Paragraph.Lines(1).Contents and Paragraph.Texts(1).Contents, but the result is the same.
    Is there any way of changing text inside a paragraph, which ensures that noting other than that text is affected?

    Hi Frank,
    The problem is occurring because you're effectively removing the paragraph end by replacing the entire contents of the paragreaph. You want to use the Characters collection and the ItemByRange method so that you can leave the paragraph end untouched.
    I'm pretty sure it would look something like this though I haven't tested this:
    Set SChar = Paragraph1.Characters(1)
    Set EChar = Paragraph1.Characters(-2)     'giving you the 2nd to last character.
    Set TxtToDel = Paragraph1.Characters.ItemByRange(SChar, EChar).
    TxtToDel.Delete
    Then you can set Paragraph1.InsertionPoints(1).Contents to the new text.
    If the ItemByRange doesn't work you can always loop through the character collectoin and delete all but the last characters in the paragraph.
    Good luck!

  • Changing the font size for Default paragraphs in SAP Scripts

    Hi,
    I have a set of terms that are coming in two pages. I need to bring them in just one page. I noticed that that window is using a default paragraph. But when I change the font of that default paragraph, it does not show any change. Any suggestions on this?
    Thanks,
    Raj

    If the device type assignd to the printer does not support the new fon't size, smallest available will be used.
    To check available font size, goto SE73, select printer font, display, double click on device type you are using, and see the font size is available.
    If 'Scal.' displayed in the font column, all font sizes shoud print, if the fon't size is not scalable, only the available will print, remaining will use the nearest font size
    Regards
    Sridhar

  • Script for selecting consecutive paragraphs -- can anyone help me?

    Hi,
    I have this script that works fine. It aplies Style Then Next Style to the paragraphs that I have selected with the keyboard in Indesign CS5:
    var style_name = "cabecalho"
    var doc = app.documents[0];
    var first_pstyle = doc.paragraphStyles.item(style_name);
    var cur_sel = app.selection[0].paragraphs;
    cur_sel[0].appliedParagraphStyle = first_pstyle;
    if (cur_sel.length > 1) 
         for (n = 1; n < cur_sel.length; n++)
              cur_sel[n].appliedParagraphStyle = cur_sel[n-1].appliedParagraphStyle.nextStyle;
    But before running it I have to use the keyboard to select the 3 paragraphs for the script. I know that it is possible to add some code in the beginning to make the script select the paragraph where the cursor is and the next 2 paragraphs and avoid the manual selection because it is always 3 paragraphs.
    I do not know how to do this. Can anyone help me?
    Thank you in advance. Greetings from Madrid

    This is a bit crude but you get the picture:
    var style_name = "cabecalho"
    var doc = app.documents[0];
    var first_pstyle = doc.paragraphStyles.item(style_name);
    var story = app.selection[0].parentStory;
    var cur_sel = app.selection[0].paragraphs[0];
    cur_sel.appliedParagraphStyle = first_pstyle;
    var nextpar = story.paragraphs.nextItem (cur_sel);
    nextpar.appliedParagraphStyle = cur_sel.appliedParagraphStyle.nextStyle;
    cur_sel = nextpar;
    var nextpar = story.paragraphs.nextItem (cur_sel);
    nextpar.appliedParagraphStyle = cur_sel.appliedParagraphStyle.nextStyle;
    Peter

  • Header text in Script

    Hi,
    My SAP Script is maintained in English language. In one place, i have to read  header text which is in portuguese.
    I have used
    INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 PARAGRAPH HT
    in script.
    The text is read correctly which has maintained in English(other document no).
    But the problem is with the text in portugese.
    I can understand that it is because of Language conflict. But is there any solution to overcome this? My user wants that text should be displayed in Portuguese only and the script should be maintained in English.
    Regards,
    Priya

    There is only a way to call that PT text on your english layout is to put a condition.. Include command just works like read_text ..
    So if you will not pass the langauge in the editor you will always get the ENGLISH text ...
    For example ant specific document number u wud like to print the PT text
    Even in editor you can write like this.
    /: IF &CONDITION 1& = 'TRUE'  --> For PT
    /: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE PT PARAGRAPH HT
    /: ENDIF
    /: IF &CONDITION 2& = 'TRUE'   --> For EN
    /: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE EN PARAGRAPH HT
    /: ENDIF
    I think that should the way..
    Regards,
    Lokesh
    Edited by: Lokesh Tarey on May 13, 2010 8:40 AM

  • Exporting correct Hex colors via scripting

    Hello all,
    I need to export the fillColor of a paragraph style via scripting.
    I can get the fillColor property of the paragraph style, and can also convert CMYK to Hex. However, I do realize that the color values shown in InDesign are in whatever Color Space the document is using.
    My question is, is there a native API to convert the color values to a web safe color value? If not, how do I go about mapping the colors?
    Additionally, I see that Adobe internally knows how to convert it to a proper hex color (screenshot attached - note the color property in the Export Tagging pane). If I cannot use some native API, is there a way to access the text in that pane?
    Thanks all, in advance!

    @DerKäse (btw. funny name) – there is an add() method for colors that will take a Object Color as argument.
    Use that for your purpose.
    Here an example for RGB:
    var myDoc = app.documents[0];
    var myColorName = "myNewRGBColor";
    if(!myDoc.swatches.itemByName(myColorName).isValid){
        var myNewColor = myDoc.colors.add(
                name:myColorName,
                colorValue:[255,255,0], //A bright yellow
                model:ColorModel.PROCESS,
                space:ColorSpace.RGB
    Here one for CMYK:
    var myDoc = app.documents[0];
    var myColorName = "myNewCMYKColor";
    if(!myDoc.swatches.itemByName(myColorName).isValid){
        var myNewColor = myDoc.colors.add(
                name:myColorName,
                colorValue:[0,0,100,0], //A bright yellow
                model:ColorModel.PROCESS,
                space:ColorSpace.CMYK
    Hope, that helps…
    Uwe

  • Drop cap for FIRST paragraph only

    I know how to create a drop cap for a paragraph manually. But I will be filling a textbox from XML, which may contain one or more paragraphs. If I assign a drop cap as part of the paragraph style, every paragraph gets a drop cap, when I only want it on the FIRST paragraph. It seemed liked Nested Styles offered some promise, but that appears to only work with character styles, and drop cap is available only as a paragraph style.
    Is there any solution to this, short of scripting? And if scripting is required, does anyone have any pertinent examples of applying paragraph styles with scripting? I'm a seasoned pro with VB, but I haven't tried VBScript in InDesign yet, and not even sure what the object model looks like.
    Thanks!

    Please forgive my ignorance, but is "next style" some kind of intrinsic functionality (as suggested by the quotes)? If there is some kind of functionality that says apply a variant of style to the first paragraph, and the original (based on) style to the rest, that's what I'm looking for.
    I did arrive at a work-around, using the original style and basing a new style on it (thanks for the tip, I didn't think about that), but it's less elegant than I'd like. What I did is, instead of assigning an XML tag to the entire textbox, I selected the first paragraph and assigned a tag to it; then I selected the remaining paragraph(s) and assigned a different tag. I mapped styles to each tag, with the first having the drop cap. So far, it seems to work--though I've found that with ID and XML, it's best to keep things as simple as possible. ID's implementation of XML can be a little squirrely. This also adds the burden of having the software which generates the XML, determine when the first paragraph ends and the second begins.
    If anyone else out there tries this, please note: ID adds as "Story" tag to the structure. You'll need to add this tag to your XML as well (and remember, tag names are case sensitive).

  • Two paragraph formats

    is it is possible to have two paragraph formats in a single line in one text element in smartforms.
    I have to display value& text in a single text element. When am using diff paragraph formats, value is displaying in next line. If we can display in 1 line what are the characterstics of paragraph.

    hi,
    you can use only one paragraph format in asingle element.
    common characteristics should be mentioned in parageaph..
    remaning mention for the texts...
    for example.
    text anda value, in this common charateristics are bold which should defined in paragraph..
    the text should also have underline which is mentioned only for text.
    p1: <u>Text</>  Value
    Regards,
    Deepthi.

  • New font for script

    hi,
    is it possible for me to add a new font, which is not in the SAP?
    currently i need to add a font "Gill_Sans" into my PO, using script.
    i tried to seach under the font family in the display paragraph location in Script, but cant find it.
    can anyone please teach me how am i going to add this or change on it? thanks

    Hi,
    Import new Font in SAP Script/ Smartforms.
    Check the below link:
    http://www.sap-basis-abap.com/sapbs043.htm
    Create a new font type with the spool administrator (SPAD)
    When you need some different fonts other than those available in the standard SAP system, you'll have to create those different fonts size manually for the device types that you are using.
    http://www.sapfans.com/forums/viewtopic.php?t=258700&sid=e023b90008c9ee1843c00fc3cf2fcee6
    COPY SAP STANDARD DEVICE TYPE TO ZXXXX e.g. ZHPLJ4
    SPAD - Spool Administration
    Full administration
    Device Types - ZHPLJ4 (then click Device Types)
    Utilities -> For device type -> Copy device type
    Print Controls - Copy an existing Print Control and change the ControlCharacter sequence
    SE73 - SAPscript Font Maintenance
    Printer fonts - Change
    Double click on the ZXXXX device type
    Create
    Font family COURIER
    Font size 030
    Characters per inch 21.00
    Print control 1 SFXXX
    Print control 2 SFXXX
    Reward points if this Helps.
    Manish

Maybe you are looking for

  • Directory Server 5.2 installation problem on win2000 server,sp4

    Hi, I attempt to install Directory Server 5.2 on windows 2000 server(Simple Chinese) sp4, when the installation comes to "configuring" it stops. And have this error: java.lang.StringIndexOutOfBoundsException: String index out of range: 16 at java.lan

  • Irreversible image rotation??

    What's with the seemingly random, compas points, which irreversibly rotate an image?

  • HP LaserJet 4000tn: "Unable to connect to printer" (IP printing)

    The two Leopard machines on my LAN (one wired, one wireless) have trouble printing to my trusty LaserJet 4000tn. Panther, Tiger, and Windows XP machines work fine. The printer is on the LAN and I'm trying to access it with IP printing. It gets stuck

  • I payed, but LR want a serial number

    Hi! I bought Creative Cloud Photography plan (one-year, prepaid)! I have been downloaded and setup creative cloud, authorization with my adobe id, updated my Lightroom 5.7 to 6 CC and now i'm watching:  you have trial version for 30 days and i need s

  • LR fails after 42% download using app on CC

    Can anyone suggest what to do. I have downloaded PS ok but LR5 on CC app Download fails at 42% every time I try. I am using win 7 serv pack 1.  Have tried explorer and firefox same problem. Time for money back me thinks!!