Need to find out the Cost center for one location, one cost center
/* Formatted on 2015/02/27 08:34:29 AM (QP5 v5.215.12089.38647) */
SELECT DISTINCT cost_centre
-- INTO l_cost_center
FROM ( SELECT DISTINCT --pap.name position,
haou.organization_id org_id,
haou.LOCATION_ID,
pcak.concatenated_segments cost_centre
FROM -- per_all_positions pap
per_all_assignments_f pasf,
hr_all_organization_units haou,
pay_cost_allocation_keyflex pcak,
HR_LOCATIONS_ALL_TL l
WHERE pasf.organization_id = haou.organization_id
AND haou.cost_allocation_keyflex_id =
pcak.cost_allocation_keyflex_id
-- AND pasf.position_id=pap.position_id
-- and pap.primary_position_flag = 'Y'
-- AND haou.business_group_id=101
AND pasf.LOCATION_ID = l.LOCATION_ID
and l.language='US'
-- and l.organization_id=haou.organization_id
GROUP BY haou.organization_id,
haou.LOCATION_ID,
pcak.concatenated_segments --pcak.segment2
) Pos_cc
WHERE pos_cc.location_id =
(SELECT DISTINCT location_id
FROM hr_locations_all
WHERE location_code = 'Pinelands' --i.branch_name
AND ROWNUM = 1)
Please help me with this query, I am new to HRMS modules. Need to understand that why for one location it is coming multiple cost center.
Please help me understand this. I need to pass one value in INTO of this query.
Thanks,
Syed Hasan
Cost centre is stored at the Organization level.
And many Organizations can have the same location, so for a location you can have different cost code combinations.
If you need just one segment(location segment), then it could be unique.
So , instead of pcak.concatenated_segments cost_centre use pcak.segmentX (X could be 1,2,3 etc based on your flexfield definition)
Similar Messages
-
How to find out the logout details for a perticular user .
Hi,
I have an requirement to write a report which will run for hourly basis. using this program i need to find out the logon & logout details so that i can calculate the total productive hour for a perticular user. using table usr41 i can find out the logon detail. but i need to know the logout detail also to calculate the productive hour.
pls suggest.Hi,
Check these below threads:
user log in & log out time SAO
How to find user log-out time ?
Regards,
Nitin -
10 laksh records and need to find out the top5 salary
Hi,
I have emp table with 10 laksh records and need to find out the top5 salary.I formed the below mentioned query,
SELECT ROWNUM,SAL,EMPNO,ENAME,DEPTNO FROM(SELECT ENAME,EMPNO,
DEPTNO,SAL FROM EMP ORDER BY SAL DESC) WHERE ROWNUM<=3 AND SAL IS NOT NULL;
i would like tune this query or anyother new qeury find out top5 salary.
By
Sivakn_sivaraman wrote:
Hi,
I have emp table with 10 laksh records and need to find out the top5 salary.I formed the below mentioned query,
SELECT ROWNUM,SAL,EMPNO,ENAME,DEPTNO FROM(SELECT ENAME,EMPNO,
DEPTNO,SAL FROM EMP ORDER BY SAL DESC) WHERE ROWNUM<=3 AND SAL IS NOT NULL;
i would like tune this query or anyother new qeury find out top5 salary.
By
SivaWhy do you need to Tune? What do you need to tune?
What is the execution time of the query? What is the explain plan?
Moreover, in an International forum, refrain from using Locals. 10 Lakhs = 1 Million.
Do provide the above details to determine if your query needs tuning?
Below is a correct version of Top N query. Untested for your example. Please do modify according to your needs.
SELECT ROWNUM,
SAL,
EMPNO,
ENAME,
DEPTNO
FROM
(SELECT ENAME,EMPNO, DEPTNO,SAL, dense_rank() over(order by sal desc nulls last) dr
FROM EMP ORDER BY SAL DESC
) a
WHERE a.dr <= 5;Regards,
P. -
How do I find out the base dir for the current workspace ? Change?
Assume I took over a colleagues JDeveloper installation.
How can I find out the base dir for his JDevelopers workspace?
Can I change this workspace base dir afterwards/later (without
problems for the included sources and projects) ?
Where can I change it ?
I did not found an option in the settings?If you hover your mouse over the workspace you'll see the directory where the jws file is stored.
For each project in the workspace you can go to the project properties and look up information in the content node of the preference - there you can also change the location preferences for where code is created. -
How to find out the printer name for the Idoc
Hi guys
I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
Regards
MadhooHi,
For ALE/IDOC the medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
Regards,
Nagaraj -
Need to find out the account group given the accounting document number
I am new to SAP. Please help.
Need to find out the account group given the accounting document number?If you are asking about account assignment group then that can be seen in billing document -> Header -> Accounting Data.
-
Need to find out the queries which did not executed in 2014
Hi All,
I need to find out the queries which start from YY and did not executed in 2014, earlier we used to find out by looking into the technical content cube 0TCT_C02 but now its giving dump as number of queries increases. I tried to find out using table RSZCOMPDIR but not able to trace it exactly. Please suggest some alternative solution to find out the queries which did not execute in 2014 so that we can delete it.
Thanks,
Asim.Hi,
RSDDSTAT_OLAP : This is the table which contains query execution details
CALDAY field in that table gives you query execution date
OBJNAM gives the query name
As you said RSZCOMPDIR gives list of all queries. doing a lookup between these tables will identify the queris which are not executed in particular period.
-Sriram -
Need to find out the number of Master data records transfered to the BW
Hi,
We need to find out the number of Master data (example -0MAT_PLANT_ATTR) records to be transfered to BW side. This is a delta extract. We are preparing test scripts to check the master data extract ( full & delta) from ECC6 TO BI 7.0..
Advance Thanks.Hi,
Goto RSA3 and run that master data extractor in D mode if you want to know the number of records in delta and in F mode if you want to know the Full volume. But make sure that you set data records/calls and the display extr calls numbers so that you get the total number of records.
The other option is goto the master data source table and look at the number of records in that table. That'll give you an idea of the total number of records in the table.
One other option is to goto RSA7 , select the delta datasource and hit the display button. You'll get to know the number of entries in the delta queue that way as well.
Cheers,
Kedar -
I have an email account through yahoo. I am having trouble setting it upon my iPhone and can't receive or send emails!!!! I contacted Rogers and they said I need to find out the host name of the incoming server, in other words yahoos host name. Help!!
Yahoo's servers are notoriously unreliable. Use the "Yahoo" account type when setting it up. If it doesn't work, and you are positive the credentials are correct, wait a while and try again.
While you're waiting, set up a free gmail or iCloud email account. -
Is there any way to find out the dependency information for column of view?
Does Oracle provide some view / table / pl/sql pkgs to find out the dependency information for column of view ?
For example, there are two table mytable1 (col1 varchar2(10), col2 date) & mytable2 (col1 varchar2(10), qty int), and there is one view myView as
select mytable1.col1, col2, qty from mytable1 inner join mytable2 on mytable1.col1 = mytable2.col
Can I get some information such as myView.col1 is come from mytable1.col, myView.col2 is come from mytable1.col2, myView.qty is come from mytable2.qty
?I can get the information about the columns list in table/view from ALL_TAB_COLUMNS table, but I wish to know the column in the view is come from which original table's column.
Is there any way to find it out from Oracle meta data / through any PL/SQL packages ? -
They have ordered for just under 100 euros!! i now need to find out more! any suggestions?!
thanks!You can report a problem with unauthorized purchases > How to report an issue with Your iTunes Store purchase
Change your Apple ID password > Apple - Support - Apple ID -
How to find out the User Details for the particular transaction
Hi,
Actually AJAB -Asset Year closing was done by One User.How and Where to find out the User details who executed the Transaction.Kindly tell me the T-code for this.
Thanks
Sap GuruHi:
Please contact you basis administrator.Give him the T.code and date when Year closing was done. He may resolve your problem.
Please let me know if you need more information,
Assign points if useful.
Regards
MSReddy -
Help, how do i find out the host server for a website i have inherited
hi i inherited responcibilty for a website, simply because
there was noone else avalable. i have dreamweaver cs3, but only
about 2 weeks worth of knowledge and experience. I was given info
ie. ftp address and username etc, so have been able to download the
website to my home computer, and have been making updates, now
however i need to find out more about setting up a test server so i
can use dynamic pages, specifically for collecting form
information, collecting donations and selling art work. i will need
some information from the host server to start with, but am unsure
as how to identify and contact them, can anyone help me please. I
am sure it is rudimentary, but the information is essential.
also as a side note, could anyone tell me how to find out
where the websites domain name is regestered ( other than
contacting the original designer, as that seem quite impossible)
because i get the feeling that if all else fails i may be able to
move the website to another host ( not that i now how yet, or even
how to select or find a host) please let me know if any of my
assumptions are wrong.
Thanking you in advance
J
volunteer.Hi,
To find out about the host, go to register.com and look up
the domain name.
When it gives you results, it'll say that the name is already
taken, but it
will let you do a 'whois' on it.
Those results can give you some info such as the server DNS.
That may let
you figure out the host.
Sometimes the technical contact in the whois, is the host as
well.
"nsfwebnewbie" <[email protected]> wrote in
message
news:fmo8cf$3l5$[email protected]..
> hi i inherited responcibilty for a website, simply
because there was noone
> else
> avalable. i have dreamweaver cs3, but only about 2 weeks
worth of
> knowledge and
> experience. I was given info ie. ftp address and
username etc, so have
> been
> able to download the website to my home computer, and
have been making
> updates,
> now however i need to find out more about setting up a
test server so i
> can use
> dynamic pages, specifically for collecting form
information, collecting
> donations and selling art work. i will need some
information from the host
> server to start with, but am unsure as how to identify
and contact them,
> can
> anyone help me please. I am sure it is rudimentary, but
the information is
> essential.
> also as a side note, could anyone tell me how to find
out where the
> websites
> domain name is regestered ( other than contacting the
original designer,
> as
> that seem quite impossible) because i get the feeling
that if all else
> fails i
> may be able to move the website to another host ( not
that i now how yet,
> or
> even how to select or find a host) please let me know if
any of my
> assumptions
> are wrong.
>
>
> Thanking you in advance
>
> J
> volunteer.
>
> -
I need to find out the list of outbound made it to the vendor
I need to find out if the attached list of outbound made it to the vendor.
and i have list of all IDOC numbers that i need to check. Could you please assist? how to check?
Please do needful.
Thanks in advance.
Regards,
PIneeder.Hi,
If you want to check it in XI/PI check first:
- in the abap stack transaction:
- sxmb_moni and filter for your sending system and idoc type
or
- idx5 fill in the date when the idoc was sent and the idoc number from the sending system and through double-clicking you will get to the same message as in sxmb_moni
- in the runtime workbench (only if the communication with the partner is done via a java based adapter (all except xi,http and idoc) go to the runtime workbench and then click on message monitoring and filter for your messages. If the status there is succesfull then you can safely assume that the message was delivered to the partner. Note: it sometimes happens that a PI server also has one or more decentral adapter engines. In this case you need to check if your communication channel is deployed on any of them (you can check that in the Integration Builder) and then select the corresponding one in the Runtime workbench -> Message Monitoring -> Message from Component.
Hope this helps,
Horia -
Transaction to find out the authorised transactions for a user
Hi Abap Gurus,
Could you please suggest any transaction which can be used to find out the authorised transcations that can be executed for a particular user?
Points will be rewarded.
Regards,
Mansi.Hello,
I think there is no separete Tcode to find it out.
You need to check the Profile of the user.
Use the Tcode SU21 also.
Regards,
Vasanth -
How to find out the ASCII Values for Spanish character
Hi,
I had an requirement to store Spanish character and also need to fileter the records based on the Spanish character.
Kindly guide me for below.
To filter the Records which contains spanish characters?
To get the ASCII Values for the particular column?
E.g. we can find out the ASCII value of 'a' by using the syntax select ASCII('a') from dual.
But I want to find the ASCII Values for the particular column value. Ie. name.
E.g., Client name is "Suresh", I want to the ASCII Values for entire name of "Suresh".
Kindly do the needful help / Guidance on this.
Thanks,
OraharTo expand on what I said in my first post, you want to do something along these lines:
with t (thename) as
select 'Suresh' from dual
select thename
, substr(TheName, level, 1)
, ascii(substr(thename, level))
from t
connect by level <= length(thename);The output of the above query is:
THENAM S ASCII(SUBSTR(THENAME,LEVEL))
Suresh S 83
Suresh u 117
Suresh r 114
Suresh e 101
Suresh s 115
Suresh h 104
6 rows selected.Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and substitute the name "t" for the name of your table (also the name of the column to whatever name the column has in your table).
Lastly, I suggest you post your question along with, an example table and the output you'd like to get in the PL/SQL forum. There are people there that will give you all kinds of great ways of solving that problem.
HTH,
John.
Maybe you are looking for
-
I just verified my Apple user ID and password but certain updates won't download (gives me the signal that I'm incorrect). I keep changing it, verifying but not all applications let me proceed. So I can't download itunes software updates or update
-
After a full installation of Solaris 10, dtlogin will not start up after wat it seems a couple of retries to find a correct video mode. During the installation process X started up just fine so it is not a hardware problem. I will look into this prob
-
Prevent row in ADF BC Row from being deleted
I'm using ADF/BC for my data; I'm attempting to prevent a row from being deleted based upon some condition. I'd like to do this in the Impl classes of the EO or VO for the given row but I'm not sure where this should be done or if it's even possible
-
Using external LDAP server for WL JNDI lookups
I'm trying to find out if it is possible to re-direct JNDI calls to the WL server to an external LDAP server. I know you can install an external LDAP server for security purposes, but I would like to use an external LDAP server to handle all JNDI loo
-
Hairline cracks along side of USB connector
After 17 months of constant connecting and disconnecting of the USB cable my 3G has developed cracks on either side of the connector along the back plate. The crack caused a piece to come off around one speaker grille. Now I'm trying to find a shop t