How to find the list of cost centers reporting to a particular employee

Hi Experts,
I have to create one report in Java Web Dynpro. In the report, I have to display all cost centers reporting to a paricular employee. For example suppose Vice President of company has pernr 6481. From pa20, we quickly find out that his cost center is say 1209000. Now the Vice President has several reporting cost centers. For example one cost center will be for Marketing Deptt, other may be of HR deptt.
Please let me know how I can find out that what all cost centers are reporting to pernr 6481(Vice Preseident)
Regards,
Gary

Hi Pradeep,
Thanks for email. In my project name has been maintained in CSKS-VERAK. However this name does not matches exactly with the name of pa20 (HR). It looks like SAP has not provided data integrity between HR name and CSKS-VERAK. It seems that while creating cost center, the user enters name in his own way. For example "Al-Fahad Malki" can be written in "Malki Fahad-Al" or "Malki Fahad" or "Al-Malki Fahad". The name of user in pa20 may be "Al-Fahad M". So it is not possible for us to use solution provided by you.
Hi Pradeep, SDN Users,
I have used following logic for getting cost centers for given pernr.
1)     Take pernr as input. Exexute RFC HRWPC_RFC_OADP_GET_NAVOBJECTS. While executing RFC pass following values:
a.     OBJSEL - MSS_TMV_EE_ORG1
b.     Begda u2013 Today date
c.     Ends u2013 Today date
d.     User u2013 pernr
e.     Cachemaxage -  -1
2)     Then program should read the value of OBJID from HRWPC_RFC_OADP_GET_NAVOBJECTS output.
3)     After this program should read value from HRP1001 for following condition
PLVAR = 01
OBJID = OBJID of step 2
RELAT = u2018011u2019  and
RSIGN = u2018Au2019 and
(check todayu2019s date is >= begda and <= endda ) and
SCLAS = u2018Ku2019 u2026  and
SOBJID  = first 10 charactersu2026
The cost center will be first 10 characters of SOBJID.
4)     Return the Cost Center as derived in step 3. The cost center name and cost center name both should be returned as the output.
5)     Sort the Cost Centers in ascending order of Cost Center name, if needed.
Regards,
Gary

Similar Messages

  • How to delete the one of cost centers in Splitting Structure(OKEW)?

    Dear All,
    I have a question about Splitting Structure as below? Could I get favor from you? Thanks a lot.
    How to delete the one of cost centers in Splitting Structure(OKEW)?
    Jocha

    Hi Chang
    Welcome to SDN! Its our pleasure to help you here
    Step 1: Select your Cost Center in OKEW which is assigned to the Splitting Str
    Eg: Cost Ctr 1001 is assigned to Splitting Str Z1... Tick the Check box against 1001 under Z1 Splitting Str
    Step 2: Do a Single Click on the text "Non Assigned Cost Centers"
    Step 3: Press Shift +F6 (Or Click on the Assign Button, next to the Pencil icon)
    Br, Ajay M

  • How to find the list of existing tables in a schema using DB link?

    Hi
    I know how to find the list of existing tables in a schema using the following query
    SQL> select * from tab;
    but, how to list the tables using a DB link?
    For Example
    SQL> select * from tab@dblink_name;
    why this doesn't work?
    Pl advice me
    Thanks
    Reddy.

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?

    Hi All,
    We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
    Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.

    Hi,
    Here you go..
    1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
    Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
    2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
    3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
    This step you get query reference sheet or column or query general UUID for next step.
    4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
    Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
    Hope this helps.
    Please keep in mind, it might take more time depends on how many query elements you have in the system...
    Comments added for better DB performance by: Arun Thangaraj

  • How to find the list of Queries for that have statistics enabled in the sys

    Hi ,
    How to find the list of Queries  that have statistics enabled on them in the system.
    Please help me in this regard
    Thanks
    Maruthi

    hi ,
    I found three options there like
    X - on
    D - Default
    off
    can you please expalin the difference between on and Default
    Thanks in Advance
    Maruthi

  • How to find the list of all tables populated

    How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
    Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to find the list of Tables....

    Hi
    How to find the list of Tables associated with When a Goods Issue is done for a Process Order ??
    Kindly tell me step-by-step procedure in browsing it.
    cheers
    MaruthiRam

    Hi
    goto SE16 Click F4, You have two options Information system & Sap Applications.
    Click on SAP Applications & selec the application you wnat to see, for E.g Purchasing you can click on materials managemnt, Purchasing if you drill down you will see the list of tables....
    reward points if useful
    Thanks & Regards
    Kiran

  • How to find the list of all user exits modified by the users

    How to find the list of all user exits using by in R3

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to find the List of expired user Ids

    How to find the List of expired user Ids

    Can you please tell me the question in detail.What do u mean by expired users?
    IN a Client or in a System.

  • How to find the list of applications registered with OID?

    Could some one please help me?
    how to find the list of applications registered with OID?

    Is there any table from which we would be able to see?

  • How to find the list of unsettled fully/partially PM orders

    Hello,
    Pls let me know how to find the list of fully/Partially unsettled orders list?

    you can find it for a collection of orders thru S_ALR_87013015. get the list display of orders using IW 39 copy the order number to clipboard and transfer to S_ALR txn. Choose the correct controlling area.
    you get the settled amount credit / debit etc

  • How to find the list of users loggin through HTTP session

    Hi All,
    we are using SRM 5.5 system with ITS. I am able to find the list of concurrent users from ABAP level using report "CCUEVAL" but how do I know the list of concurrent users logged in from HTTP session?.
    could you please let us know the SAP note number or any report?
    Thanks in advance,
    Mohan Karri

    Hi Uday,
    thank you very much for your prompt response.
    I need a report because by end of every month I would need the average peak http users list for the reporting month.
    or tell me how to find " how many users logged in through HTTP session in a day?"
    Thanks
    Mohan

  • How to find the list of  transaction code based on a  field ?

    Hi  Gurus
    I have a unique requirement.We are adding a  new field into our system and want to know which all t-code  contains that field ?  So that we can update the  user training manual. Can some one tell me the ways and means of  finding the list of all the t-code ( or where used e.g functional area ) based on  " a field" ?
    Thanks in advance
    SN

    Hi,
    1. Tcode KS02.
    2. click on the text "Cost Center"
    3. hit F1
    4. Click on the technical information
    5. in the next screen double click on Field name :KOSTL
    6. Select the row for the component KOSTL
    7. Click on the display list
    8. In the next screen, in the object name:KBAS
    Drilldown to transactions.
    Here you get a complete list of the transactions.
    Hope its useful.
    thanks.

  • How do find the list of Supported Cameras raw files for Elements 12

    Where can you find the list of cameras that are supported by photoshop Elements 12  raw processing?

    Hi R Kelly,
    I tried to follow your directions for marking your answer as correct….. but I could not locate the “Correct” under the box where your answer appeared.  I tried clicking on the green icons to the right of the page but I could not get the “not answered” phrase to change to “Correct answer”.   I have not used this forum before and have no clue how it functions….  sorry
    LinDaZie
    Begin forwarded message:
    From: Garth & Linda Ziegenhagen <[email protected]>
    Subject: Re: Camera Raw supported Camera list
    Date: May 1, 2015 at 10:34:10 PM PDT
    To: [email protected]
    Dear R  Kelley,
    Thank you so much for your help.   I am thinking of purchasing the Panasonic Lumix Fz200 and wanted to be sure that my editing software supported my cameras raw format.  The OSX system is….. iMac Mavericks.   do have the Camera raw 8.5 with both my Elements 12  and the Photoshop CS6 Extended.   I will go ahead and order my camera… yeah!
    Again, thank you,
    LinDaZie

  • How to find the list of queries containing a Particular Infoobject

    Hi all,
    I have requirement to find the list of queries and workbooks which contains a Particular Infoobject. Please advice is there any Database table or Programs exists to find..
    Thanks in advance
    GAMY..

    Hi,
    Thanks for your replies.
    I have tried the oprion already..(RSD1 > Type in the name of the InfoObject and from the menu Edit > choose Where Used list.) but no use. It doesn't show the list of queires..It shows only the data targets.
    I would like to know is there any table to achieve the requirement.
    Thanks in advance
    Ganesh(GAMY)

Maybe you are looking for

  • How to add a watermark at the back of the report page

    I want to add a watermark 'DRAFT' at the back of the report page. Could you please tell me how can I do that? regards

  • BlackBerry Messenger Won't Open

    Hi!! I've been trying to open my BBM to use it for the past day and it will not open at all. Sometimes previously I've got the 'Error' message but this time, absolutely nothing, the application just won't open at all. I've reinstalled BBM at least th

  • Sun Solaris X86 and 10.2

    Hello, do anybody know when 10.2.0.1 for 10.2 Solaris x86 will be available? I did not find any informations on metalink.... Thanks and Regards

  • General query

    Hi, i have set below parameter in production database. .log_archive_dest_2='SERVICE=LOGSTDB LGWR ASYNC=20480 OPTIONAL REOPEN=15 MAX_FAILURE=10 NET_TIMEOUT=30' currently archive log is transferred from prod database to standby database and it is appli

  • Error code F0207

    Cisco UCS 5108 warning alarms generated in UCSM code="F0207" created="2013-10-04T08:30:32" descr="Adapter  host interface 1/1/1/2 link state: down" dn="sys/chassis-1/blade-1/adaptor-1/host-eth-2/fault-F0207" highestSeverity="major" id="410895"