cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase the size of the box dynamically in the layout..?

former_member687052
Participant
0 Kudos

Hi All,

In my layout, I am printing the line items in the box. I have declared the box in the layout. Based on the number of line items, the box size should be increased dynamically. How to increase the size of the box dynamically in the layout..? Do we need to make use of the SAP script counter here..? Please share some sample info(Code) which will be useful.

Can someone share your ideas on how to do this..?

Thanks in advance.

Thanks & Regards,

Paddu.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Paddu,

Box command for window prints the static number of line items.

Use Protect and Endprotect to print specific numbers of line items per page.

Regards,

Sravanthi

Former Member
0 Kudos

hi!

create a variable window and write this code there

/: POSITION XORIGIN '2' CM YORIGIN '10' CM

/: SIZE WIDTH '18.05' CM HEIGHT '18' CM

/: BOX FRAME 10 TW

/: POSITION XORIGIN '2.05' CM YORIGIN '10.05' CM

/: BOX WIDTH '18' CM HEIGHT '1' CM INTENSITY 15

/: POSITION XORIGIN '3.5' CM YORIGIN '10' CM

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

/: POSITION XORIGIN '9.2' CM YORIGIN '10' CM

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

/: POSITION XORIGIN '11.5' CM YORIGIN '10' CM

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

then create a main window with same height and width as that of the varaible window (overlapping the variable window on to it).

now on looping in the main table and displaying the data boxes will come it self....

here the main window dimensions are

MAIN 00 Main Window 2,00 CM 10,00 CM 18,00 CM 18,00 CM

[then with the help of data element call the box

/: BOX WIDTH '18' CM HEIGHT '1' CM FRAME 10 TW

in loop where write_form is called....]

u will get the box with the data printed in the form......

keeping same for the variable window....

and try it....

this will be done....

Former Member
0 Kudos

try this

ULINE(LENGTH)

'|' " LINE ITEMS '|'

ULINE(LENTH)

eg.

  • ULINE(70)

  • '|' &wa_acc-vbeln& &wa_acc-erdat& & wa_acc-ernam& '|'

  • ULINE(70)

Former Member
0 Kudos

Hi,

Declare the mainwindow and give the data,declare a variable window of same size as mainwindow and draw a box in variable window.

when ever the data in main window increases then automatically the box also increases.

Regards,

jaya