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

Similar Messages

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

  • 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

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

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

  • Multiple character formats in a paragraph format

    Hi. I've searched the general discussion and did not find this issue.
    I have one paragraph format called Bomb that consists of a Wingding character (M) in the Numbering tab that prints a little black bomb in a side head. I combine with format with two other paragraph formats called Caution and Warning. These formats are in column and use a red, bold autonumber (CAUTION, WARNING) followed by a couple of spaces--the text goes immediately after the spaces.
    My bosses now want the bomb symbol and the CAUTION/WARNING word in the side head, with the text in column. I can't see how to combine that Wingding character with the regular Verdana word. I had to do something similar with my Note format, except that I put the word "note" by itself as a side head and created a format to follow it called NoteAft for the text.This way, I have a line with the Note format, followed by a paragraph return, then the NoteAft format for the text.
    I'd rather not have to use three formats to replace the existing two for Caution/Warning, so I hope y'all can help me figure out how to handle this thing.
    I appreciate your suggestions! BTW, I'm using FM 7.2 but will want to switch over to 9.0 when my bosses agree.
    Dimi Everette

    OK, I managed to answer my own question!
    Bomb para format: tab at 0.2 cm (not sure that's required...), Next Para tag is CAUTION; default font is Verdana; Run-In Head with no default punctuation; Numbering tab has Autonumber format checked, M in text field with Wingdings char format; defaults for Advanced and Table Cell tabs.
    I press Return and CAUTION appears.
    CAUTION para format: no tabs, Next Para is NoteAft; default font is Verdana; Side Head--Alignment: First Baseline; Numbering tab has Autonumber format checked, CAUTION in text field with RedBold char format; defaults for Advanced and Table Cell tabs.
    I press Return and type the text of the CAUTION in the NoteAft style.
    I'm going to change that Para tag to BombCaution and create another para tag with for BombWarning and be set! Of course this won't work unless your master page uses a column with room for side heads.
    If you know of something more elegant, please pass it along.
    Dimi

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

  • SMART Forms , paragraph format.

    Dear Expert,
    First of all, please refer to this. [here|http://wkokwei.googlepages.com/paragraph.jpg]
    I am trying to eliminate blank lines of the Text in the smart forms.
    example:
    &text1&
    &text2&
    &text3&
    &text4&
    Those text are variable, if it have no value, i dont want to print the empty line.
    "IF - ELSE " statements doesnt work.
    say if text1 is "AAA", text2 is " ", text3 is "CCC", text4 is "DDD".
    It will print as:
    AAA
    CCC
    DDD
    instead of:
    AAA
    CCC
    DDD
    and i found there is a setting in the paragraph format (refer to the link above),
    "No blank lines" option.
    Where to change this? I have tried to look into SMARTSTYES, didnt find it.
    gosh.... smartform is ******* smart..... this is making me crazy .....

    Hi,
    If you don't have too many texts, you can create one text element for each and print it only if your variable if filled, that is &text1& is not initial in the condition tab.
    This way you'll get no blank lines and don't have to bother with styles.
    Regards,
    S

  • Default paragraph format in SMART FORMS

    Hi all!
    Can we mention  default paragraph format for SMART FORMS? How can we do that?
    Please suggest.

    Goto FORM attributes of your smartform and insert your smart style in output options tab.. before inserting your smartstyle you should create a smart style and create a paragraph format in your smartstyle in header data of smartstyle it ask for standard paragraph(i.e default paragraph)...
    Close rge thread once your question is answered.
    Regards,
    SaiRam

  • 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

  • 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

  • Simple question in Paragraph format / Chracter format of FORMS?

    Hello
    I am enhancing a existing custom SAP Script by appending an additional line to a my_static_text (its not a standard text, it kept inside the SAP Script as a static text).
    The current text looks like below, 
    existing    text   1
    existing    text   1
    After adding my addiitonal line, the text looks like below,
    existing    text   1
    existing    text   1
    my           additonal    line
    My requirement is, REDUCE the SPACE between the WORDS of a line, it should look like below
    existing text 1
    existing text 1
    my additonal line
    I checked paragraph format's FONT, but, not getting any clue that What & Wher i should make change to either paragraph format or character format? is it OUTLINE or is it LINE SPACING?
    Thank you

    Hi
    The spaces can be set by pressing the keyboard for the space of course, but if you need the texts of the lines are stacked it's better to use the TAB.
    The TAB are insert by a double commas ,,
    So
    existing    text   1
    existing    text   1
    If the tabs are used here, you can see them in the sapscript:
    existing,,text,,1
    existing,,text,,1
    So how the text is written?
    Max
    Edited by: max bianchi on Oct 5, 2011 5:08 PM

  • 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

Maybe you are looking for