Q51: How to divide 'RDR1.Price' by 'RDR1.Rate' when blank
Dear All,
It appears my report as below is reporting values in £ or $ so I assume I need to introduce the 'Rate' field to bring all values back to Sterling.
However, when a sales order is in sterling the 'Rate' field is left blank and I get an error message whenever I try to introduce the 'Rate' field - Query does not like dividing by 'blank'
Any ideas?
SELECT
t0.cardcode as 'Customer Code',
t3.slpname as 'Sales Person',
sum(((T1.OpenQty)*(T1.Price))-t0.discsum) as 'Sales Value'
FROM
ordr t0 inner join rdr1 t1 on t0.docentry = t1.docentry
inner join ocrd t2 on t0.cardcode = t2.cardcode
inner join oslp t3 on t2.slpcode = t3.slpcode
WHERE
t0.docduedate between and and
t1.linestatus = 'O' and
isnull (t0.u_forecast,'N') !='Y'
GROUP BY
t0.cardcode,
t3.slpname,
t0.discsum
ORDER BY t0.cardcode
Robin
Hi Robin,
Try:
SELECT
t0.cardcode as 'Customer Code',
t3.slpname as 'Sales Person',
sum(T1.OpenSum) as 'Sales Value'
FROM
ordr t0 inner join rdr1 t1 on t0.docentry = t1.docentry
inner join ocrd t2 on t0.cardcode = t2.cardcode
inner join oslp t3 on t2.slpcode = t3.slpcode
WHERE
t0.docduedate between \[%0\] and \[%1\] and
t1.linestatus = 'O' and
isnull (t0.u_forecast,'N') !='Y'
GROUP BY
t0.cardcode,
t3.slpname,
t0.discsum
ORDER BY t0.cardcode
You have OpenSum and OpenSumFC so hoepuflly OpenSum will always return it using your local currency.
Regards,
Adrian
Similar Messages
-
How to get the conition price by dividing the price from vbap table
Hi Experts,
i am given below one assisnment in which when user click on vbeln column which is common column in vbak and vbap table it goes to second interactive alv report in which contains Sales order items details from VBAP table.so please help me to solved my problem.So try to send me some reponse or u can send me report of step which i have given to you below.
Assignment
Qty field refers to the Target Qty field in the table VBAP.
To get Price in the unit divide the price by Condition Pricing Unit.
If SHKZG field is set, then multiply the amount by -1, making it negative.
Report Layout
Item Type Item Number Material Number Material Group Qty Unit
Material Number used by Customer Plant Net Price Pricing Unit Net value Currency
Moderator message: you've been asked ten times now to not dump your specs here. Once more, and your user ID will be deleted.
Edited by: Thomas Zloch on Dec 1, 2011 12:08 PMHi
Assuming you are using Jdev 11g.
Try with this
public void selectionRow(SelectionEvent se) {
String val = getManagedBeanValue("bindings.AttributeName.inputValue");
public static Object getManagedBeanValue(String beanName) {
StringBuffer buff = new StringBuffer("#{");
buff.append(beanName);
buff.append("}");
return resolveExpression(buff.toString());
public static Object resolveExpression(String expression) {
FacesContext facesContext = getFacesContext();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp =
elFactory.createValueExpression(elContext, expression,
Object.class);
return valueExp.getValue(elContext);
Vikram -
Qry:How to get different price for each price list (variable area) in order
1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
2- I add a location store from a table in line item and I want to see this area in order,.
I 'm created 2 field location(item line and order), 1 table location
I tried this for exemple : select $ [userfieldlocation.OITW]Thanks Suda for your answer,
the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,
I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
read carefully and imagine how (Management warehouse locations)
I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data line and an ather user field 'U_Location' in sales order
I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
or
create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
I think we will use all these tables
@LOCATION
PDN1
OITM
OITW
OWHS
RDR1
Juste a another question : where you found this and What is: ' 38.1.0 '
Is it in document (System information):Item=38 Pane=1 ??
Thanks,
Ouchen -
How to divide all textFrames in one-character-per-textFrame?
Hello:
How to divide all textFrames in one-character-per-textFrame?
Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s".
Help, please.Hi Paul, try this one
#target Illustrator
// script.name = splitSelectedFramesIntoWords2.0.jsx;
// script.description = splits selected texFrames into separate words;
// script.required = select point text textFrames before running;
// script.parent = CarlosCanto; // 10/14/11
// script.elegant = false;
var idoc = app.activeDocument;
var sel = idoc.selection; // get selection
var selCount = sel.length; // count items
var tFrames = []; // to hold the textFrames
for (j=selCount ; j>0 ; j--) // loop thru selection & get textFrames backwards
tFrames[j-1] = sel[j-1];
for (k = 0 ; k<tFrames.length ; k++) // loop thru textFrames
var xpos = tFrames[k].position[0]; // get x
var ypos = tFrames[k].position[1]; // get y
var words = tFrames[k].contents.split(/\s/g); // get all words into an array
//$.writeln(words);
var space = tFrames[k].duplicate(); // dup to get width of a space
space.contents = " ";
var sw = space.width;
space.contents = words[0]; // replace space with first word
var w = space.width;
var wordCount = words.length; // count words
for (i=1; i<wordCount ; i++) // loop thru words
xpos2 = xpos+w+sw; // next words position = previous word pos+width+space
var iword = space.duplicate(); // duplicate previous word
iword.contents = words[i]; // add next word
iword.position = [xpos2,ypos]; // position the character = original position + new width
w = iword.width; // get words width
xpos = iword.position[0]; // get words position
tFrames[k].remove(); // remove textFrame -
Hi All,
How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
Assume Material is Pen.
While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
Kindly help me out.
Thanks,
Renjith JoseA good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
"Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded" -
How to Pick differant price for same activity based on employee grade?
Hi,
My Requirement is -
1. We are using Machine -1 for manufacturing purpose. In this machine, There 3 employees who are authorized to work... (Eg. Employee A -Employee B -Employee C)
2. We have an Activity type for Machine hour. The price given in KP26 is 10$ per hour and assigned it in Work Center.
3. But Employee A hourly price is 12% & Employee B hourly price is 10$ -Employee C hourly price is 8$.
4. Now with the current set up, system is taking 10$ for any of the above employee which is not correct.
Requirement is - When Employee A works on this machine, system shoule take 12$ per hour and If employee B woks on this machine, system should take 10$ per hours and For Employee C, system should pick 8$ per hour. How to get different activity rate when using different employee?
Kindly help me how can i configure for this requirement. Please give me some inputs..
Thanks
F4Nhi..
You can map in the following manner :
You creat One WC and define three operation against each Employee and define three activity and plan your rate in KP26 against each activity
WORK CENTRE Machning
Activity
OPRN -1(Emp-A) A-1
OPRN-2(Emp-B) A-2
OPRN-3(Emp-C) A-3
So from operation One system will take hr * rate to calculate cost of oprn of employee and so on....
Please test and write back for any help.
kkumar -
Who knows: How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Use something like Jakarta Commons FileUpload to process the multipart/form-data request:
http://jakarta.apache.org/commons/fileupload/ -
How to divide a grid (an 2D array) into subgrids? [Suduko]
Hey guys
I've been struggling with a problem with my Suduko program for a few days now and thought I could get some help here.
The problem is that I have no idea how to divide a Suduko grid and stuff them into subgrids.
My current plan is to go through the Suduko array r * c times (where r and c is the dimensions of a subgrid) and stuff the cells into my quad array (somehow). I've gone through the sourcecode of 4 suduko programs on sourceforge, but still can't find a solution (mainly because I can't read other prog. lannguages yet).
My code:
* easyIO is a packadge that enables read/write to files
* and enables communication between the user and the program via the command-line
* You can find this packadge here: http://www.universitetsforlaget.no/java/easyIO.zip
import easyIO.*;
/** Initialises the board */
class Oblig2
public static void main(String[] args)
/** If there is a argument in the command line (the filename to be used in this case),
* then send that argument with a new Board
if(args.length >= 0)
Board suduko = new Board(args[0]);
class Board
/** Constant (yeah, no final int) that defines the board dimensisions, if dimension is 6, then the board is 6 x 6 */
int dimension;
/** The quad dimensions */
int quadRow;
int quadCol;
Cell[][] cells;
Row[] row;
Col[] col;
Quad[] quad;
* Board contructor defines the boards properties
* @param filename comes from Oblig2.main()
Board(String filename)
/** In is a class of easyIO, inFile will contain the contents of the file */
In inFile = new In(filename);
dimension = inFile.inInt("\n"); System.out.print(dimension + "\n");
quadRow = inFile.inInt("\n"); System.out.print(quadRow + "\n");
quadCol = inFile.inInt("\n"); System.out.print(quadCol + "\n");
inFile.readLine();
/** Creates all the neccessary cell, row, cols and quad arrays */
cells = new Cell[dimension][dimension];
row = new Row[dimension];
col = new Col[dimension];
quad = new Quad[quadRow * quadCol];
/** Initializes all the rows */
for(int i = 0; i < row.length; i++)
row[i] = new Row(dimension);
/** Initializes all cols */
for(int i = 0; i < col.length; i++)
col[i] = new Col(dimension);
/** Initializes all quads */
for(int i = 0; i < quad.length; i++)
quad[i] = new Quad(quadRow, quadCol);
/** Initializes all cells and puts them in rows and cols */
for(int i = 0; i < cells.length; i++)
for(int j = 0; j < cells.length; j++)
cells[i][j] = new Cell();
row[i].addCell(cells[i][j]);
col[j].addCell(cells[i][j]);
cells[i][j].addRCpointer(row[i], col[j]);
for(int i = 0; i < (quadRow * quadCol)
for(int j = 0; i < cells.length; j++)
for(int k = 0; k < cells[k].length; k++
/** Reads the file until it reaches the end of the file */
while(!inFile.endOfFile())
/** Closes the filecontainer */
inFile.close();
class Row
/** Single col. array to contain cells in row */
Cell[] row;
* Assigns an array with length=rowVal
* @param is the same as dimension in Board-class
Row(int rowVal)
row = new Cell[rowVal];
/** Add cell to row
* If the cell is null, or empty, then it will set the cell[i] = cell,
* and return control back to the caller
void addCell(Cell cell)
for(int i = 0; i < row.length; i++)
if(row[i]==null)
row[i] = cell;
return;
* Checks if it's possible to stuff a number into the row,
* returns true if it's possible and false else
boolean tryNumeral(int cellVal)
for(int i = 0; i < row.length; i++)
if(row[i].getContains() == cellVal)
{ return false; }
return true;
class Col
/** Single col. array to contain cells in col.*/
Cell[] col;
* Assigns an array with length=colVal
* @param is the same as dimension in Board-class
Col(int colVal)
col = new Cell[colVal];
/** Add cell to col.
* If the cell is null, or empty, then it will set the cell[i] = cell,
* and return control back to the caller
void addCell(Cell cell)
for(int i = 0; i < col.length; i++)
if(col[i]==null)
col[i] = cell;
return;
* Checks if it's possible to stuff a number into the col,
* returns true if it's possible and false else
boolean tryNumeral(int cellVal)
for(int i = 0; i < col.length; i++)
if(col[i].getContains() == cellVal)
{ return false; }
return true;
class Quad
/** Single col. array to contain cells in quad*/
Cell[] quad;
/** Assigns an array with length=row*col to quad */
Quad(int row, int col)
quad = new Cell[row * col];
/** Add cell to quad
* If the cell is null, or empty, then it will set the cell[i] = cell,
* and return control back to the caller
void addCell(Cell cell)
for(int i = 0; i < quad.length; i++)
if(quad[i]==null)
quad[i] = cell;
return;
* Checks if it'possible to stuff a number into the quad.
* returns true if it's possible and false else.
boolean tryNumeral(int cellVal)
for(int i = 0; i < quad.length; i++)
if(quad[i].getContains() == cellVal)
{ return false; }
return true;
/** The lowest unit on a Suduko board */
class Cell
/** The number the box contains */
int contains;
/** Pointers to the row/col/quad it's located in */
Row cellRow;
Col cellCol;
Quad cellQuad;
/** Add pointers from Board-contructor R = Row, C = Col. */
void addRCpointer(Row row, Col col)
cellRow = row;
cellCol = col;
/** Checks if it's okay to place a number there */
void tryNumeral()
/** Get-method for the cells value */
int getContains()
return this.contains;nitinkajay wrote:
I want to know how to store the output of a analog to digital converter into an 2D labview array.
How exactly are you performing 'Analog to Digital'???
Grabbing image using camera OR performing data acquisition using DAQ card OR some other way????
I am not allergic to Kudos, in fact I love Kudos.
Make your LabVIEW experience more CONVENIENT. -
How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Well, if you know the format, you'd know that the file data starts after the first blank line (\r\n\r\n).
But why don't you just use Jakarta Commons File Upload or some other existing free package to handle multipart forms and save yourself the trouble. -
How to divide clip into separate shots?
When I capture a full tape, I always receive one clip (file). How to divide it into separate shots?
What format are you working in? What version of the software?
Maybe this will help
http://www.fcpbook.com/Video5.html -
How to change the price of a material in PO
Hi,
Please tell me how to change the price of a material while raising a PO,for example i am raising a PO and in conditions the price is 100 and i wanna update it to 110.Please help meHI,
If you are using condion record, you can change the value for the required condition type so that it will flow to PO. IF you are not using that, you can change the price at the line item level in PO itself.
Regards
Ram -
I dropped my iphone vertically on the ground.The screen works when it is locked.When unlocked, it's broken down from the clock.Can it be fixed and is it under warranty conditions?If not how much is the price to change the screen?Thanks
User damage is not covered by warranty unless you have Applecare +
assuming you do not, the out of warranty exchange price for an iPhone 4 is $149,exchange at an Apple Store genius bar
iPhone 4 are not repaired they are exchanged -
Instructions on how to track mm price movements
Instructions on how to track mm price movements
Hi
I think you will not find detailed instructions how to disassemble a Portege M800. All what you can download is the user manual and technical manuals are not for public, I think they are only available for ASPs.
Anyway, as far as I know you have to remove the keyboard holder and two screws they are securing the keyboard. Then you can remove it.
But to be honest I would recommend contacting a notebook technician for help. Notebook disassembling isnt easy, its a little bit tricky and you have to remove a lot of screws. So you are on the safely side because M800 is pretty new notebook. ;) -
How to maintain minimum price limit and maximum price limit for a condition
Hello Gurus,
Goodmorning,
How to set minimum price limit and maximum price limit for a pricing condition type where we will do this ?, is it possible to set in VK11 ?
Note- I can see minimum and maximum setting in condition type pricing - in SPRO but not seen anything in VK11 condition record maintaince . so how to maintain in condition record( VK11-Minimum limit price and Max limit price )
Looking for your inputs
Thanks in advance
Regards
Venkathi,
in VK12
select the condition record - goto blue ladder icon
there you can maintain scales
like lower limit and upper limit.
balajia -
How to divide the partitions in AIX 5L
Hi Guru's
Friends i am installing AIX 5L, How to divide the partitions in AIX5L
please tell me if anybody know.
ThanksWhat kind of partitions do you mean? Do you mean logical partitions?
Message was edited by:
Ivan Kartik
Maybe you are looking for
-
ERROR WHILE ACTIVATING THE DATASOURCE
Hi Experts, I'M WORKING ON BW3.0B.I'M GETTING ERROR WHILE ACTIVATING THE DATASOURCE 1. EVENT WITH ERRORS EXTRACT IN DATA SOURC 2LIS_11_VAHDR
-
How to populate values from ParentWindow to ChildWindow using ORACLE ADF
Hi, I have code something like, <af:commandButton text="Search" partialSubmit="true"> <af:clientListener method="openpopup" type="action"/> <af:clientAttribute name="popupId" value="confirmationDialog"/> </af:commandButton> <af:inputText id="input1"
-
please suggest me how to customise/configure commision agent in SAP.
-
Hi all, How to change a date value from "java.util.Date" to "java.sql.Date"? I m still confusing what's the difference between them..... thanks Regards, Kin
-
Performance DB vs Java Edition
Hi there, we've been investigating wether a (and when which) NoSQL-DB outperforms a standard SQL solution for our usecase: 500.000 records bulk insert 2k - 5k per record With 2 Indices Using Java API Multi OS: Linux, Windows, z/OS Berkeley DB perform