Query for Cost Code in oracle HRMS

Hello Exports,
i am new in oacle hrms,
So Can you please tell how to fetch cost code in oracle hrms r12 ( i need sql query for cost code )
Thanks

try the following (assignment costing as at today):
select ppx.full_name
,ppx.employee_number
,pax.assignment_number
,pax.primary_flag
,pcax.proportion
,pcak.segment1
,pcak.segment2
,pcak.segment3
,pcak.segment4
from per_assignments_x pax
,per_people_x ppx
,pay_cost_allocations_x pcax
,pay_cost_allocation_keyflex pcak
where ppx.person_id = pax.person_id
and pax.assignment_id = pcax.assignment_id
and pcak.cost_allocation_keyflex_id = pcax.cost_allocation_keyflex_id

Similar Messages

  • Re: Query for Cost Code in oracle HRMS

    Hi
    I am also looking out for something similar. I need the query which will give me the costing details of each of the elements (Costed Element Name | Costing Account | Balancing Account).
    Any pointers on this would be highly appreciated.
    Thanks
    Regards
    Trupti

    Hi Trupti,
    Please don't outsource your work. Forums are only to help you but not do your work.
    You need to put your efforts, so that others can help you.
    For now, I already had this query, so you can use it -
    select pel.element_link_id,
    ppf.payroll_name  
    ,pj.name Job
    ,hou.name HR_ORG,ppg.group_name People_Group
    ,hra.location_code
    ,pet.element_name,pet.reporting_name
    ,pet.processing_type
    ,pec.classification_name 
    ,pel.costable_type
    ,pel.link_to_all_payrolls_flag
    ,pcak1.concatenated_segments Element_Cost_Segments  
    ,pcak1.segment1
    cost_segment1
    ,pcak1.segment2
    cost_segment2
    ,pcak1.segment3
    cost_segment3
    ,pcak1.segment4
    cost_segment4
    ,pcak1.segment5
    cost_segment5
    ,pcak1.segment6
    cost_segment6
    ,pcak1.segment7
    cost_segment7
    ,pcak1.segment8
    cost_segment8
    ,pcak2.concatenated_segments Balancing_Cost_Segments 
    ,pcak2.segment1
    Bal_segment1
    ,pcak2.segment2
    Bal_segment2
    ,pcak2.segment3
    Bal_segment3
    ,pcak2.segment4
    Bal_segment4
    ,pcak2.segment5
    Bal_segment5
    ,pcak2.segment6
    Bal_segment6
    ,pcak2.segment7
    Bal_segment7
    ,pcak2.segment8
    Bal_segment8
    from pay_element_links_f pel  
    ,apps.PAY_COST_ALLOCATION_KEYFLEX  pcak1   
    ,apps.PAY_COST_ALLOCATION_KEYFLEX  pcak2   
    ,pay_element_types_f pet  
    ,pay_payrolls_f ppf  
    ,pay_element_classifications pec  
    ,per_jobs pj 
    ,hr_all_organization_units hou 
    ,PAY_PEOPLE_GROUPS ppg 
    ,hr_locations_all hra
    where pel.element_type_id = pet.element_type_id  
    and ppf.payroll_id(+)   = pel.payroll_id
    and pcak1.cost_allocation_keyflex_id(+) = pel.cost_allocation_keyflex_id    
    and pcak2.cost_allocation_keyflex_id(+) = pel.balancing_keyflex_id  
    and  pel.business_group_id = :BG_ID
    and pet.classification_id = pec.classification_id  
    and pj.job_id(+) = pel.job_id 
    and hou.organization_id(+) = pel.organization_id 
    and ppg.people_group_id(+) = pel.people_group_id 
    and hra.location_id(+) = pel.location_id 
    and sysdate between pel.effective_start_date and pel.effective_end_date
    and sysdate between pet.effective_start_date and pet.effective_end_date
    and sysdate between ppf.effective_start_date(+) and ppf.effective_end_date(+)
    order by ppf.payroll_name,pet.element_name,pec.classification_name;
    Cheers,
    Vignesh

  • Re: Query for Cost center actual by period.

    Hi Experts,
    Good Morning everybody,
    I want cost center actual values (with cost element) by period. I have created query through T.code-SQVI by joining tables COSP and CSKS.
    I got the report, but i cannot see the foreign currency postings in SQVI report. so there was a difference between SQVI and KSB1 report.
    Why i cannot see Foreign currency postings in SQVI report. please advise me, whether any other table that i can use in the query for cost center actuals by period.
    Thanks in advance & Points will be assign for useful answers,
    KUMAR

    See the answer in FI thread.
    Hi,
    KSB1 is based on COEP table. COSP shows only external postings. You should take COSS as well for internal postings in CO. Check the nature of the join with CSKS: notice COSP has OBJNR field which is not the same as KOSTL in CSKS.
    Anyway, I'd suggest you using not the join between tables, but one of standard logical databases SAP provides. For cost centres, you can use CIK.
    Regards,
    Eli

  • Outer join query for SQL server from Oracle

    Hi All,
    My question is regarding making queries from Oracle to SQL Server database thorugh DBLink.
    In my oracle database I have a DBLink emp.world for SQL Server database.
    I need to query SQL Server data from oracle (so that this query can be combined with other oracle tables).
    Query is given below:
    SELECT
            a."EmpID" as "Employee ID",
            a."EmpStatus" "Employee Status"
            b."EmpSub" as "Employee Subjects"
    FROM
            [email protected] a
            left outer join [email protected] b on a."EmpID" = b."suEmpID"
    ORDER BY  a."EmpID";My problem is when I run the same query from oracle, it does not show the EmpID that does not exist in Subjects table, but when run from actual SQL Server database, it shows all the records.
    Samples are given below:
    Run from Oracle
    Employee ID      Employee Status     Employee Subjects
    101                     Active                     Maths
    102                     Active                     Maths
    102                     Active                     Physics
    104                   Inactive                  Chemistry
    Run form SQL Server
    Employee ID      Employee Status     Employee Subjects
    101                     Active                     Maths
    102                     Active                     Maths
    102                     Active                     Physics
    103                 Active                       NULL
    104             Inactive            ChemistryI am not sure why in oracle outer join for SQL server tables is not working. What is the right way for outer join in this case.
    I am using oracle database 10gR2 and SQL Server 2005.
    Please Help.
    Thanks.

    SELECT
    a."EmpID" as "Employee ID",
    a."EmpStatus" "Employee Status"
    b."EmpSub" as "Employee Subjects"
    FROM
    [email protected] a
    left outer join [email protected] b on a."EmpID" = b."suEmpID"
    ORDER BY a."EmpID";
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm#sthref3175
    From your description, it appears you may need a right outer join. You want to get back all the rows from 'B', not from 'A'. Try a right join and let us know.

  • Need Query for Item Relationship of Oracle Apps

    Hello Team,
    I need the Query to select the Item Relationship.
    In Oracle Apps we have different tyes of Structure
    ItemA -> ItemB
    ItemB -> ItemC
    ItemC -> ItemD
    ItemG -> ItemH
    ItemK -> ItemL
    ItemW -> ItemQ
    and this also is possible (meand many to one relationship)
    ItemA -> ItemB
    ItemB -> ItemC
    ItemC -> ItemD
    ItemT -> ItemD
    and in the Select Query i want the below result
    ItemA -> ItemB 1
    ItemB -> ItemC 2
    ItemC -> ItemD 3
    ItemG -> ItemH 1
    ItemK -> ItemL 2
    ItemW -> ItemQ 1
    and this also is possible (means many to one relationship)
    ItemA -> ItemB 1
    ItemB -> ItemC 2
    ItemC -> ItemD 3
    ItemT -> ItemD 1
    means i want the Hierarchy number also
    Please help me to in order to get the relationship by sql query.
    Kind Regards,

    thanks for the quick response and i would love to spend time perusing the forum for this question but i didn't have time today.  i'll do that now though.
    what i'm mostly interested in is a chronological view (lastUpdateDate) of the change to pricing for an item in the system.  there is a lot of activity in our system around price changes for promotions and i want to keep track of when it's changed in the source system and pair that with our other downstream systems.
    i'm assuming we can add this functionality through a udf some way or maybe sp_TransNotification proc?

  • Need SQl Query for Revenue Code and Revenue Amount in Receivables

    Hi,
    I need a SQL Query to develop data set for the following columns:
    Revenue Code,Revenue Code Description,Invoice Amount,Revenue Amount,Original Invoice Number,Original Invoice Date.
    Can i get from ra_cust_trx_line_gl_dist_all and ra_customer_trx_all and ra_customer_trx_lines_all by joining them.But for the columns whcih to take
    i am in dilemma.
    Kindly any help will be needful for me

    Hi,
    I need a SQL Query to develop data set for the following columns:
    Revenue Code,Revenue Code Description,Invoice Amount,Revenue Amount,Original Invoice Number,Original Invoice Date.
    Can i get from ra_cust_trx_line_gl_dist_all and ra_customer_trx_all and ra_customer_trx_lines_all by joining them.But for the columns whcih to take
    i am in dilemma.
    Kindly any help will be needful for me

  • Re: query for cost centers by period

    hi experts,
    we want cost center actual values  (with cost element) by period. i have created query through sqvi by joining tables COSP and CSKS.
    i got the report but i cannot see foreign currency postings in the SQVI report. so there is difference in the SQVI and KSB1 report.
    why i cannot see foreign currency postings in SQVI report (COSP table). so is there any other table i need to join in the qurey if anybody face the same problem give me your inputs.
    thanks in advance,
    KK.

    hi kk,
    i think in cosp1 u have taken total value in transaction currency better you take total value in controlling currency then your output you will get your output which you expecting.
    hope it helpful ifnot revert me.
    regards,
    sb.

  • Unable to query for GL balances

    Hi All,
    I'm using Oracle EBS R12.1.3. I'm unable to find a gl balance for a specific account. I can see there is information about it into the database but i cannot understand why it is not appearing into the application.
    Here are my steps:
    1. Navigate to GL Manager responsibility
    2. Inquiry > Account
    3. Query for specific code combinition
    4. No results
    I tried with another one and I receive data into the application. I tried to compared them in the database tables - gl_balances, gl_je_headers, gl_je_lines and they looks like similar data (flag, status, etc)
    Any ideas?
    Thanks in advance,
    Stoyanov

    Hi,
    Thanks for your reply.
    I ran the account analysis report and i'm able to see the data. Also - I can see this info in the Journals screen in GL. Any ideas why it's not showing in Inquiry > Account?
    Regards,
    Stoyanov

  • What is Cost Codes(Expenditure Types) ?

    What is Cost Codes(Expenditure Types) ? can anyone provide a detail informtion with an example if possible

    Check this link for example on Burdening and Burden cost code.
    club-oracle.com/articles/creating-burden-cost-in-project-costing-769/

  • Query for getting data for every quarter for financial year

    Hi,
    My problem is I need to get the data for every quarter for financial year and also I need data for every week for financial year.
    For example for financial year 2012-13, Apr2012 to Jun2012 would be Q1, Jul2012 to Sep2012 would be Q2 and so on. Total 8quarters should come upto Apr2013.
    In the same way  1st apr 2012 to 7th apr 2012 would be week1, 8th apr to 15th apr would be week2 and son on. How to write a query for this scenario in oracle. Can anybody help me on this. very urgent..
    Thanks in advance.

    lakmesri wrote:
    Hi,
    My problem is I need to get the data for every quarter for financial year and also I need data for every week for financial year.
    For example for financial year 2012-13, Apr2012 to Jun2012 would be Q1, Jul2012 to Sep2012 would be Q2 and so on. Total 8quarters should come upto Apr2013.
    In the same way  1st apr 2012 to 7th apr 2012 would be week1, 8th apr to 15th apr would be week2 and son on. How to write a query for this scenario in oracle. Can anybody help me on this. very urgent..
    Thanks in advance.
    How can you get 8 quarters within a year ? I'b be concerned here.
    lakmesri wrote:
    Hi,
    In the same way  1st apr 2012 to 7th apr 2012 would be week1, 8th apr to 15th apr would be week2 and son on. How to write a query for this scenario in oracle. Can anybody help me on this. very urgent..
    Thanks in advance.
    First, that question is really not clearly asked. Second how could it be urgent ? You even did not tell us your Oracle version, did not show any tables descr, output sample nor any effort on your side to work on.
    Nicolas.

  • How can I change Cost Code (WBS Code) separator?

    Hi,
    I was thinking that cost code separator is always dash "-".
    But in our Demo database I saw that code separator is slash "/"
    Where can I set the separator for cost codes?

    There is a data definition called Cost Code Separator. You can change the default value to what you want the separator to be.

  • Oracle query for getting discrepancy equip codes

    I need help in getting a query for discrepancy equip_code
    select distinct eq.dept_id,eq.drive_id,equip_code,eq.qc_subtype_id,staff_id
    from qc_equipment_used eq, qc_daily qc
    where eq.drive_id = qc.drive_id
    and trunc(eq.create_time) = '06-aug-2012'
    and out_of_service = 'N'
    and eq.qc_subtype_id in (1026,1012)
    and eq.drive_id = 'DRV2016637'
    DEPT_ID|DRIVE_ID|EQUIP_CODE|QC_SUBTYPE_ID|STAFF_ID
    95|DRV2016637|HEMORYA121|1012|0011
    95|DRV2016637|HEMORYA121|1026|0011
    95|DRV2016637|HEMORYA148|1012|0011
    I need help in getting a query to show the user that
    95|DRV2016637|HEMORYA148|1012|0011
    was qc'd in the morning but not in the evening for 1026

    You still refuse to read {message:id=9360002} and follow the Forum Etiquette?
    How sad for you, since less volunteers will help you.

  • Oracle Text query parser - sample code

    I've posted a new entry on my "searchtech" blog which includes code for a "Google-like" query syntax parser:
    https://blogs.oracle.com/searchtech/entry/oracle_text_query_parser
    Currently it's just sample code, but if it goes down well we might include it, or something similar, in a future release of the product.
    I'd very much welcome feedback on it, either here on the forum, or on the blog, or directly to me email address (which is included in the download file).
    Thanks, everyone.

    When I select the "open in browser" option for each now, I get formatted, readable code, which can easily be copied and pasted into a file without the extra txt extension, and I much prefer that. So, for me, that is a sufficient fix.
    It seems like this is handy, virtually idiot-proof code, easy to create the package, easy to use it, and provides the Google-like search that users expect, without raising errors or producing unexpected results. Frequently, on the OraFAQ forums, where I am a moderator, when there are various ways to solve a problem and I provide a Text solution, the complaint is that it is too complicated to create all of the formatting to fix potential problems with user input. Your code solves that problem and I hope it will be included in the next version. If you don't mind, I will post an announcement in the OraFAQ Text forum with the permanent link that you provided.

  • Oracle HRMS Organization Hierarchy query

    Dear All,
    Could any one provide me Oracle HRMS Organization Hierarchy query, please find the attachment of navigation.
    and please find the following query i developed, here i am getting all hierarchies as per attachment.
    SELECT distinct pose.D_PARENT_NAME , pose.org_structure_version_id,pose.organization_id_parent,
        haou2.ORGANIZATION_ID PARENT_ID_ORG,
        pose.D_CHILD_NAME
    FROM   apps.per_organization_structures_v pos
           ,      apps.per_org_structure_versions  posv
           ,      apps.per_org_structure_elements_v  pose
           ,      apps.hr_all_organization_units   haou2
    WHERE  pos.name = 'PIC HR ORGANIZATION HIERARCHY'
    AND    pose.D_PARENT_NAME='CHAIRMAN'
    AND    pose.org_structure_version_id = posv.org_structure_version_id
    AND    posv.organization_structure_id = pos.organization_structure_id
    AND    haou2.organization_id = pose.organization_id_child
    and    pose.D_PARENT_NAME=nvl(:P_PARENT_NAME,pose.D_PARENT_NAME)
    and    pose.D_CHILD_NAME=nvl(:P_CHILD_NAME,pose.D_CHILD_NAME)
    and    sysdate between posv.DATE_FROM and nvl(posv.DATE_TO,sysdate)
    CONNECT BY PRIOR pose.organization_id_parent = pose.organization_id_child
    can any one help me on this??
    Thanks in advance..
    Best Regards

    Hi,
    Try the following query and adapt as required for your instance (I've used Vision instance):
    SELECT DISTINCT pose.d_parent_name,
      pose.organization_id_parent,
      pose.d_child_name,
      pose.organization_id_child
    FROM
      per_org_structure_elements_v pose,
      per_org_structure_versions posv,
      per_organization_structures pos
    WHERE pos.name                                       = 'Primary Reporting Hierarchy'
    AND posv.version_number                              = 1
    AND pos.business_group_id                            = 202
    AND posv.organization_structure_id                   = pos.organization_structure_id
    AND pose.org_structure_version_id                    = posv.org_structure_version_id
    AND pose.business_group_id                           = pos.business_group_id
    AND posv.business_group_id                           = pose.business_group_id
      START WITH pose.d_parent_name                      = 'Vision Operations'
      CONNECT BY NOCYCLE PRIOR pose.organization_id_child = pose.organization_id_parent
    ORDER BY pose.organization_id_parent,  pose.organization_id_child
    HTH,
    Regards,
    Rajen.
    P.S: Please mark response as Helpful/Correct (Answered) if it resolves or helps to resolve your issue. Thks.

  • Return Code - Query for Multiple Rows as XML

    Hi,
    I'm executing an MSSQL stored procedure through the "Query for Multiple Rows as XML" activity in LiveCycle ES. I do this through a call statement such as this:
    { call MyStoredProc(?) }
    This works great, the stored procedure always returns a record set (with or without records). I use this activity rather than "Call Stored Procedure" because I can transform the record set into XML right away within this activity. Unfortunately any exception arising from invoking this stored procedure cannot be handled within the workflow as this activity does not have an exception handler (lightning bolt). In an attempt to handle at least some exceptions we have decided to use try/catches within the stored procedures and return different error codes. Now the problem I am faced with is that there is no way to retrieve the returned code within any of the SQL activities. We don't want to have to write an execute script for each of these SQL calls. Is there any way to do this? Seems like I'm 95% there.
    Thanks
    Nic

    Thanks for the offer, unfortunately we would need something certified by Adobe.
    Nic

Maybe you are looking for

  • How to reshape JFrame

    Hi fellas, I'd like to create a JFrame looking like a star ( i.e not square ). How can I reshape the frame ?

  • Bitwise Operators & IP Addresses

    I am trying to determine an ip address class type ie: Class A - 0 followed by 7 bits Class B - 0 followed by 6 bits Class C - 110 followed by 5 bits The IP address & Subnet Mask are entered by the user By ANDING the IP address and the subnet mask I h

  • Different Key field Names - Possible?

    Hi All,    I have 2 main nodes, Header and Detail. Is it possible for me to have a different nodes (like Hkey in header & Dkey in Detail) as keyfields? Thanks & Regards, Jai Shankar.

  • Unknown error occurred when trying to play film clip in Facebook.

    Since the latest update I have problems when I want to watch film clips posted on Facebook. This only happens with clips that are shown "in" Facebook, if it's a link to a clip outside of Fb it's not a problem. When trying to watch a clip it says, eit

  • INSTALAR EXCHANGE 2010

    Tengo poca experiencia con el W2012R2 y Exchange, requiero instalar los buzones y configurar el sistema para el correo, ¿Qué requiero configurar y como en el W2012 para instalar el Exchange sin problemas?