Cost assignment check in IT 0015

Hi all,
I have to do additional cost assignment check in IT 0015. There are only few allowed combinations of fund, fund area and WBS element. Allowed combinations are stored in table FMBASOBJNR.
After click on "Maintain cost assignment" is called FM RP_TIME_COBL_002, but I haven't found any user exit where I could put my code.
The other way how to check it, is to do it in user exit EXIT_SAPFP50M_002, but tables ASSHR and ASSOB are empty at the moment when check is called and I don't know where cost assignment is stored.
Message was edited by:
        Michal Huber

It is called twice.. once when you click on  'Maintain cost assignment' & again when you hit on SAVE.... you have to clear the values in the cost assignment .. something like the following should work for you..
method IF_EX_HRPAD00INFTY~AFTER_INPUT .
  data w_flg.
   import w_flg to w_flg from memory id 'ZTST'.
  if w_flg eq space and not ipref is initial.
* do your Cost Assgnment validations & error out
     clear ipref.
*  message e016(rp) with 'test'.
  w_flg = 'X'.
  export w_flg from w_flg to memory id 'ZTST'.
  endif.
endmethod.
~Suresh

Similar Messages

  • How to do the cost assignement mandatory in  infotype 0014

    Hi everybody,
    does any of you know how to do the cost assignment mandatory in infotype 0014?
    We have use the feature COBLT  and table T588N for Function Module RP_TIME_COBL_002, and now the field COBL-AUFNR is mandatory, but we need the cost assignment to be mandatory, I mean should be impossible to save a new record without cost assignement. Is is possible using standard functionality or I have to use the user exit in PAI?
    Thanks in advance.
    Cristóbal.

    Hi,
    Instead of user exit, do as below.
    Go to Table using SM30->V_T588M. Give module pool name as MP001400.
    Now check your correct variable key for the feature & click on the corresponding Alternative Screen for e.g. 2010 & now go that field & mark that field as required field by choosing the second radio button.
    Hope this will solve your problem.
    Thanks,
    Sarika.

  • PR05 Cost Assignment cost center default

    Hello,
    I want to have the employee's cost center defaulted on the PR05 screen.
    I want to default it at the  Entire Trip's Cost Assignment.
    I am aware of the user exits available, however, i need to know if there is a way to default it without using the user exits.
    Thanks,
    Jerry

    Hi jerry,
    By default, all trip cost is charged to employee's cost centre ( even if you have not been mentioned any cost centre) otherwise as per calculation guidelines.
    http://help.sap.com/saphelp_46c/helpdata/en/e6/3152a396d811d194c100a0c92946ae/content.htm
    if you want to strict that trip shall be charged only employee cost center,  then you have to change following.
    Cost assignment specification: Complete Trip RP_TRAVEL_COBL_1700
    Following is the more help available for your information.
    I hope it would serve your purpose..
    Best Regards,
    Muhammad Umer
    Set Up Variable Layout for Account Assignment Objects
    The travel expenses accounting dialog contains the option to record cost assignment specifications for the complete trip, additional destinations (stopovers), receipts and the kilometer/miles distribution.
    The user is provided with two options for this purpose: The entry area Alternative Cost Assignment to Master Cost Center in the travel expenses dialog, or the Enhanced Cost Assignment function.
    Travel Management offers five different coding blocks that you can use to control the cost assignments within Travel Expenses accounting.
    In this IMG activity you define the screen layout for the account assignment objects - the selection and order of these objects. In addition you can specify the field characteristics for each of the account assignment objects.
    You can make these settings in relation to a specific user or the organizational assignment of the employee.
    To do this, copy the return value from the feature TRVCO as a variable key into the key of the fields with which you want to set up the coding block.
    Note
    The feature TRVCO is only evaluated during screen layout of a coding block if it is assigned to the corresponding function module in the view Screen modification for assignment data. This view can be accessed using the entry Check assignment of feature TRVCO to coding blocks in the selection screen for the IMG activity Set up variable layout for account assignment object
    In the standard version feature TRVCO is assigned to function modules. You should not change the following assignments:
    Coding Block for Function Module
    Cost assignment specification: Complete Trip RP_TRAVEL_COBL_1700
    Cost assignment specification: Receipts RP_TRAVEL_COBL_1701
    Cost assignment specification: Destinations RP_TRAVEL_COBL_1702
    Cost assignment specification: Miles/KMs Distrib. RP_TRAVEL_COBL_17
    Activities
    1. Check the assignment of feature TRVCO to the function modules for the coding blocks using the appropriate action in this activity.
    2. You can create new entries as follows:
    a) Choose the action Account assignment object: Cost assignment specification: <appropriate entry area> in this IMG activity.
    b) In the variable key field, enter the required return value from the feature TRVCO.
    c) Enter the name of the field needed in the Variable name field.
    d) Specify the field attributes for the field.

  • Cannot able to assign Operation number for Order for Change cost assignment in Travel

    All dear Gurus,
    During the creation of travel request in NWBC suppose if an employee opted to change cost assignment. And he selected order from Accounting Object and given an order. He is not able to select it because he is getting an error when he click on Accept.
    The error is " Order 1000000160 requires assignment to an operation number "
    In ECC we have an option called Enhance Cost assignment through which we can choose the operation number. But no such option is available in NWBC.
    Kindly help me to solve the issue.
    Regards,
    Namsheed.

    Hi,
    Business Area is a Required entry for G/L account 1180 300000.
    So
    Go to FS00, and check Filed Status Group,for G/L account 1180 300000
    Go to OBC4, check the Filed Status Group, what u have mentioned for the G/L account 1180 300000.
    Go To material management segment and put optional entry for the field of Business Area and save.
    Now try ur transaction.
    Regrads,
    Biju K

  • Custom Fields in Cost Assignment Tab

    Hi,
    We have a requirement of displaying a users 10 favourite cost elements in the cost assignment tab while creating a shopping cart.
    To meet this requirement we want 10 rows to be displayed in the cost assignment tab. Each row will consist of the following fields:
    Account category
    Cost Center/WBS Element
    GL Account
    Check box/Boolean Field.
    The user will select the check boxes or update the boolean fields of the row/s he wants to select.
    To achieve this requirement we have added the fields (as per sap note 672960) to the following structures/tables:
    INCL_EEW_PD_ACC_CSF
    BBP_C_ACC_F
    BBP_C_ACCFD.
    Also added the fields in customizing (TCode SPRO) as decribed in the note.
    The problem is only one each of account category, cost center/WBS Element and GL account is displayed one below the other, whereas we want 10 rows to be displayed.
    How do we go about achieving this requirement. Any help would be greatly appreciated.
    Thanks and Regards,
    Jayesh

    Jayesh,
    Hi. I'm not too sure of the release you are on, but on SRM 5.5 there are two that would be able to solve your requirement.
    1) BBP_F4_READ_ON_ENTRY. Here you can set a Favourites list for Cost Centre or WBS. This means when they go to the Account assignment screen the default 'F4' list will include their 10 fav.
    2) BBP_DOC_CHANGE_BADI. This can be used to default the account assignment rows in. It does mean they will have to remove the wrong ones, or you could set them all in with a zero percentage, and the user would have to setup the split.
    My suggestion would be to use option 1. Its not quite the way you have suggested with bespoke fields, but it is quite easy for the user to use.
    Cheers
    Rob

  • IT 15: How to find out different cost assignment specifications

    Hello,
    in the infotype 0015 (Additional Payments) it's possible to to define different cost assignment specifications (for example a different cost center than defined in IT0001). I already found out, that you can select those datasets with a special cost assignment specification by filtering the flag on the field PA0015-REFEX.
    What I didn't find out is, where I can select the cost center (or in general: the CO object), that was defined for that dataset? Is there a special table?
    Thanks for your help.
    Regards, Lulzim

    Hi Lulzim,
    The cost assignments are stored in ASSHR / ASSOB and PDSNR tables..
    Get PDSNR key from ASSHR table (Infotype 15) .. get details from ASSOB and PDSNR table
    Please kindly close the thread by allocating points if this resolves your issue..
    -Bharat

  • Cost Assignment IT2010 -

    Hi,
    We want to perform a Order Number Cost Assignment in IT2010, however after we select the order, it retrieves an error like this: "Order XXXX does not exist".
    Do you guys know what is missing? Or what we need to check in order to solve this issue?
    Thanks in advance,
    Luí

    Hello Luis,
    You would need your cost accounting guys to check if the configuration of controlling areas, processing groups and order types is correctly set in the system. Only once this hierarchy is properly set you will be able to select an order in infotype 2010. Of course the validity of these objects compared to the validity of the infotype record you are creating is something you will have to consider.
    Regards,
    Rodrigo

  • Cost center assignment view as soon as the open the cost assignment section

    Hi SRM Experts,
    When creating a shopping cart we have to click several times to view the cost center assignment, is there a way to have it viewable as soon as the open the cost assignment section to complete their project code information.
    Standard Process: Item Details -> Cost Assignment -> Details -> Cost Center (here we are able to enter cost center) - BBPSC02 Transaction
    Required Process: Item Details -> Cost Assignment -> Cost Center (here we are able to enter cost center)  - BBPSC02 Transaction
    SRM Version: 4.0 and Extended Classic Scenario.
    Thanks a lot in advance for your help.
    Thanks,
    Sudarsan
    Edited by: KOYYA SUDARSANA NAIDU on Mar 12, 2009 11:17 PM

    Hi,
    Cost centre should be displayed by default if you check the Defualt check box for that user in the org.structure attribute setting for CC attribute. So check the default check box against the CC.
    Or
    If your user is only using Cost Centre then exclude WBS element and other account assignment for that user in the org.structure attribute then the user defualt to cost centre only. Please note that this applicable only if that user don't want to use WBS element anymore.
    Cheers!!!
    NMK

  • How to Insert record in IT0014 along with cost Assignment details - FM Pls.

    Hi,
    I want to insert record in info type 0014 along with Cost Assigment details.
    I used FM - HR_INFOTYPE_OPERATION and RP_PLANT_DATA_UPDATE_TABLES.
    It works fine, but if I go and check PA20 after execution of program, ICON (Cost Assignment details) is not showing up on screen PA20. But If I check cost assignment tables (ASSOB & ASSHR) the record is present.
    Please let me know how to insert record in IT0014 along with Cost Assignment details.
    Thanks in Advance,
    Krishna

    Hi,
    I want to insert record in info type 0014 along with Cost Assigment details.
    I used FM - HR_INFOTYPE_OPERATION and RP_PLANT_DATA_UPDATE_TABLES.
    It works fine, but if I go and check PA20 after execution of program, ICON (Cost Assignment details) is not showing up on screen PA20. But If I check cost assignment tables (ASSOB & ASSHR) the record is present.
    Please let me know how to insert record in IT0014 along with Cost Assignment details.
    Thanks in Advance,
    Krishna

  • Alternative cost assignment for entire trip if different to master CA

    In the travel manager, i am not getting the drop down for choosing the different cost assingment. Previously i was getting this functionality and now I am not getting it. Is there any settings involved for this. Appreciate help.

    Hello,
    Please check your setting base on the note 312102. I think you have put more than one cost assignment in mandatory field which makes only possible in the Alternative Cost Assignment to enter your data.
    Regards,
    Raynard

  • Automatic generation of Cost Assignment

    Hi all,
    does anyone know if there is a BAPI, or a BADI that can be used to update a specific infotype 2002 record's Cost Assignment?
    Ideally what i am trying to achieve is when the USER EXIT EXIT_SAPFP50M_002 is called for infotype 2002, i want to check a specific condition, and based on that, change the Cost Center assignment to something specific.
    Anyone have any idea?
    Thanks,
    Chirag.

    Hi
    Check whether feature DDKNT will be useful for your purpose.
    Regards
    Sumit

  • Cost assignment error...

    Hello,
    In  MySAP SRM (EBP)  in cost assignment  when the user try to see the cost centers which are assigned to that perticular user, user are not able to search that page after clicking on find botton.but when the user provide the cost center manually then cost center discription automatically provides the cost center name .this is happning in production side only.
    why is this so ??
    kindly help.

    Hi,
    Check if this thread helps:
    Cost Center and G/L account search help not working
    Regards,
    Ancy

  • Report on Employees whose trips assigned check box not checked

    Hi SAP Guru's,
    We have a requirement wherein we have to generate a report having list of those employee's whose trip assigned check box is not checked in infotype 0017 (Travel Privileges) at the same time who are having trips created in their name. If you have any idea please share it with me.
    Thanks,
    Sudhakar.
    Edited by: sudhakar k on Feb 7, 2011 8:09 PM

    Hi Raynard,
    I did not give this table PA0017 as this table did not have the value trip assigned (field TRVFL).
    Hi Sudhakar,
    Get a list of pernr for whom field TRVFL is blank from that table. Then for the derived pernr check in table PTRV_PERIO or PTRV_HEAD whether any trips are assigned.
    You will get the desired result. You either create a customised report or pick the values from the table in the backend.
    Trust this helps.
    BR,
    Raj

  • Cost Assignment Change on Header Level

    This User changed the cost assignment at the top level to an internal order;
    however, it did not apply to one of the hotel charges.
    The other charge on the same date for the same vendor did change.
    What caused the one transaction to remain with a cost center instead of internal order?
    It was our understanding if the User changed the cost assignment at the top level it would be applied to all transactions in the report.  Is this not correct?

    Got the Solution from Development Colleagues:
    If a traveler change the cost assignment from cost object A to cost object B at the top level of an expense report, then all expenses which are assigned to the cost object A at change moment(!) should get the new cost assignment to cost object B.
    All expenses which are assigned to a different cost objects as A will be not changed!
    Example 1:
    Step 1. Traveler created an expense report with the cost assignment to cost center A
    Step 2. Traveler added 3 expenses
    => Expected result: all 3 expenses should get the assignment to the cost center A
    Step 3. Now traveler changed the cost assignment on top level of the meeting request to the project B
    => Expected result: all 3 expenses should get the assignment to the project B
    Example 2:
    Step 1. Traveler created an expense report with the cost assignment to cost center A
    Step 2. Traveler added 3 expenses
    => Expected result: all 3 expenses should get the assignment to the cost center A
    Step 3. Traveler changed manually the cost assignment of one expense to internal
    order D
    => Expected result: 2 expenses are assigned to the cost center A and one expense is assigned to the internal order D (because of manually change!)
    Step 4. Now the traveler changed the cost assignment on top level of meeting request from the cost center A to project B
    => Expected result: only 2 expenses which were assigned to the project A are now assigned to the project B, the one expense which was assigned to the internal order D should be still assigned to the internal order D (it is not assigned to the cost center A and therefore not affected by the change from cost center A to project B).

  • Add grant  & fund to specific cost assignment in IT15

    Dear All,
    I'm usign R/3 4.7 with PS and UN (NPO) payroll module.
    Grants adn Funds are activated.
    IT1 and IT27 contains grants, funds, and funds center information.
    In order to post specific wage type to specific cost center, we try to use the option in IT15 offered by the Maintian cost assignment function. But in this screen I do not have grant fund and fund center.
    As this is required I can not validate the screeen receiving the following eror message :
    "Account assgn Fund is active in HR on 01.01.2008 and must therefore contain a value"
    It makes because this is a fucntionnal requirement otherwise .
    Does anyone know how to add grant, fund and fund center to this specific screen ?
    I couldn't find any notes about this.
    Best regards
    Philippe Boutarin
    Edited by: Phillipe BOUTARIN on Oct 17, 2008 2:39 PM

    Hi
    Use CK74N.. You can add the value you want and also the cost ele of your choice.. Save it in CK74N
    Now when you run CK11N, the cost you added in CK74N would get added to CK11N's own cost
    br, Ajay M

Maybe you are looking for