Skip to Content
avatar image
Former Member

script tabs.boxes designing

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!!.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 23, 2007 at 05:59 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2007 at 09:10 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • May 22, 2007 at 09:23 AM

    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

    Add comment
    10|10000 characters needed characters exceeded