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

Former Member
0 Likes
917

Hi ,

i have one doubt in sap scripts.

How to drag a table into SAP script?

Regards, Hakeem

7 REPLIES 7
Read only

Former Member
0 Likes
889

Hi,

You cannot drag a table into SAP script. You have to create the tables using the BOX command.

There is no DRAG and DROP functionality in SAP scripts. Its only available with smartforms.

Cheers

VJ

Read only

Former Member
0 Likes
889

Hi

You can't drag a Table inScripts like what we do in Smartforms.

You have creeate/desing windows such that it resembles TABLE LIKE.

Regards,

Anji

Read only

Former Member
0 Likes
889

Hi

you can not drag and drop in script. u need to write code in script layout text editor.

Like : &vbak-vbeln&

Thanks

Sasmita

Read only

Former Member
0 Likes
889

hi,

use the TAB setting, so that the displayed data appear in a tabular format,

you can set the TAB, in PARAGRAPH settings or CHARACTER settings,

try this,

kc

Read only

Former Member
0 Likes
889

Hi,

u have to write ur own commands in script to draw lines or boxes:

Boxes, Lines, Shading: BOX, POSITION, SIZE

The BOX, POSITION and SIZE commands for drawing boxes, lines and shadowing can be used for specifying that within a layout set particular windows or passages of text within a window are to be output in a frame or with shadowing.

The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when outputting. Line printers and page-oriented printers not supported in the standard ignore these commands. The resulting printer output may be viewed in the SAPscript print previewer.

Syntax:

1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

2. /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]

3. /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]

BOX Command

Syntax

/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

Effect: draws a box of the specified size at the specified position.

Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.

1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.

Default: Values specified in the POSITION command.

The following calculation is performed internally to determine the absolute output position of a box on the page:

X(abs) = XORIGIN + XPOS

Y(abs) = YORIGIN + YPOS

2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.

3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.

4. FRAME: Thickness of frame.

Default: 0 (no frame).

5. INTENSITY: Grayscale of box contents as % .

Default: 100 (full black)

Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.

Units of measurement: The following units of measurement may be used:

• TW (twip)

• PT (point)

• IN (inch)

• MM (millimeter)

• CM (centimeter)

• LN (line)

• CH (character).

The following conversion factors apply:

• 1 TW = 1/20 PT

• 1 PT = 1/72 IN

• 1 IN = 2.54 CM

• 1 CM = 10 MM

• 1 CH = height of a character relative to the CPI specification in the layout set header

• 1 LN = height of a line relative to the LPI specification in the layout set header

/: BOX FRAME 10 TW

Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).

/: BOX INTENSITY 10

Fills the window background with shadowing having a gray scale of 10 %.

/: BOX HEIGHT 0 TW FRAME 10 TW

Draws a horizontal line across the complete top edge of the window.

/: BOX WIDTH 0 TW FRAME 10 TW

Draws a vertical line along the complete height of the left hand edge of the window.

/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15

/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW

/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.

hope this helps u,

keerthi

Read only

Former Member
0 Likes
889

U Mean how to draw table into script,

Use BOX and position commands to draw the Table in scripts, but before drawing set your line or dimension sizes, like TW or Inches, or CM, and Line gaps between onle line to other, which is very important.

Read only

Former Member
0 Likes
889

hi

good

there is no such drag and drop facility in sapscript ,so you have do design a table as per your requirement.

Thanks

mrutyun^