Organization & Cost Allocation : API question

Hello
I need to setup the master data of cost allocation segments (Segment1 to 6) in our case, I am unable to find a suitable API for the purpose. I was expecting that hr_organization_api.create_hr_organization or hr_organization_api.create_organization should be accepting these segments to create an org and a cost_allocation_keyflex_id but that is not the case.
I searched and came across hr_cost_allocation_api.create_cost_allocation where it does take in segments but also has assignment_id as a mandatory field which doesnt make sense as I am only interested in first setting up cost allocation segments and logically this should happen first and later we shud be able to assign it to the employee's assignment.
Can anyone guide me to an API that setup the cost allocation?
Thanks & Regards
- Saira

Ivan,
All segments are optional
Following is the error that I get:
ORA-20001: HR_FLEX_VALUE_MISSING: N, COLUMN, SEGMENT1, N, PROMPT, COMPANY
ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 1359
ORA-06512: at line 8
Certainly it tries to look for segment1 value (which I dont want to supply) thus it gives error as I have not assigned the value to segment1 and as part of business need , cost centre's cost allocation must be only to segment2,4,5,6.
I have also tried giving segment1 & 3 as NULL but get the same error
Thanks
- Saira

Similar Messages

  • Pay Cost Allocation API

    I have successfully created and run PAY_COST_ALLOCATION_API.CREATE_COST_ALLOCATION in a test environment. The only issue I am having is that instead of end dating the cost allocation on a particular assignment and creating a new allocation on the same assignment, it creates a new assignment for the employee with new costing information.
    Is there a way to simply end date the existing costing allocation for an assignment and insert a new costing allocation for the same assignment? It would seem as simple as updating the effective_end_date for the assignment in Pay_Cost_allocations_f and then inserting a new record in the same table with an appropriate effective_start_date, and although I don't see the update hitting any other tables, I hesitate to change the table directly in that way in the event I am missing something (always a possibility).
    I thought it could be done with the Pay_Cost_allocation_api, but I cannot seem to see how.
    Any help is appreciated.

    Hi,
    Have you tried using PAY_COST_ALLOCATION_API.UPDATE_COST_ALLOCATION API to update the cost allocation.
    You can, like in most of the HR Public APIs, use the two modes: p_datetrack_update_mode = 'CORRECTION' or 'UPDATE' depending on your update mode (if you want to correct/override an entry or update and keep history of the records).
    When writing such a script, you would have 2 main scenarios possible (as I can guess from your requirement): you either call PAY_COST_ALLOCATION_API.CREATE_COST_ALLOCATION or the UPDATE_COST_ALLOCATION procedure depending if costing information exists or nor for the given assignment. You can write a simple procedure which will do this check (based on table "pay_cost_allocations_f" for a given assignment_id) and depending on what's returned, you can call the proper PAY_COST_ALLOCATION_API procedures (CREATE or UPDATE).
    Hope this helps...

  • Cost event and Cost change API

    Hello,
    based on the documentation of RMS 13.2 and tests performed, the cost change information applied throught RMSSUB_XCOSTCHG.CONSUME doesn't create Cost events in RMS, thus, the future cost engine have no invoirmation about the changed cost. Logical, that the ELC is not in concideration too.
    I have a question:
    Is there a common way (best way, already implemented way) to "push" the cost change API to trigger the Cost events creation or somehow force future cost engine to recalculate the base and related cost infomation?
    Suggestions are appreciated.
    Best regards,
    Eldar.A
    Edited by: Eldar.A on 24.07.2012 3:19

    Hi,
    Please maintain correct Profit center through OKB9.
    Or if the profit center is wrongly maintain by user then add the validation with the help of abapor using badi's MB_DOCUMENT_BADI / MB_DOCUMENT_UPDATE
    Regards,
    Sandesh Sawant

  • Multiple Cost Allocation Structures in Single Business Group

    We are curently looking at solution design of creating multiple Cost
    allocation flexfield in single business group environment.
    Purpose :
    Based on organization structure (18 companies) , the finance
    consultants proposed multiple COA structures with different
    valuesets , wherein values sets will be specific to the companies .
    This was suggested inorder to aviod tedious job of defining
    validations and post production support.
    This has impact on payroll solution design wrt to cost allocation FF ,
    where in we have to define multiple structures to map to Accounting
    FFs.
    Woudl like to check if oracle payroll supports this kind of setups.
    Note :The implementation is for UAE localization.
    Rgds/Lavanya

    If Finance System has multiple COA structures with different valuesets , wherein values sets will be specific to the companies then they will seperating cosing on Various OU Level.
    As my understanding, you have to create multiple Business Group as per multiple COA structures .
    Thanks

  • Cost allocation issue

    Hi,
    while doing Partial GR/IR i am getting below error message in Migo.
    " Cost allocation document was not posted due to enter an amount."
    Regards
    My

    Hi,
    Question is not clear.Can you clarify which message type and short error message.
    Regards,
    Sreekanth

  • Cost Allocation Using BADI

    Hi,
    I have to do cost allocation using BADI.
    shall I use UJ_CUSTOM_LOGIC for this if not then which BADI should I use?
    Can anyone provide me the sample code for this. (BPC version is 10)
    I am totally new to BPC. Please help.
    Regards,
    Atiqa.

    Please read my answer for your other question.
    Vadim

  • How is cost allocated for consignment item ?

    Hi Gurus,
    How is cost allocated for consignment item ? Is it based on inforecord price ? Or is it based on the split valuation price ?
    Detailed and answers appretiated. Points will be rewarded suitably.
    Thanks,
    Anil

    Hi All,
    Thanks for your help. I will award points.
    Another question>>>>We want to move consignment material to other location. Now this can be - a plant few miles away or another country.
    Material price in this case will be inforrecord price or price in material master MAP.???
    Thanks,
    Anil

  • Cost Allocation Flexfield with Table Value Sets

    Hi
    I am setting up Costing for Payroll. I have a requirement where I want to use Table Validated value sets for Cost Allocation Flexfield. In the Administrator Guide it is written that we should not use Table validated value sets for any KFFs.
    I still tried the same (defining Table validated value sets) and my process errored out. It was giving following error
    Value 381 for the flexfield segment Cost Center does not exist in the value set
    SJR_COST_CENTER_LIST.
    invalid code combination:
    381SJR_COST_CENTER_LIST is name of the value set.
    Then I changed the value set and keep the code and meaning in the value set table as same and my process worked fine.
    Now I want to know that should I use Table validated value set or not. As Oracle does not support these in KFFs

    Hi Thierry
    Thanks for the reply
    have you used cross validation rules?I am not sure about cross validation rules and how we can use in my case.
    An other thought: there is an action parameter available parameter_name=COST_API_IMODE
    Set the parameter_value = 'Y'In my case my costing process is working fine, even when I define my table validated value sets. My question is should we define table validated values sets or not as Oracle does not support it now? Oracle use to support this for KFFs some time back but now they are saying they does not support.
    Are there any known issues if we use Table validated value sets? Why Oracle does not support it for KFFs?

  • Resource Breakdown structure role in Project Cost Allocation.

    Dear Experts,
    What is the role of resource breakdown structure while running project cost allocations? Is it possible that targets in the allocation process gets the cost allocated to the resources in RBS which is same for source as well as target projects?

    Hi
    The resource breakdown structure (RBS) is used in the system to summarize the amounts from the lowest level leaf to the grouping / parent levels.
    You can use a summarized amount of certain node on the RBS, per your source project, as the source amount that will be allocated.
    On the target projects the allocation transactions are created as expenditure items. Those expenditure items will be on target project and task, using the expenditure type and expenditure organization you have setup for the allocation rule.
    Dina

  • Help me in defining Cost Allocation Flexfield

    hi friends,
    i am working on an implementation project...i am facing a typical requirement please help me to solve this issue.... let me explaing the issue...
    We are defining single business group....its has two operating units and two legal entities....the number of setof books also two... as for the benefit of accounting purpose...they have two accounting Key flexfields with two different Chart of Accounts(COA).... now how can i create a common and an single Cost allocation flexfiled whch should has the two Chart of account values.... Please help me to over come this issue.... this is an urgent issue... please address...
    Regards
    Narayanan

    Hi hasoub,
    Please check out our Adobe license management, discounts | Adobe Buying Programs  to find the solution that best fits your organization.
    Best,
    Sara

  • Cost Allocations

    Good Day
    How do you reserve a cost allocation that has been approved already. e.g. a consultant puts in more hours and they get approved adn be sent for costing and only to pick up that they have allocated wrong costs, how do you reserve it.
    Regards

    Hi,
    Budget = Actuals work in a scenario when the planned costs occur during a specific period of the Fiscal Year but you want to accrue the cost in all the Periods and Plan for those costs. For example, Annual Incentives paid to the Employees. In an organization if the incentive is paid during July then either the entire cost can be planned during July or the cost can be acrrued over the full year. Normally the costs are accrued for the entire year to avoid disproportionate costs between the periods.
    To do this you need to do the following;
    Say you Plan for 36500 USD for a Cost Center as incentive Cost for year 2010 and the planned costs are distributed according to the number of days for each period. So, your plan costs for Jan is 3100, Feb - 2800, Mar - 3100 and so on. You plan the cost on a Accrual Cost Element of Category 04. During Month-End you run the accruals and the actual costs are posted to the Cost Center with a corresponding credit to a common cost center that you may specify. You will have to move the accrued amount from the common cost center to FI accruals (Balance Sheet Account). As a result you see the costs of 3100 USD in Jan for the said cost center and your Plan and Actual values are equal. Finally when the actual costs are posted during July, you post them in FI to the common cost center and distribute the difference to all the cost centers using allocation methods based on the accrued amounts.
    Hope this helps,
    Sanjib

  • Msg. error BK048 for manual cost allocation

    Hi,
    we got a warning message for manual cost allocation (KB15N), when posting this allocation just with a quantity and without an amount. We would like to post this allocation without amount and therefore need to change the message type from warning (W) to information (I), to do this posting.
    When using transaction OBA5, there is just a fixed and not adjustable value for Standard with "W". Do you know any workarounds or how we can change this message type to do this posting?
    Regards
    Florian

    Hi Florian,
    HAve you assigned users in OBA5?.
    Go to OBMSG, for this particular Message number in the allowed message types, specify IWE etc. In the standard column specify I. Also you could check on check box "Switch Off" if you want to have the option of not seeing the message at all.
    Now goto OBA5, against the message number, in the "Online" column , specify I or - (Switch Off) and do the same in the BAtchl column also.
    Now you need too specify a user only if you want this change for specific users , if you want all the users to be able to post manual cost allocation then do not specify any user name.
    Do tell me if it works.
    Regards
    Susan

  • Purchasing organization & cost element IN BOM

    Hi All,
             I facing a problem with "N" category items in BOM. When i'm creating a BOM & adding a component which is non-stockable "N category", system is by default copying the Purh. org & cost element into this component.
    I checked the material master for this Non-stockable item & in this we can maintain only puch group & no where we maintain Purchasing organization & cost element.
    Please guide me from where could these values being copied into componenet details in BOM.
    Thanks in advance.

    Hi,
    You will not maintain the values like Pur Org and Cost Elements in Material Master . As it is non stock material you need to maintain the same in BOM itself so that system will allow to create Purchase orders with Item category "K".
    regards
    radhak mk

  • Cost allocation flexfield

    hi
    after reading payroll UG, i am a bit confused about cost allocation flexfield for payroll, assignment, element link, org,element entry.
    can i consider this flexfield as a T ledger, the first popup field is for Debit, the second one is for Credit purposes, when they are used for those 5 sections?

    the payroll - org - element entry - assignment - element link are levels at which you can define to show a segment or not.
    In case a segment is specified at a higher level, it is inherited from the other levels, so an end user has not to enter all the data all over again. (like a waterfall)
    The most detailed level is the element entry level. Imagine if the end user must enter there for each segment and for each segment all values. Too much work and too error prone.
    So you can set values for a specific segment at a specific level (example company code at payroll level).
    Costing then rolls up all levels to fully qualify all the segments.

  • Reg. Document type for cost allocation

    Hi,
    Please let me know where can maintain document type for cost allocation so documents get post in GL.
    With best regards
    Praveen Atmakuri

    Hi Praveen
    Can't recollect fully, but please check the FI/CO real time recon variant   Or may be the controlling area in okkp
    Simply activate the real time reconciliation and carry out a cross profit center allocation. Either system will trigger the posting in FI or give you error for missing doc type
    Br. Ajay M

Maybe you are looking for

  • Mac keeps crashing It's driving me mental!

    Whenever I log on to my mail it crashes my mini mac, i get the coloured beach ball and it just goes round and round and I have left it up to 30 minutes before now and nothing, this is happening all the time It is not just mainly when i use mail but t

  • Low resolution start up on mbpr

    Recently, I have noticed that when I first turn on my mbpr that the first gray screen with the apple logo is low res, it quickly changes back to high res, but this has never happened before today.  The same thing occurs when I hold down the option ke

  • Office Web Apps - How do I get Excel and PowerPoint to show up as options for New Documents?

    When I highlight a list of documents, a ribbon shows up at the top.  The left most action is "New Document".  Despite running and installing Excel and PowerPoint services, the only option that shows up is Word.  How do I add Excel and PowerPoint to t

  • "Digital Cinema Desktop Preview-Principal"

    Hello, I managed to use the function "Digital Cinema Desktop Preview-Principal" before, to preview some sequences but i can't now. I tried everything (restart, making chose nothing is selected by mistake..) but it doesn't want to work, what can I do

  • How to identify default browser through a 'C' program on solaris 8

    I have a requirement to display a html page in the default browser installed on solaris 8 machine through a C program. through a C program, 1. How to identify the default browser installed on a solaris machine? 2 How to get the path of the default br