Skip to Content

Regarding SAP script - Paragraph Formats

Hi Geeks,

In my SAP script there is a paragraph format with tabs

Number Tab Position Alignment

1 11.00 CH LEFT

2 12.00 CH LEFT

3 28.00 CH LEFT

4 29.00 CH LEFT

5 45.00 CH LEFT

6 46.00 CH LEFT

7 50.00 CH LEFT

and my left margin is 0.5CM

so if my element content look like this

/E <Element_name>

T4 &value1& &value2& &value3& &value4& &value5/value6&

What does this mean and how my values will be printed in the layout.

Regards,

A Arul Jothi.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 03, 2006 at 06:28 AM

    Hi arul,

    1.

    T4 &value1& &value2& &value3& &value4& &value5/value6&

    Since there are no commas (,,) for tab,

    the values of these variables

    will be printed in just one continous linear line

    (without any tabs)

    2. If we want to give tabs, then we have to write like this,

    <b>T4 &value1&,, &value2&,, &value3&,, &value4& ,,&value5/value6&</b>

    regards,

    amit m.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member ArulJothi Arumugam

      Hi again,

      1. u mean to say that

      if the variables itself contains ,,

      then what will happen?

      2. in this case, such ,, (in the variable value)

      will not have any effect in alignment.

      (it will get printed like any other value)

      3. the only important thing is

      the ,, which we write in se71 layout,

      (,, between two variables)

      regards,

      amit m.

  • avatar image
    Former Member
    May 03, 2006 at 06:36 AM

    Hi Arul,

    First define the tab positions in the TABS section in paragraph format

    If you have three fields with lenght say 10 each. You can define the tab position like this

    Number Tab Position Alignment

    1 5.00 CH LEFT

    2 15.00 CH LEFT

    3 25.00 CH LEFT

    Now in the scripts, you have to make use of the tabs using the operator ,,

    so in the editor , just type

    P1 ,,&ITAB-VAL1&,,&ITAB-VAL2&,,&ITAB-VAL3&

    Only then can you see the effect of tabs in the output..

    Regards,

    SP.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 03, 2006 at 06:57 AM

    I hope the tab positions u have mentioned is for the Paragraph format T4.

    T4 &value1& &value2& &value3& &value4& &value5/value6& - this will print the values side by side as u have not mentioned the ,, which represents the tab spaces

    T4 &value1&,,&value2&,,&value3&,,&value4&,,&value5/value6& -after leaving a space of 0.5cm, it prints the value1

    value2 gets printed starting from the 11th character of the window

    value3 gets printed starting from the 12th character of the window

    value3 gets printed starting from the 28th character of the window

    value5/value6 gets printed starting from the 29th character of the window

    A small example of using these is..

    data: f1(5), f2(10), f3(20).

    suppose u want to print all these fields with a gap of 5 characters... u can declare the tab spaces like this..

    P1

    1 15 ch left

    2 30 ch left

    Left margin 5 ch

    P1 &f1&,,&f2&,,&f3&

    f1 gets printed after leaving 5 characters

    f2 gets printed after leaving 15 characters

    f3 gets printed after leaving 30 characters

    Add comment
    10|10000 characters needed characters exceeded