cancel
Showing results for 
Search instead for 
Did you mean: 

Table content alignment in SAP Scripts

Former Member
0 Kudos

000010 MAG DX 17P 7,000 PC 1.520,00 10.640,00

000020 mag pa/dx 175 6,000 PX 1.599,00 9.594,00

000030 MVC MULTI SYNC XV15 5,000 PC 2.301,00 10.155,00

000040 MVC MULTI SYNC XV 17 1,000 PC 2.389,00 2.389,00

The above is the output i got...

table i hv used is VBAP

POSEX - 6

ARKTX - 40

KWMENG - 15

MEINS - 3

NETPR - 11

ZWERT - 13

TABS i hv specified in paragraph format is 1,7,47,62,65,76,89....

i hv compressed the kwmeng,netpr,zwert field as it has leading zeros....

How to arrange the table contents in proper order?

how to wrap the ARKTX field contents as it is too long for certain vbeln values...i think its the reason y im nt getin o/p in proper format......

Is there any mapping need to be done for CURRENCY & QUANTITY fields as we do in smartforms....if so pls provide needful help...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Are you passing the values of quantity and amount into character field ?

POSEX - 6
ARKTX - 40
KWMENG - 15
MEINS - 3
NETPR - 11
ZWERT - 13

TABS i hv specified in paragraph format is

1,   left    Aligned  POSEX 
8,   left    Aligned  ARKTX 
49, right  Aligned  KWMENG
66, left    Aligned  MEINS 
70, right  Aligned  NETPR
84, right  Aligned  ZWERT

Try with these tab..

Madhukar Shetty

Former Member
0 Kudos

If i try these tab values am getting it as such.....

000010 MAG DX 17P 7,000 PC 1.520,00

10.640,00

000020 mag pa/dx 175 6,000 PX 1.599,00

9.594,00

000030 MVC MULTI SYNC XV15 5,000 PC 2.301,00

10.155,00

000040 MVC MULTI SYNC XV 17 1,000 PC 2.389,00

2.389,00

i think the problem is with the field "item decription"- ARKTX.......

In smartforms there is a tab to map with currency and quantity fields ,is there anything as such in sap scripts?

Former Member
0 Kudos

HI,

What is the width of the main window in which ur printing the data ? it should be around 95 for the tab which i have given.

Or u can do one thing tat print the 20 char of artx in one line and remaining 20 in another line.

Madhukar Shetty

Former Member
0 Kudos

We tried to print ARKTX value in two line using this " &symbol0(20)&&symbol20(40)&" but it dint work out

Former Member
0 Kudos

Hi,

For printing in two line you have to give two line in the sap script editor like this

IP  ,,&fld1&,,&fld2+0(20)&,,&fld3&,,&fld4&,,&fld5&
IP  ,,,,&fld2+20(20)&,,,,,,

IP is the paragraph format

Madhukar Shetty

Former Member
0 Kudos

HI ,

Thanks .... My issue is resolved

Answers (0)