on 03-26-2008 4:49 AM
Hi
Can anyone tell me
how to get table format output in sap script.How to get columnwise output. If material description is too long ,how to control in one column of specified size.
hi,
Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
Syntax:
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
/: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
BOX:
Syntax
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
WIDTH
Width of the box. Default: WIDTH value of the SIZE command.
HEIGHT
Height of the box. Default: HEIGHT value of the SIZE command.
FRAME
Thickness of frame. Default: 0 (no frame).
INTENSITY
Grayscale of box contents as %.
Default: 100 (full black
example:
/: 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
POSITION
Syntax
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
example:
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
*SIZE *
Syntax
/: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
example:
/: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
thanks
raji .
reward if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To display in table format,use tabs. Define tabs in one paragraph format and use these between variables and headings of the table.
E.g: P1 MATNR ,, MATKT,,
where P1 is the paragraph format and ,, signifies the length in the tabs.
If a material description is too long you cannot control this dynamically like in smartforms.
What you can do is make the variable to print only specific number of characters in one line.then check if there are remaining characters and print in next line at same position using tabs.
E.g &VAR1(12)&
in next line print as &VAR1+13(30)&
This way you can print in next lline.
Reward if helpful.
Thanks,
Dishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.