on 03-27-2008 4:25 AM
i want to display box in Window in SAP script.. n in that box i want to habe Amout Rs Printed... please help mi with the same
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:
1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
2. /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
for example,
Sets the origin for the coordinate system to the upper left corner of the window.
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
3. /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
for example,
Sets WIDTH and HEIGHT to the current window dimensions.
/: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
Upper left corner of the box, relative to the values of 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
rewards points if useful.
regards
sandhya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
1. select a window to which u want to draw a box.
2. goto textelementsand specify the below control command.
to draw a box use the syntax.
example.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
and for displaying amount field :
/ it_vbap-netwr.
reward if helpful.
regards,
raji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BOX-POSITION:- You can use the POSITION and SIZE commands to preset some arguments in the BOX command. POSITION presets the start point (upper left corner) of a box or line. SIZE specifies the width and height of a box.
Enter the following line as a command in text in a SAPscript document. The command draws a box of 17.5 CM length, 1 CM high, with 10% shading:
/: BOX WIDTH '17.5' CM HEIGHT '1' CM INTENSITY 10
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amruta,
THis is the syntax for draw a box..
/: BOX XPOS 4 CM YPOS 4 CM WIDTH 2 CM HEIGHT 2 CM FRAME 10 TW INTENSITY 10
Now pass the value of variable for amount.
Hope this helps you. Reply for queries, shall post the updates.
Regards.
Kumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Text Elements
You can define text elements (window texts) for each window. On the Form: Request screen, choose Edit ® Text elements.
The print program accesses text elements by name, formats them and prints them in the respective window. That is, the program can decide which text elements should be printed in a particular window. It calls these text elements by name to print them. You must therefore change text element names in the print program if you make any changes to text element names in a form.
In the layout of a text element, you can use only the paragraph and character formats defined in the form.
Example of a text element in an order confirmation:
/E ITEM_LINE
IL &VBDPA-POSNR&,,&VBDPA-MATNR&,,&VBDPA-ARKTX&
/ &'Customerarticlenumber 'VBDPA-IDNKD' '&&'Position
/ 'VBDPA-POSEX&
This example shows a section of a main window of a form, with an item line of an order confirmation. The /E in the tag column is used to identify the text as a text element, ITEM_LINE is the name of the text element.
Default Text Element
At the start of a window, you can define a text element without the /E command in the paragraph format column. This text is always printed at the start of the window. It is not necessary to insert this text explicitly via a print program.
For more go to this link: Character formats and attributes
http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
Boxes:
Use the following code
/: BOX XPOS 1 MM YPOS 2 MM WIDTH 20 MM HEIGHT 40 MM FRAME 10 TW.
Box is the command used for printing box in script.
XPOS - x- axis position
ypos - y axis position
http://help.sap.com/saphelp_470/helpdata/en/d1/802ec5454211d189710000e8322d00/content.htm
Check...
http://www.revver.com/video/650256/abap-text-elemens
http://www.revver.com/video/605386/create-a-text-box-from-existing-text
http://sap.ittoolbox.com/groups/technical-functional/sap-abap/sap-script-printing-1753129
http://www.revver.com/video/650256/abap-text-elemens
Reward points if it is useful..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.