Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Alignment in sapscript

Former Member
0 Kudos

Hello Gurus,

What is the trick to get the columns align?, I want to fix the size of the column, if the description of the material has a long name (40 characteres) the data goes right, if the name of the material is short goes left.

So How difficult would be to get the columns length fixed?

I am working with tab paragraph, I have test with unit CM, CH, but I dont understand why the data goes right , left according with the data.

Someone knows how to solve the problem?

Thanks so much

Moderator message - Please use proper subject line in the future.

Message was edited by: Suhas Saha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi Enrique,

Alignment is a big issue to handle in scripts. Please use the TABs provided in the paragraph format. Each tab means the starting point of next variable.

For eg:

Var1,,Var2,,Var3

In above eg. Var2 and Var3 will have fixed starting point as mentioned while creating the TABs. This means that even if Var2 is blank, it will not shift left.

Forgot to add that column lengths should be fixed and hence you would need to truncate the length of your field. As in your example, if desciption should be truncated to 15 fields if your next column starts at 17 place.

This is a pure trial and error method as per requirement.

Please revert in case of doubt.

Regards,

DN.

Message was edited by: Deepak Nagar

3 REPLIES 3

Former Member
0 Kudos

hi Enrique,

Alignment is a big issue to handle in scripts. Please use the TABs provided in the paragraph format. Each tab means the starting point of next variable.

For eg:

Var1,,Var2,,Var3

In above eg. Var2 and Var3 will have fixed starting point as mentioned while creating the TABs. This means that even if Var2 is blank, it will not shift left.

Forgot to add that column lengths should be fixed and hence you would need to truncate the length of your field. As in your example, if desciption should be truncated to 15 fields if your next column starts at 17 place.

This is a pure trial and error method as per requirement.

Please revert in case of doubt.

Regards,

DN.

Message was edited by: Deepak Nagar

0 Kudos

Thank you Deepak, I will keep on trying the right measure tab.

0 Kudos

No Probs.