Adding two more fileds in the query
Hi All,
Here is my current working query.
SELECT
SUM(q1),SUM(q2),SUM(q3),SUM(q4)
FROM TEST
WHERE p_year = 2009
AND part = 'AA'
AND sup_code ='015'
GROUP BY p_year
*,part*
*,sup_code;*
From which i need modify the query to get the fields like serv1,serv2,serv3 and serv4 respectively.
If i modify like this
SELECT
SUM(q1),SUM(q2),SUM(q3),SUM(q4),serv1,serv2,serv3,serv4
FROM TEST
WHERE p_year = 2009
AND part = 'AA'
AND sup_code ='015'
GROUP BY p_year
,part
,sup_code
,serv1
,serv2
,serv3
,serv4;
It will filter the record based on the p_year,part,sup_code,serv1,serv2,serv3,serv4 which is wrong. It will filter the record only based on p_year,part and sup_code.
And also i tried this way
SELECT B.serv1,
B.serv2,
B.serv3,
B.serv4, A.q1,A.q2,A.q3,A.q4
FROM TEST B,
*( SELECT SUM(q1),*
SUM(q2),
SUM(q3),
SUM(q4)
FROM test
WHERE p_year = 2009
AND PART = 'AA'
AND sup_code = '015'
GROUP BY p_year,
PART,
sup_code; )A
WHERE p_year = 2009
AND PART = 'AA'
AND sup_code = '015'
But Its also not working.. Could any one help me how to modify the query?
Thanks in advance!
try this
select YR,
PART,
SUP_CODE,
SUM(Q1),
SUM(Q2),
SUM(Q3),
SUM(Q4),
SUM(SERV1),
SUM(SERV2),
SUM(SERV3),
SUM(SERV4)
from
select 2009 YR, 'BB'Part,10 Sup_code, 237 Q1, 90 Q2, 100 Q3 ,123 Q4, 100 SERV1, 100 SERV2, 245 SERV3, 985 SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 727 Q1, 727 Q2, 1853 Q3 ,1853 Q4, 204 SERV1, 292 SERV2, 392 SERV3, 392 SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 780 Q1, 780 Q2, 1458 Q3 ,1458 Q4, null SERV1, null SERV2, null SERV3, null SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 477 Q1, 477 Q2, 477 Q3 ,477 Q4, null SERV1, null SERV2, null SERV3, null SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 27 Q1, 27 Q2, 96 Q3 ,96 Q4, null SERV1, null SERV2, null SERV3, null SERV4 from dual
group by YR,
PART,
SUP_CODE
Similar Messages
-
Can We Add Some More Fileds To the Imported IDOC ??
Hi All,
Can We Add Some More Fileds To the Imported IDOC ??
If I Imported IDOC to IR. But I Want to Add Some More Fields To IDOC.
Then Can I Go For this Process ??? Is This is Correct ???
Please Correct Me If Iam Going Wrong
1) Open the Imported IDOC in IR
2) Export it as XSD File in to your Local Machine
3) Add Necessary Fields & Save it
4) Come to IR And Import it into external definition
Is this is the Correct way of Doing ???
If Not What is the Problem in Doing This ??
Regards
VamsiHello Vamsi,
That is NOT the correct way to play around with IDOCs.
the correct way is to create an enhancement to an exiting IDOC (this is done on the SAP R/3 side) after you craeted an enhancment you reimport the IDOC in XI from the R/3 and then you have a new structure with the new fields you need.
worst case scenario you can define a new IDOC type just with the fields you need.
you can check out the SAP library at http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
on how to do that.
Have a good one,
Uri Lifshitz. -
Adding two more ipods to one computer
My daughter and I currently have I pods. When I got mine I was told to make a new user on the computer for my library (don't dare want my music mixed in with hers). Having the two users has worked well. I recenly moved our itunes (and hopefully libraries too...another thread) over to an external hard drive with each of our names. My twins 16th birthday is Friday. I am considering getting them each a nano. My question is do I need two more users on the one computer? OR, can I set it up to have theirs on the external with their names?
I hope that makes sense to someone!
Thanks in advance!Each user account will maintain a separate library as you know. All users can use the same physical storage location. I recommend doing that, that way if one wants a song the other has all they have to do a use the add file or add folder option.
-
How to compare two amount colomns in the query ?
Hi,
I need to compare two amount colomns in the query and based on that i need to change the color of the colomn
Is it possible by using exceptions.if yes please tell me how to do it.
Regards
AnsariHi,
you can give this a try:
1) Create a formula keyfigure (Keyfigure A> Keyfigure B)* 1+(Keyfigure A< Keyfigure B)* 0, so here you get value as either 0 or 1,
2) Hide this Formula Keygiure for display in the report, and create a exception on this Formula keyfigure for its value 0 or 1 with the desired colors.
3) While defining the exception on the 3rd tab we get the option to specify the Columns for implication of this exception, their you can specify the desired 2 Keyfigures to be highlighted with the colors.
Hope this helps ..
Regards,
Umesh. -
I have a G4 1.42 dual that has two hard drives in the front of the machine already. I've just discovered (ok, so I'm a little slow) that I can add two more hard drives in the back of it. As I added larger capacity drives to the front (250 gig each), I took the original 120's and put them in external cases and just used them as USB drives.
However, I'd like to internalize those two drives now.
I was able to somehow figure it out then, regarding adding a second internal drive (slave/master) and it didn't seem to hard. I'm figuring this is a similar deal, just knowing how to set some kind of jumpers or whatever.
Truth is, though, I'm not for certain how this would work. I'm guessing that I can "chain" in the remaining two HD's as slaves? I took the two externals out of their temporary case and can see the jumper sets, the power cable, and so forth.
What do I need to understand before I just "plug" them into the computer's remaining two bays and fire it up? Any jumper settings? Power limitations?
Is there some kind of setting I have to activate in OS X to make sure it can 'see' them or whatever?
I've just looked over the ribbon cables. I notice there is one slot marked ATA-33 that has a ribbon cable coming from it, sliding kind of underneath and around, appearing to go to the DVD burner. I'm guessing that would be the typical config (without me having to unscrew and chase down the ribbon)?
Sitting just on top of that, is two obvious power plugs plus one unused ribbon cable. The ribbon is sitting, unconnected, with one blue end (to motherboard I would presume) and then two dark grey connectors on the other end of the ribbon cable. Looks like they built it ready to hold more drives.
On the motherboard, just above the ATA 33 slot is an ATA 66 unused slot. Would the HD's that I want to connect simply use the cable to go into 66 slot using the supplied ribbon cables, or would I need to somehow chain them into the 33 slot?
Thanks
Thanks
Message was edited by: TexasMan_Luvs_Hismac
Message was edited by: TexasMan_Luvs_HismacHi-
Easy stuff...
Put the two drives in the second carrier, both jumpered Cable Select.
Connect the power to each, and using the ribbon with two free connectors, connect both drives, and then plug that into the ATA/66 connector on the motherboard.
The machine should recognize both disks. In the event that they don't show, initially, check your work, and then reset the PRAM, holding CommandOption+PR while booting, release after the second startup chime. -
HI Experts,
Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
Please note below :
Selection criteria is: 1) controlling area
2) Fiscal Year
3) From date and To date
4) Plan Version
5) Order Group.
My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
Out Put fields to Pop up
1) Orders.
2) Budget
3) Actual
4) commitment
5) Alloted
6) Available
These are two additional column
7)Purchase order
8) Delivery date.
Require your help to know which all tables are included to extract above out put fields please help me.
Thanks in Advance.
Regards,
SudeshHi Preeti,
Thanks for reply, can you please let me know is there any other way to show the output fields.
As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
Also one more question,what is the commitment table which is popping up in this, please advise.
Thanks in advance.
Regards,
Sudesh -
Return value from database function taking a lot more time than the query
Hi guys,
I have a Query that does a call to a database function. The function takes in a few parameters and returns a Date. Now, the query within the function takes barely .05 seconds. However, doing a select get_join_dates from dual is taking almost 6 seconds for each call.
Here is the Query:
select s.student_id, s.student_name, s.organization_code
from student s
where s.student_id = :p_student_id
and s.student_enrollment_date = get_join_dates( :p_year,
:p_month,
:p_student_id,
s.organization_code );And here is the database function. The select inside this function barely takes 0.05 seconds per call. This function gets called 3 times in my case as there are 3 records in the org_body table for this student.
create or replace function
get_join_dates( p_yyyy in org_body.fiscal_yyyy%type,
p_month in org_body.fiscal_mm%type,
p_student_id in student.student_id%type,
p_organization_code in org_body.organization_code%type) return date as
t_enrollment_date date;
cursor cur_latest_enrollment_date is
select max(enrollment_date)
from org_body
where fiscal_yyyy = p_yyyy
and fiscal_mm = p_month
and student_id = p_student_id
and organization_code = p_organization_code;
BEGIN
open cur_latest_enrollment_date ;
fetch cur_latest_enrollment_date into t_enrollment_date;
close cur_latest_enrollment_date ;
return t_enrollment_date;
exception
when others then
null;
end;owever, when I run the following statement below, it takes close to 6 seconds to retrieve a record. In turn, my Query is becoming really slow and taking almost 35 seconds. Imagine that with more records.
select get_join_dates( 2010, '01', '2167543', 'PSYCH01' ) from dual;If I run my query with this condition below, it takes 0.5 seconds.
select s.student_id, s.student_name, s.organization_code
from student s
where s.student_id = :p_student_id
and s.student_enrollment_date = '01-JAN-10'Any ideas would be greatly appreciated.Any reason why you are doing this with the stored function?
You could just do this with SQL. Embed the query in the function as a subquery in your initial query from STUDENT.
select s.student_id, s.student_name, s.organization_code
from student s
where s.student_id = :p_student_id
and s.student_enrollment_date =
(select max(enrollment_date)
from org_body
where fiscal_yyyy = :p_year
and fiscal_mm = :p_month
and student_id = s.student_id
and organization_code = s.organization_code);Why your function is not performing: I cannot say that with the information you have provided.
Maybe sqltrace a call and see what the reason is. -
Adding two more Star Trails in movie clip
Hi All,
I bought a flash file the other day which i plan to modify and use for an intro to a project i am working on. Currently there is one instance of a Star which follows a path and emits "sparkles" while tracing the path. I would like to add two more stars/ paths. I tried modifying some of the code, and am working through it, but wanted to know if anyone could help me out a bit.
thanks!
Patrick
import flash.filters.*;
//--------------variables to change--------------------------//
//modify the size of the sparkles
var maxSparkSize:Number = 25;
var minSparkSize:Number = 8;
//set the speed the sparkles fade, 0 is never fade,the higher number quicker the fade
var fadeSpeed:Number = 1//5;
//speed which the sparkles fall, 0 is no fall, the higher the number the quicker the fall
var fallSpeed:Number = 0.5;
//the speed which the particles drift sideways. 0 gives no drift, positive numbers give right drift
// negative numbers give left drift
var windSpeed:Number = 0;
//change the colour
var randomColour:Boolean = true;
defaultColour = 0xFFcc00;
// the path to the followe_mc
path = this.holder_mc.follower_mc;
path = this.holder2_mc.follower2_mc;
//you do not need to modify the code below here...
var sparkle:Number = 0;
var mousePosX:Number;
var mousePosY:Number;
var whichBat:Number;
var count:Number = 0;
this.createEmptyMovieClip("empty",this.getNextHighestDepth());
//make the shape on top of the sparkles
path.shape_mc.swapDepths(1000);
startSparkles();
function startSparkles() {
this.onEnterFrame = function() {
var pathX:Number = path._x;
var pathY:Number = path._y;
xPos = randRange(pathX-2, pathX+2);
yPos = randRange(pathY-2, pathY+2);
createSparkle(xPos,yPos);
function createSparkle(xPos, yPos) {
movingSparkle = this.attachMovie("colouredSparkle", "s_"+sparkle, sparkle+10);
movingSparkle2 = this.attachMovie("colouredSparkle", "ss_"+sparkle, sparkle+101);
sparkle++;
if(sparkle>100){
sparkle = 0;
setParams(movingSparkle);
setParams(movingSparkle2);
function setParams(movingSparkle){
//position the sparkle
movingSparkle._x = xPos;
movingSparkle._y = yPos;
//set initial size
movingSparkle._xscale = movingSparkle._yscale=Math.random()*maxSparkSize+minSparkSize;
movingSparkle._rotation = randRange(0, 360);
if (randomColour == true) {
col = Math.round(Math.random()*0xFFFFFF);
} else {
col = defaultColour;
colouredFill = new Color(movingSparkle.colour_mc);
colouredFill.setRGB(col);
colouredFill = new Color(movingSparkle.white_mc);
colouredFill.setRGB(col);
moveSparkle(movingSparkle);
function moveSparkle(movingSparkle) {
var rot = randRange(-15, 15);
var blurX = randRange(1, 5);
var blurY = blurX;
var blurFilter = new BlurFilter(blurX, blurY, 3);
//add some blur to the sparkle to make it softer
movingSparkle.white_mc.filters = [blurFilter];
//calculate the amount the sparkle will fade
var alphaDrop = randRange(1, fadeSpeed);
//commit the movements...
//this onEnterFrame moves the spark, rotates it, scales it and fades it.
movingSparkle.onEnterFrame = function() {
//change speed
this._y += fallSpeed;
this._x += windSpeed;
//change rotation
this._rotation = this._rotation+rot;
//make it smaller
this._xscale = this._yscale=this._xscale*0.98;
//fade the sparkle
this._alpha = this._alpha-alphaDrop;
//remove the movieclip if it get tiny
if (this._alpha<10) {
this.removeMovieClip();
if (this._height<4) {
this.removeMovieClip();
function setColour(mc, col) {
colourIt = new Color(mc);
colourIt.setRGB(col);
function randRange(min:Number, max:Number):Number {
var randomNum:Number = (Math.random()*(max-min))+min;
return randomNum;1 ) Increase the FrameRate (or)
2 ) Call the createSparkle(xPos,yPos); function more than once with new randRange -
Adding two characters to all the element of workflow container
Hi All,
I want to prefix two character to all the elements of a particular "multiline" workflow container.
How can i do this?
Please help me in this regard.
Thanks,
Riteshyou will have to use a custom method as step and pass the multiline attribute and loop at it, add and modify the multiline variable of the container. No other way possible, within workflow builder.
regards,
Sandeep Josyula
*Mark if helpful -
Adding one more field to the Base line price screen (MEk3)?
Hi,
Now we are entering the base line price for each material.
My requirement is
1) Ability to enter in baseline prices by part by supplier.
If no supplier is entered then the baseline value applies to all suppliers. If a price needs to be recorded specific to a supplier, then the supplier code must be entered. Thus, a part may have two entries (one for all suppliers, and one or more for each unique supplier that needs to be recorded).
How to proceed for this requirement..how to start ...please help me..is this config change or code change..or it is related to custom or standrard change?
please help..Hello,
You can define access sequence (SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process) for the condition type to look at Vendor/Material level and Material level in the sequence. Please make the access Exclusive so that no further search is carried out once a condition record for Vendor/Material level is found.
Thanks,
Venu -
I use Final Cut Pro 7 right now and am thinking about buying the new 27" iMac with the NVIDIA GeForce GTX 780M 4GB GDDR5 card. I have a 24" Apple Cinema Display with mini Display port cable. I also have one more Samsung display with DVI & HDMI. Can I connect both monitors to the iMac and be able to use one in FCP as a display monitor?
Hello,
Maybe a device like the Targus USB 3.0 SuperSpeed Dual Video Adapter or StarTech USB 3.0 to HDMI an DVI Dual Monitor External Video Card Adapter would work?
Regards,
Aryeh Goretsky
I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
Deutsche Community Comunidad en Español Русскоязычное Сообщество -
Adding one more table to the select statement joining 4 tables gives dump
Hi All,
There is a select statement using which four tables namely VBAK,VBAP,LIPS and LIKPUK(view) are joined(inner join).Here, date and time fields are selected from LIPS and used.
My requirement is to consider the Date (LIKP - WADAT_IST) instead of LIPS-ERDAT and time(LIKP-SPE_WAUHR_IST) is to be used instead of LIPS-erzet.
Neither LIPS nor LIKPUK contains time(SPE_WAUHR_IST) field. And, I cannot remove LIPS table or LIKPUK view as each contains a unique field which is used in the report.
When I tried to join LIPS in the select query, it is going to dump.
Can someone suggest a good approach ?
Thanks,
PavanThank you for the detailed explanation of the dump.
The dump details together with your code lead to the answer: 42.
Regards,
Clemens -
Two more options in the paragraph styles panel
I would like two options in the paragraph styles panel.
1.
The posibility to set the 'Sort by name' option as a default or persistent
2.
The ability to label the styles with colorsLet me second the motion for a persistent "Sort by name" option for the Paragraph Styles panel.
In addition, somebody at Abobe "improved" the Paragraph style "Basic Character Formats" menu for CS6 by sabotaging the natural progression of tabbing directly from setting the *Font Size* to setting the *Leading* amount. Why would anyone at Adobe think that going from *font size* to *kerning* is an improvement for design professionals? -
Adding Two more Wireless bridges - Etherchannel
Two facilites are connected via wireless bridge(AIR-BR1410A-E-K9).
we wanted to add wireless bridge at each facility to increase the bandwidth.
So we will have two wireless bridge at each facility connected wirelessly.
and we wanted to achieve it by doing some kind of etherchannel in the switches at each location... will it work ? please advise.
Thanks
SriHi ,
Here is the plan…
• Top left bridge will be Root Bridge for VLAN3 and only vlan 3 traffic is traversed.
• Bottom left bridge will be Root Bridge for VLAN 10 and only vlan 10 traffic is traversed.
• If any one of the bridge/link goes down, traffic will be diverted to other link automatically.
• By doing this we can use both of the links effectively.
Configuration is attached.. please let us know your ideas/// (Or would it work)?
Target device: Wireless Bridge 1
vlan 3 - Root Bridge
Vlan 123- non-root bridge
interface Dot11Radio0.3
encapsulation dot1Q 3
no ip route-cache
bridge-group 3
no bridge-group 3 spanning-disabled
bridge 3 protocol ieee
interface Dot11Radio0.123
encapsulation dot1Q 123
no ip route-cache
bridge-group 123
no bridge-group 123 spanning-disabled
bridge 123 protocol ieee
interface FastEthernet0.3
bridge-group 3
no bridge-group 3 spanning-disabled
bridge 3 protocol ieee
interface FastEthernet0.123
bridge-group 123
no bridge-group 123 spanning-disabled
bridge 123 protocol ieee
bridge 3 route ip
bridge 3 protocol ieee
bridge 3 priority 9000
bridge 123 protocol ieee
bridge 123 priority 10000
Target device : Wireless Bridge 2
vlan 3 - Non-Root Bridge
Vlan 123- Root bridge
bridge 3 route ip
bridge 3 protocol ieee
bridge 3 priority 10000
bridge 123 protocol ieee
bridge 123 priority 9000 -
Adding one more field to the VL06O report
Hi everybody
When u execute the TR code VL06O a screen will appear from that screen select list outbound deliveries and then provide some date and execute.
The output will come having fields delivery,ship-to-party,name of ship-to-party like that 7 fields are there and now i want to see one more field called shipment number in the output along with the previuos 7 fields.
what should i do it is a standard program?
please guide me?Hello.
See note 128150 to more details.
There are user exists to add new fields (user fields).
Regards.
Maybe you are looking for
-
How to extend No. of columns for PIVOT table in BI Publisher Desktop
Hello Everyone, I am using the Oracle BI Publisher Desktop to design the TEMPLATE for Oracle Reports. I need to create the PIVOT table .In my PIVOT table I need to display 9 columns but when I tried to create PIVOT table by dragging 9 columns only
-
Zen Micro Headphone Jack problems-are the new ones
Gonna buy a Zen Micro Photo 8GB player-had one of the 5gb ones a year and a half ago and the headphone jack went on that-have the problems with the headphone jack been sorted out in the new ones?
-
Problem invoking XI webservice through webdynpro
We have created a webservice on XI that calls the BAPI_COMPANYCODE_GETLIST on an R/3 4.6C system. We generated the WSDL using the Integration builder and corrected the URL to point to the webservice (rather than the wizard proposed URL). We can call
-
Please help this newbie - Link to a Tabbed widget
I have 4 Categories/links on the main splash page which I need to link to a widget on a separate page. I need each link to go to the appropriate tab on the widget. Is this something that is possible? I have used the anchor/place gun on each tab an
-
Google toolbar buttons (other then print) are not visible after installing Firefox 4 for Mac.