cancel
Showing results for 
Search instead for 
Did you mean: 

lines above and below the total values

Former Member
0 Kudos

Hi All,

This is for an invoice. I display line items and then the totals. I want to draw lines above and below the total values. i am able to underline the total values using the paragraph formats but that will give only lines below the values. how can I get the lines above and below the values in correct proportions? Please give me some ideas on how to do this.

Thank you,

Prathima.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

If you know the position where you are plannig to print the total then use box statement.

Ex: BOX XPOS '11.2' CM WIDTH 0 TW HEIGHT '1' CM FRAME 10 TW

If total position varies in your main window, use ULINE with offset

Ex: ULINE(20). " define tab space accordingly.

Regards,

SaiRam

Former Member
0 Kudos

Hi All,

Thank you for all your inputs. I got it correct this time. &SY-ULINE& worked.

Vinay, I had to adjust the field and the line in the program line. It worked.

Thank you all once again,

Prathima.

Former Member
0 Kudos

Hi

let us know whether its script or smartform

with the above discussions i think its script

i think problem is you are using uline don't use uline

change it with box commands which gives the horizontal line with height 0

it works go through with box commands

Former Member
0 Kudos

Hi,

This is a smartform. I have created a table to print my line items and total is one of the lines in the table.

Regards.

Former Member
0 Kudos

Hi Prathima,

In Smartforms when u create a table u need to select the pattern also.If click on patterns u will find many patterns, select the one which will fullfill u r requirement.

Regards

Pavan

Former Member
0 Kudos

Hi Pratima,

Create a paragraph format(PT) and create tabs to position the total value displayed.

Use ULINE to have underline.

Use this tab as below in script editor.

PT ,,,,,,,,&ULINE(10)&

PT ,,,,,,,,&V_TOTAL&

PT ,,,,,,,,&ULINE(10)&

Thanks,

Vinay

Former Member
0 Kudos

Hi Vinay,

I tried it but again its the same problem. The line below is fine, but the line above is not in appropriate position. it is more close to the line item. but not to the total value. i tried to adjust the spacing but no luck.

Regards,

Prathima.

Former Member
0 Kudos

Prathima,

You should not be using ULINE and VLINE commands here. Instead you have to declare boxes.


/:	 	BOX FRAME 10 TW
/:	 	BOX XPOS  '3.0' CM  WIDTH 0 TW FRAME 10 TW
/:	 	BOX XPOS  '6.0' CM  WIDTH 0 TW FRAME 10 TW
/:	 	BOX XPOS  '9.0' CM  WIDTH 0 TW FRAME 10 TW
/:	 	BOX XPOS '12.0' CM  WIDTH 0 TW FRAME 10 TW

Using boxes is advantageous in a lot of ways as you can specify the x and y positions exactly.

Thanks

Aneesh.