cancel
Showing results for 
Search instead for 
Did you mean: 

display Line items in a table format

Former Member
0 Kudos

Hi Friends,

Reqirement is, in a table I've 9 columns of PR Item Details to be displayed.

Each column is saparated by a vertical line and each row is saparated by horizontal line.

but for a given Purchase Requisition there may be one line Item or more (Not constant).

/: BOX XPOS '0' CM YPOS '8' LN WIDTH '78' CH HEIGHT 0 CM FRAME 10 TW

I've used the above command to display Horizontal line

How can i dymanically change the YPOS. (After 1st row YPOS '8' LN, 2nd row YPOS '12' LN ....)

Please help me out,

Thanks in advance,

Saya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try checking that but do remember the following things:

Draw a horizontal line by setting the HEIGHT in a BOX command to 0.

Draw a vertical line by setting WIDTH to 0.

/: BOX FRAME 10 TW WIDTH 0 TW HEIGHT '10' CM

Vertical line 10 CM long

/: BOX FRAME 10 TW WIDTH '10' CM HEIGHT 0 TW

Horizontal line 10 CM long

Br,

Laxmi

Former Member
0 Kudos

Hi,

ypos would be the height meaning

for example you have 3 columns and 3 rows

0(0,0) 1 (0,1) 2(0,2) 3(0,3)

7(1,0) 8(1,1) 9(1,2) 10(1,3)

11(2,0) 12(2,1) 13(2,2) 14(2,3)

15(3,0) 16(3,1) 17(3,2) 18(3,3) .

for X = X + width

Y = Y + height.

Take for example the distance(or height) between each row is 5 cms, and column distance(width) is 4 cms.

then to print

value -


> Position (x,y)

7 (1,0) -


> (0,5)

8(1,1) -


> (4,5)

9(1,2) -


> (8,5)

10(1,3) -


> (12,5)

11(2,0) -


> (0,10)

12(2,1) -


> (4,10)

13(2,2) -


> (8,10)

14(2,3)-----> (12,10)

:

:

So like that calculate the values of x and y and place in the positions of x and y in the boxes statement.

Br,

Laxmi.

Former Member
0 Kudos

Hi Laxmi,

Right now I'm not having the system. Can I proceed with below code.

/: DECLARE &height& = 4

/: DECLARE &Y& = 8

/E ELEMENT

HM &wa_item-poitem&,,&wa_item-desc&,,&wa_item-date&

/: BOX XPOS '0' CM YPOS Y LN WIDTH '78' CH HEIGHT 0 CM FRAME 10 TW

/: Y = Y + height.

Thanks,

Saya