cancel
Showing results for 
Search instead for 
Did you mean: 

templates in sapscript

Former Member
0 Kudos

Hello everybody,

i would like to know how can we draw lines and boxes and templates like in smartform in sapscript.please let me know.

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

In the template create as many cells as you have in the table for your main window.

Assign borders to each cell.

More help on Templates form help.sap.com

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/83fb4edf8f11d3969700a0c930660b/frameset.htm

Regards,

Naimesh Patel

Former Member
0 Kudos

i know how to do in smartforms but i would like to know how it is done in sapscripts

naimesh_patel
Active Contributor
0 Kudos

Oh sorry, I misread.

In SAPSCript you need to use the BOX command.

For Horizontal line:

Set the height to zero.

/: BOX XPOS 0 MM YPOS 3 LN WIDTH 270 MM HEIGHT 0 MM FRAME 5 TW

For Vertical line:

Set the width to Zero.

/: BOX XPOS 0 MM YPOS 3 LN WIDTH 0 MM HEIGHT 43 LN FRAME 5 TW

You can put these all BOX commands in one window and adujst the XPOS and YPOS to have required start position.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hello naimesh,

thanks for ur help but can u explain more like do i need to use box command in driver program or any where in window if so where .can u give me example if u have one.

naimesh_patel
Active Contributor
0 Kudos

No you need to put this Box commands inside the TEXT of the WINDOW in your SAPScript.

Regards,

Naimesh Patel

Former Member
0 Kudos

thanks naimesh

Answers (0)