Application Development and Automation 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: 
Read only

sap scripts table

Former Member
0 Likes
584

Hi , i have one doubt in sap scripts. How to create a table and vertical lines and box into SAP script?

pls also tell me the desired path.

regards

Anuj jain

4 REPLIES 4
Read only

Former Member
0 Likes
564

Use BOX Command for this requirement....

e.g.

/: POSITION XORIGIN '-.2' CM YORIGIN '-.2' CM

/: SIZE WIDTH '.2' CM HEIGHT '.2' CM

/: BOX FRAME 10 TW

draw the box at desired location and in desired format....

then in the main window.... print the table contents in this box...

you need to take care of the spacing and the exact location of the BOX and table contents....

Read only

paruchuri_nagesh
Active Contributor
0 Likes
564

hi

You can use the POSITION and SIZE commands to set default parmeters for a box.

Instead of:

/: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

You can write:

/: POSITION XORIGIN '11.21' YORIGIN '5.31' MM

/: SIZE HEIGHT '2' MM WIDTH '76' MM

/: BOX FRAME 10 TW INTENSITY 10

This can be usefull if you gave several boxes that share the same parameters.

If you want to set the position realtively to the window use POSITION WINDOW

to set the position to the top/left start of the window. Then use POSITION

to set the current position relatively to the start of the Window.

Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.

/: POSITION WINDOW

/: POSITION XORIGIN '5' MM YORIGIN '10' MM

the position is now 5 MM from the left and 10 MM from the top of the window

NOTE: After using the position command you can move the current position

realtively to the last used position

/: POSITION XORIGIN '10' MM YORIGIN '20' MM

Now the position will be X = 15 and Y = 30

Drawing a line. You can draw a line by setting the Height or Weidth to 0

and add a frane. E.g. a horizontal line:

/: SIZE HEIGHT '0' MM WIDTH '200' MM

/: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100

reward if u find useful

regards

Nagesh.Paruchuri

Read only

Former Member
0 Likes
564

use &vline&

To draw a vertical line draw a box with height 0.

BOX POSITION '1' HEIGHT '0'.

Read only

Former Member
0 Likes
564

thanx!