on 05-22-2007 9:47 AM
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!!.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.