User Exit for Profit Center Substitution?

HI,
Here is my requirement.
The actual flow is like this:
Sales order -> line item -> Condition type -> G/L Account -> Default Profit center
Requirement is:
Sales order -> line item -> Condition type(ZXXX) -> G/L Account (AAA) - > Profit center 'PYYY'
Explanation:
Normally Profit cneter get assigned based on line item,
But my requirement is that the Profit center should get as 'PYYY' based on condition type 'ZXXX' irrespective of the line item.
Please tell me the user-exit used for this?
I am trying with EXIT_SAPLV60B_001, But unable to meet the requirement...
If u give the code, itz really very helpful to me.
Thanks in advance.
Regards,
Rahul

Hi,
U can use Function Module: EXIT_SAPLV60B_008
And write required code in Include ZXVVFU08
Hope this will help u.
Regards,
Kumar

Similar Messages

  • Billing user exit for partner determination/substitution

    Hi ,
    For my SAP ERP , I need a Billing user exit for partner determination/substitution .
    If somebody has the info .
    Thank's

    Hi,
    User Exits For Billing:
    - USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    The internal number range used in the standard system is specified
    in the billing type table and can be changed in this user exit. This
    user exit is only called when the billing documents is created.
    - USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for account determination that
    are not provided in the standard system are copied into
    communication structure KOMKCV (header fields).
    - USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
    In this user exit additional fields for account determination that
    are not provided in the standard system are copied into
    communication structure KOMPCV (item fields).
    - USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    Depending on the number range, table TVFKD is used to set the
    billing date (country-specific requirments in Italy).
    USEREXIT_NUMBER_RANGE is automatically deactivated when this user
    exit is being applied.
    - USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
    This user exit is only called when the billing document is created.
    It is used to provide the header and the item of the new billing
    document with deviating or additional data.
    - USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)
    Printing the item line of a billing document can be supplemented or changed.
    - USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Printing the header line of a billing document can be supplemented or changed.
    - User exits in program RV60AFZD
    Short descriptions of the user exits are contained in the program:
    - USEREXIT_RELI_XVBPAK_AVBPAK
    - USEREXIT_NEWROLE_XVBPAK_AVBPAK
    - USEREXIT_NEWROLE_XVBPAP_AVBPAK
    The following user exits are available in report SAPLV60B for transfer to accounting (function group V60B):
    - EXIT_SAPLV60B_001: Change the header data in the structure acchd
    You can use this exit to influence the header information of the accounting document. For example, you can change the business transaction, "created on" date and time, the name of the person who created it or the transaction with which the document was created.
    - EXIT_SAPLV60B_002: Change the customer line ACCIT
    You can use this exit to change the customer line in the accounting document. This exit is processed once the ACCIT structure is filled in with data from document header VBRK.
    - EXIT_SAPLV60B_003: Change the customer line in costing
    The customer line is filled in differently for costing. You can use exit 003 to influence the ACCIT structure.
    - EXIT_SAPLV60B_004: Change a GL account item ACCIT You can add information to a GL account item (such as quantity specifications) with this exit.
    - EXIT_SAPLV60B_005: User exit for accruals
    Once all relevant data for accruals was entered in the GL account item, you can add to this data with this exit.
    - EXIT_SAPLV60B_006: Change the control line ACCIT
    You can use exit 006 to add information to the control line.
    - EXIT_SAPLV60B_007: Change the installment plan
    You can use exit 007 to add information to the installment plan parameters in the GL account item.
    - EXIT_SAPLV60B_008: Change the transfer structure ACCCR, ACCIT and ACCHD After the accounting document is filled in with data, you can use exit 008 to change the document once again.
    - EXIT_SAPLV60B_010: Item table for customer lines
    You can use exit 10 to influence the contents of customer lines before they are created.
    - EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination
    You can use this exit to change inbound parameters in order to influence account determination.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Screen-exit for profit center creation - transaction KE51.

    Hi All,
    Background: The client has the requirement of importing profit centre master data from legacy system into SAP ECC system. Few of the legacy data could not be filled into existing sap fields, hence the requirement has been to populate the data into custom fields.
    The client also has the requirement, that the same fields are required during online entry. For this we need to enhance the profit centre creation screen (transaction code KE51) with two additional custom fields.
    Requirement: To enhance profit centre creation screen with custom fields. Screen-exit for KE51 transaction.
    Pre-work: Program SAPLRKPM in SAP ECC system is the main program. It does not have any screen or sub screen area for custom fields addition. Debugged the program to check for screen-exits, found none.
    Below user-exits are not either screen-exits or cannot be used for enhancing profit center screen.
    PCA00001  EC-PCA: Document changes for data transfer
    PCA00002  Profit Center Accounting: derivation of representative mat.
    PCA00003  Derive Partner Profit Center for External Deliveries
    PCA00004  Check valuation for invoice verification with transfer price
    PCA00005  Check valuation for invoice verification with transfer price
    PCASELEK  EC-PCA: Selection criteria for data transfer
    Solution required for: Could anyone please let me know if it is possible to enhance the profit center creation screen. If yes, please provide the names of the screen-exit/  badi exit.
    (Just a thought, modifying the standard seems to be the only solution, this should be the last option and i agree, please provide your inputs.)
    Thanks in advance.
    Warm Regards,
    Goutham.

    Thank you Manohar for the response.
    The requirement is to display custom fields on standard sap screen and there are no screen-exits. So, i suppose the standard screen has to be modified.
    Could you please provide brief explanation on
    May be you should consider maintaining custom mapping table instead of going for chaning standard.
    With Regards,
    Goutham.

  • User Exit for Cost center in ME21N

    Hi,
           I have a requirement to validate the cost center with plant.
           If Plant is 1001 then only the cost centers defined for 1001 should be selected in ME21N while creating PO, if different cost center is selected error message should be shown.
           Please let me know how can i do this? I tried to use user exit MM06E005, but if i keep break point and save the PO, its not stopping in this.

    Hello Shilpashree
    I assume you want to check at the ITEM level. Then your logic should look like this (method CHECK):
    " Determine valid cost centers from plant (at header level?)
    lt_items = im_header->get_items( ).
    LOOP AT lt_items INTO ls_item.
      lt_accountings = ls_item-item->get_accountings( ).
      LOOP AT lt_accountings INTO ls_acc.
        ls_accounting = ls_acc-accounting->get_data( ).  " TYPE MEPOACCOUNTING
        IF ( ls_accounting-kostl IN lr_kostl.
        ELSE.
          ch_failed = 'X'.
          EXIT.
        ENDIF.
      ENDLOOP.
      IF ( ch_failed = 'X' ).
        EXIT.
      ENDIF.
    ENDLOOP.
    Regards
      Uwe

  • User Exit for Cost Center authority check in reservation & service entry sh

    Hi,
    We want to have cost center authority check in reservation & SES. Whcih exit should we use for this purpose.
    BTW, we tried the same in SES via the user exit  “SRVREL” componet “EXIT_SAPLEBND_003 for Change to Comm. Structure for Release Strategy Determination” in the include “ZXMLUU10” . Since then the Release strategy for SES is not effecting . Even after blocking the entire code by commenting it, the strategy is not effective. We are able to accept the SES using the Flag Button but without any strategy. How to revive the release strategy.
    Thanks & regards,
    KT Varkey

    Hi Ramki,
    Thanks for the advice. The problem is solved except that for Cost Centre authority check for SES. Tried SRVESLL but it doesn't work. Any other exit or any specific advice to make SRVESLL work for KOSTL check.
    Best regards,
    KT Varkey

  • BADI for Profit Center Substitution

    Hi,
    Please suggest some BADI which can be used to subtitute the Profit Center in the Vendor Line items which posting the document.
    we tried AC_Document, but unable to trigger the breakpoint at the time of document posting.
    Thanks
    Mohit

    HI,
    Another option.
    1. User Constants
    2. FAGL3KEH defualt profit center.
    Reg
    Madhu M

  • BADI/User Exit for KE51 and KE52

    Hi Experts,
    I am searchinf for a BADI/User exit In profit center master transactions KE51 and KE52 which should trigger  when we activate the Profit center and after the data base committed as i need to send the changed profit center data to other system. 
    any ideas will be highly appreciated.
    Thanks,
    Rajinikanth

    Try
    PCA00003  Derive Partner Profit Center for External Deliveries
    EXIT_SAPLPC45_002
    EC-PCA: Activate Derivation of Partner Profit Center

  • Profit Center Substitution Not getting reflected in FI document duirng MIGO

    Hello friends,
    I have implemented a substition exit for profit center replacement. The rule has been created with this exit. But when I do a MIGO, i see the FI documents getting created with original profit center, not with the profit center that we have manipulated in the substitution. Even though i see in the debugging mode that the profit center is being replaced within the code, when the accounting document is generated, I see the old profit center only in FB03. There is no other substitution exit that is overwriting the profit center. What else could impact this / any inputs would be of great help.
    Thanks,
    Mayank

    Are you using Accounting document substitution (Tcode OBBH)? Try using Controlling substitution (Tcode OKC9), this will substitute the coding block (COBL) of accounting doc where profit center (COBL-PRCTR) is found.

  • Profit Center Substitution for Migrated line item

    Dear Expert,
    we migrated the data on feb 2014. past records having the default profit center value in each line item, after the migration we are not using the default profit center , we blocked that through some validation, but some situation, for clearing vendor or customer or gl, the migrated line item having default profit
    center with disabled mode to change. so its throwing the validation error, we cant able to unblock the validation also. we need to write a substitution for this to replace automatically . Eg :
    Default Profit center is : 38000
    it should be replace with to 2038100001
    like wise we have multiple company codes.
    i try to write the prerequisite, herewith i have attached the screen shot, i am getting the error for this, anyone can explain this situation ?
    Regards
    Prince

    Hi
    Please, check these notes
    SAP Note 173798 - User exit for PCA substitution
    SAP Note 1532865 - FAQ: Profit center in the billing document
    SAP Note 150959 - Profit center is incorrect in production order
    SAP Note 530578 - Special stocks in PCA
    SAP Note 594507 - PC with valuated special stock incorrect
    and related notes
    I hope this helps you
    Regards
    Eduardo

  • User Exit for KE51 - for maintaing profit centre group

    Hi,
    We have maintained a Z-table wherein we have mainatined a ranage of profit centers which will fall in a particular profir center group. Say, all profit centers created in range of 100001 to 100099 shound fall under profit center group 'AAA'.
    So, if someone is creating a new profit center 100010 and by mistake gives profit center group as 'BBB', we expect the system to give message saying "the intended profit centre does not fall in the range assigned to profit centre group 'BBB'.
    Kindly advise how to triger the message as above? Is there any user-exit for t-code KE51 that can be activated to check whether the profit center group (as defined in Z-table) assigned in profit centre master is correct or not?
    Thanks,
    Bijay

    Hi,
    thanks for your reply.
    I couldn't understand what you are trying to say by  saying "The only option I see is to modify trx. KE51 report according to your needs". Please explain.
    Thanks,
    Bijay

  • Profit center substitution in Sales Order item level

    Dear all,
    In Our senario for Sales Order creation time at item level that is material level sale B tab user specified Berth no: in Pricing group field ( KONDA), Based on the Berth no, concern profit center derived  from subtitution rule .That purpose I tried Profit center substitution in that substitution,SAP has given PCB SUB structure in that structure main field has given but KONDA field not available, so please guide me how I update that KONDA field to that stucture (PCB SUB) in Profit center substitution area with ABAPER or
    I have developed a abap enhancement specifing berth no and profit center assignment and excuting the enhancement in sales order exit. Is there any problem for SD process, Our SD consultant using the sales order user exit for other purpose. He is not allowing to use that exit to execute the zdevelopment
    Please suggest me How I update that field into that PCB SUB structure for creation profit center substitution or
    can I use zdevelopment through sales order user exit . without affeting the SD process.

    Hi 
    I have the issue like..
    1.  For each line item of the sales order check, whether the profit center is filled or not, if it is not filled then determine the profit center and populate.
    2. If material of the line item is "sub component code" of a material that is "Offering component code", then compare the profit centers of line item with the profit center maintained for the material that is offering component code.  If the profit centers are different, replace the sales order line item profit center with the profit center of the offering component code material.
    3.  Above activities should happen when the sales order is saved.
    can somebody tell me which user exit ?? where coding can be dine.

  • Profit center substitution with internal order when generating GL doc from

    Profit center substitution with internal order when generating GL doc from MM
    Dear expert,
    Please advise how to substitute successfully the profit center by which user-exit via FI substitution function.
    Substitutions have been set for profit centers in FI via t-code OBBH, but  the profit center will always be determined from the internal order when posting from MM subcon goods receipt
    Thanks
    James
    Edited by: Yun-Chung Yung on Jun 3, 2010 10:46 PM

    Hi,
    SAP give note 539421 - Dummy profit center with cost center
    account assignment. Looks applicable for your case.
    Solution:
    With the attached modification, you can restore the function from Release
    3.1: The directly assigned profit center remains and is not overwritten
    with the dummy profit center of the cost center.
    The problem is not caused by a program error in this case. The profit
    center is always derived from the existing CO account assignment even if
    this is the dummy profit center (see also Note 62417).
    This note applicable from release 40 until 605
    I hope this can help you. FYI, in my case, i do not create dummy profit centre, then profit centre working as sap priority.
    Regards,
    Dewi

  • Profit Center Substitution - Intercompany sales

    Hi all,
    I have a situation where we are making a sales, but since the material belongs to a different plant, 2 invoices are generated - intercompany invoice and customer invoice. The problem is that the profit center on the customer invoice is not showing up (it shows up on the intercompany invoice).
    I am trying to use a profit center substitution for this, but can't get it to work. I have a very simple user exit as a test that changes pcasub-prctr yet this doesn't work. (it is activated in 0KEL)
    FORM U901.
    Data: s_pcasub type pcasub.
    s_pcasub-prctr = '401'.
    MOVE s_pcasub-prctr TO pcasub-prctr.
    ENDFORM.
    Please advice, thanks,

    Hi
    Once you update PC in the Sales Order, the same gets passed on to billing... For that 0KEM is the right place..
    You can build in conditions (Prerequisites in 0KEM) like: If Plant = XXXX and Dist Channel = YY and Div = ZZ, then PC = ABCD
    If that logic is not sufficing, then you need to use exit.... Activation needs to be done in 0KEL....
    The note says, create 2 substitution rules in 0KEM 1 for Field PRCTR and another for PCTRF
    If you use exit, it asks you to use PCASUB-INT_*
    br, Ajay M
    Edited by: Ajay Maheshwari on Oct 4, 2011 8:04 PM

  • Profit Center Substitution - cross company code sales

    Hi all,
    For each cross company sale, there are 2 invoices: intercompany and regular invoice. The intercompany invoice picks up the profit center but it does not show up on the regular invoice.
    I am trying to use profit center substitutions to resolve this, but I'm not sure if this is the correct procedure. Reading note 815972, it seems like there is another method but I don't understand how this works.
    Can someone explain this to me or has anyone done this before? What is the best practice?
    Thanks

    Has anyone ever used profit center substitution for this situation? We would like the profit center on the customer invoice to be the same as that on the intercompany invoice. Should we do a user exit in the profit center subsitution, or is there another way?
    Thanks

  • Cost component split transfer for Profit center valuation in ke27

    Dear All,
    We have activated multiple valuation/transfer prices. Material ledger is also activated.
    We want to transfer cost component split to CO-PA by ke27.
    We have defined separate costing keys for access to actual cost estimate for legal and profit center valuations.
    But cost component split transfer to COPA works only for legal valution. Even we have defined type of valution for profit center  costing key -transfer cost component split and total costs.
    What should be else customized to transfer cost components splitting in profit center valuation to CO-PA from actual cost estimates?
    With best regards,
    Kamila.

    Hi,
    I have assigned the same value fields used for legal valuation to column 2, which was pointed in message.
    But now I got following message in ke27:
    For actual data, value fields that were already populated before CO-PA valuation cannot be changed in valuation.
    1. As a rule, value fields that were filled before CO-PA valuation - be it from SD or by a manual entry of a line item - can only be changed by means of user exits.
    (Note that for plan data, CO-PA valuation always has priority over the values planned manually.)
    2. The valuation steps in a CO-PA valuation strategy are numbered sequentially. These numbers determine the order in which the steps are carried out within that strategy. As a rule, value fields populated in one step can be used as a basis for calculating values for other value fields in a subsequent step.
    Value fields that were populated in a previous step are generally not overwritten by subsequent steps.
    The exception to this are steps that use a CO-PA user exit. User exits let you change individual value fields.
    3. If you valuate using multiple material cost estimates simultaneously, this means that the values of different cost components within the same cost estimate are aggregated and then entered in one CO-PA value field. However, value fields that already contain data from a previous cost estimate are not overwritten by a later cost estimate. Consequently, you should assign value fields in Customizing so that the values of different cost estimates are entered in different sets of value fields.
    4. When condition values are transferred to CO-PA value fields, note that condition types that are assigned to the same value field are added together. This is also the case when the condition types come from different costing sheets within the valuation strategy.
    So does it mean we should define separate value fields for PC valuation?
    With best regards,
    Kamila.

Maybe you are looking for

  • Configure SSL SQL Server 2012 Cluster Instance

    Hi, I am trying to configure a SSL Certificate on a named clustered instance but i can't This is the errorlog message 2014-12-11 14:28:51.49 spid10s Error: 17182, Severity: 16, State: 1. 2014-12-11 14:28:51.49 spid10s TDSSNIClient initialization fail

  • Registering Apple

    Hi, how do I validate my product's purchase date? I have keyed in my product serial number but I keep getting directed to the same page that says Please validate your product's purchase date. Apple is unable to provide information about your service

  • HELP, SQL report

    I created a SQL Report,the report asked me if i would like to add a search feature, i said yes, the search function queryies ID numbers 1-50, when i run the application and ask for id number 4; the query responds to id # 4,14, 34,and 44. If i'm askin

  • Costs tab on Maintenance order

    Dear users, We have a requirement in one of our projects relating to the Costs tab on Maintenance order (IW33). Since we have multiple external vendors working in our landscape, very often the partners need to access an Order created by another partn

  • ISight Microphone

    I have an iMac Intel Core 2 Duo. And I absolutely love GarageBand. I'm using the iSight Microphone to record vocals, and it seems to sound okay. I was just wondering if there's any tips you could give me to make it sound professional.