cancel
Showing results for 
Search instead for 
Did you mean: 

script tabs.boxes designing

Former Member
0 Kudos

i have 5 fields to be printed on the script viz:matnr,maktx,kwmeng,meins,netpr.

1] how the tabs work?

when i give tabs..as the material descp length bcomes long..all other fields get disturbed..get shifted.whereas when tabs are given it shud the data shud allign at that position!why so?

2] can boxes be variables acc to the data..can they adjust acc to data?how?

tried with uline command but doesnt work.

please i need explanation to this..ve been tryin for tabs since y'day!!.

Accepted Solutions (1)

Accepted Solutions (1)

dev_parbutteea
Active Contributor
0 Kudos

Hi,

instead of using tabs , try restricting ur fields to a specific lenght.

for e.g

&matnr(18)& &maktx(40)& &kwmeng(10)& &meins(10)& &netpr(10)&

 

thus ur fields will use only the specified amount of space.

if maktx contains less than 40 chars , the rest will be spaces

Regards,

Sooness.

Answers (2)

Answers (2)

former_member223446
Active Participant
0 Kudos

hi

we can design table format for those fields what ever u want to display.

use below commands for ur design. and change some modifications to the exsisting parameters acc to ur requriment.

/: BOX WIDTH 29 CM HEIGHT 10 CM FRAME 10 TW

P1 STP CUSTOMER NAME INVOICE AMOUNT

/: BOX YPOS ‘1.30’ CM WIDTH 29 CM HEIGHT ‘8.76’ CM FRAME 10 TW

/: BOX XPOS 5 CH WIDTH 0 CM HEIGHT ‘1.30’ CM FRAME 10 TW

/: BOX XPOS 15 CH WIDTH 0 CM HEIGHT ‘1.30’ CM FRAME 10 TW

/: BOX XPOS 25 CH WIDTH 0 CM HEIGHT ‘1.30’ CM FRAME 10 TW

if helpful

reward points

kiran

Former Member
0 Kudos

Hi Rashmi.

1) Tabs are working as alignment. But if the space between tabs is not enough for your data the following data is shifted by a certain amount until the next tab is available again. So define your tabs for the maximum output or restrict the output of your variable.

For example:

TAB1: LEFT 10 CHAR

TAB2: LEFT 30 CHAR

So the variable written at TAB1 should not exceed 19 characters otherwise your order will be disturbed again. If you want to restrict the variable define it like &Variable(19)& in the SAPscript form.

2) Boxes are not easy to handle in SAPscript. I avoided them where ever I could, because you have to define them in an absolute position or in a relative position to the last box and not to the lines or characters that were written in the meantime.

Regards,

Timo.

Former Member
0 Kudos

i used characters n it worked but for a material description that specific record is shifting down if the description is long..wot shud be donr or that?i took the max charc i.e 40 but still the remaining fields are shifting down..wot shud br done for that