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

Similar Messages

  • Automatic shipment cost doc. using Badi or BAPI

    hi all,
    I need to create a shipment cost document once PGI is done (PGI is done from shipment document) in background.
    can u help me are there any badi's or BAPI's available in standard and how to customize it.
    Thanks & Regards,
    Suresh

    HI,
    VI01 internally call the below function modules.
    SD_SCDS_CREATE
    SD_SCD_CREATE_CHECK
    Pls validate, if this works for your requirement.
    Also check this link
    Re: BAPI or FM to create SCD (VI01)
    Regards,
    KK

  • Reg:Allocation using UJR_WRITE_BACK

    Hi Experts,
                     I am doing allocation using badi based on previos year actuals.
                     I am using FM UJQ_RUN_RSDRI_QUERY to get the previous year actuals but the problem is that i have to use this FM
                     multiple times for every record.so it affects the performance of the system.
                     Can anyone send the sample code for this scenerio or helps me out in fetching database values effectively.
    Regards,
    Vinoth

    * Call SQE to read transaction data
    TRY.
        CALL FUNCTION 'UJQ_RUN_RSDRI_QUERY'
          EXPORTING
            i_appset_id       = lv_appset_id
            i_appl_id         = lv_application_id
            it_dim_name       = lt_dim_name
            if_check_security = abap_false
          IMPORTING
            et_data           = <lt_tx_data>.
      CATCH cx_ujq_exception.
    ENDTRY.
    I used this simple code and got all the records into the ITAB. hope this helps
    Sravan

  • Using SAP BO PCM  with cost allocation

    Hello,
    Can anyone kindly point me in the right direction or better still help me out on how to use PCM for cost allocation... A simple example would suffice ie using service costs from HR and allocating thses costs to lets say Sales Dept and Manufacturing Dept.
    I am struggling with trying to create a view builder to capture the allocation...
    Cheers

    Hello, Victor
    You have three RespCenters: HR, Sales and Manufactoring and you fullfiled LineItemValue grid
    for all service costs on HR RespCenter.
    For example you have one process in the model and it was assigned for each ResCenter (RespCenter/Activity Assignment)  and you use Direct Activity assignment or Resource drivers to allocate costs(LineItems) between activities. In this case ActivityLineItemValue grid shows correct values for HR RespCenter.
    Reassignment configuration step:
    Mark Reassign Activity attribute for each activity that you want to use in reassignment.
    In Activity Reassignment Section choose HR and one process as source and Sales, Marketing and one existing activity as target. System required resource driver for this assignment too. Don`t forget about DriverSplit values.
    Viewing results:
    Create new grid based on ReassignInValue. Drag and drop to rows: HR Respcenter, Activity and Line items to _one_ Row (otherwise you may use same source selection in dimensiontree list)
    At columns: Target RespCenter, Target Activity (check that you have dimension with prefix target in dimension list)
    Regards,
    Evgeniy

  • 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

  • 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.

  • New GL allocations using customer fields functionality

    Can anybody throw light on New GL FI allocations using extended fields(Customer fields). Not much info is present on this topic and detailed steps on how to achieve this would be appreciated. I am basically trying to allocate between a cost center to some custom field e.g. distribution channel. Is that possible?. If so how exactly.

    I found the answer
    The following steps must be executed to allocate to a customer field in new GL FI allocations
    Step1-(OXK3) Add customer fields to the coding block.
    Step2-(FAGL_GINS)Add the new custom fields to the FAGLFLEXT table.
    Step3-(SE11) Create value and text table for the new fields added.
    Step 4-(SE16n) Maintain products and distribution channel table.
    Step 5- (GLGCS1) Add the new fields in the master data check.
    Step 6-make the new custom fields as optional entry in the field status group variant for postings and also open the fields for corresponding posting keys.
    Step 7-(GLGCA6) maintain Field usage for distribution.
    Step 8-update customer fields to the required ledgers
    now create a distribution cycle FAGLGA31  and execute it using FAGLGA35

  • Change in Cost Allocation Flexfield

    Hello,
    Client is currently using HRMS for the past one year. Now we need to make a small change in the Cost Allocation Flexfield structure. How will this affect the past data. How can we address this scenario. I seek your expert advise to handle this effectively.
    Regards,
    Jeeves

    Hello Gaurav,
    We're trying to change the value of a segment from 4 digits to 5 digits. We want to update the existing values. Is this possible from the back end.
    Regards,
    Jeeva

  • 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?

  • 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 Allocation to Assets at a Task

    Consider the following scenario
    In Project A ,
    Asset Cost Allocation Method = Spread Evenly
    Group Method = Expenditure Type
    An Asset A1 is created and assigned to the Task T1
    Accumlate the CIP cost at Task 1
    Then Run the Process "PRC: Generate Asset Lines for a Single Project"
    When the process is finished the asset lines are generated and cost lines are assigned to asset A1.
    Then Run the Process "PRC: Interface Assets to Oracle Assets" so the Asset A1 is interfaced to
    Oracle FA
    In Oracle FA RUn "Post Mass Addition
    Next month a new Asset A2 is created and assigned to the Task T1
    Accumlate the new CIP cost at Task 1
    When the process is finished the asset lines are generated and cost lines are assigned to Asset A1
    and Asset A2.
    So why the new cost is assigned to both Assets A1 and A2. A1 is already assigned to the interfaced
    to Oracle FA.
    Can't we achieve that the new cost only to Asset A2 which is not interfaced to Oracle FA and not to
    Asset A1.
    Regards,

    Hi
    In case there are many projects , tasks and assets, consider using the client extensions available for capital projects.
    You can develop the custom code for automatically generating assets in one client extension, and utilize the other extension to group costs into the relevant asset based on your own company logic.
    Dina

  • Overhead Cost Allocation - with IFRS

    Hi Gurus,
    We have configured Leading Ledger for reporting in IFRS and a non-leading ledger for local (India) Reporting.
    As this implementation is being done by our Overseas parent company - we are using  template allocation for Overhead cost allocation.
    However, we want to allocate expenses based on actual consumptions rather than on Process Output quantity. ie. for  example - electricity charges we want to distribute based on actual no of units consumed by each department/machine/process.
    Kindly advise, If there a possibility for having both methods in the system (automatic) or manul process for achieving this.
    Thanks
    Sree.

    Hi Expert,
    There is no such feature to Allocate Overhead Cost with Ledgers.
    No need to Allocate Costs or Overhead Costs with respect to Leading Ledger - IFRS.
    By default, the Costs or Overhead Costs are allocated to Leading Ledgers.
    Regards,
    GK
    SAP

  • 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

  • Difference Btw Secondary cost allocation and activity allocation

    Hi All
    Can anyone let me understand what is the difference between Secondary cost allocation, activity allocation and direct cost allocation? I will be thank full if some one elaborate it with practical example.
    Thanks

    cbairi wrote:
    Hi,
    Can someone explain what is the difference between cost allocation and accounting flexfields.
    Cost Allocation Flexfield is used in Payroll and Account flexfields are used in Financials. Basic difference is that you may want to charge to the same GL number even though the cost is coming from two different cost centers. Like say Overtime and Regular Hours Costs.
    But it is always recommended that you use the same value sets for the common segments
    For instance let us say an employee A is assigned to a payroll P and the employee has a default code comibination(i.e the accounting flexfield) information. Now all the costs incurred on this employee will go to the accounts defined in the accounting flexfield. It will not automatically go to the accounting flexfields but you have to map cost allocation flex with GL Flex and then run the transfer process.
    let us know if it explained your doubts or not.

  • N-Step workflow using BADI.

    Dear Experts,
    I want to implement N-step workflow using Badi. I have already maintained the data in Z table for approvers and corresponding limits.
    Based on the shopping cart value, cost centre and plant i will pick the approver from the Ztable.
    I would apreciate if you can guide me step by step. I would appreciate if anyone send me the sample code for this.
    Thanks
    Ravi

    Hi,
    Determing the approvers for the SC using Z table would be the simplest method.
    You can store the combination of values(e.g. a/c assignment,plant fields etc) in the Z table and the corresponding approver names as well asl the approval levels (no of approvers) for those combinations.
    E.g. for SC with values between rs.1- rs.100,level approval would be 1 and the approver would be ABC.
    Maintaining Z table will be based on your requirement/fields for determing the approvers.In the BADI ,you will just need to determine the runtime values for the determing fields(e.g. a/c assignment,plant etc) and then fetch the approver names and approval levels from the Z table.
    For determing the runtime values for the determing fields(e.g. a/c assignment,plant etc),in the BADI,at the start,use the FM BBP_PD_SC_GETDETAIL to fetch the SC details such as a.c assignment,plant etc and then acc fetch the approver details from the Z table and pass to the export parameter APPROVAL_TABLE in the badi.For more details,refer the documentation of the badi:
    http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm
    For sample code of N-Level Approver BADI - BBP_WFL_APPROV_BADI,
    Refer to this link ->
    how to code APPROVAL_ADMINISTRATORS in n-step WF?

Maybe you are looking for