OUTWPCOSTC - Query Cost Center

I want to write a PCR which will throw an error in payroll driver log if cost center is not maintained in Infotype 0001.
I understand we have to use the OUTWPCOSTC, VALEN and VAOFF. I am however unsure how to use VALEN and VAOFF and write Error Statement. Anyone written OUTWPCOSTC pcr before?
   OUTWPCOSTC
        Error "Cost Center not maintained in Infotype 0001`"
      A
        ok

Hi,
Here it goes.
VAOFF 6 (offset cost center to read from 6th position to end, optional and can be skipped)
VALEN 1 (set length to 1 and this needs to checked for cost center entered as exist or not)
OUTWPCOSTC
ERROR
In schema maintain rule as,
ACTIO <rule> A
Where, ACTIO is function to perform action,
<rule> is rule to be actioned
A is rule will perform action for each work center (read documentation for ACTIO)
Thanks,
Ameet

Similar Messages

  • Query Cost Center and Cost Element Hierarchy

    here is the problem.
    We are trying to build a query that does the following.
    Its a CCA query.
    We have Costcenter in the Filter area with a Hierarchy assigned and a hierarchy node variable attached.
    We run the report and its looks good and the user cannot drill down because nothing is in the "rows" area. Its perfect.
    Now the user has said that within that Costcenter Hierarchy we only want to see a total number based on the CostElement Hierarachy assigned. Different CostElement Hierarchys are valid for different times of the budget.
    I have created a Hierarchy variable and attached it to the CostElement.
    Here is The issue ****
    If I drop the Costelement in the "rows"area it prompts for the Hierarchy name , filters Costcenter properly and provides the extact number. Problem is the user can now drill down and that is not allowed becuase we are going to have 3 summary totals with a "grand total" at the bottom.
    So if I put the CostElement in the Filter area it now does not filter the CostCenter and I get the wrong number.
    Is there a way to prevent drill down or some how force the CostCenter to be filtered by CostElement also.
    Thanks for any help
    Richard

    Hi Richard,
    Not sure if this will help as I have not tried it out, but you can try by setting the display property of Cost Element to No Display, when it is in the Rows area. This can be done by Cost Element > Right Click > Display As > No Display.
    Hope this helps...

  • Add "cost center" query to a start condition?

    Hi there,
    we got a new requirement for one of our plants.
    We're on SRM 5.0 classic scenario.
    Is it possible to add a "cost center" query to a specific start condition (SWB_PROCUREMENT) of a workflow?
    E.g. if a user uses cost center 4711 for a shopping cart item a specific cost center responsible xyz should approve this item.
    If the user uses another cost center 4712 for a second item in this shopping cart this item should be approved by another cost center responsible abc.
    Is that somehow possible ?
    So far I did not find a suitable expression for cost center.
    Thanks in advance for your answers.
    Best regards,
    Henning

    Hi Masa,
    thanks for your answer. Perhaps you also have a hint for the following:
    I can't really find in the metioned thread or in note 731637 what happens if a SC with several items is partially approved.
    Example:
    SC with 3 items:
    item 1 cc 1000
    item 2 cc 2000
    item 3 cc 1000
    Let's say item 1+3 have been approved by the approver found by badi and WS14500015. Is a PO or a purchase requisition created in backend? Or is it only created after the whole SC has been approved (i.e. also item 2).
    Thanks for a hint and best regards,
    Henning

  • Query with Cost Center Hierarchy giving incorrect results

    Hi All,
    I have a universe built based on BEx query on Cost Center cubes. When enabling hierarchy in BEx Query and building Web intelligence Report based on the universe, I get incorrect results.  The levels of the hierarchy is incorrect, many of the cost centers are missing etc. I checked the universe and confirmed that all levels of hierarchy are generated correctly. The Lov generated for these levels are correct and I see the complete hierarchy when using the BEx Variable in Universe for filtering.
    I tried the same query with Hierarchy disabled with a different universe and it is providing correct results. Not sure what I'm missing here. Any inputs regarding this is appreciated.
    Thanks & Regards,
    Sree

    Ingo, Thanks for your suggestion. Of course, I did update the Universe after any changes in the query. Tried different query setting related to hierarchy  to make it work, but didn't many any difference and I get consistently incorrect results.
    One thing what I wanted to confirm is, if there is any known bug in SP 2 Fix Pack 2.7 related to hierarchies. If not, it might be me doing some thing wrong  and I will look into in more detail.
    Thanks & Regards,
    Sree

  • Ad-Hoc Query for OU's and their Cost Center

    Cost Centers are often inherited from parent OU's. If I try to make an Ad-Hoc query, select some OU's and show the Cost Centers via the relationship A11, the fields are empty unless the Cost Center is hardcoded for the OU.
    Is there a way to create an Ad-Hoc query that shows the Cost Centers even if they are inherited? I can't make any changes to system tables or other customizing.
    Thanks in advance!

    Unfortunately I'm not authorized to use SE16.
    This is my selection:
    Object ID: xxx (Selection)
    Object Type: O (Selection)
    Plan Version: 01 (Selection)
    Relationship Between Objects: 011 (IT1001)
    Relationship Specification: A (IT1001)
    Type of Related Object: K (IT1001)
    Output:
    Object ID (IT1000)
    Object Abbreviation (IT1000)
    Object Name (IT1000)
    ID of Related Object (IT1001)
    Any other way?

  • URGENT - Query to get employes with multiple cost center

    Hello,
    The sample data for my requirement is:
    create table a
    (year     number(4),
    month      number(2),
    empno number(5),
    cost_center number(3)
    insert into a values(2003, 10, 1034, 102);
    insert into a values(2003, 10, 1034, 102);
    insert into a values(2003, 10, 1034, 102);
    insert into a values(2003, 10, 1034, 103);
    insert into a values(2003, 10, 1034, 103);
    insert into a values(2003, 10, 1039, 102);
    insert into a values(2003, 10, 1039, 102);
    insert into a values(2003, 10, 1070, 102);
    insert into a values(2003, 10, 1070, 103);
    commit;
    In the above sample data, empno 1034 & 1070 has two different cost centers (102 & 103) whereas empno 1039 has one only cost center i.e. (102).
    Now I want a query that returns empno, cost_center with employees having more than one cost center. Considering the above sample data, the query should return empno 1034 & 1070. Empno 1039 should not appear in the query output as it has only cost center.
    The output should be something like...
    Empno cost_center
    1034 102
    1034 103
    1070 102
    1070 103
    I'll b grateful for an urgent reply.
    HASAN.

    select distinct empno, cost_center
    from a a1
    where exists (select 1 from a a2
    where a2.empno = a1.empno
    having count(distinct cost_center) > 1)
    /

  • 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

  • How to Get the Job, Cost center, Position description using select query

    Hi all,
    How to get the  Job, Cost center, Position description through select query without using the Function module?
    thanks,
    Prasad

    use adhoq query and take the report chose both text and value

  • Cost center query tkakes a long time while executing with User's Id

    Hi Experts,
    We have a cost-center query which is taking a long time to display the output with User's id.
    I tried running the report with the same selections and was able to get the values within seconds.
    Also we have maintained aggregates on the cube.
    When user tries it for a single cost-center the performance is Ok.
    Any help on this wil be highly appreciated.
    Thanks,
    Amit

    Hi,
    while running the query find the trace in ST05 - before running the query in RSRT activate the trace with user id and after seeing the report in RSRT deactivate the trace.
    go through the logs find the which object taking long time then create the aggregates on the cube.
    while creating agggates give the fixed value.
    please find the doc " how to find the SQL traces in sap bi"
    Thanks,
    Phani.

  • Cost center assignment query

    Hi,
    I have cost element 12345. When we create a purchase order using the cost element, it give me error "it requires assignment to CO object". When I assign cost center in OKB9, it give me error "CC XX is locked for revenu postings".
    I wouldnt like to uncheck "revenues" in the KS02  tab as it is not advisable.
    Can anyone let me know what to do to let the entries pass without getting the error?

    Hi,
    From your post it is clear that the cost element must be of category '11'. So, please try assigning a profit center (in OKB9) and then try posting it. Otherwise, you can derive a profitability segment and then try.
    Please note that CO object refers to cost center, profit center, internal order or a profitability segment.
    By the way, can u let us know why a revenue posting is being done through a purchase order.
    Hope this helps.

  • Want to check whether cost center exists or not during payroll process ?

    Dear All,
    Requirement is to throw an error for an employee during payroll run if the cost center does not exist.
    I guess this may be achieved by PCR only.  There is an operation OUTWPCOSTC which can help.
    Issue is that there are parameters like VALEN and VAOFF which need to be taken care of while using OUTWPCOSTC.
    Also, when cost center is not assigned, its value in WPBP is BLANK.  How to query a BLANK value in PCRs?
    Can any help on this with an complete example?
    Regards,
    Ankit

    Hi Ankit,
    Try with PCR
    VALEN 1
    OUTWPCOSTC
    Update the PCR in sub schema COPY  Z002                  Edit basic data
    000040 WPBP                        Read Work Center/Basic Pay Data
    000050 GON                         Continue if Data is Complete
    000060 ACTIO ZQ14 GEN              Check if cost centre exits
    000070 BLOCK END                   Edit basic data
    This will help you while runing the Payroll.
    Thanks & Regards
    Vikram Mali

  • Cost center report with Vendor name

    Hi All,
    I need a cost center report which shows Vendor name and number.
    I tried with report S_ALR_87013611 but it is not displaying Vendor name for the expenses which is posted in MIGO.
    It is showing the offset A/c as GR/IR clearing a/c.
    Any other report or query I can make this.
    Thanks in Advance.
    Regards
    Shanu

    Hi Shanu
    There is a workaround
    When you post expense Dr to Vendor Cr - Use substitution exit RGGBS000 and populate Vendor no / name in a Text Field like SGTXT/.. You need to write FI Substitution in OBBH for this
    After this, implement the exit COOMEP01 to fetch SGTXT in CO Line item reports KSB1... It will also be visible in S_ALR reports
    Include SGTXT in the Structure CI_RKPOS
    Sample code of COOMEP01 is as below
    The code is written in include ZXKAEPU01 of EXIT_SAPLKAEP_001
    SELECT SINGLE vbel2 SGTXT FROM bseg
      INTO (cs_record-vbel2, cs_record-SGTXT)
                 WHERE bukrs = cs_record-refbk
                   AND belnr = cs_record-refbn
                   AND gjahr = cs_record-refgj
                   AND buzei = cs_record-refbz.
    br, Ajay M

  • Report Painter - How to identity statistical orders in a Cost Center Report

    Hello,
    currently I am in the process of building a cost center report based on reporting tabel CCSS.
    This report should list all primary and secondary costs which are charged to a specific cost center/cost center group .
    The cost center or cost center group is given in the general data selection.
    All direct primary cost postings are identified in rows like this:
    - Cost Element (SET): cost element group A1, A2,...Axx
    - Business Transaction Type: COIN
    All primary cost postings deriving from (real) internal orders are identified like this:
    - Cost Element: 1 to 9999999999
    - Business Transaction: KOAO
    - Partner object number: 0 to 99999999
    Now here is the problem:
    The controlling department requests to identify all primary cost postings  to the given cost center which have been postet to a statistical internal order at the same time.  The most part of the primary costs have been directly postet to the cost center in the Additioanal Account Assignments. But some have been posted to the cost center and at the same time to a statistical internal order.
    Looking into BSEG I can quickly identify these line items as they have a value in BSEG-KOSTL and BSEG-AUFNR.
    How can I select these items in a report painter report?
    I would like to separate all items whith connection to statistical int. orders from those with no connection to internal ordes.
    Thanks for your help!

    Dear Elli,
    Dear SAP-Gurus,
    once again, thank you for your quick reply.
    You hints and remarks are very much appeciated.
    My problem seems to be slightly more complicated than what I had expected.
    All postings to the cost center/cost center group are actual postings. The cost center is the "real" cost element, there are no postings of value type 11 here.
    Most postings have the cost center as the only cost element, but others additionally mention a statistical order.
    My goal is to seperate those postings to the cost center [as (real) cost element] plus the statistical order from those with only the cost center.
    I would also like to sort these postings by the order number.
    I could easily write two reports:
    One  for the cost center and another one only for the statistical orders. The latter would use value type parameter 11 (as you proposed!). Unfortunately, I do not know all order numbers tied to the cost center. As table BSEG is not suitable for SAP Query,  I  run into deep problems here.
    I know I have problem in the design of my report here and  I would like to sort out, which options I have.
    Is Report Painter a suitable tool for me here anyway?
    Thanks again!
    Karsten

  • BW report authorization for restrict cost center

    dear all,
    i have problem on BW report authorization for restrict cost center.....when i execute the query, after selection screen, appear error message 'you cannot change zv_cctr for characteristic 0COSTCENTER during query'.
    note : zv_cctr is variable restriction for costcenter, type processing = customer exit.
    below the customer exit :
    WHEN 'ZV_CCTR'.
        IF i_step = 2.
          DATA : gt_mstuidvscc TYPE TABLE OF  ztbw_mstuidvscc,
                 gs_mstuidvscc TYPE  ztbw_mstuidvscc,
                 wa_final2(10) TYPE c.
          SELECT * FROM ztbw_mstuidvscc INTO CORRESPONDING FIELDS OF TABLE gt_mstuidvscc
            WHERE userid = 'sy-uname'.
          LOOP AT gt_mstuidvscc INTO gs_mstuidvscc.
            wa_final2 = gs_mstuidvscc-kostl.
            l_s_range-opt = 'EQ'.
            l_s_range-high = wa_final2.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        ENDIF.
    Regards,
    Tony

    i defined variable as ready for input and mandatory.
    regards,
    Tony

  • Cost Center Authorization

    Dear Friends / Experts
    We have around 10 HR (BW/BO) reports. All are woking fine. Now the users wants to restrict the report based on cost center.
    Hence, I have created one DSO with relevent information and extracted the data from ECC ( Used id, Cost Center belonging, Etc....).  Created one customer exit variable and lookedup this used cost center data in CMOD. This is perfectly working.
    My Doubts
    1) This logic no where related with authorization. Do i still need to consider authorization object and handle further ?
    2) If the Logged in user not available in the DSO, i am not able to edit the query in BO-Webi .
    Can anybody advise ?. Good advise awarded with points.
    Regards
    Saravanan Raju

    1) This logic no where related with authorization. Do i still need to consider authorization object and handle further ?
    The concept of authorization is only similar, instead of a DSO, you use a Z*COST time-dependent authorization-relavent IObject & start to set the time-intervals for access. I assume the DSO concept, although is a quick fix is not a long term solution, as there needs to be loads, corrections at irregular time intervals & this needs to reflect on the BEx. This holds okay for lesser # of users, but you might never estimate the size, as the business would consider adding more in months to come. As rightly said, you need not have an authoriztion object to handle, but if you make cost center object's customer exit to refer this using a SSO-details (like sy-uname), this will restrict entries & authorization based on this field in your BEx. But still you need to work on the DSO concept & try to migrate towards a authroization-releavant IOBject for good sakes, as there is a possiblity the data is exposed -or- completely not avalialbe even for testing & you need to add the same set of ccenters repeatedly for all users again & again, month-on-month, issues like that.
    2) If the Logged in user not available in the DSO, i am not able to edit the query in BO-Webi .
    Yes, as stated above, this is the drawbacks in this model. Hope it helps.

Maybe you are looking for

  • Did you upgrade ram at an Apple store...??

    my quest to upgrade my mini G4's ram to 1 gig continues. after numerous calls to the apple store in SoHo and on 5th i was told to just "bring it in" the the store on 5th ave (the soho store being nice enough to tell me they were out of stock on PC320

  • Line item wise billing

    Hi All, Can we do sale order related billing for individual line item wise and quantity wise? If this is for delivery related billing then the setting will be in item category, billing relevance as K. But what will be the settings for order related b

  • HOW to retrive data from SAP Tabel

    Hi Friends,    1)Can you please explain how to retrive data from SAP table(example AFRU).    2) we had requriment based on the qunatity , Product name and date we need to display KPI's .KPI is based no products manfactured per day with some condition

  • Updated to Yosemite recently, keep on getting efi and kernel panics. Can someone explain what this report means?

    This is the crash report I just got. I am just doing random work and this happens. I would really appreciate it if someone could explain what this means. I have fixed my computer with DiskWarrior 3 times but this just keeps happening. I also have boo

  • Last posting run terminated (Restart in period 2010 001)

    HI, There is the challenge issue for Depreciation run in AFAB, While running the depreciation for the month of jan month system never allowing to post. After the upload of assets through BDC, this is the first time we are trying to run  the depreciat