How to change the Profit centre in goods receipt before posting

Hi All,
when we are doing MB01,  material master and Purchase order  are  having different profit centres, since legacy has multiple profit centre for the same material.
My requirement is to change the profit centre before posting a Goods receip with the Purchase order Profit centre.
Is thre any user-exit, Badi or Substitutions for this requirement.  I have implimented the below code in the Badi
MB_DOCUMENT_UPDATE.
data : ls_xmseg type mseg.
ls_xmseg-Profit Centre = .....
ls_xmseg-prctr = '0020077170'.
modify XMSEG from ls_xmseg transporting prctr .
But i'm getting Data base update terminated message. Please help me in this.
thanks,
Ram.

Dear Sir,
But is T-code not working ....
have you other code/ process so, pls. give me ....
Pls sir
Regards
Jayesh Kanungo

Similar Messages

  • How to change the profit centre during deliver?

    i have an error during report generation.
    'profit centre 'xx' not valid for company code 'abcd' '".
    how to overcome this issue as i am unable to do the PGI.
    let me know if any one has fced the issue
    thanks
    mmn
    <REMOVED>

    hi,
    GOTO -> KE53-> enter ur controlling area-> prress  enter> key in the profit center which is having problem press enter-> This will take u to the screen, goto COMPANY CODE tab---> tick the company code in which it showing errror
    regards,
    Arun prasad

  • How to change the Profit Center in Sales Order

    Hi Gurus,
    Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
    So, could you guide me how to change the profit center in sales order.
    Thank you for your replies.....
    Thanks & Regards,
    Chandrababu.B
    Edited by: Chandrababu Naidu on May 25, 2011 12:44 PM

    Hi
    If this SO is processed partially - i.e. transactions happened - You cant change it
    You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
    br, Ajay M
    Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM

  • MIRO User - Exit to Change the Profit Centre..?

    I need to change the Profit Centre in the Accounting document(for Vendor Line Item) and Profit Centre Accounting Document(For Payable Line Item) Created by MIRO Transaction.Can any one let me know if there is anyuser-exit or badi to achieve the same
    Thanks a lot for your help .
    Regards,
    Gopi.K

    hi
    These are all the user exits avalilable for MIRO transaction.
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    I think you can use this exit.
    LMR1M002 
    Regards.
    Lavanya.

  • Change the profit centre in the cost centre master after a year

    Hi All,
    Could you'll please let me know whether it was possible to change the profit centre in the cost centre master and if i did what will be the implications.
    Thanks and Regards,
    Vandana

    Refer transaction code OKEG.
    You can maintain master data for cost centers, cost elements, activity    
    types, and business processes with time dependencies. You can make        
    changes at any time for any given time interval. Data storage also takes  
    place with a time reference. In this way, a master data record can have   
    multiple database records storing different information.                                                                               
    The smallest interval is one day. To ensure data consistency, you cannot  
    change each field daily. The timeframes in which you can change a field   
    depend on the field functions, which are fixed by the system and cannot   
    be changed. Master data maintenance includes an automatic check for each  
    field's time-based consistency, resulting in individual time-based        
    maintenance for each field.                                                                               
    The following dependencies are supported:                                                                               
    o   Not time-based                                                                               
    o   Day-based                                                                               
    o   Period-based                                                                               
    o   (Fiscal) year-based                                                                               
    This function provides an overview of the time dependencies of           
    individual master data fields during master data maintenance, along with 
    checks and storage of consistency timeframes. You find this information  
    in the "Time dependency" column.                                                                               
    If you use fields requiring characteristics greater than one day and     
    which are changed for the system lifetime of the object, the system      
    automatically creates a new database record for this processing          
    interval, and changes the time-based validity of existing records. The   
    change is logged in the master data record with the time reference.      
    However, a great number of changes in multiple timeframes will result in 
    a correspondingly great number of data records.                                                                               
    Fields which you can change freely (indicated in the DAY column) can     
    possess different time dependencies only if you mark them additionally   
    as historically relevant. This activates the time-based updating for the 
    records.
    Object 1000 has one master data record created with a fiscal year of 12 
    periods and the cost center name AAAAAAAAAA. During master data         
    maintenance, you change the cost center name in period 5 to BBBBBBBBBB. 
    The system reacts with one of two options.                                                                               
    o   "Name" is marked as historically relevant. The existing master data 
         record for periods 1 - 12 must now become three records:            
         1000   01-04   AAAAAAAAAA                                           
         1000   05      BBBBBBBBBB                                           
         1000   06-12   AAAAAAAAAA                                                                               
    o   "Name" is not marked as historically relevant. The existing master  
         data record remains intact, with the name changed for the entire    
         existence of the record:                                            
         1000   01-12   BBBBBBBBBB
    Edited by: Ravi Sankar Venna on May 19, 2009 4:03 PM

  • How to get the profit centres determined in automatic payment run - F110

    Hi,
    In F110 - Automatic payment run, is it possible to get the profit centres determined ?
    While doing manual payment, system gives the option to enter the related profit centres.
    But in F110 how can I get the profit centre (cost obect) selected ?
    Could anyone help ?

    Hi
    I assume you are referring to the PC for the Bank account?
    You can define the default PC in 3KEH.
    Rgds
    Nadini

  • How to Change Exchange Rate while Preparing Goods Receipt

    Hai all,
    Help in find any user exits or BADI for changing Exchange rate while preparing Goods Receipt for Import Schedule Agreement. Or help me for re-directing system to take exchange rate from different effective date. we will be provided by us.
    Thanks & Regards
    Nagarajan M

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

  • How to change the value of finished goods

    Hi
    Finished goods Material has been created with MB1C Mvt type 561. Valuation has taken from  Material master standard price. can we change the value of the same. Can any body help me.
    rgds
    Raghu shetty

    Hi,
    If the valuation is from standard price, then you must run a new product costing (tcode CK40N). Check in forums of controlling (CO) and production (PP). I think that you have PP, ie: BOM, routes, and so on.
    If the valuation is from variables prices (check it in table MBEW in field VPRSV) then run MR21 and set the new price (check it in MM forum)
    I hope this helps you
    Regards,
    Eduardo

  • How to change Purchase Order currency after Good receipt and Good issue?

    Hi,
    I've a PO created last year. The PO currency has been entered wrongly.
    My store colleague has been performed good received and consumed it.
    Now, I am not able to change PO currency to correct one, due to this message:-
    Currency can no longer be changed
    Message no. 06489
    Diagnosis
    As a basic rule, the currency cannot be changed if there has already been a goods receipt against a document.
    If the document contains external service and/or limit items, or if an invoicing plan has been assigned to an item, the currency cannot be changed following the receipt of an invoice either.
    If external service items exist, the currency also cannot be changed if services that have actually been performed have already been recorded or if the item in question has been assigned to a preventive maintenance (servicing) plan.
    Is there anyway to change PO currency after Good receipt and Good issue? Thanks !

    Diagnosis
    As a basic rule, the currency cannot be changed if there has already
    been a goods receipt against a document.
    If the document contains external service and/or limit items,
    or if an invoicing plan has been assigned to an item,
    the currency cannot be changed following the receipt of an invoice either.
    If external service items exist, the currency also cannot be changed if
    services that have actually been performed have already been recorded or
    if the item in question has been assigned to a preventive maintenance (servicing) plan.
    Answer in question itself,need to cancel all documents of wrong currency in order of LIFO,
    Create a new purchase order.

  • Lock the profit centre change via CJ20N and CNMASS tcodes

    Hi Friends,
    I have a requirement where in user should not be allowed to change the profit centre of Project Definition and WBS via tcode CJ20N and change the profit centre of Project Definition, WBS, Netowok and Activity via tcode CNMASS.
    I could achieve the profit centre lock for PD, WBS and Network by Implementing BADIs PROJECTDEF_UPDATE, WORKBREAKDOWN_UPDATE and WORKORDER_UPDATE.. The implemented BADI 'WORKORDER_UPDATE 'is reachable while changing profit centre of Activiy as well. But the details of the changes of activity is not visibile inside BADI.
    If anybody has any input for this, it would be appreciated.
    Thanks,
    RK

    Thanks Martin,
    Small scenario here..I have created a Validation and In prerequisite of Step001, I have kept a condition Transaction Code = CNMASS. Structure AFVGD is visible.
    I have created an Exit PLOCK, but when I keep a Break Point in the ABAP Routine of PLOCK(Both soft and hard Break Points), the Control doesnt stop in those break points when I run the transaction CNMASS.
    I think some understanding in the concept is missing in my part. Please suggest to help me fill this gap.
    Regards,
    RK

  • Profit Centre Hierarchy Change and Profit Centre Budget

    Hello Friends
    For better view of Profit Centre Reports we are planing to change the Profit Centre Hierarchy.
    I wanted to know that, are there some Specific Points which we have to take care of, before changing the Hierarchy?
    Will some other settings get affected in System after changing the Hierarchy?
    Also i want to know the TCode for entering Profit Centre Budget in System.
    regards
    prashant

    Hi,
    Profit centre planning (there is no budget for profit centres) is entered via 7KE1 transaction. If you change your hierarchy you should think of the effect on your reporting and allocation processes. That is if you use certain group in your cost allocation cylce and now you change it, it might have an effect on costs distribution.
    Regards,
    Eli

  • To override the profit centre derived from account assignments

    Hi SAP GURUS
    I had assigned a profit centre in 3KEH in ECC6.0 (New G/L is not activated, hence using 3KEH) for a particular G/L account.
    But when i do a MIRO, the profit centre is derived from the PM order.
    I want the settings in 3KEH to override the Profit centre derived from PM order.
    Kindly guide me to overcome the issue.
    Regards
    R.Karthigayan

    Hi,
    As you need to only change the profit centre , when you have a PM order in MIRO. Then i would suggest you use a Validation & Subsitution Rules.
    Validation should check whether a MIRO has PM order or not, If yes then it should do the PC Change.
    Regards,
    Siddique

  • How to change the endpoint url of the siebel service ?

    Hi All,
    JDev : 11.1.1.5
    I am fetching data from the siebel webservice. I created the proxy client from the Siebel WSDL in the JDeveloper. It was working fine.
    Now the endpoint URL(Server) is changed. This service fails to connect to that server. The service name is same.
    I want to fetch the end point urls from a property file, so that, even again if the server is changed, i have to change it in my property file.
    How to change the End point URL at runtime before calling the service ?
    This is my endpoint URL.
    http://oa8181.us.oracle.com:10800/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
    Now it is pointing to this
    http://oa8023.us.oracle.com:7777/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
    Give me some solution.

    See if this helps:
    http://kingsfleet.blogspot.co.uk/2008/12/controlling-what-service-proxy-uses-at.html

  • Change the profit center in the material master

    dear All,
    we need to change the profit center but the system is not letting because the is stock.
    i was thinking if we issue this stock on any cost center, change the profit center and then cancel the issuing material document ...
    what do you think ,,,, would this effect the accounting badly ?? if so,, please recommend other ways

    tej yadav wrote:
    Hi, The only solution to change the "PROFIT CENTER"  for you will be to maintain message MM335 in OMT4 as a warning, then change the Profit center & again change it to error.
    Are you really thinking this is the right approach?
    ever thought about how the posting are made in the other modules then? We dont live on an MM island, so a solution  has to cover the requirements of the connected modules as well.
    if you had received stock to a material with profit center A, then value is posted to profit center A.
    if you change the profit center  in material master to B while you have stock, the value of earlier receipts will not move from profit center A to B, they stay at A.
    The next goods issue for this material is made against the profit center B.
    this results in having a postive value at profit center A (which will never go away) and having a negative value at profit center B (because you had never received to profit center B what you just issued)
    Because of this you should not change the message settings.
    Florian LINTNER wrote:
    Hi!
    >
    > post the goods issue in the prior period.
    > Change the profit center.
    > And post a new goods entry with the date of today..
    >
    > regards
    > flo
    you cannot issue anything in the prior period if everything is already issued in the current period.
    One should obtain the quantityof previous period in material master accounting view.
    Finally you have to have zero stock in current and previous period before changing profit center.
    How you approach this is based on the fact if the current period stock is bigger or smaller than the previous period stock.
    if current period stock is bigger, then issue previous period stock with previous peiod date, and issue remaining stock in current period.
    if current period stock is smaller than previous period stock, then you have to write on the delta in the current period, and subsequent issue the total stock in the previous period.
    seesen_rs wrote:
    Your approach is right. when we had this issue we solved through created dummy material and issue it to dummy material, change the profit center and receive it back..
    >
    > Both options dont affect the accounting.
    Goods issue to cost center or goods movement 309 to a dummy material will both affect accounting and create accounting documents.
    of course, if everything works well then you will get  accounting documents with opposite value after you have changed the profit center and you write on the quantity again.

  • Using BADI for changing the Profit Center in FI Document during MIRO

    Hi,
    We have an requirement of changing the profit center in FI/CO Document while doing MIRO which is different than the one which is posted at the time MIGO.The system is not allowing us to do this and the field profit center during MIRO is not changeble mode and the business requirement is to change this through any SAP enhancements or program.
    How can I do this ?
    Is there is any standard BADI or User Exit is available for this.
    Pleease help me in this and will give valuable points.

    Hey,
    Use the BADI INVOICE_UPDATE and try with this. Otherwise you try to create Enhancement point to implement your code.
    Note: Inside BADI we can't change the runtime value. So, try to use enhancement point.
    Rewert back for any clarification.
    Regards,
    Saravanan M

Maybe you are looking for

  • White Screen restart

    Hi, My Macbook Pro Late Nov 2008 kept on restarting and show me white screen that i have problem. It flashes to a blank white screen then it says something like "Your computer restarted because of a problem. Hate the automatic restart. I have change

  • Deploying FR to the application server

    Hi, I'm trying to configure reports and webanalysis and the configuration gets stuck when deploying to the application server. Version 11.1.3 From the config.log file: 10/06/03 13:01:14 Notification ==>Initialize WebAnalysis ends... 10/06/03 13:01:14

  • SLOW iPhoto

    In the past 2 or 3 days iPhoto is running VERY slow. Anything I do I get the spinning beach ball of death. What made it slow? What can I do. I am using iPhoto 8 on an iMac G5 with a power pc. I am running system 10.4.11. I have 1.25 GB of memory. I d

  • Reak or fake Apple in ear headphone

    HELP, i have found an Apple in ear headphone on yahoo auctions. it says 100% real from Apple, but i've been searching from the apple on line store and i was not able to locate such ear phone. i would like to know if this is been made by Apple or they

  • Busness Connector issue

    I am facing a problem in BC.We had a BC version 4.0 and now it has been upgraded to 4.7.We had development and test servers respectivly.Before upgrading were able to make changes(modifications) to the java services in the test server as we are using