cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript - Positioning inside a table made of boxes

Former Member
0 Kudos

Hi,

I have a SAPscript form that include a table in the main window.

The table is build using commands such as:

BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 17 TW
BOX WIDTH '17.5' CM HEIGHT '1.3' CM FRAME 17 TW
BOX XPOS '0.9' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 17 TW
BOX XPOS '5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 17 TW

At this time, my table has 6 columns. Some are long and some are short.

When using smartforms, the system takes care of data that might overflow and positioning is much easier.

In SAPscript, I don't understand how to position. Please explain this to me.

For example, how do position data not flow into the next column? How do you prevent data from flowing into an incorrect column of the next line?

Please help.

Thanks,

John

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

BUMP - please help.

This has to do with word-wrapping as well.

amit_khare
Active Contributor
0 Kudos

You are right this will be done using word wrapping.

You need to count the number of characters in the string and split them according and based on condition for checking variables with not-null value you can print them.

You may search forum for FMs on splitting and calling subroutines in script.