Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPSCRIPT tabs alignment issue

Former Member
0 Likes
3,344

Hi everyone!

I have 2 paragraphs: DF and IT. They have no margin left or right. DF is for table header row, IT is for each row displayed into the table in output.

DF and IT have the same number of tabs (5) and the same LEFT ALIGNMENT for each TAB.

The DF paragraph is being displayed very well, but the IT not at all. ITEM , MATERIAL and DESCRIPTION values are being displayed well, but NET VALUE(NETWR) is being displayed at position 16-17 CM and so do the CURRENCY(WAERK).

Here are the TABS for DF and even IT (which have the same TABS alignment):

TAB1: 0,50 CM LEFT

TAB2: 3,50 CM LEFT

TAB3: 6,50 CM LEFT

TAB4: 12,50 CM LEFT

TAB5: 15,50 CM LEFT

Here is the MAIN TEXT:

/E  ITEM_HEADER
DF <B>,,ITEM,,MATERIAL,,DESCRIPTION,,NET VALUE,,CURRENCY

/E  ITEM LINE

/:   BOX XPOS '0' MM YPOS '1.2' LN WIDTH '30' MM HEIGHT '8.2' LN FRAME 9 TW

/:   BOX XPOS '30' MM YPOS '1.2' LN WIDTH '32' MM HEIGHT '8.2' LN FRAME 9 TW

/:   BOX XPOS '62' MM YPOS '1.2' LN WIDTH '60' MM HEIGHT '8.2' LN FRAME 9 TW

/:   BOX XPOS '122' MM YPOS '1.2' LN WIDTH '30' MM HEIGHT '8.2' LN FRAME 9 TW

/:   BOX XPOS '152' MM YPOS '1.2' LN WIDTH '30' MM HEIGHT '8.2' LN FRAME 9 TW
IT  ,,&WA_FINAL-POSNR&,,&WA_FINAL-VBELN&,,&WA_FINAL-ARKTX&,,

=   &WA_FINAL-NETWR&,,&WA_FINAL-WAERK&

I can't understand why "net value" and "currency" values are not being displayed under their effective header title but are being displayed grossly at position 17-18 CM????

(picture of the issue in attachment)

THANK YOU!

Best regards,

Denis M

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,383

you can use offsetting like....&WA_FINAL-POSNR(3c)&  here we specify size

9 REPLIES 9
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,383

Hi Denis

As a thumb rule the amounts have to be always right aligned. So First change your item paragraph. Since you have them right aligned now you shoudl also adjust the tabs

Nabheet

Read only

0 Likes
2,383

Hi Nabheet,

I'm sorry but I don't understand, my paragraph's TABS are aligned to LEFT. I wrote it there:

TAB1: 0,50 CM LEFT

TAB2: 3,50 CM LEFT

TAB3: 6,50 CM LEFT

TAB4: 12,50 CM LEFT

TAB5: 15,50 CM LEFT

Read only

0 Likes
2,383

Denis

For the tabs related amount column they should be right aligned not LEFT...plus try adjusting the the tab spacing for columns

Nabheet

Read only

0 Likes
2,383

Hi Nabheet,

I have tried to make this:

TAB1: 0,50 CM LEFT

TAB2: 3,50 CM LEFT

TAB3: 6,50 CM LEFT

TAB4: 12,50 CM RIGHT

TAB5: 15,50 CM LEFT

Everything seems looking well apart of the NET VALUE (because the values are being displayed between NET VALUE and CURRENCY). CURRENCY IS OK now. But still have some troubles in Net Value values.

I'm having something like this. I have tried to change TAB4: 12,50 CM RIGHT to 6,50CM but it displaying me values "0,00" more closed to "DEM". So I give it 14,50CM but it is still in the same position of that above (12,50).

[PLEASE SEE ATTACHMENT HERE]

Thank you again,

Denis M
          

Read only

0 Likes
2,383

Denis

Your Currency is aligned..So now you have to play with your 3rd and 4th tab to adjust the amount also. Try decreasing it

Nabheet

Read only

0 Likes
2,383

Nabheet

Thank you again, I tried to change a bit the Net Value BOX width in order to have more space in the LEFT side, now its everything OK.

But, I don't understand why if I increase RIGHT alignment of the 4th TABS its not moving to the left........ Why?

Again, Thank you,

Best,

Denis M

Read only

0 Likes
2,383

Hi Denis as already mentioned its the lenght of the variable which matter.

Read only

Former Member
0 Likes
2,384

you can use offsetting like....&WA_FINAL-POSNR(3c)&  here we specify size

Read only

0 Likes
2,383

Hi Krupa,

thank you! Thats did it, now I understood the reason was the default size by the DDIC data type which was 15characters length and I used the amount of size I need it about 8 CH. WA_FINAL-NETWR(8).

Thank you,

Denis M.