cancel
Showing results for 
Search instead for 
Did you mean: 

problem with lining up items properly in sap script.

Former Member
0 Kudos

Dear All,

I am having problem with lining up items properly in sap script.

I have print ..

and all items in aprtical line should be perfectly align, i.e

Data Invoice Reference Inv-Amt Dic Total

But unfortunately, the out put is not aliging correctly, it is depending upon the length Reference value, and other values length.

it is outputing according to length.

20 2000

1 100

z4 &UP-BLDAT&,,&UP-BELNR&,,&UP-XBLNR(16)&,,,,&UD-WRBTR(16)&,,,,&UD-WABZG(15)&,,,,&UD-WNETT&

Where z4 is my paragrah format.

I defined Tab

1 Tab 1,00 CH Right

2 Tab 2,00 CH Right

3 Tab 2,00 CH Right

Please advice me where I am doing mistake. Pls suggest me.

Thanking you.

Regards

Venkat

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Venkat,

Define Tabs as follows.

Number Tabposition Alignment

1 Tab 1,00 CH LEFT/CENTER

2 Tab 2,00 CH LEFT/CENTER

3 Tab 2,00 CH LEFT/CENTER

The alignment will specify from where to start of printing of fields. In addition to this, check the lengths of fields to be displayed according to tab positions and align them accordingly. If we specify lenghts for a field in brackets, it will be displayed in that length only and rest is truncated according to data types of fields.

Thanks,

Vinay

Former Member
0 Kudos

For Numeric value keep the tab right

for character value keep the tab left

Regards

Aman

Former Member
0 Kudos

Hi Venkat,

Change the Tab properties like below...

defined Tab

1 Tab 1,00 CH <b>CENTER</b>

2 Tab 2,00 CH <b>CENTER</b>

3 Tab 2,00 CH <b>CENTER</b>

Former Member
0 Kudos

Hi Phani,

Thats not working, As I am working with amounts and decimal points. I need them to be right justified so that all decimal zeros line up.

i.e

200.00

30000.00

I can do that only my right justified font.

Please advice me further.

Is there a way to force the field to start from exactly location. Thanking you

Regards

Venkat

Former Member
0 Kudos

Yes you right , For the numeric value assign the tab position for mumeric value as Right.

Some time if the tab position is small for field to fit it do not display propoerly on screen. So please check you tab position are wide enough to handle fields.

Regards

Aman

Former Member
0 Kudos

Dear All,

Can I Force a field to start from a particular location.

&maktx&,,&matnr&.

I would like to start Matnr from a certain point, irrespective of description length.

Regards

Venkat

former_member181966
Active Contributor
0 Kudos

I guess , you can do it by defining TAB , , , and start it form certain position .. This is the only way i know in SAP script .

Thanks

Saquib

Former Member
0 Kudos

I am trying doing that.

I gave &xyz&,,&ABC&

but as the lenght of XYZ changes, position of ABC Defering.

Please advice me .

Regards

Venkat

former_member181966
Active Contributor
0 Kudos

do like

<b>,,&</b>xyz&,,&ABC& , Decalre another tab to hold the bold position .

former_member181966
Active Contributor
0 Kudos

Does it helps you ? pl..award the points and close the thread !!

Thanks

SK