Drawing boxes dynamically in the script
Hi All,
I have requirement in SAP script. iam getting the data from different elements and it has to displayed in the table format.after column header i need to draw the box and i have to print the data as in the format of boxes. iam placing box command in the first element but iam not getting the boxes for all data it is printing only on the top of the page. so please suggest the solution for drawing boxes dynamically .
Thanks and Regards
D.Ramesh
I have handle a similar situation with box.That is drawing dynamically based on no of items.
If there are 2 items,the box height for 2 items will be displayed and if there are 10 itmes then box height for 10 items will be displayed.
Only thing is u have to calculate the no of records and multiply with some sutable constant.Pass this content into varible declared in character format and use it in in box command as height.
BOX XPOS '0' CM WIDTH '18.5' CM HEIGHT &G_F_COUNT20& CM FRAME 2 TW
Here G_F_COUNT20 is varible.
Try this way and let me know if u face any problem.
Regards
Similar Messages
-
Hi,
Can we dynamically position boxes in Sapscripts by giving a varible after the xpos and ypos positions.
The command which I gave is
BOX XPOS '0' CM YPOS &W_CTR& CM WIDTH '0' CM HEIGHT '11' CM FRAME 5 TW
I wanted to draw some horizontal lines and the variable w_ctr is getting populated with different values.But control is not going to this command.
Can anyone help me out ?Try this out for size in the Text Elements for the window
<b>/: DEFINE &WIDTH& = '17.5'
/: BOX WIDTH &WIDTH& CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: DEFINE &WIDTH& = '3'
/: DEFINE &HIEGHT& = '3'
/: BOX WIDTH &WIDTH& CM HEIGHT &HIEGHT& CM FRAME 10 TW INTENSITY 15</b>
Cheers!
Rishi -
Hello need vertical lines in the script
Dear ABAP GURUS,
I need to draw verticle lines in the script as a tabel, i have drawn the horizontal lines. I heard that there is the the function module to draw the verticle lines but how is that possible to use in the script. Plwase help me out in drawing the vericle lines, i Have tried using the vline but no use.Hi Soni,
Its very easy to draw the vertical lines in a script. Use BOX statement to draw the same. Check out the syntax for BOX statement. Give the 'Y' coordinate only and do not mention 'X' coordinate. So that the box will appear as a vertical line. Check it.
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.
POSITION Command
Syntax
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started the POSITION value is set to refer to the upper left corner of the window (default setting).
Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words as a value which specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
1. XORIGIN, YORIGIN: Origin of the coordinate system.
2. WINDOW: Sets the values for the left and upper edges to be the same of those of the current window (default setting).
3. PAGE: Sets the values for the left and upper edges to be the same of those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
/: POSITION WINDOW
Sets the origin for the coordinate system to the upper left corner of the window.
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
SIZE Command
Syntax
/: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started the SIZE value is set to the same values as the window itself (default setting).
Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
1. WIDTH, HEIGHT: Dimensions of the rectangle or line.
2. WINDOW: Sets the values for the width and height to the values of the current window (default setting).
3. PAGE: Sets the values for the width and height to the values of the current output page.
/: SIZE WINDOW
Sets WIDTH and HEIGHT to the current window dimensions.
/: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
/: POSITION WINDOW
/: POSITION XORIGIN -20 TW YORIGIN -20 TW
/: SIZE WIDTH +40 TW HEIGHT +40 TW
/: BOX FRAME 10 TW
A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
Thanks & regards
Kishore Kumar Maram -
Drawing Boxes in Script - main window
hi,
In script, in main window <u>after table line item datas</u>, i want to draw a box in which i will place some text. On drawing box, it appears on top of that window which i dont want, since it should be placed after item details.
kapil.I do not know this is still relevant for You or not but here is the solution what I did:
First of all I have to mention this requires SAP standard object modification. !!!
1.Start SE80 and get into STXC function group.
2.Select COP_RELATIVE_NUMBER subroutines and double click on that.
3.Click on Edit button and Get SSCR Object number from SAP.
4.Change interface of the COP_RELATIVE_NUMBER subroutines extending it with TYPE parameters
5.Change the first if Statement.
6.Extend the Relative case section with a new WHEN '#'.
7. Cange All COP_RELATIVE_NUMBER calls with new input parameter in CO_BOX, In CO_POSITION, In CO_SIZE.
From now in Your SAP script You can call BOX statement like this:
BOX XPOS #10 TW YPOS #10 TW ..
Will start drowing BOX from cursor current position plus 10 twip.
Numbers after the # sign are optional.
Solution works only with TW.
form co_box.
data: begin of bx,
x type i,
y type i,
w type i,
h type i,
f type i,
i(3) type n,
end of bx,
next(10),
xpos type i,
ypos type i,
is_relative like boolean.
bx-x = ft-wpx.
bx-y = ft-wpy.
bx-w = ft-wpw.
bx-h = ft-wph.
while co-endline = false.
perform cop_next using next 10.
case next.
when 'XPOS'.
*{ REPLACE ED1K902054 1
* perform cop_relative_number using is_relative xpos.
perform cop_relative_number using is_relative xpos 'X'.
*} REPLACE
add xpos to bx-x.
when 'YPOS'.
*{ REPLACE ED1K902054 2
* perform cop_relative_number using is_relative ypos.
perform cop_relative_number using is_relative ypos 'Y'.
*} REPLACE
add ypos to bx-y.
when 'WIDTH'.
perform cop_number_value using bx-w.
when 'HEIGHT'.
perform cop_number_value using bx-h.
when 'FRAME'.
perform cop_number_value using bx-f.
when 'INTENSITY'.
perform cop_next using next 3.
bx-i = next.
when space. exit.
when '.'. exit.
when others.
perform cop_warning using subrc_param_unknown next.
endcase.
endwhile.
perform cop_end.
check co-error = false.
perform pc_box using bx-x bx-y bx-w bx-h bx-f bx-i.
endform.
form co_position.
data: begin of pos,
x type i,
y type i,
end of pos,
next(10),
relative like boolean,
xpos type i,
ypos type i.
pos-x = ft-wpx.
pos-y = ft-wpy.
while co-endline = false.
perform cop_next using next 10.
case next.
when 'XORIGIN'.
*{ REPLACE ED1K902054 1
* perform cop_relative_number using relative xpos.
perform cop_relative_number using relative xpos 'X'.
*} REPLACE
if relative = true.
add xpos to pos-x.
else.
pos-x = xpos.
endif.
when 'YORIGIN'.
*{ REPLACE ED1K902054 2
* perform cop_relative_number using relative ypos.
perform cop_relative_number using relative ypos 'Y'.
*} REPLACE
if relative = true.
add ypos to pos-y.
else.
pos-y = ypos.
endif.
when 'WINDOW'.
pos-x = ft-tdwlefts.
pos-y = ft-tdwtops.
when 'PAGE'.
pos-x = 0.
pos-y = 0.
when space. exit.
when '.'. exit.
when others.
perform cop_warning using subrc_param_unknown next.
endcase.
endwhile.
perform cop_end.
check co-error = false.
ft-wpx = pos-x.
ft-wpy = pos-y.
endform.
form co_size.
data: begin of dim,
w type i,
h type i,
end of dim,
next(10),
relative like boolean,
width type i,
height type i.
dim-w = ft-wpw.
dim-h = ft-wph.
while co-endline = false.
perform cop_next using next 10.
case next.
when 'WIDTH'.
*{ REPLACE ED1K902054 1
* perform cop_relative_number using relative width.
perform cop_relative_number using relative width 'X'.
*} REPLACE
if relative = true.
add width to dim-w.
else.
dim-w = width.
endif.
when 'HEIGHT'.
*{ REPLACE ED1K902054 2
* perform cop_relative_number using relative height.
perform cop_relative_number using relative height 'Y'.
*} REPLACE
if relative = true.
add height to dim-h.
else.
dim-h = height.
endif.
when 'WINDOW'.
dim-w = ft-tdwwidths.
dim-h = ft-tdwheights.
when 'PAGE'.
dim-w = form_header-tdpagwidth.
dim-h = form_header-tdpagheigh.
when space. exit.
when '.'. exit.
when others.
perform cop_warning using subrc_param_unknown next.
endcase.
endwhile.
perform cop_end.
check co-error = false.
ft-wpw = dim-w.
ft-wph = dim-h.
endform.
*{ REPLACE ED1K902054 3
*form cop_relative_number using is_relative like boolean
* val type i.
form cop_relative_number using is_relative like boolean
val type i
type type c.
*} REPLACE
data: num type f,
next(10).
clear is_relative.
perform cop_next using next 10.
*{ REPLACE ED1K902054 1
* if next(1) cn '+-.0123456789 '.
if next(1) cn '#+-.0123456789 '.
*} REPLACE
perform cop_warning using subrc_param_unknown next.
clear: is_relative, val.
exit.
else.
if next+1(9) cn '.0123456789 '.
perform cop_warning using subrc_param_unknown next.
clear: is_relative, val.
exit.
else.
case next(1).
when '+'.
is_relative = true.
num = next+1(9).
when '-'.
is_relative = true.
num = next+1(9).
num = -1 * num.
*{ INSERT ED1K902054 2
when '#'.
is_relative = true.
num = next+1(9).
case type.
when 'X'.
num = ( ft-line_width - ft-rem_width ) + num.
when 'Y'.
num = ( ft-fill_height - ft-rem_height ) + num.
endcase.
*} INSERT
when others.
num = next.
endcase.
endif.
endif.
perform cop_num_val using num.
val = num.
endform. -
Create the Box and increase the height a/c to the data in Script
hi,
i need to create one box with 6 Columns in a Script and also it should be increase the size a/c to the Data.
please send me the code, this is very urgent,
Thanks & regards,
SunilBOX, POSITION, & SIZE: These commands are used for drawing boxes and are used only during creating output.
Syntax:
/: BOX [Xpos] [Ypos] [Width] [Height] [Frame] [Intensive]
X & Y Upper left corner of the box.
Width Width of the box
Ht Height of the box
Frame Thickness of the box (Default is full black)
Units used for Width, Height and Thickness are TW, PT, IN, CM, CH, LN.
Ex., /: BOX WIDTH 20 CM HEIGHT 1 IN
FRAME 10 TW INTENSIFY 15. -
How to avoid missing font dialog box(alert) while running the script??
Hi....
In Illustrator CS4 ,I tried to skip missing font dialog box(alert box) by using the following script .But,I could not skip the dialog box
So if you have any suggestion about this let me know..
tell application "Finder"
set user interaction level to never interact
activate
set fileName to (path to desktop folder as string) & "fer11757_f1208.eps"
--set user interaction level to never interact
-- set user interaction level of script preferences to never interact
open file fileName
--set alert missing fonts to true
set user interaction level to never interact
activate
end tell
display dialog ("completed")
end tell
Thanks,
MubeenDoes this NOT error when run? Your target application here is 'Finder' Apple's system file browser and you are giving it Adobe illustrator commands?
Im not 100% about the versioning with Illustrator installs I think they are all just…
Tell application "Adobe Illustrator" -- No CS Versioning?
-- do stuff here
end tell
you could check by just picking the app from this list
choose application -
Dynamically change the contents of one combo box based on the other
Hi Forum,
I have a question which might have a possibly simple answer. Well anyway help me out since i could not find the simple answer.
I am building an application using Swing and binding with BC4J using JClient. My GUI has combo boxes, grids, editboxes. My requirement is that i should be able to dynamically change the contents of one combo box based on the selected item in trhe previous combo box. For example, when i choose a country in the "country combo box", the "states combo box" should show the list of the states of the selected country.
Now how do i do this using binding. If not, how do i write custom querirs in BC4J layer and return a resultset to the remote application so theat i can populate the dependent combo boxes.
I will appreciate if anyone can help me out in this regard.
Thank You
Sumitthere could be quite a few number of ways of solving this problem.
One way is through event handlers.
taking your example as a model when user selects a country you could fire an action with a flag set to ture. A method will return the states from the DB or your temporary files or what ever and then the true flag will be used in the states combo box rendering.
other way: javascript
this might be a bit clumsy as you will need the states information in a property file and you can get the info as the user selects a country.
regards,
raj -
What is the script for creating a word count text box that references a specific text box?
I am working in Adobe LiveCycle Designer.
I am trying to create an auto populated word count box that provides the word count for a given text box. For background, it'll be used on a form for blog posts and the posts needs to be specified word lengths but will probably be edited in form as it is passed around a committee.
I found this script: var wordCnt = new Array();var str = this.rawValue;wordCnt = str.split(" ");xfa.resolveNode("wordcount").rawValue = "There are " + wordCnt.length + " words."; and created a textbox named wordcount but when I use it I get an error stating unfound Array.
Any help would be greatly appreciated!Try the LCD forum.
-
Dynamic populating the items in the select boxes
Hi,
I need three select boxes on a webpage in such a way that the options in select box 2 should be populated only after selecting some item in "select box 1" and the options in the "select box 3" should be displayed by selecting the options in "the select box2". The data is being retrived from the database. I know that this functionality can be acheived through the "javascript". I am fine until getting the data from the database but not sure how to get it work using javascript.
I would appreciate if someone can post any snippet of code or give any suggesstions or pointer on how to proceed....
-coolersprobably should ask on a javascript forum then. This is for java.
-
Dynamic population of second list box based on the selection of first list
Hai Friends,
I have the code like this.
Here my issue is: when the user accesses this page he will get the topic and related categories in the drop down boxes. but when the user changes the topic it needs to populate the categories from the database and kept the topic same for the respective categories. so how can i do this?
<form name="questionForm" method="post" action="listQuestions.lgs">
<table bgcolor="F8D8D8" cellspacing="2" cellpadding="2" align="center"
style="margin-top: 100px">
<tr>
<td>Topics:</td>
<td><select name="topic">
<c:forEach items="${model.topics}" var="topic">
<option value="<c:out value="${topic.topicId}" />"><c:out
value="${topic.topicName}" /></option>
</c:forEach>
</select></td>
<td>Categories:</td>
<td><select name="category">
<c:forEach items="${model.categories}" var="category">
<option value="<c:out value="${category.categoryId}" />"><c:out
value="${category.categoryName}" /></option>
</c:forEach>
</select></td>
<tr>
<td><a
href="addQuestion.lgs?categoryId=2<c:out value="${category.categoryId}"/>">Add
New Question</a></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Questions under this Category:</td>
<td><c:if test="${model.questions} == null">
<c:out value="no questions found" />
<br>
</c:if> <c:if test="${model.questions} != null">
<c:forEach items="${model.questions}" var="question">
<table>
<tr>
<c:out value="${question.questionDesc}" />
</tr>
</table>
</c:forEach>
</c:if></td>
</tr>
<tr>
<td colspan="2"><input type="submit" /></td>
</tr>
</table>
</form>
regards,
phani.Hi Rahul,
I followed the link what you have mentioned and i need clarification in regarding this....
function getResponseAction(){
// Verifying State & Status
if(verifyReadyState(xmlhttp) == true){
// Building a DOM parser from Response Object
var response = xmlhttp.responseXML.documentElement
// Deleting all the Present Elements in the Drop-Down Box
drRemove()
// Checking for the Root Node Tag
var x = response.getElementsByTagName("option")
var val;
var tex;
var optn;
for(var i = 0;i < x.length; i++){
optn = document.createElement("OPTION")
var er
// Checking for the tag which holds the value of the Drop-Down combo element
val = x.getElementsByTagName("val")
try{
// Assigning the value to a Drop-Down Set Element
optn.value = val[0].firstChild.data
} catch(er){
// Checking for the tag which holds the Text of the Drop-Down combo element
tex = x[i].getElementsByTagName("text")
try{
// Assigning the Text to a Drop-Down Set Element
optn.text = tex[0].firstChild.data
} catch(er){
// Adding the Set Element to the Drop-Down
document.questionForm.category.options.add(optn)
but in my springframe work i have the controller like this where i am putting category object in the context and i am retrieving this in my listQuestions.jsp like this
<tr>
<td>Topics:</td>
<td><select name="topic" onchange="populateCombo(this.value)">
<c:forEach items="${model.topics}" var="topic">
<option value="<c:out value="${topic.topicId}" />"><c:out
value="${topic.topicName}" /></option>
</c:forEach>
</select></td>
<td>Categories:</td>
<td><select name="category">
<c:forEach items="${model.categories}" var="category">
<option value="<c:out value="${category.categoryId}" />"><c:out
value="${category.categoryName}" /></option>
</c:forEach>
</select></td>
<tr>
package com.lgsglobal.lgsexam.spring.controllers;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import com.lgsglobal.lgsexam.dao.CategoryDAO;
import com.lgsglobal.lgsexam.dao.QuestionDAO;
import com.lgsglobal.lgsexam.dao.TopicDAO;
import com.lgsglobal.lgsexam.hibernate.pojos.Category;
import com.lgsglobal.lgsexam.hibernate.pojos.Topic;
public class ListQuestionsController implements Controller {
private TopicDAO topicDAO = null;
public void setTopicDAO(TopicDAO topicDAO) {
this.topicDAO = topicDAO;
public TopicDAO getTopicDAO() {
return this.topicDAO;
private QuestionDAO questionDAO = null;
public void setQuestionDAO(QuestionDAO questionDAO) {
this.questionDAO = questionDAO;
public QuestionDAO getQuestionDAO() {
return this.questionDAO;
private CategoryDAO categoryDAO = null;
public void setCategoryDAO(CategoryDAO categoryDAO) {
this.categoryDAO = categoryDAO;
public CategoryDAO getCategoryDAO() {
return this.categoryDAO;
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws Exception {
HashMap mymodel = new HashMap();
List topics = topicDAO.getTopics();
mymodel.put("topics", topics);
if (request.getParameter("topic") != null) {
System.out.println("in topics condition to retrieve questions");
int topicId = Integer.parseInt(request.getParameter("topic"));
Topic topic = topicDAO.getTopic(topicId);
List categories = categoryDAO.getCategories(topic);
mymodel.put("categories", categories);
System.out.println("exiting topics condition to retrieve questions");
if (request.getParameter("category")!= null) {
System.out.println("in category condition to retrieve questions");
int categoryId = Integer.parseInt(request.getParameter("category"));
Category category = categoryDAO.getCategory(categoryId);
List questions = questionDAO.getQuestions(category);
mymodel.put("questions", questions);
return new ModelAndView("listQuestions", "model", mymodel);
so here my issue is like how i can populate categories in the category(dependent combo). so please let me know the solution.
awaiting for reply. for any furthere info please let me know....
regards,
Phani.K -
Drawing box in main window of sapscript form
Hi all,
I am developing a script for vendor balance confirmation report, in which I have to provide check boxes to allow the user to select an option.
My problem is if I use the BOX statement to draw the box the alignment keeps changing when the size of vendor address changes.
i.e the boxes moves up and down
I have another reference script in which they used the following statement to draw the box <527>.
Please suggest a way to use statement like this <527>
Thanks,
RajanTry it as shown below for drawing dynamic boxes.
Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.
/E TAB
/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '3.9' CM
/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '11.2' CM
/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '14' CM
/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW.
/: POSITION XORIGIN '16.6' CM
/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
/: BOX FRAME 10 TW
P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
the driver program's piece of code.
LOOP AT it_vbap INTO x_vbap.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'TAB'
window = 'MAIN'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
Regards,
SaiRam -
Hi ,
I am able record the script successfully through Vugen 11.00. But while i am trying to save the the script the Vugen stops responding for few minutes and gives a error pop up is coming Saying "Unhandled exception occured in a component in your application.....".
Below is exception caught:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at LogicNP.FileViewControl.x536ecdb7386d29a6.x2db8e1a2d8ef1ead(xb2fdad904b77f843 xcbf23e6fdf2aa08b, IntPtr xe2562f0dc0544189, DisplayNameFlags x9432081594ec509d, IntPtr x5e5a9895844ba8d2, x09b9e24e089559b0 x49a64970a3136cae)
at LogicNP.FileViewControl.x536ecdb7386d29a6.x1dafd189c5465293(xb2fdad904b77f843 xcbf23e6fdf2aa08b, IntPtr xe2562f0dc0544189, DisplayNameFlags x9432081594ec509d, IntPtr x5e5a9895844ba8d2, x09b9e24e089559b0 x49a64970a3136cae)
at LogicNP.FileViewControl.x536ecdb7386d29a6.x4e2d9d6d7d7d99b0(xb2fdad904b77f843 xcbf23e6fdf2aa08b, IntPtr xe2562f0dc0544189)
at LogicNP.FileViewControl.ListItem.x77be53ce49261911()
at LogicNP.FileViewControl.ListItem.get_Path()
at QTFileDialogs.FSControl.fileView1_AfterItemAdd(Object sender, FileViewEventArgs e)
at LogicNP.FileViewControl.FileView.x63783b721e2e30d9(Int32 xccb63ca5f63dc470)
at LogicNP.FileViewControl.FileView.x5921718e79c67372(IntPtr xe2562f0dc0544189)
at LogicNP.FileViewControl.FileView.x6d54aa19d20a6718(IntPtr x60b03290ec39ff34, Boolean x6aa0fd35fe33c0ce)
at LogicNP.FileViewControl.FileView.x7cb4bb83abfb9710(String xaead53c3b2567ee7)
at LogicNP.FileViewControl.FileView.set_CurrentFolder(String value)
at QTFileDialogs.FSControl.FSControl_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
BPTManagerImpl
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/BPTManagerImpl.DLL
BPTManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/BPTManager.DLL
Interop.TDExtendedAPI
Assembly Version: 9.52.0.0
Win32 Version: 9.52.0.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.TDExtendedAPI.DLL
Interop.SOAMaf
Assembly Version: 9.52.0.0
Win32 Version: 9.52.0.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.SOAMaf.DLL
VugenIntegration
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/VugenIntegration.DLL
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
interop.OTAClient
Assembly Version: 11.9.9.9999
Win32 Version: 11.9.9.9999
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/interop.OTAClient.DLL
VuGenFileDialog
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/VuGenFileDialog.DLL
QTFileDialogLib
Assembly Version: 11.0.700.0
Win32 Version: 11.0.700.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTFileDialogLib.DLL
OTAWrapperLib
Assembly Version: 11.0.721.0
Win32 Version: 11.0.721.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/OTAWrapperLib.DLL
FileDialogServices
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/FileDialogServices.DLL
QTFileDialogs
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTFileDialogs.DLL
QTFileDialogIfsLib
Assembly Version: 11.0.700.0
Win32 Version: 11.0.700.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTFileDialogIfsLib.DLL
QTOTAWrapper
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTOTAWrapper.DLL
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
Log4netWrap
Assembly Version: 0.0.0.0
Win32 Version: 11.0.700.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Log4netWrap.DLL
msvcm80
Assembly Version: 8.0.50727.6195
Win32 Version: 8.00.50727.6195
CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a/msvcm80.dll
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
QTOTAWrapper.XmlSerializers
Assembly Version: 11.0.1465.0
Win32 Version: 11.0.1465.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/QTOTAWrapper.XmlSerializers.DLL
ocap_h8y
Assembly Version: 11.0.0.8825
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
0kybcvp7
Assembly Version: 11.0.0.8825
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
Infragistics2.Win.Misc.v7.3
Assembly Version: 7.3.20073.1053
Win32 Version: 7.3.20073.1053
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.Misc.v7.3.DLL
Infragistics2.Win.v7.3
Assembly Version: 7.3.20073.1053
Win32 Version: 7.3.20073.1053
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.v7.3.DLL
Infragistics2.Shared.v7.3
Assembly Version: 7.3.20073.1053
Win32 Version: 7.3.20073.1053
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Shared.v7.3.DLL
Infragistics2.Win.UltraWinEditors.v7.3
Assembly Version: 7.3.20073.1053
Win32 Version: 7.3.20073.1053
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.UltraWinEditors.v7.3.DLL
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
Infragistics2.Win.UltraWinExplorerBar.v7.3
Assembly Version: 7.3.20073.1053
Win32 Version: 7.3.20073.1053
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Infragistics2.Win.UltraWinExplorerBar.v7.3.DLL
LogicNP.FileView
Assembly Version: 10.0.0.0
Win32 Version: 10.0.0.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/LogicNP.FileView.DLL
LogicNP.ShComboBox
Assembly Version: 10.0.0.0
Win32 Version: 10.0.0.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/LogicNP.ShComboBox.DLL
ScriptContext
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/ScriptContext.DLL
CorrelationSDK
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/CorrelationSDK.DLL
Interop.VugenBackEnd
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.VugenBackEnd.DLL
Interop.VugenDocIfs
Assembly Version: 11.0.0.8825
Win32 Version: 11.0.0.8825
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/Interop.VugenDocIfs.DLL
CorrelationFramework
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/CorrelationFramework.DLL
FileLogger
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/FileLogger.DLL
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5479 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
HTTPSnapshot
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/HTTPSnapshot.DLL
lxnorxdy
Assembly Version: 11.0.9409.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
xp_nfinj
Assembly Version: 11.0.9409.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
PostFilterCorrelationRules
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/PostFilterCorrelationRules.DLL
PostFilterInScriptFinder
Assembly Version: 11.0.9409.0
Win32 Version: 11.0.9409.0
CodeBase: file:///C:/Program%20Files/HP/Virtual%20User%20Generator/bin/PostFilterInScriptFinder.DLL
xftg046s
Assembly Version: 11.0.9409.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Please let me know how to resolve this issue. This is causing a major blocking for my testingLooking at the error message "The Network Adapter could not establish the connection" , It appears hostname and port may be incorrect. Review the targets.xml under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\emd and
emoms.properties under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\config folder to make sure host ( sap_solman) and port (1527) are correct.
As far as setting the environment variables goes, you can go to control panel -> system -> advanced -> environment variables and set the ORACLE_HOME and ORACLE_SID
-Ramesh -
Where do we find a box command in sap script
Hai,
where do we find a box command in sap script, how to create box command ,
its urgent help outHi
SAPScripts
POSITION WINDOW
SIZE WIDTH '160' MM HEIGHT '140' MM
BOX FRAME 10 TW
Box
BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
linessssssss
BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
Boxes, Lines, Shading: BOX, POSITION, SIZE
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.
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 printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
Syntax:
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
/: 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, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
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
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)
Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period 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 form header
1 LN = height of a line relative to the LPI specification in the form 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 shading 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.
POSITION Command
Syntax
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
XORIGIN, YORIGIN
Origin of the coordinate system.
WINDOW
Sets the values for the left and upper edges to match those of the current window (default setting).
PAGE
Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
/: POSITION WINDOW
Sets the origin for the coordinate system to the upper left corner of the window.
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
SIZE Command
Syntax
/: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
WIDTH, HEIGHT
Dimensions of the rectangle or line.
WINDOW
Sets the values for the width and height to the values of the current window (default setting).
PAGE
Sets the values for the width and height to the values of the current output page.
/: SIZE WINDOW
Sets WIDTH and HEIGHT to the current window dimensions.
/: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
/: POSITION WINDOW
/: POSITION XORIGIN -20 TW YORIGIN -20 TW
/: SIZE WIDTH +40 TW HEIGHT +40 TW
/: BOX FRAME 10 TW
A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
Regards
anji -
HI all.
I have an issue in the script printing.
we are printing a table in the layout using the script.
in this table how to get the Verticle lines, inbetween the coloumns.
can any body help me to solve this issue.
Thanks in advance,
regards,
Eswaru can use box but for vertical line give width 0.
Pre-Setting BOX Position Arguments
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.
You can use POSITION and SIZE to preset arguments, but you can also set the start point and size arguments of a box or line directly in the BOX command.
By default, if no positioning is specified, the upper left corner of a box or halftone or the top of a line is aligned with current SAPscript window. That is, the upper left corner of the box, halftone, or line starts at the upper left corner of the current window in the active form. By default, the height and width of a box are set to the height and width of the current window.
Use POSITION and SIZE to preset the arguments in a BOX command in the following situations:
The BOX command exceeds the 132-character (1 line in SAPscript) length limitation if you specify all arguments directly in the command. You may exceed this length limit if, for example, you use symbols in a command.
By pre-setting arguments with POSITION and SIZE, you can work around the limitation on the length of a command. You do not need to specify the preset arguments in the BOX command.
You want to use the enhanced capabilities of POSITION for adjusting the starting point of a box or line.
With BOX, you can specify an offset for the starting point only as a whole number (non-negative integer). This command would print a box starting 1 CM to the right and 1 CM down from the left upper corner of a window:
/: BOX XPOS '1' CM YPOS '1' CM
With POSITION; you can adjust the position of a line or box relative to a window much more precisely. In the POSITION command, you can specify positive and negative offsets and use non-integer numbers.
Example: The commands shown below position a box slightly to the left and slightly above a window. This leaves a margin between the edge of the box and the text in the window.
/: POSITION XORIGIN '-.2' CM YORIGIN '-.2' CM
/: SIZE WIDTH '.2' CM HEIGHT '.2' CM
/: BOX FRAME 10 TW
(Note that the box must be enlarged to accommodate the shift. If it is not enlarged, then it will not cover all of the window.)
You can also use POSITION to set the starting point to the upper left corner of the active page format. Example: POSITION PAGE moves the starting point from the active window to the active page format.
You want to use the relative sizing capabilities of SIZE to adjust the size of a box, line, or halftone.
With BOX, you can make only absolute size specifications. BOX HEIGHT, for example, overrides the default height setting to the height of the current window.
With SIZE, you can adjust the size of a box or a line with respect to its previously-set dimensions. The following commands would, for example, draw a frame 1 CM in from the margins of the paper:
/: POSITION PAGE
/: POSITION XORIGIN 1 CM YORIGIN 1 CM
/: SIZE PAGE
/: SIZE HEIGHT '-2' CM WIDTH '-2' CM -
Dynamic Source Multicast Script
Hello and thanks in advance for any advice.
I am developing a presentation broadcasting application with annotation/inking functionality. The important thing is that the inking is live.
My question is whether there is a simple way to have FMS receive many incoming streams from every client connected to the FMS application, but then dynamically change the publishing multicast stream source to the client that is currently drawing on the screen. I am thinking that it might be possible to modify the already existing multicast application, but it seems very complex so a simpler solution would be great.
If you have another approach to broadcasting live drawings to 100+ clients, this would be great too.Hi,
All you can do is to put any condition while calling that window with that element.
To ways to achive this.
1. In your print program put any condition while calling WRITE_FORM.. Like below:
if condition 1 = 'True'.
call function 'WRITE_FORM'
exporting
element = 'TEXT'
window = 'DYNAMIC_TEXT'
exceptions
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
others = 7.
endif.
2. Or Just in the script editor in that window , put any if condition to print that text. It means it will print your text only when any condition is setisfied.
/: IF &CONDIITION& = 'TRUE'
PF &ZZ_TEXT_TO_BE_DISPLAY&
/: ENDIF
Reg,
Lokesh.
Maybe you are looking for
-
Camera icon won't show up on desktop.
Transfer 911 Bought a digital picture frame for a present due today. Want to do a simple transfer of pictures from my iphoto library to the digital card in my nikon camera and then shoot pictures at the party then put in the chip in the Digital photo
-
Photo quality problem in iWeb 08?
I'm still using iWeb '06 but thinking of upgrading. When the '08 version was new I saw some reports that photos handled by '08 were of lesser quality than that provided by iWeb '06. Is there any truth to this? If so, was it fixed? My main use of iWeb
-
The version I am using is 3.6.11 The file is stored in the server in the format "Microsoft Office Excel 97-2003 Worksheet" But when I download it, it gets saved in the unrecognized format type "File" The servlet code written to download the file sets
-
Different sound/volume on all music dowlnoads
i have 1 gb of music dowloaded on my ipod shuffle. some from itunes purchases and others from personal cd's. how come the sound is different for each song? I have to turn up or turn down the volume with just about each song, any one have this problem
-
Anyone who has the same problem and idea how I can fix this?