Skip to Content
avatar image
Former Member

sap scripts problem(urgent help required)

hi abapers,

i have a problem in excise register report. this report have a standard sap scripts form.

the problem is that when i am printing the data (output on script form) the output is not properly alligned. if all the fields have data in the tables then output is fine. if any field is empty in the ddic table then the allignment is distrubed.

thnks in advance to co-operate with me for this problem

pardeep kumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jan 02, 2008 at 01:06 PM

    then u need to use tab positions

    in paragraph formats - down u r having Tabs button

    there u can assign tab settings

    this paragraph u can use in ur window

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 03, 2008 at 03:49 PM

    Hi,

    Give the default length with ur field.

    for example..

    Matnr field length is 18.

    In script u have to give like &ITAB-MATNR(18)&.

    reward if useful...

    Regards,

    Billa

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 03, 2008 at 04:02 PM

    Hey pardeep,

    You need to use th tab concept of Sap Scripts to fulfill this:

    Create a Paragraph format for ex, S1 with Tab positions pre-defined in the attributes section. Let's say, you create Tab position 1 as 2.0 CH, Tab 2 as 20.0 CH, Tab 3 as 40.00 and so on...and give the alignment as LEFT...Check any of the standard scripts to get more idea for eg, Form name: MEDRUCK and language: EN...Check how S1, S2 and S3 Paragraph formats are defined and used in the Main Window..

    Hope this helps...

    Vivek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2008 at 04:57 AM

    Hi,

    you can use tabs for perticular positions for fields.

    or

    use length of field in window.

    it display empty space.

    Add comment
    10|10000 characters needed characters exceeded