MB1B / Change profit center in Exit, Badi or Enhancement

Hi guys,
we're doing transfer postings in MB1B with reference to existing returns. In the return item a profit center different from the material master is entered. MB1B is creating the material document with the profit center from the materal master.
The requirement is to get the profit center from the return into the material document.
I have tried various ways to meet the requirement:
- Badi MB_DOCUMENT_BADI
- Badi MB_MIGO_ITEM_BADI
- Exit EXIT_SAPLIE01_007
- Enhancement ENHANCEMENT-POINT SEGMENTDATEN_MAT_SETZEN_03
- Enhancement ENHANCEMENT-POINT MM07MFM0_M_SEGMENTE_GENERIE_04
In MB_DOCUMENT_BADI and EXIT_SAPLIE01_007 the profit center can't be changed, MB_MIGO_ITEM is not run through.
In the 2 enhancements the value can be changed, but the profit center in the material document and the follow up documents is still taken from the material master.
Does anybody know where I can change the profit center in this case? (Badi / Exit / Enhancement).
It's a requirement that MB1B has to be used, so using MIGO for this is not a solution.
Thank you very much!
Best regards, Andreas

Hi,
Enhancement - MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.  is called in the update task.
This could be useful.
Thanks
Sujay

Similar Messages

  • Change profit center for accounting document on item line

    HI
    I need to change profit center for accounting document on item line, for that purpose I have used user-exit EXIT_SAPLV60B_004, but my new profit center gets latly overwritten in FM CO_DOCUMENT_CHECK (which is called from FM AC_DOCUMENT_CREATE). It gets overwritten from COBL. Is there any way to solve this?

    HI,
    possible reasons are :
    In GR document profit center pulled from PO Material :
    If you have ordered with material code, must check profit center assigned into material by mm03/Plant Data2
    If you have ordered without material code, than check cost center assigned Profit center by 1KE4

  • How to change Profit center in production order

    Hi guys,
    I have to change Profit center value in production order. Order has been created and released also. How to change, if i directly change system throwing error...Please suggest me in this case.
    RGDS
    Dos

    Then Go to OBA5 enter the KO  Application area
    Add the 367 message and  your user iD enter warning in online and Batch,
    After that You can able to Change the   profit center in Order with warning message in Order

  • Changing Profit Center in Partially Delevered Sales Order

    Dear Experts,
    Can anybody tell me how we can Change Profit Center in Partially Delivered Sales Order?. in Standard, System allows to change  PC in open sales Order without any subsequent documents.
    There is business requirement to change PC in all Open Sales Orders.
    br,
    vgl.

    Try this.
    Go to MASS, Key in Object Type BUS2032, select Table MASSVBAP and click on "Fields".  There select the field "MASSVBAP-PRCTR" and execute.
    Next paste those open sale orders and again execute.  There maintain the required Profit Center on top cell and click Carry out mass change.
    thanks
    G. Lakshmipathi

  • Changing Profit Center in PartiallyDelevered Sales Order

    Dear Experts,
    Can anybody tell me how we can Change Profit Center in Partially Delivered Sales Order?. in Standard, System allows to change  PC in open sales Order without any subsequent documents.
    There is business requirement to change PC in all Open Sales Orders.
    br,
    vgl.

    Hi,
      I think note 580216 should solve your problem. Please read this note carefully
    regards
    Waman

  • Change profit center assignment in cost center

    Hi All,
    We have around 20 cost centers and assigned to 10 different profit centers.From 01/01/2011,we would like to change Profit center assignment in cost centers.
    all cost centers postings should post to old profit centers till 12/31/2010 and from 01/01/2011,postings should go to new profit centers.
    What is the best way to achieve this?any help is appreciated.
    Thanks,
    Anusha

    Hi Ajay,
    Thanks for your reply.profit center changes are working with analysis period changes.
    i have one more issue here,i can't change hierarchy in cost center and getting errors..
    Message no. KS042
    Diagnosis
    Field Hierarchy Area to be changed must be unique for the entire interval. You selected a change interval which does not include the entire period. Any change in the field would result in an inconsistency.
    I have try to change time depended field in configuration.system is not allowing for field "KHINR" in OKEG TC.
    any help is appreciated...
    Thanks,
    Anusha

  • Changing profit center from 2001010003 to 2001010004 is not permitted

    Dear Sir
    I had copy a cost centre to create cost centre by t code OKEON, in which profit center not change by mistake. Now I want to detach old profit centre & attach new profit centre with cost centre. However, I am not able to change Kindly help me in this regard.
    Regards...Kaushal
    *Changing profit center from 2001010003 to 2001010004 is not permitted
    Message no. FAGL_ORG_UNITS011
    Diagnosis
    You want to change the profit center from 2001010003 to 2001010004. However, this is not permitted because transaction data already exists for the account assignment object. Changing the profit center in this instance can lead to inconsistencies in FI.
    Example:
    There are costs on a cost center (WBS element) to which profit center A is assigned. If the profit center in the cost center master record were now changed to B and the costs then distributed to other cost centers, the currently assigned profit center - that is, profit center B - would be credited. Profit center A, however, would still have a debit posting.
    System Response
    The action is terminated.
    Procedure
    If you want the change in profit center to be possible, you can convert this error message into a warning message. You do this in the IMG activity Change Message Control (work area FAGL_ORG_UNITS, message number 011). In this case, however, you need to examine the possible effects that the change in profit center would have on the relevant balance sheet in FI.
    With Best Regards
    Kaushal K Maheshwari

    Mate,
    you have 2 options.
    1. Create a new cost center and asign the profit center. after that, distribute the line items from old to new.
    2. Go to OBA5 - Work area "FAGL_ORG_UNITS"
    Press enter
    Here, create the mesage number as 011     Online - select "Warning"
    Now go anc change the Profit center  (This is not actually suggested, but if your Client is okay to maintain, then you can)
    Thanks

  • Cannot change profit center in profit segment

    i have a problem while changing profit center in profit segment via t-code VA42.
    system is not allowed changing them after the contract item was billed.
    by checking characteristic derivation rules in t-code KEDR.
    system issue message "This derivation step is predefined and cannot be modified or deleted." for PRCTR field.
    I think it's the result from characteristic derivation attribute which set to "Do Not Overwrite If Fld Already Filled."
    can anyone help me change them into "Overwrite with New Value Only If New Value Found."?
    or anyother suggestions?
    best regards,
    Panuwat Sarunsiri
    PS. my SAP system is 4.6C

    The following are created as profitability segments by deafault which we cant change.
    Controlling area
    Company code
    Business area
    Profit center
    best regards

  • Please send material or good lionk on USER-EXIT,BADI and ENHANCEMENT

    Hi All,
    Please send some step by step material or good lionk on USER-EXIT,BADI and ENHANCEMENT which will be usefull for beginners like me.
    Thanks in advance
    Srikanta

    Hi Srikanta,
    Please see the SDN page for ABAP Enhancements and Modifications:
    https://www.sdn.sap.com/irj/sdn/abap?rid=/webcontent/uuid/109f5161-ee76-2910-cb99-db10b559ef4b [original link is broken]
    Cheers,
    Ville

  • When comparing the EXits BADIs and Enhancement points .

    Hi All,
               Could you please let me know the upward compatibiltity of the User-exits BADI and Enhancement points?
    In case of version upgrade how do these efffect?
    Please give me some details......
    Thanks in Advance.
    Regards
    Abhilash.

    hi Gautham/All,
         Thanks for the update.
    Can u be more elaborate on this.
    In the upgraded versions we can not do for enhancement spots
    and BADIs  because they will be having upward compatability.
    Only user exits and customer exits are not having the upward compatibility. so we have to write the code manually in the new version.
    This is as per my understanding.
    Please correct me if I am wrong?
    Thanks in advance.
    Regards
    Abhilash.

  • Is there any exit in MIGO for allow changing profit center

    Dear SAP guru,
       Could you please give some suggestion about my requirement?
       I want to change the profit center during material movement. (MIGO)
       I tried to find the user-exit but it looks like no exit meet this requirement.
    Thank you
    Boonsom

    Hello
    Have you had a look at BAdI MB_MIGO_BADI ?
    Its interface method LINE_MODIFY allows you to change the item data (structure GOITEM-PRCTR = Profit Center).
    I do not know when this method is triggered yet you may give it a try.
    Regards
      Uwe

  • Change Profit center in the SD / FI CO interface to invoicing

    Hi,
    I am trying to change the profit center (resuting from a sales order) in some lines of ACCIT when posting the Fi documents for a sales invoice. This is done in the function exit exit_saplv60b_008 and generally works fine.
    However, in our case the profit center is changed again to the profit center of the original sales order because the sales order is the "real" costing object.
    This is done way after the function exit in the form routine SUBST_FROM_REAL_OBJECT of include LKAIPF2D.
    Also chnaging the PRCTR in the BADi AC_DOCUMENT, Method Change_ after_check does not seem to work, because the aforementioned SUBST_FROM_REAL_OBJECT is called again afterr this BADI.
    How can I change the PRCT for some lines of the FI document  ?
    Any help is greatly appreciated.
    Thanks
    Marcus

    Hi,
    thanks for the hint.
    I have tried the substitution already. The effect is: Yes I can change PRCTR for the whole sales order. All FI postings are then done with respect to the new PRCTR.
    What I want is changing the PRCTR for individual lines of the FI document as I can do in the FunctionExit mentioned above.
    This is not possible with substitution because in the end of the posting SAp standard again runs through the LKAIPF2D include performing the SUBST_FROM_REAL_OBJECT coding. There all PRCTR information is chnaged for every item line of the Fi document back to the sales order PRCTR.
    What can I do ?
    Thanks
    Marcus

  • KE52 - Change profit centre - user exit

    Hello,
    I've searched high and low in transaction KE52 (change profit centre) for a user exit/badi/bte etc. and have found nothing. I need to validate that the 'Person Responsible' field is a valid SAP user. Please let me know if any of you have found a way of doing this - I'm not interested in z programs that find user exits etc.
    Thanks
    Richard

    Hi Richard,
    you could, instead of using a user-exit or BADI, use the field-exit of the domain VERAK (link to the data element) VERAPC.
    I have not found any user-exit or BADI too.
    Rgd
    Frédéric

  • How to change Profit Center

    Dear PS Gurus,
    Kindly help me out on this.
    My Query:-
    I am trying to create a PO using the T-code ME58. When i am selecting the PR and adopting it i get a message as "Profit Center was set to 9999". However i want to post the data to profit center 1300.To do so the system is asking me to to assign the PSG, cost center or other object to that profit center as well.
    Diagnosis by the System
    You entered profit center 1300 or transferred it from a previous transaction, such as material receipt from an external order. However, the system derived the profit center 9999 from the account assignments.
    Kindluy suggest as to where i should go and change the profit center so that i dont get the error message while creating the PO.
    Points will be rewarded.
    Regards,
    Gokul

    Dear NAG,
    As suggested i checked the Proift Center in t-code OKB9. I found the details as follows:
    CoCd - 1000 (IDES AG)
    Profit Center - 9000 (IDES Portugal)
    Cost Center - This field is blank
    Cost Element - 800000
    I checked the profit center in the material master also and found that the profit center 1300 is assigned, which is fine. Also i checked the profit center in my project. There too the same profit center has been assigned.
    I changed the profit center from 9000 to 1300 in t-code OKB9, and tried making the PO.But still i am getting the same error.I have checked the entire list of profit centers assigned to CoCd 1000 in t-code OKB9 but nowhere i could find the profit center 9999 assigned. I am confused as to from where the system i picking up this profit center (9999). When i checked the details of the profit center 9999 it was found that it is a Dummy profit center but i dont know where it is assigned and from where the system is picking this Profit center.
    Request you/anyone to knidly help me out in solving this issue. For your information i am trying this example in IDES.
    Please help me out.
    Thanks & BEst Regards,
    Gokul

  • Change Profit Center in FI/CO document for Network or WBs

    The client does not want to change the profit center assignment on the network or WBS.
    Finance would like the ability to change the profit center when the FI/CO document is created.
    When trying a FI or CO substitution , we keep getting an error message stating that the profit center cannot be changed on the object.
    The account assignment from the object will overrride any attempt to change the profit center via substitution.
    Does anyone know a solution to the problem.
    We are investigating adding an enhancement when the error message is called. 
    Thank you,
    Jeffrey

    But, have you maintained 3KEI settings for derivation. This would give you additional flexibility to define your default account assignments. If still 3KEI is not sufficient, you can try amending the following message KI399 in OBA5. Before, making changes, you should know the implication. My question is what is the business need to change the Profit Center. Why cannot the users enter the correct WBS Element / Order, which contains the correct profit center?
    =================================================
    Following is the help.
    Message no. KI339
    Diagnosis
    You entered profit center FD999 or transferred it from a previous transaction, such as material receipt from an external order. However, the system derived profit center DUMMY from the account assignments.
    System Response
    The system automatically determines the profit center from the assigned profitability segment, cost center, order, project, network, sales order, or cost objects. This overrides the profit center you entered manually.
    Procedure
    To post the data to profit center FD999, assign the profitability segment, cost center or other object to that profit center as well.
    If the posting to profit center DUMMY is correct, no further action is necessary.
    This message is sent as an error in the standard system. You can make the message a warning or deactivate it entirely in Customizing. Use the Implementation Guide under "Controlling: General" and choose Change message control. Enter area KI and message number 339.

Maybe you are looking for