Showing results for 
Search instead for 
Did you mean: 

Scripts Problem

Former Member
0 Kudos

Hi ,

I am working with Scripts.I need to display data in table format .And the table consist of 7 colomns. Of these 7 , six are numeric and one is the Name Colomn.

The Name Colomn is at 4th position . Now my problem is , If name has less charaters ,like 4 or 5 chars, then the adjacent colomn is coming into this field. How can i see that these fields exactly fit into their respective colomns .

I used tab spaces to get a table display.

Thanks in advance



Accepted Solutions (0)

Answers (4)

Answers (4)

Active Participant
0 Kudos

hi man

display the data into tbl format use is easy to do in smartform.

scripts :

otherwise u give the exact tab space ,alignment and left ,right position.

better way is use box command for creating table in script.

box xpos 2ch ypos 2ch height 4cm width 3cm frame 10 tw intensity 4%.

that is box command

u can change those values according to your requirement.

if helpful reward points



Former Member
0 Kudos

Hi Pavan,

Must be u haven't used the tabspaces properly with proper alignment(i.e right aligned or left aligned).Then write,, in between the fields in ur SAPScript code for tab positions.Activate it n check.Now it must run properly.

<b>plz reward points if helpful or if it solves ur query.</b>



Former Member
0 Kudos


Declare the field with the appropriate length.

Then it will fit properly.

Thanks & regards,


Former Member
0 Kudos

hi while displaying the fields you can use the length to fit exactly

like... &name(10)&. it will take 10 characters even if it has only 'Ram'.

also it truncates characters if data is more than 10...

try out...