on 07-08-2008 12:53 AM
I have a address like
SAP America,
Pala alto,Ca
USA
I want to put the above address in the box in sap scritp.
How to do it .
Please let me know.
Any help would be highly appreciated.
Thanks
Edited by: mark_yellow mark on Jul 8, 2008 1:54 AM
Hi,
I think you can put your address in the box like below sample code.
You can define the size of the box like below in the script..
/: IF &<W_No_of_Columns&> EQ '4'
/: BOX HEIGHT '22.20' LN WIDTH '59' CH FRAME 10 TW
/: BOX HEIGHT '22.20' LN WIDTH '6.5' CH FRAME 10 TW
/: BOX HEIGHT '22.20' LN WIDTH '15' CH FRAME 10 TW
/: BOX HEIGHT '22.20' LN WIDTH '25' CH FRAME 10 TW
/: BOX HEIGHT '22.20' LN WIDTH '36.5' CH FRAME 10 TW
ENDIF.
Thanks,
Khushbu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
Just place the control command
/: BOX frame 10 tw
in your address window...
By default it takes the window measurements XPOS YPOS Width Height etc.....
this should solve your issue
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
To create box in SAP Script :
Box <xpos> <ypos> <width> <height> <frame> <intensity>
The BOX command draws a box as per the specifications. The x y co-ordinates are for the upper left corner relative to the values in the position command
Position <xorigin> <yorigin> <window> <page>
POSITION command is used to set the x y co-ordinates with respect to the start position of the window.
Size <width> <height> <window> <page>
SIZE command is used to specify the size of the box that we need to draw.
Varying these parameters also helps to draw a line instead of a box.
http://www.thespot4sap.com/articles/SAPscript_commands.asp
Hope it will solve your problem,
Rewards Points if useful.
Nikunj Shah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
POSITION XORIGIN 15 CM YORIGIN 12 CM
SIZE WIDTH 5 CM HEIGHT 3 CM
BOX FRAME 10 TW
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
If u you what to display the window with a box thw u can simply write this way
/: BOX FRAME 10 TW
You can use the POSITION and SIZE commands to set default parmeters for a box.
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
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
Best regards,
raam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mark,
Here is an example of a Box in a Sapscript, this example is taken from the SAP standard Sales Order Confirmation SapScript layout.
/: POSITION WINDOW
/: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN
/: SIZE WIDTH +0.4 CH HEIGHT +1 LN
/: BOX FRAME 10 TW
/: BOX HEIGHT '1.7' LN INTENSITY 20
/* Now Box is ready, we write out some info in the Box
/: CASE &VBDKA-VBTYP&.
/: WHEN 'A'.
TI Inquiry
/: WHEN 'B'.
TI Quotation
/: WHEN 'C'.
TI Order confirmation
/: ENDCASE.
Hope this helps to solve your issue.
Cheers,
Sougata.
Hey Mark,
How about rewarding us points? You totally forgot?
Edited by: Sougata Chatterjee on Jul 10, 2008 3:18 PM
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.