Request for report SQL Query

hi all,
i created links for an element but for some element links the costing and balancing codes were mistakenly given wrong and the element links are plenty so i am unable to find which is wrongly given.
can some 1 out there provide me with the sql query that will allow me to create a report to run and confirm all the links have costing and balancing codes for all the earnings or voluntary deduction elements.
Thank you for reading my issue. plz help!

See if the below helps.
Change the business group id in the query below-
select ppf.payroll_name   
,pj.name Job,hou.name HR_ORG,ppg.group_name People_Group  
,pel.employment_category
,hra.location_code 
,pet.element_name,pet.reporting_name,pec.classification_name  
,pel.costable_type 
,pel.link_to_all_payrolls_flag 
,pcak1.concatenated_segments Element_Cost_Segments   
,pcak1.segment1  
,pcak1.segment2  
,pcak1.segment3  
,pcak1.segment4  
,pcak1.segment5  
,pcak1.segment6  
,pcak1.segment7  
,pcak1.segment8  
,pcak2.concatenated_segments Balancing_Cost_Segments  
,pcak2.segment1  
,pcak2.segment2  
,pcak2.segment3  
,pcak2.segment4  
,pcak2.segment5  
,pcak2.segment6  
,pcak2.segment7  
,pcak2.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  pet.business_group_id = 0   
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,pec.classification_namePlease close the thread, if your issue is resolved.
Cheers,
VB

Similar Messages

  • App-V Reporting: SQL query for Excel Pivot Table to display App Usage (H/M/S)

    I recently posted this in the Gallery.  If anyone has any modifications or enhancements please feel free to contribute!  One thing that I'd like to be able to add to it is the ability to only display information for applications/packages that are
    still published, so if anyone can figure out a crafty way to do it...  Thanks!
    http://gallery.technet.microsoft.com/App-V-Reporting-SQL-query-6695d3c3

    I recently posted this in the Gallery.  If anyone has any modifications or enhancements please feel free to contribute!  One thing that I'd like to be able to add to it is the ability to only display information for applications/packages that are
    still published, so if anyone can figure out a crafty way to do it...  Thanks!
    http://gallery.technet.microsoft.com/App-V-Reporting-SQL-query-6695d3c3

  • Looking for an SQL query to retreive callvariables + ECC from a RUN SCRIPT RESULT (Translation to VRU)

    Hi Team,
    I am looking for an SQL query to check the data (ECC + CallVariable) received following a RUN SCRIPT RESULT when requesting an external VRU with a Translation Route to VRU with a "Run External Script".
    I believe the data are parsed between the Termination Call Detail + Termination Call Variable .
    If you already have such an SQL query I would very much appreciate to have it.
    Thank you and Regards
    Nick

    Omar,
    with all due respect, shortening a one day's interval might not be an option for a historical report ;-)
    I would recommend to take a look the following SQL query:
    DECLARE @dateFrom DATETIME, @dateTo DATETIME
    SET @dateFrom = '2014-01-24 00:00:00'
    SET @dateTo   = '2014-01-25 00:00:00'
    SELECT
    tcv.DateTime,
    tcd.RecoveryKey,
    tcd.RouterCallKeyDay,
    tcd.RouterCallKey,
    ecv.EnterpriseName AS [ECVEnterpriseName],
    tcv.ArrayIndex,
    tcv.ECCValue
    FROM Termination_Call_Variable tcv
    JOIN
    (SELECT RouterCallKeyDay,RouterCallKey,RecoveryKey FROM Termination_Call_Detail WHERE DateTime > @dateFrom AND DateTime < @dateTo) tcd
    ON tcv.TCDRecoveryKey = tcd.RecoveryKey
    LEFT OUTER JOIN Expanded_Call_Variable ecv ON tcv.ExpandedCallVariableID = ecv.ExpandedCallVariableID
    WHERE tcv.DateTime > @dateFrom AND tcv.DateTime < @dateTo
    With variables, you can parametrize your code (for instance, you could write SET @dateFrom = ? and let the calling application fill in the datetime value in for you).
    Plus joining two large tables with all rows like you did (TCD-TCV) is never a good option.
    Another aspect to consider: all ECC's are actually arrays (always), so it's not good to leave out the index value (tcv.ArrayIndex).
    G.

  • Looking for and SQL query to match CTI OS agent login ID with the Directory Number (instrument)

    Hi All,
    I am looking for an SQL query to request the HDS database to find out which Directory Number / instrument  was associated with a specific CTI OS agent login ID.
    Has anyone done such a query before ?
    Thanks and Regards
    Nick

    Hi,
    this should work in 8.0 and 8.5:
    SELECT
    ag.PeripheralNumber AS [LoginID],
    al.Extension,
    al.LogoutDateTime
    FROM [instance]_hds.dbo.Agent_Logout al
    JOIN [instance]_awdb.dbo.Agent ag ON al.SkillTargetID = ag.SkillTargetID
    Of course, replace [instance] with the ICM instance.
    The query returns a table with three columns, first is the login ID aka PeripheralNumber, Extension is... well, the agent's extension, and LogoutDateTime is the timestamp when the agent logged out.
    G.

  • (Request for reporting available) is not coming in Cube

    Hi All,
    I have Cube & DSO.
    I  added fields in DSO & Cube.
    Cube1 has Aggregrates built on it.i added 5 infoobjects on it, Now when i load data from DSO to Cube(Request for reporting available) is not coming up. i cant do reporting on it. can anyone help.
    thanks in advance,
    Kiran.

    Hi ....
    Have you done the Roll up ?
    Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
    Regards,
    Debjani....

  • Request for reporting  available icon is missing !

    Hi,
    I have an infocube which has been uploaded by ODS and the data load was successful. 
    But--
    The request for reporting available Icon is missing in the request.
    Prior to this dataload, yes there were falided requests which i had deleted before uplaoding it self.
    Why i am not seeing the icon?
    Raj

    Hi Raj,
    If you are using BI 7, then in the mange tab of the infocube check in the extream right ....
    otherwise it should appear...
    if you are talking abt ODS then you might have missed the step to activate data in ods.
    hope this helps..
    cheer's
    HVR.

  • "Request for Reporting available " is not displayed after loading the data.

    Hi
    A DSO feeds the data to a cube and DSO. In dso reporting sysmbol is present. However in the cube "Request for Reporting available " is not present in the manage tab of the cube.
    Please advise on this.
    Regards
    loyee

    Hi,
    What is the status in Monitor. If it is ok, go to manage of the infocube,
    in that screen on the menu, Environment --> Automatic Request processing. Then you will get three check boxes.
    Click the first check box, (Set Quality status to OK). If you aggregates,  choose second box.
    Hope this helps.
    Regards,
    Rama Murthy.

  • Request for an sql to scan for a special character from the tables

    Hi Gurus
    request for an sql statement for finding the character (and replace with a single byte character ) which occupy
    multibytes(in a unidata char set database) the database which is yet to be migrated to unidata(multibyte) database
    any kind of help is highly apprciated
    Thanks in advance

    Query below will find all bulti-byte characters in string column:
    select  string_column,
            substr(string_column,column_value,1)
      from  some_table,
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= length(string_column)
                       as sys.OdciNumberList
      where lengthb(substr(string_column,column_value,1)) > 1
      order by string_column,
               column_value
    /SY.

  • Update Field On Change For A SQL Query (updateable report)

    Hi,
    I'd like to request help from anyone with ideas on how to solve this.
    We are using APEX 4.2, 10GR2, RedHat5.
    I have a report that comes from SQL Query (updateable report).
    I'm using the apex_item.text and apex_item.hidden on fields.
    I'm using a button to submit and after submit process to add some logic that I need.
    There could be 1 - 10 records in the report.
    There is only 1 field that is needed to enter a value, but the value of this field determines the value of another field.
    I think that I can do this with a submit button and an after submit process where I loop through all the records. I think I have this handled.
    This is the question
    When the value of that field is changed then the value of another field in the same row changes immediately.
    Is this possible?
    All the examples I've seen so far are for a single record and that doesn't work for us.
    I guess this is a MRU process but I haven't seen an example where a dynamic action is possible on a Multi Row Update.
    Could anyone direct me to where I can see an example or help me get directions?
    I appreciate all your help an comments and I thank you in advance.

    Yes why not...what you looking for is a ajax call
    See {message:id=10390979}
    Please note:-you can also do this as a dynamic action as shown below
    Event: Change
    Selection type: jQuery Selector
    jQuery Selector: input[name="f01"]
    True action with Execute JavaScript Code and put all code inside the test funtion, you may need to amend the code to use this.triggeringElemnt in place of this

  • Discoverer Report - SQL Query to retrieve list of parameters

    Hi
    We have around 100 Discoverer reports and I'm trying to find the list of parameters used in each report.
    Is there any SQL query that I can use to find the parameters used for each report
    or
    should I open the reports one by one to fetch the list of parameters used.
    I checked the tables in EUL4_US schema but no luck.
    - Amarnath.K

    give this a try for starters. It looks at the custom folders defined in the business area, which is where any LOV's defined for you parameters would be. As far as looking at the workbooks themselves, no, there is no way to do that in sql.
    select
    decode(eb.ba_created_by,'ORACLE_APPS','Seeded','Custom') Origin,
    eb.ba_name business_area,
    eo.OBJ_TYPE,
    decode(eo.obj_type, 'SOBJ','From Database', 'CUO', 'Custom Query', 'COBJ', 'Complex Folder', eo.obj_type) obj_type_desc,
    eo.OBJ_NAME folder,
    eo.OBJ_DESCRIPTION folder_description,
    decode(eo.sobj_ext_table, NULL, NULL, eo.obj_ext_owner || '.' || eo.sobj_ext_table) base_object,
    decode(es.seg_obj_id, null, UPPER(trim(eo.obj_object_sql1)||trim(eo.obj_object_sql2)||trim(eo.obj_object_sql3))
    , UPPER(trim(es.seg_chunk1) || trim(es.seg_chunk2) || trim(es.seg_chunk3) || trim(es.seg_chunk4))) SQL
    from
    eul4_us.EUL5_BAS eb,
    eul4_us.EUL5_objs eo,
    eul4_us.EUL5_BA_OBJ_LINKS ebol,
    eul4_us.eul5_segments es
    where
    eb.BA_ID = ebol.BOL_BA_ID and
    ebol.BOL_OBJ_ID = eo.OBJ_ID and
    eo.obj_id = es.seg_obj_id (+) and
    decode(eb.ba_created_by,'ORACLE_APPS','Seeded','Custom') = 'Custom'
    order by
    /*decode(eb.ba_created_by,'ORACLE_APPS','Seeded','Custom'), */eb.ba_name, ebol.BOL_SEQUENCE, es.seg_sequence

  • Looking for a SQL query to get all the possible Alert Messages from the Rules in a Management Pack

    For reporting, I'm looking to get a SQL query of all the possible Alert Messages for Rules configured in a Management Pack (not necessarily the ones that have thrown alerts).  I can do this for Monitors, but not for Rules. 
    The configured alert messages for the Management Pack Monitors
    go like this:  ManagementPack > MonitorView> RuleModule > RuleModule.Alert Message > Localized Text
    The configured alert messages for the Management Pack Rules
    should go something like this, but there is a missing link:  ManagementPack > RuleView > RuleModule > ? Missing Link ? > Localized Text
    The Rules are tied to the Module, but I don't see a connection from the RulesModule to the Alert Message that I see in the LocalizedText. The Rule names do not always equal the Alert name. 
    Can someone provide the missing link?

    Hi,
    please try below powershell code to find the corresponding management pack for specific alert:
    $Alert = get-scomalert | where {$_.Name -like 'Agent Proxy Not Enabled*'} | select -first 1
    If ($alert.IsMonitorAlert -eq "True") {
    write-host "Ths is a monitor-generated alert"
    get-scommonitor -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
    else
    write-host "This is a rule-generated alert"
    get-scomrule -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
    In addition, please also refer to the below link:
    http://blogs.technet.com/b/mazenahmed/archive/2011/12/02/using-powershell-to-map-opsmgr-active-alert-to-its-corresponding-rule-monitor-and-management-pack-name.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Dashboard Prompt - Getting error for Adding SQL query in "Default to"

    Hello Oracle,
    I am facing some problem in Dashboard Prompt. Like when i add some sql query in "Default to" in Dashboard prompt and for the next prompt when i check for Contrain option i get error in the second prompt. but it works fine when i hard-code a value in "Default to" options.
    For Example:
    Like when we consider a two prompts :
    1) Year -> (In Default to i select SQL Query and enter the query as SELECT "YTD Dim"."Fiscal Year" FROM "YTD Report" WHERE "YTD Dim"."Fiscal Year" = Year(Current_Date)
    2) Business Unit -> (In specific value i give as some hard code value of Business Unit and check the contrain option)
    i get error as
    Business Unit
    Error Generating Drop Down Values
    A numeric value was expected (received "SELECT "YTD Dim"."Fiscal Year" FROM "YTD Report" WHERE "YTD Dim"."Fiscal Year" = Year(Current_Date)"). Error Details
    Error Codes: EHWH2A7E
    but i get correct value for Year as 2011.
    I need to use SQL query in default to option and need to check the constrain option too.
    Looking for positive feedback.

    You need to create a dashboard prompt and in Default To -> select SQL Results
    Click on the ... (three dots ) underneath it and put in your sql
    For Example , I have a Table called "Sales Date" in my "ABC" presentation folder. This has a column called "Year" and "Date". If I want to have a Year prompt with the default value set to current year, here is what the syntax of my sql result will be :-
    SELECT "ABC"."Sales Date".YEAR
    FROM "ABC"
    WHERE "Date" = current_date
    In SQL, we cannot put SQL as we know of in terms of Oracle, Sql Server etc. The SQL here refers to sql as OBIEE understands it and should be in the form of Select "Presentation foler"."Table Name".ColumnName from "Presentation Folder"
    Hope this helps

  • Transport request for Report

    Dear Experts,
    I have built a query/ report (in Development System) in Bex. I need to move that report to test system. How to do that? I haven't got any transport request for that. Do i need to create a transport request for that? Could you  give me step by step what to do and how to do, please?
    Thanks,
    Riya

    Riya,
    Please don't ask the same question in different threads, esp as you have not closed out a lot of your previous threads:
    urget please moving to testing system

  • SCCM 2012 All Updates report sql query

    Need build sql query for report about all MS Updates like SCCM configuration manager view in window by path:
    \Software Library\Overview\Software Updates\All Software Updates.
    But I can't find fields that can show "product" (OS that use this patch) and size of each patch in SCCM and WSUS databases. Can anybody help me?

    To get file size I create query for files in package:
    SELECT distinct ui.Title, ui.InfoURL, ui.DatePosted,
    cf.FileName, cast(cast(cf.FileSize as real)/1024/1024 as decimal(10,2)) as SizeMb, uds.AssignmentName, uds.StartTime
    FROM CI_ContentFiles cf
    INNER JOIN v_UpdateContents uc  ON cf.Content_ID  = uc.Content_ID
    INNER JOIN v_UpdateInfo ui ON uc.CI_ID = ui.CI_ID 
    INNER JOIN vSMS_UpdateDeploymentSummary uds  ON ui.CI_ID = uds.CI_ID
    join CI_ContentPackages cp on cf.Content_ID=cp.Content_ID
    join CI_Contents co on co.Content_ID = cp.Content_ID
    Where PkgID='MKL00032'
    order by ui.InfoURL

  • Simultaneous data activation in cube - request for reporting available

    Hi,
    I'm on BW 3.5.
    I am loading several million records to a cube, processing is to PSA first and subsequently to data target.
    I have broken the load up into 4 separate loads to prevent caches from filling up and causing huge performance issues.
    When I load all the data in a single load, it takes 10 hours to load.  When I break it up into 4 loads it takes 3 hours.
    My problem is that during the loading from PSA to data target, the first data load becomes green and ready for reporting before the last one has finished loading, and so the users get inaccurate report results if they happen to run a report before the last request activates.
    Is it possible to get all 4 requests to activate simultaneously?
    I have tried adding an aggregate to the cube, no good.
    I have tried loading the 4 loads to the PSA in sequential order in the process chain, and then loading from PSA to data target simultaneously (side by side), no good.
    Does anyone have a solution?
    Many thanks,
    Paul White

    Hi ....
    Have you done the Roll up ?
    Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
    Regards,
    Debjani....

Maybe you are looking for