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

Similar Messages

  • Sapscript - Paragraph Format - Tab space Issue

    Hello Experts,
    I'm facing issue with the Tab Space Alignment in the Paragraph Format.
    I'm giving these values for a Paragraph Format Tabs:
    Tab  Position:
    1: 0,10 CH
    2 :3,50CH
    3: 6,50CH
    12: 76,00CH
    Inspite of reducing the TAB position for 5th Tab; it is still aligning a bit far.
    And whenever the Description (Field 3) is longer; all the Values are pushing towards right.
    Alignment is not getting adjusted. How can I make this as Fixed?
    Here's the screenshot:
    Please advise.
    Thanks & Regards,
    Sowmya

    Hi,
    For Standard Text, Paragraph format will be applicable from Standard Styles which will be creating in Transaction code SE72 and apply that Paragraph Format to Text in Standard Text transaction code SO10 then the Paragraph format will be applicable. And transport the Created Style in SE72 to Quality and Production Systems.
    Apply the Created Paragraph format created in SE72 to text by below steps:
    So10>Provide text>Click on CHANGE>Click on MENU FORMAT>Change Style->Double click on STYLE created in SE72-->Apply the newly created Paragraph Format to text in So10
    Edited by: Venkatmani29 on May 2, 2011 12:43 PM

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

  • For SAPscript INCLUDE TEXT, how to align as Paragraph format

    Hi experts and ABAP colleagues!
    Need your help on this sapscript problem:
    How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
    For example, I defined BG to have tabstop at the 2nd column (or equivalent to 1st tab position) where I need to print the text, and then declared it in SE71 like below:
    However the text prints at the leftmost instead of at the 2nd col position - (8th char tab defined in par. format BG).  Hence it is not aligned to its proper heading.  Line Number instead of Description - which is not okay for client view that needs these Thai texts. 
    The technical details I included below.  Kindly examine:
    1.)  Window >Main > Text Element > Include Text command
    /E   ITEM_TEXT
    BG   ,,&TTXIT-TDTEXT&
    /:   INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
    /:   NEW-PARAGRAPH BG
    Note:  I used command "NEW-PARAGRAPH" and had exactly the above code in se71.  Anything missed here?  Pls. help.  Thanks.
    #2.) Paragraph Format > Tab
    No. -
      Tab Position -
    Alignment
    1            8,00 CH            LEFT
    2            28,00 CH          CENTER
    etc.
    Note:   and then i put in  ",,&TTXIT-TDTEXT&" (see above) with the 2 comma's beforehand to say that its on the 1st tab or at the 8th character where it should be printed, but does not give intended result... pls help.
    #3.) Paragraph Formats > Standard Attributes
    Left Margin - 0 cm
    Alignment - Left
    no blank lines checkbox - ticked
    Note:  Is there any more attribute i can manipulate from here to force display at the right position?
    Thank you so much in advance for all your help.  Our project team will really appreciate it.  May the Lord bless you as we go through our SAP work!
    Sincerely,
    Celeste

    Here's a thought, instead of using tabs, try writing a method that takes a string that is the starting string, a pad character, and a length and returns a string padded to that length with the specified character.
    public String padR(String src, String padChar, int len)
        // ... You get to fill in the rest suggestion try to do it without a loop
    }Have fun,
    PS.

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

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

    Hi All,
    I am facing one small problem regarding allignment of paragraph.
    I have some hardcoded text in my form which i have to allign as follows.
    where  text purchase has to be come just below text This and not below (a)
    output 1
    (a)   This is the test form for printing the.
             purchase order.
    actually when I do paragraph format as justify i get following output
    output 2
    (a)   This is the test form for printing the
    purchase order.
    but  I want that text as output one
    how can I get that?
    please suggest.
    Thanks
    vinod.
    Edited by: VINODP on Sep 4, 2009 1:06 PM

    but is it a script or smarform:
    if it's a script:
    You define a paragraph format with a single tab
    eg:
    Paragarph format   tab1 
        P1                         5   char
    define the text like below:
    P1 (a),,This is the test form for printing the
    P1 ,,purchase order.
    If its a Smartform:
    create a template with 2 nodes & 2 rows:
    in 1st node of 1st row, create a text element| and place (a).
    in 2nd node of 1st row, create a text element| with 'This is the test form for printing the'.
    in 2nd node of 2nd row, create a text element|  with 'purchase order'.
    Hope it works!!
    Rgds,
    Pavan

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

  • 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

  • TABS in paragraph format

    Hi experts,
    I am working on script.I have to display the output in below format
    LABEL
       FIELD1
       FIELD2
    I have created one window and assigned it to one paragraph format but my out put is not coming in desired format.please clarify how to use TAB in a paragraph,what is the meaning of ,,
    Thanks in advance

    Hi abhishek,
    USE of Tabs:
    The use of Tabs in Paragraph format is to separate the two texts. Suppose see for paragraph format P1, the tab space u have assigned is say suppose 5cms.
    In the script, consider in any of the window you have given like
    P1     Text1,,Text2
    In the Form Output,
    the Space between text1 and text2 will be 5cms like given below:
    Text1                Text2.
    So here ,, will take the value 5cms which comes from the paragraph format p1. Suppose u didnt give any paragraph format and given tab as given below:
        Text1,,Text2
    Here ,, will take the normal tab space value.
    Solution for your Question:
    To print in the below format:
    Label1
    Field1
    Field2
    give the code in the se71 as given below:
      Label1
      &wa_f1&
      &wa_f2&
    Please if you got any more douts, reply back.
    Please Reward Points if useful.
    Thanks,
    karthik

  • Problem in SAP Script - Paragraph AS - Chars getting truncated at end of

    Output for one of script is not getting printed correctly.
    When i see output of Script, text is printing beyond the end of line and last few characters are getting truncated.
    For ex:
    xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.Purc
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    For instance it was suppossed to show Purchase order in second line. But half of letter is truncated.
    I want Purchase order to be printed on 3rd line automatically is enough space is not available on second line.
    Please provide some useful solution for this
    Thanks in advance
    Umesh
    Message was edited by:
            umesh sn

    if you want to print purchase order on next line do it like this...
    Ex,
    &var1& &var2& &var3&
    Purchase Order &P_ORDER&.
    Here, variable 1, 2 & 3 will be displayed in line 1 and purchase order will be displayed in line 2... now if you think data of variable 1 2 and 3 are getting truncated.. use tab spaces between this variables...define tab spaces in your paragraph format.
    Ex:
    &var1&,, &var2&,, &var3&
    Note: if you think variable is too long use offset...
    Ex: &var1(20)&
    Close the thread if your question is answered.
    Regards,
    SaiRam

  • Script(tab positions)

    hi to all,
    help me in this issue
    i have defined a paragraph format and tab postions for 7 colums
    and in main window i have assigned that paragraph format but the paragraph format is not working.
    for amounts can i kept as (R) for right alignment of amounts but it is also not working the amounts r not aligned.
    thanks in advacne
    kiran kumar

    hi,
    did u give like this
    Assume DP is ur paragraph format
    DP  ,,&itab-v1&,,&itab-v2&,, and so on
    define tabs as follows
    1  5.00 cm   left
    2 10.00 cm  left
    don't think that if u give right it is  assigned to right like that
    left means from left it move to the 5 cm position and then display at that position ,right means from right corner it will adjust the alignment
    better to define all tabs either to left or right to avoid confusion,it takes some time time to ajust properly,activate the code before u test
    do assign points if it helps you

  • Tab position in sap script

    Hi all,
    i have following fields to print..
    ZEILE, MATNR ,CHARG, KOSTL, LGORT, MENGE ,MEINS, maktx,
    and format is like:
    item matrial batch costcen. sto.
    mat desc. qty Un
    zeile matnr charg kostl lgort
    maktx                     menge meins
    and in this format I want to display menge and meins fields in right alingment ,
    Plz help me...
    I gave tab like
    1 cm left
    4 cm right
    5 cm left
    in paragraph p1.
    Plz help me....

    Hi,
    You create paragraph format P
    In TABS as you mentioned like below
    No           Position                  Unit                   Alignment
    1             1,00                        CM                    Left-Aligned
    2             2,00                        CM                    Left-Aligned
    3             3,00                        CM                    Left-Aligned
    4             4,00                        CM                    Left-Aligned
    5             5,00                        CM                    Left-Aligned
    6             6,00                        CM                    Right-Aligned
    7             7,00                        CM                    Right-Aligned
    8             8,00                        CM                    Left-Aligned
    In smartform or sapscripts text editor you need to mentioned like below
    ,,matnr,,kunnr,,bukrs,,vbeln,,posnr,,menge,,mein,,quan
    it will showing in output above showing position
    i hope it will help ful you
    regards
    bhupal

Maybe you are looking for