cancel
Showing results for 
Search instead for 
Did you mean: 

creating tables in sapscript

Former Member
0 Kudos

Hi folks,

I have an issue related to creation of table in the MAIN window of the sapscript form. I need four columns for the table with the column headers attched to it.

Here is the code that I wrote in the text editor but it gave a different result. Could anyone help me in correcting the code?

/E - HEADER - column header of the table

/: BOX WIDTH 6 MM HEIGHT 10 MM FRAME 10 TW

/: POSITION XORIGIN '+6' MM

/: BOX WIDTH 20 MM HEIGHT 10 MM FRAME 10 TW

/:POSITION XORIGIN '+20' MM

/: BOX WIDTH 40 MM HEIGHT 10 MM FRAME 10 TW

/:POSITION XORIGIN '+40' MM

/: BOX WIDTH 35 MM HEIGHT 10 MM FRAME 10 TW

/:POSITION XORIGIN '+35' MM

/E - EMPLOYEE - body of the table

/: BOX WIDTH 6 MM HEIGHT 10 MM FRAME 10 TW

/: POSITION XORIGIN '+6' MM

/: BOX WIDTH 20 MM HEIGHT 10 MM FRAME 10 TW

/:POSITION XORIGIN '+20' MM

/: BOX WIDTH 40 MM HEIGHT 10 MM FRAME 10 TW

/:POSITION XORIGIN '+40' MM

/: BOX WIDTH 35 MM HEIGHT 10 MM FRAME 10 TW

/:POSITION XORIGIN '+35' MM

it created all the columns in one line. How can i correct this? Also in the columns headings I need to enter standard text (column names) how can i do that?

Any help is really appreciated,

thanks,

Sk

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

You have to declare Y original also as you have declared x origin.


/:BOX XPOS 2 MM YPOS 11 MM WIDTH 185 MM HEIGHT 7 MM INTENSITY 0 FRAME 20 TW

Regards

Aneesh.

Former Member
0 Kudos

Thanks for the quick reply. Even then it is not working. it is not differenciating the two text elements, HEADING and EMPLOYEE it is appearing as text in the print preview.

SK

Former Member
0 Kudos

Hi,

Did you create the elements Header and Employee in the print program??

Thanks

Aneesh.

Former Member
0 Kudos

I think the problem lies there. How can I create multiple text elements in the MAIN window?

I highlighted the main window and choose Edit -> text elements it created one and in the text editor I wrote the code that i pasted here.

Am I doing something wrong here?

Thanks for the quick reply,

SK

Former Member
0 Kudos

Hi,

We need to call all the text elements in the print program itself. See any standard print program for example.

Thanks

Aneesh.

Former Member
0 Kudos

Hi folks,

can anyone guide me how to create multipe text elements in the same window? I have two text elements 'header' and 'employee' that I need to create in the main window, how can I do that?

I tried to find out but invain. Thanks for the help in advance.

SK