on 12-15-2009 4:51 AM
Hi All,
I want to print the dynamic text in the sap script with the position dynamically and also i want to draw the dynamic boxes with dynamic positions,
Please suggest the way How to do it.
Thanks in advance.
Regards
Sudhakar
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Dec 15, 2009 11:37 AM
Hi,
To dynamically postion the boxes you can use variables for providing x-origin, y-origin, height and width.
Dynamic positioning of text is not directly supported by SAPscript. You can do one thing, create different ELEMENTs in the
Sapscript window with different position of the text and then from your print program call the appropriate ELEMENT.
Regards,
Bhavesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
for dynamic text you have to use elements in SAP SCRIPT
within that you can use box & variables..
*
Element in window in SAP SCRIPT
/E E1
&VARIABLE1& &VARIABLE2&
*Call this element whenever you want to display through your calling program using
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = ' ' " SAP SCRIPT name
.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'E1'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = ' ' " window name
.
CALL FUNCTION 'CLOSE_FORM'
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Define variables for x-origin y-origin, height and width in your print program.
In sapscript you can draw box as :-
/:BOX XORIGIN &xorigin& YORIGIN &yorigin& WIDTH &width& CM HEIGHT &height& CM FRAME 10 TW INTENSITY 15
Here xorigin yorigin height and width are defined in the print program. There is no need to pass these variable to sapscript, just declare them as global variables and it will be automatically recognized in the print program.
Also go through this link for SAPscripts :-
[http://help.sap.com/saphelp_nw70/helpdata/en/d1/802d7d454211d189710000e8322d00/frameset.htm]
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhakar,
Just use the variable containing the text to be printed.
Eg.
* &variable&
Here * is the default paragraph format, you can use any other paragraph format that is defined in the script.
When you call the window, where the above code is written, from the print program the value in the variable will be printed.
Only point is just use the variable name enclosed in & &.
Regards,
Bhavesh.
hi
This the which you have to used
/: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY
/: POSITION XORIGIN YORIGIN WINDOW PAGE
/: SIZE WIDTH HEIGHT WINDOW PAGE
BOX:
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 %.
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
regard
nawa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use main window for displaying dynamic text and pass the dynamic text from the selection screen of drive program.
Regards
Srilaxmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.