RA01 is based on sum of inactive cond (PB00) and active cond (PBXX). Why?
When I enter condition type PBXX in a purchase order position PB00 becomes inactive. So far no problem. However, when I add condition type RA01 the base value for this condition is the sum of PB00 and PBXX.
Why are inactive conditions being taken into account in the calculation of the condition base value of RA01? And what's the best way to resolve this?
Kind regards, Eric
PBXX and PB00 are Mutually exclusive of each other... i.e. at one time only one will be active (depending on whether u enter the price manually or it defaults from ref documents like info record. contract etc) .
So this is not really a "Problem" , RA01 will use only the active one a s base.
Similar Messages
-
Sum of all line items and display at the bottom of the page
Hi ABAPers,
I am displaying line items in the main window based on PO number ....and I've a coloumn Total amount.
My requirement is after the line items , the grand total which is the sum of all line items has to be displayed.
Is this possible. If so, can anybosy help me in that.
thanks in advanceHi ,
It is possible.
For that u have to do following
take one variable of same type on which you want to calculate total ... declare in global variable
double click in the table goto the calculation tab in that give the variable on which u want to calculate total
print in the total in the footer of the table ..
Hope you resolve your problem
Let me know any concerns...... -
Post Author: tadj188#
CA Forum: Formula
Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
Background:
1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using subreports. A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report with their respective detail lines). I had multiple subreports and each subreport became one union.
Created and tested, already:
1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
Issue:
1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
Other Ideas Appreciated:
1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
Thank you.
Tadjexport all image of each page try like this
var myDoc = app.activeDocument;
var myFolder = myDoc.filePath;
var myImage = myDoc.allGraphics;
for (var i=0; myImage.length>i; i++){
app.select(myImage[i]);
var MyImageNmae = myImage[i].itemLink.name;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
alert(myImage[i].itemLink.name) -
Apple_ID_card_declined_for_this_country
How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
Last week I was on holiday in HK,
and
from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
for my Singapore Apple ID account ,
while working here in Vietnam???Unfortunately, this is a problem that is driven by the DRM Dictatorship. Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland. The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them. Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland. For the most part, you are not allowed to leave home if you want access to your favorite entertainment! -
Is it possible to run a mac on a windows based server? We have a server based on Windows 7 in our school, and our techies are reluctant to let me buy a mac as they say macs can only read a number of folders deep, which would preclude me from accessing shared folders on our servers. Is this true, and is there a way round this? I would eventually like to get a suite of macs, but because all our resources are on the server, I have to be able to access them.
Thanks for any help,
MikeI have found that both Linux and Mac (unix) are capable of reading "deep" folders while win 32 will have issues, your it people are clearly wrong. I run a network with both win/mac. And as long as the win servers/pc's that have shares are set to allow apple file sharing in their folder properties. And the macs are set to allow smb there should absolutely no trouble with you accessing anything across the platforms, heck, from a Mac to a win pc on some occasions you don't even need to include a "domain" name to log on to, and you can create aliases and make your own shortcuts etc... So you don't have to manually connect each time you boot up etc... But that's all personal preferences I suppose.
All I can tell you is that, I do it on a daily basis managing a small business. So your answer is yes you can. -
Can I transfer pics from my inactive i4s to my active i4s?
Can I transfer pics from my inactive i4s to my active i4s?
sharing its not possible i also tried same as u r tryng its not help me out
-
What are the differences between inactive and active ABAP objects?
Can anybody tell me what are the differences between inactive and active ABAP objects?
In my opinion, an active object is compiled and system wide available, that means the system do not have to compile the program again before run or use the object. While An inactive object is not system wide available and every time you run an inactive object, firstly the abap runtime will have to generate a tempory runtime object and this inactive object can not seen by others.
Am I right? Can anybody kindly tell me other differences?Hi,
"When it is inactive, it is like it would not exist at all:" no - it's like it only exists to you
"If we just saved that one means it is stored in application server not in database": no - the inactive version is also stored in the database. You can log off and log on and it will still be there, in its inactive status.
"Only active objects can be executed.": no - inactive objects can be executed by you
When you create or modify a program, it is inactive until you activate it.
With a change, there are two versions of the program stored in the database - the active version (as it was before you made your change), and the inactive version. If you attempt to run the program, you'll run the inactive version - the one with your changes. Everyone else on the system will run the active version.
In this way, you can make changes without affecting anyone else.
Once you activate your program, then the inactive version becomes the active version.
With a create, there is no active version, until you hit the activate button. This means ONLY you can run the program.
An additional benefit of this model, is that if you make a change, save it, and then change your mind without activating, you can recover the active version into the editor, using version management.
A downside is that sometimes you have to activate your change before you can test it, if it interacts with other, active, programs.
Regards,
Kumar -
hey somebody help!!! in icloud control panel > photos, the checkbox on the left and the options tab ont the right they r both inactive....Anybody any idea why??
hey somebody help!!! in icloud control panel > photos, the checkbox on the left and the options tab ont the right they r both inactive....Anybody any idea why??
-
How to sum all bytes in array and remove carry/overflow ?
Hi.. everybody !!
I want to make bitwise operation in Labview. By the way,sum all bytes in array and remove the carry/overflow.
Anybody has an idea about that ?
ThanksIf your array is an array of U8 type numerics, then all you have to do is sum the elements. This will return a U8. No carries. Sounds like what you're looking for.
Rob -
my mom somehow ended up with two totally different iTunes accounts, based on an old (dead) email address and a newer one as well. She's bought a lot of music on both accounts over time... is there some way to merge the old account into her newer one?
No. If one of those accounts is inaccessible, click here and request assistance.
(82012) -
Sum of the items issued and items received
Sir,
if i want to get all the sum of the items issued and items received wrt mblnr and matnr, what shd i do??
thanks
ArunHi
Look at this code .It retrieves the sum of LABST field for all line lineitems for a given material No in MARD table.
TYPES : BEGIN OF Type_Mard,
W_MATNR TYPE MARD-MATNR,
W_LABST TYPE MARD-LABST,
END OF Type_MARD.
data : ITAB_MARD TYPE TABLE OF Type_MARD,
wa_MARD TYPE Type_MARD.
SELECT MATNR
SUM( LABST) INTO TABLE ITAB_MARD
FROM MARD WHERE MATNR = p_MATNR " parameters
AND WERKS = P_RESWK .
Hope youll get an idea
Thanks
Viquar Iqbal -
Group by based on sum of a column
dear all
i have a scenario that I think can't be achieved using SQL alone.
I need to group by a column while sum of another column is > 25. here is some sample data, (assuming it is sorted descending by another date field)
REGO S_NUM HRS QTY
==== ===== === ===
VHXB S1 9 15
VHXB S1 10 10
VHXB S1 7 25
VHXB S1 15 9
VHXB S1 18 18
VHXB S1 10 6
VHXB S1 12 24
VHXA S1 12 15
VHXA S1 18 10
VHXA S1 7 25
VHXA S1 12 9
VHXA S1 18 18
VHXA S1 11 6
VHXA S1 12 24
The above data should be grouped by REGO, S_NUM and the result should look like below,
VHXB S1 26 50 (first 3 rows since the sum(HRS is greater than 25))
VHXB S1 32 27 (next 2 rows)
VHXA S1 30 25
VHXA S1 37 52
any ideas how to write a pl/sql code for this ?
Thanks
Suresh NarasimhaHi, Suresh,
Welcome to the forum!
user10742238 wrote:
dear all
i have a scenario that I think can't be achieved using SQL alone.Sure you can do that in pure SQL. Below is a solution using CONNECT BY. Another approach involves MODEL, and yet another uses a recursive WITH clause (new in Oracle 11.2).
I need to group by a column while sum of another column is > 25. here is some sample data, (assuming it is sorted descending by another date field)Which column has to add up to more that 25? It looks like hrs, but don't make people guess.
REGO S_NUM HRS QTY
==== ===== === ===
VHXB S1 9 15
VHXB S1 10 10
VHXB S1 7 25
VHXB S1 15 9
VHXB S1 18 18
VHXB S1 10 6
VHXB S1 12 24
VHXA S1 12 15
VHXA S1 18 10
VHXA S1 7 25
VHXA S1 12 9
VHXA S1 18 18
VHXA S1 11 6
VHXA S1 12 24
The above data should be grouped by REGO, S_NUM and the result should look like below,
VHXB S1 26 50 (first 3 rows since the sum(HRS is greater than 25))
VHXB S1 32 27 (next 2 rows)Did you mean 33, not 32?
VHXA S1 30 25
VHXA S1 37 52So, if there's a group at the end of any rego/s_num section, and it totals 25 or less, you want to ignore that last group. Right?
any ideas how to write a pl/sql code for this ?The previous answer is right. Whevenver you have a problem, post CREATE TABLE and INSERT statements for your sample data (relevant columns only: in this case, the DATE column that determines the order is relevant) and the results you want from that data, formatted, within \ tags.
Explain how you get those results from that data.
If you can show the problem using commonly available tables (such as those in the scott or hr schemas) then you don't need to post any sample data; just the results and the explanation.
Your problem is very similar to the following problem, based on the scott.emp table. The following query:SELECT deptno, ename, sal, comm
FROM scott.emp
ORDER BY deptno, ename
produces this output:` DEPTNO ENAME SAL COMM
10 CLARK 2450
10 KING 5000
10 MILLER 1300
20 ADAMS 1100
20 FORD 3000
20 JONES 2975
20 SCOTT 3000
20 SMITH 800
30 ALLEN 1600 300
30 BLAKE 2850
30 JAMES 950
30 MARTIN 1250 1400
30 TURNER 1500 0
30 WARD 1250 500
Now say we want to group consecutive rows (where "consecutive" means in order by ename, which we'll assume is unique within each deptno) such that each group has a total sal of over 3000. That is, we want these results:` DEPTNO ENAME TOTAL_SAL TOTAL_COMM
10 CLARK 7450
20 ADAMS 4100
20 JONES 5975
30 ALLEN 4450 300
30 JAMES 3700 1400
Here's one way to get those results:WITH got_analytics AS
SELECT deptno, ename, sal, comm
, ROW_NUMBER () OVER ( PARTITION BY deptno
ORDER BY ename
) AS r_num
, SUM (sal) OVER ( PARTITION BY deptno
ORDER BY ename
) AS running_sal
FROM scott.emp
, got_grps AS
SELECT l.deptno
, l.ename
, l.r_num
, SUM (h.sal) AS total_sal
, SUM (h.comm) AS total_comm
, COUNT (*) AS cnt
FROM got_analytics l
JOIN got_analytics h ON h.deptno = l.deptno
AND h.running_sal BETWEEN l.running_sal
AND l.running_sal + 3000
+ h.sal
- l.sal
GROUP BY l.deptno
, l.ename
, l.r_num
SELECT deptno, ename, total_sal, total_comm
FROM got_grps
WHERE total_sal > 3000
START WITH r_num = 1
CONNECT BY r_num = PRIOR r_num + PRIOR cnt
AND deptno = PRIOR deptno
ORDER BY deptno, ename
Briefly, how it works is that the sub-query got_grps calculates, for each row, what the totals would be if a group started with that row. For example, in deptno=10, we know a group will start with CLARK, because taht's the first row, but we won't know if another group will begin with KING or MILLER. Got_grps assumes there will be such a group, and counts the number of rows in the group. Then, in the main query, we use that count to find where the second (and later) groups actually do begin.
Always say which version of Oracle you're using. The query above works should work in Oracle 9.1 (and higher); I tested it using version 10.2.0.1.0. -
Update column based on sum of data from another table
Hi We had two tables.
Table 1: matusetrans
ITEMNUM Location Quantity transdate
AM1324 AM1 2 12-4-12
AM1324 AM1 2 15-5-12
AM1324 AM1 3 10-6-12
AM1324 AM1 4 5-1-13
AM1324 AM1 2 13-3-13
AM1324 AM2 3 2-5-12
AM1324 AM2 2 12-7-12
AM1324 AM2 1 13-2-13
Table 2: Inventory
ITEMNUM STORELOC lastyear currentyear
AM1324 AM1 need sum(quantity) here need sum(quantity)
AM1324 AM2 need sum(quantity) here need sum(quantity)
We have to update the last year and current year columns with sum of quantities for each item from matusetrans table based on date at different location in Inventory table.
we had nearly 13,000 records(itemnum's with different location) in inventory table in DB we have to update entire records.
Any help...How to write an sql queries to update lastyear and currentyear columns with sum of quantities based on itemnum and location in Inventory table
Thanks
Edit/Delete MessageTry this
SQL> select * from matusetrans;
ITEMNU LOC QUANTITY TRANSDATE
AM1324 AM1 2 12-APR-12
AM1324 AM1 2 15-MAY-12
AM1324 AM1 3 10-JUN-12
AM1324 AM1 4 05-JAN-13
AM1324 AM1 2 13-MAR-13
AM1324 AM2 3 02-MAY-12
AM1324 AM2 2 12-JUL-12
AM1324 AM2 1 13-FEB-13
8 rows selected.
SQL> select * from inventory;
ITEMNU STO LASTYEAR CURRENTYEAR
AM1324 AM1 0 0
AM1324 AM2 0 0
SQL> merge into inventory i
2 using (
3 select itemnum
4 , location
5 , sum(decode(extract(year from transdate), extract(year from sysdate), quantity)) currentyear
6 , sum(decode(extract(year from transdate), extract(year from add_months(sysdate, -12)), quantity)) lastyear
7 from matusetrans
8 group
9 by itemnum
10 , location
11 ) t
12 on (
13 i.itemnum = t.itemnum and
14 i.storeloc = t.location
15 )
16 when matched then
17 update set i.lastyear = t.lastyear
18 , i.currentyear = t.currentyear
19 /
2 rows merged.
SQL> select * from inventory;
ITEMNU STO LASTYEAR CURRENTYEAR
AM1324 AM1 7 6
AM1324 AM2 5 1
SQL> -
Best way to select from 2 tables, based on sum from detail table
I have a "customer order line detail" table from which I want to report
Order Number
Customer Number
Part Number
Line Value { which is Unit Qty * (Unit price - discount%) }
But only for orders which are above £1500.
And lines which are not "Cancelled"
I have access to an API which returns the total order value for the order.
I am currently using this in my criteria, eg:
select order_no, customer_no, part_no, round(unit_qty *(unit_price - unit_price *(discount/100)),2) Line_value
from customer_detail
where
status != 'Cancelled'
and
Customer_Order_API.Get_Total_Sale_Price__(order_no)>=1500
The API contains the following:
SELECT SUM(ROUND((qty * price_conv_factor * unit_price), rounding_) -
ROUND((qty * price_conv_factor * unit_price) -
((qty * price_conv_factor * unit_price) * ((1 - discount / 100) * (1 - order_discount / 100))), 2))
FROM customer_detail
WHERE order_no = order_no_
AND state != 'Cancelled'
AND line_item_no <= 0
(that uses a price conversion factor that I don't use, since it's always 1)
My query runs so slowly, because it is getting the order value for every line of the order, is it possible to improve?
ThanksThanks for the suggestion, it was close to what I needed.
I ended up with this:
select order_no, name, ref_id, c_salesman_sub_division, line_value, catalog_desc
from
(SELECT coj.customer_no, coj.order_no, ifsapp.customer_info_api.GET_NAME(customer_no) name, coj.ref_id,
coj.c_salesman_sub_division, ROUND((coj.buy_qty_due * coj.
price_conv_factor) * coj.sale_unit_price, 2) - ROUND((coj.buy_qty_due *
coj.price_conv_factor) * coj.sale_unit_price - ((coj.buy_qty_due * coj.
price_conv_factor) * coj.sale_unit_price) * ((1 - coj.discount / 100) *
(1 - coj.order_discount / 100)), 2) line_value, coj.catalog_desc,
SUM( ROUND((coj.buy_qty_due * coj.
price_conv_factor) * coj.sale_unit_price, 2) - ROUND((coj.buy_qty_due *
coj.price_conv_factor) * coj.sale_unit_price - ((coj.buy_qty_due * coj.
price_conv_factor) * coj.sale_unit_price) * ((1 - coj.discount / 100) *
(1 - coj.order_discount / 100)), 2)) OVER (PARTITION BY Coj.ORDER_NO) AS SUM_ORDER
FROM ifsapp.customer_order_join coj
WHERE coj.order_no = coj.order_no
AND TRUNC(coj.date_entered) = NVL(TO_DATE('25/01/2007', 'DD/MM/YYYY'),
TRUNC(SYSDATE))
AND coj.authorize_code = 'UKMEDM'
AND coj.line_item_no >= 0
AND coj.ref_id <> 'SAMP'
AND coj.state <> 'Cancelled'
where sum_order >=1500
ORDER BY ref_id, c_salesman_sub_division, customer_no, order_no
/[pre]
But I have realised the problem with this. Not sure if I made it clear, to myself even, but I need to include
order lines added on a particular day (that are not cancelled)
for orders which total >= £1500.
If one line of an order is added for £900 but the rest of the order is £2000 then that line should be shown.
My SQL only shows lines added for the day >= 1500. -
Using a sum formula with a data and text row?
In 9.3.1 Financial reporting.
One row is retrieving values from essbase connection and is a data row
the second row is a fixed amount (390K) and was entered as a text row.
The third row is the formula row that sums up row 1 and row 2
However the total shows only the value of the data row (row 1)
I read the doc and it doesn't say you cannot do a formula between data and text rows but it doesn't see to work. Anyone get by this without having to create a dimension to dump a fixed number in to report off of?
JTSYou are right on.. A text row by definition and functionality is to be considered as a text, and not as a number [Even though the text can be number based].
Did you try something like this?
sum(row[41],390)
As you referred, you can always add a member in essbase DB
Cheers
RS
Maybe you are looking for
-
Any advice on creating standard email responses
I have been trying to figure a way to create standard email response templates for FAQ incoming emails. I have tried using signatures to do this but my email formatting is all FUBARed if I try to change anything. I am just using standard email with
-
How to save a waveform from TDS3000 series oscillosco​pe to PC via GPIB?
Hi, I'm a summer intern and I've been recently assigned the task to transfer a telecom pulse mask waveform from a TDS3054 to the PC via GPIB. My question is, is there anyway that I can save the waveform on the scope and transfer the file onto my PC?
-
Ridiculously slow movie download
8 hours? I posted this question previously and it has been archived, so here goes again. I don't have Roadrunner. I can't get the 8 version of ITunes to download. Always some kind of error. My antivirus is not a problem because I have been able to do
-
SSD ON CORE2DUO , WORTH IT ?
I have a MacBook pro 13 , 2010 model running core2duo that has 4gb ram. It takes me more than a minute to boot up. So I want to ask will ssd and core2duo make it faster in every aspect or intel core i5 is necessary. Is core2duo enough or I have to sh
-
Porque falla el 3G desde que actualize mi software a mi iphone 4s?
Porque falla el 3G desde que actualize mi software a mi iphone 4s?