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^

Similar Messages

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

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

  • Regarding Paragraph format in SAP Script

    Hi SAP Gurus,
    Can any one please tell me the use of TABS in paragraph formats in SAP Script.
    Thanks & Regards,
    Pavan Bandaru.

    Hi
    first you define you tab in paragraph formats.
    whene you must use this pharagraps you
    just insert double comma before the text.
    ,,&matnr&
    attention because if you define more than a tabulator il will take the tabulator in sequence.
    ,,(1st tab)&matnr&,,(2nd tab)&matnr&
    if i define a tabulator of 2cm and another of 3cm and you insert 4 comma
    ,,,,&matnr&
    it will take the summ of the two tabulator.

  • Script to add markers to text by paragraph format

    With previous versions of Framemaker, I had a FrameScript which would loop through my document and add a marker to text based on the paragraph format applied. The marker text would be the selected paragraph.
     I am now trying to recreate this in Extendscript for use in Framemaker 10 and am completely stumped. 
    I have no doubt that my script (copied below) is completely off-track, but I wondered if anybody would be able to help point me in the direction of my many mistakes.
    Basically, I want the script to find all paragraphs with the "*Part no." format applied, make that text the text range and then apply a marker to that range. A bit of research has shown that I probably need to create a list of paragraph formats, but I believe that I have far more problems than just that.
    var pgfFmt1 = flow.GetNamedPgfFmt (*Part no.);
    while (pgfFmt1.ObjectValid())  
        function createMarker (doc, pgf, offset, type, text)    {
            var tRange, marker;
            tRange = pgfFmt1.TextRange;
            marker = doc.NewAnchoredObject(Constants.FO_Marker, tRange);
            marker.MarkerType = type;
            marker.MarkerText = text;
            return 1;
    createMarker (doc, pgf, 0, "Index", 0);
    Many thanks in advance to anyone who is able to offer me some pointers!

    Well, it seems that my script is only 95% there. While my script finds the target paragraphs and adds a marker, only the first word of each paragraph is selected as the marker text. I really need the script to select the whole paragraph as the marker text. I have tried many combinations, but cannot seem to get the right outcome. Could anybody please point me in the right direction? Script is copied below. Many thanks!
    var doc = app.ActiveDoc;
    var flow = doc.MainFlowInDoc;
    var tframe = flow.FirstTextFrameInFlow;
    var pgf = tframe.FirstPgf;
    var target1 = doc.GetNamedObject(Constants.FO_PgfFmt, "*Part no.");
    var target2 = doc.GetNamedObject(Constants.FO_PgfFmt, "*Parent Bold");
    var target3 = doc.GetNamedObject(Constants.FO_PgfFmt, "*Child");
    var target4 = doc.GetNamedObject(Constants.FO_PgfFmt, "*Child indent");
    var target5 = doc.GetNamedObject(Constants.FO_PgfFmt, "*Child indent 2");
    while (pgf.ObjectValid())   {
    if (pgf.Name == target1.Name)   {
        createMarker (doc, pgf, 0, "Index", "");
    else if (pgf.Name == target2.Name)  {
        createMarker (doc, pgf, 0, "Subject", "");
    else if (pgf.Name == target3.Name)  {
        createMarker (doc, pgf, 0, "Subject", "");
    else if (pgf.Name == target4.Name)  {
        createMarker (doc, pgf, 0, "Subject", "");
    else if (pgf.Name == target5.Name)  {
        createMarker (doc, pgf, 0, "Subject", "");
    pgf = pgf.NextPgfInDoc;
    function createMarker(doc, pgf, offset, type, text) {
        var tLoc = new TextLoc(pgf, offset);
        var marker = doc.NewAnchoredObject(Constants.FO_Marker, tLoc);
        var markerType = doc.GetNamedObject(Constants.FO_MarkerType, type);
        marker.MarkerTypeId = markerType;
        marker.MarkerText = text;
        return 1;

  • 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

  • Script Paragraph Format-TAB position Problem....

    In Script- Medruck , There is a line:
    IM   ,,,,,,Qty. ,,Unit   ,,Deliv. date ,,,,&ETUHRTXT&
    where IM is a paragraph format with TAB positions at:2,3,23,24,34,40,51,57.
    what is the meaning of ,,,,,,Qty ????
    what is the difference in writing :
    IM ,,Qty,,Unit,,Deliv. date,,&ETUHRTXT&                                 AND
    IM   ,,,,,,Qty. ,,Unit   ,,Deliv. date ,,,,&ETUHRTXT&
    How would the Display look like??

    Hi Srikar again,
    If you are putting one tab position after every field, in this case count tab position from the starting i.e. from first variable and go on countin till end . This will take you adding position one after other and it will not overlap.
    e.g. Mat,,qty,,price
    and tab position as 1 : 5  2: 10 3: 15 4:20
    then mat will start at 1 to 5 and qty will from 10 onward.
    Regards,
    Vijay

  • How to get pt 9 in paragraph format in sap script

    Hi,
    I have a requirement to bold the data in output screen in main window,But that paragraph format font size is 9.0 pt if in font tab i select bold radio button then its comming bold in output screen some cases but some cases its not happening.So if i take font size - 8.0 pt then its bold happening for all cases.
    but i cannot put 8.0 pt because it is very old paragraph format so in pt 9.0 only i want bold.any body can help me for that.
    Thanks,

    Hi madhurao123 ,
    Thank u so much.
    I have configured the device type as pdf printer.
    And Now I can able to get the PDF File downloaded.
    Thanks       
    Alagappan

  • Table where Sap-Script Paragraph formats are stored

    hey ABAP,
    does anyone know the table where the Paragraph formats are stored?
    Problem: we have a Form with 740 Paragraph formats, they all are of font-type courier, and now need to be either blank or Helve.
    and well i simply dont want to change 740 paragraph formats manually.
    thx for any ideas, hints

    arrrgh ok i´m trying to clarify my situation.
    I already know how to create and edit paragraph formats in SE71.
    Those 740 Paragraph formats have been created by myself.
    But now i need to make a change of the Font type to all of them.
    you sureley can imagine that i dont want to edit 740 paragraph formats manually piece by piece.
    thats why i was asking for a table where they are stored, so i can write a small report which changes that one field for me in ALL my pareagraph formats.

  • Hi need help in paragraph format

    hi,
    in scripts while defining the paragraph format,we have to give tab space also,there why we need to define five tabs,how can we use those in editor.
    Thanks,
    mohan rao.

    Hi..,
    In the <b>Standard</b> attribute group, you find the general attributes that can be defined in paragraph formats:
    <b>Description </b>
    Precise explanation of your paragraph tag, so that the user can immediately identify it.
    <b>Left or right margin </b>
    Amount of space between the paragraph and the left or right border of the form window.
    <b>Indent first line </b>
    Indent of the first line of a paragraph. If the value is positive, it is indented to the right, if it is negative, it is indented to the left.
    If you specify a negative value, then you must place the minus sign after the number: 1- .
    <b>Space before and space after</b>
    Space before and space after control the amount of space between paragraphs. The actual space between paragraphs results from the space after the preceding paragraph and the space before the following paragraph.
    <b>
    Alignment </b>
    Alignment of a paragraph.
    <i>Left-aligned    -
         Right-aligned
    LEFT   -
    RIGHT
    Centered
    CENTER
    Justified
    BLOCK </i>
    <b>
    Line spacing </b>
    Spacing between the lines. The default value is 1 line; the LPI value (lines per inch) in the header data is used to calculate the line spacing.
    <b>No blank lines </b>
    Suppression of blank lines. You can control whether the blank lines of a paragraph should be suppressed in the printout or not:
    <i>No entry -- blank lines not suppressed
    X-- blank lines suppressed</i>
    <b>
    Page protection </b>
    Cohesion of a paragraph. It is possible to determine whether or not a paragraph can be divided by a page break.
    <i>No entry--no page protection (default)
    X--all lines of the paragraph are on one page</i>
    <b>
    Next paragraph same page </b>
    Cohesion of two adjacent paragraphs. Here you can define whether the subsequent paragraph should begin on the same page (that is, at least the first line of the subsequent paragraph must be on the same page).
    <i>No entry
    subsequent paragraph is output on the same page or the next page, depending on the amount of space (default)
    X--subsequent paragraph begins on the same page</i>
    <b>TABS</b>
    You can define as many tab positions as you require for each paragraph format. The text can be aligned in different ways:
    Left-aligned with LEFT
    Right-aligned with RIGHT
    Centered with CENTER
    At the sign with SIGN
    At the comma or decimal point with DECIMAL
    You can control the tab feed in a paragraph with tab positions. The tab stops you define in the paragraph format replace the tab spacing you defined in the header data of the form. However, this depends on the extent to which you have defined tab stops in the paragraph format. If there are fewer tabs in the paragraph formats than in the header data, the tab stops of the header data are used for the rest of the line. The tab stops are represented as , , in the text editor.
    <b>reward all helpful answers,
    sai ramesh</b>

  • Smartforn Std text Paragraph format not getting picked up

    Hi,
       I have to include Standard texts from SO10 in my smart forms. I am using Incude Text option. The issue is that my std texts are dynamic ( I pass std text name in the form ) and hence it has many paragraph formats. When I run my form I get the result in default para format. If i create a para format in my style then it takes that in output but the issue is that the std texts are dynamica and can have many para formats. I cannot define all the para formats in my smartstyle and If i dont define in my style is does not pick the para format from std text. It works in script but not in smartforms. Pls help
    Thanks
    Abhinav

    <af:commandButton text="#{ad4jResBundle.JVM_TARGET_DELETE_MESSAGE12}" id="dummyB1"
                                        action="#{viewScope.TargetHandlerBean.destinationPage}" visible="false" clientComponent="true"></af:commandButton>
                  <af:resource type="javascript">
                    function customHandler(event) {
                        var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("emT:dummyB1");
                        alert(exportCmd);
                        var actionEvent = new AdfActionEvent(exportCmd);
                        actionEvent.forceFullSubmit();
                        actionEvent.noResponseExpected();
                        actionEvent.queue();
    When customHandler is called , it shows alert as "AdfRichCommandButton [oracle.adf.RichCommandButton] id=emT:dummyB1" so i guess it got the handle of button. but call to action - "#{viewScope.TargetHandlerBean.destinationPage}" never happens.
    Any idea what i am doing wrong?

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

  • Unknown Paragraph format in Upgrade Project

    Hi All,
    I am getting 2 different warning messages in SAPScript.
    1. <b>Unknown Paragraph format <PF_Name></b> even though the paragraph format is defined properly in the Script.
    2. <b>Include expansion not possible, as at least one parameter is a symbol</b>, even though the Standard test exists.
    Can anyone please help?
    Full reward points will be awarded for helpful answers.
    Thanks,
    Naba

    Hi Sairam,
    I have deleted and re-created the Paragraph format with the same name and credentials, but the problem is still occuring.
    Could you please suggest some other alternative?
    And also regarding the "Include....." warning?
    Thanks,
    Naba

  • Paragraph format Transport and alignment

    Hi All,
    I have been working lately, on SAP Scripts and came across a strange situation when transporting the script layout to the Quality system. The Paragraph formats are not transported to the QA System.
    And also i need help in Alignment of the Net Price Values i.e., Decimal Values in the Right justified manner.
    Any help regarding the above mentioned queries is highly appreciated.
    Thanks,
    Kash

    Hi Kash,
    As the style that you have created for the SAP Script might not be transported properly or the request might have not transported to the QAS, check your request and try once again, and concept you have to understand here is style that you have created acts as a separate format which works after the assigning the style name to your script, you might have assigned but not transported to QAS.
    And coming to your decimals use Shift keyword and sort your issue.
    Cheers!!
    VEnk@

  • Paragraph format

    hi all,
    i am working on a sap script.i am facing a strange pblm whenever i  make changes to the text in the page windows by doing different paragraph formats <HT> TEXT </>.AFTER ACTIVATING.if i go back to the text editor i am loosing the changes and i am agian have to write the tags.please let me know how can over come this.

    You are sure it really is activated after you activate it (look at the bottom bar at activation)
    Maybe it is locked in another session or transport another client.

Maybe you are looking for