Profit center substitution ?

Hi ALL,
I am working on a client requirement u201CContract wise Profitabilityu201D (PCA is activated and Document splitting is not activated). thought i am able to get the Contract wise Profitability report , but PC reporting is effected
Business process:
1)Contract is created (T.code Va41) with different lines item and the profit center is populated on the line item based on Product hierarchy+ Plant combination (Z table maintained )
2) An internal order type u201Csapsu201D with revenue postings allowed is created and assigned to the line items (this is capture the actual revenue and Actual costs and develop a Contract wise profitability through BI)
3) But when the internal order is assigned to the line item, the profit center is getting changed to DUMMY profit center (as no profit center is maintained on the internal order type master data)
4) When ever the billing is done the off set account is getting posted to the Dummy profit center (I am aware this is STD behavior as the co real assignment profit center supersede the FI account assignment)
I am able to get the Contract wise Profitability as desired, but at the cost of Profit center reporting,
Please help me to get the posting to done on to the right profit center.
Can we achieve the desired result through Substitution? (If yes which is better, order substitution, PCA substitution or Gl line item substitution)
Or can we achieve this through any Note/BAdi/BTE
Kindly advice, waiting for your suggestions!
Thanks
RS

HI, We used  the mentioned BADI, we are able to change the  profit center but the internal order is getting passed to the Accounting  document   and when we  doing the reveersal , the  reversal Accouting document (revenue account )is Getting populated with wrong Profit center (Dummy) Kindly advice,
This  code is what we put  in to the BDAI
thanks
Method IF_EX_AC_DOCUMENT~CHANGE_AFTER_CHECK.
**// This Badi is only for " ZYES  " Contract Document Type
**// This Badi will get the Profit center at the time of Billing acc.doc generation
**// aswell at the time of Rev.Reg Document Generation
DATA:  IMT_ITEM    TYPE ACCIT_T,
        IMS_ITEM1   TYPE ACCIT,
        IMS_ITEM2   TYPE ACCIT,
        IMS_HEAD    TYPE ACCHD,
        EXT_ITEM    TYPE ACCIT_SUB_T,
        EXS_ITEM    TYPE ACCIT_SUB,
        EX_DOC      TYPE ACC_DOCUMENT_SUBST,
        LV_VBELN    TYPE VBELN_VA,
        LV_POSNR    TYPE POSNR_VA,
        LV_AUART    TYPE AUART,
        LV_PRODH    TYPE PRODH_D,
        LV_VTWEG    TYPE VTWEG,
        LV_SPART    TYPE SPART.
  IMS_HEAD    = IM_DOCUMENT-HEADER.
  IMT_ITEM    = IM_DOCUMENT-ITEM.
  IF IMS_HEAD-AWTYP  = 'VBRK' AND ( IMS_HEAD-TCODE EQ 'VF01' OR IMS_HEAD-TCODE EQ 'VF11' ). " Billing & Cancel
    READ TABLE IMT_ITEM INTO IMS_ITEM1 INDEX 1.
    IF SY-SUBRC EQ 0.
      SELECT SINGLE AUART FROM VBAK INTO LV_AUART WHERE VBELN EQ IMS_ITEM1-XBLNR.
      IF LV_AUART EQ 'ZYES'. " CRM Contracts
        LOOP AT IMT_ITEM INTO IMS_ITEM2.
          IF IMS_ITEM2-PRCTR IS NOT INITIAL.
            CLEAR IMS_ITEM2-PRCTR.
            SELECT SINGLE PRCTR FROM VBAP
                                INTO EXS_ITEM-PRCTR
                               WHERE VBELN EQ IMS_ITEM2-AUBEL
                                 AND POSNR EQ IMS_ITEM2-AUPOS.
            IF SY-SUBRC EQ 0.
              EXS_ITEM-MANDT = SY-MANDT.
              EXS_ITEM-AWTYP = IMS_ITEM2-AWTYP.
              EXS_ITEM-AWREF = IMS_ITEM2-AWREF.
              EXS_ITEM-POSNR = IMS_ITEM2-POSNR.
              EXS_ITEM-GSBER = IMS_ITEM2-GSBER.
              APPEND EXS_ITEM TO  EXT_ITEM.
            ENDIF.
          ENDIF.
        ENDLOOP.
        EX_DOC-ITEM[] = EXT_ITEM[].
        EX_DOCUMENT = EX_DOC.
      ENDIF.
    ENDIF.
  ELSEIF IMS_HEAD-AWTYP  = 'VBRR' AND ( IMS_HEAD-TCODE EQ 'VF44' OR IMS_HEAD-TCODE EQ 'VF46' ). " Revenue Reg & Cancel
    LOOP AT IMT_ITEM INTO IMS_ITEM2 WHERE PRCTR IS NOT INITIAL.
        CLEAR:LV_AUART,LV_VBELN,LV_POSNR,IMS_ITEM2-PRCTR.
        LV_VBELN = IMS_ITEM2-ZUONR+0(10).
        LV_POSNR = IMS_ITEM2-ZUONR+10(6).
        SELECT SINGLE AUART VTWEG SPART FROM VBAK INTO
                           (LV_AUART,LV_VTWEG,LV_SPART) WHERE VBELN EQ LV_VBELN.
        IF LV_AUART EQ 'ZYES'.
          SELECT SINGLE PRCTR FROM VBAP
                              INTO EXS_ITEM-PRCTR
                             WHERE VBELN EQ LV_VBELN
                               AND POSNR EQ LV_POSNR.
         IF SY-SUBRC EQ 0.
            EXS_ITEM-MANDT = SY-MANDT.
            EXS_ITEM-AWTYP = IMS_ITEM2-AWTYP.
            EXS_ITEM-AWREF = IMS_ITEM2-AWREF.
            EXS_ITEM-POSNR = IMS_ITEM2-POSNR.
            EXS_ITEM-GSBER = IMS_ITEM2-GSBER.
            EXS_ITEM-AWORG = IMS_ITEM2-AWORG.
            APPEND EXS_ITEM TO  EXT_ITEM.
          ENDIF.
        ENDIF.
      ENDLOOP.
      IF EXT_ITEM[] IS NOT INITIAL.
       EX_DOC-ITEM[] = EXT_ITEM[].
       EX_DOCUMENT = EX_DOC.
      ENDIF.
  ENDIF.
endmethod.

Similar Messages

  • 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 in Goods issue document

    Hello Gurus
    I am determining profit center through the profit center substitution in sales order through 0KEM transaction and activated it in 0KEL as activation 3.
    I have taken the fields as sales organization  and sales office with transaction code VA01 and VL02N .
    After this the substitution happening in sales order and also in delivery but the substitution is not reflecting in the goods issue document neither coming  for inventory nor in COGS anyway but it is reflecting in the FI accounting document but not for customer but for sales.
    Please help me  to with your kind suggestion for resolving this issue.
    I need the substituted Profit center also to come in the accounting document of PGI and for customer in FI accounting document.
    Thanks in advance
    Subu

    Hi Subbu
    1. 0KEM works for sales order and related billing.. It does not work for PGI, unless you are in MTO scenario and sales order is CO object
    2. At PGI - Inventory a/c will be Cr with PC in Mat Master... COGS (If not a cost element) will also be Dr with the same PC
    If you are in MTO, the COGS will be posted to sales order and hence, it will have the same PC as sales order
    3. During Billing, revenue a/c is Cr with PC in sales order... Customer line is never shown with PC in the line item....
    - If you are on EC-PCA, you need to run 1KEK at month end...
    - If you are on New GL + Doc Splitting, PC will be shown in the "General Ledger View" in customer line item... the "Entry View" wont have any PC
    BR,Ajay M

  • Profit center substitution rule

    hi ,i am wondering is it possible to assign profit center substitution rule by sales org,instead controlling area?

    Hi
    The substitution rules are written at Controlling area level, but they can be made Dependant on sales org. i.e. in EC-PCA substitution, you can use sales org and other SD org elements in the substitution rules and try to derive a desired profit center in the sales order
    Ajay M

  • 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 in Sales order

    Hello All,
    I have a Small Issue here.
    we have a substitution rule for the PCA Derivation in the SO with the combinations of few Sales Org, Distribution Channels and Divisions.
    But when a WBS Element is Assigned in the Sales order it is over writting the Substitued profit center with the profit center in the WBS Element.
    If we have not maintained any thing in the WBS it is Deriving the Dummy Profit Center from the controlling Area Settings in PCA
    Best Regards
    Ravi

    Ravi-
    Generally, the following prioritization in ascending order applies during the determination of the profit center:
    a) Material master
    b) Profit center substitution
    c) Manual entries
    d) Actual account assignment, for example: internal order.
    a) = Lowest priority , d) = Highest priority.
    This is standard.
    Hope this helps.
    Shail

  • 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

  • Profit Center Substitution Rules are exceeding More than 999 Rules

    Hi Experts,
         (Transaction Code GGB1) Profit Center Substitution Rule are exceeding More than 999 Rules. And there is a need of substitution rules to create.
    Please suggest me if any User Exists are available or alternative solutions through wich i can determine the profit center in sales order and same profit center can be transfer to FI as well as CO...
    Regards,
    Shivaji

    In the substitution you can use the option EXIT
    click on the help and go from  there:
    In table T80D you have to assign the exit name
    There are example ABAP's the standard one yopu have to replace in the table with a z version.
    Perhaps an other option is to de redesign from you substitutins, by using perhaps set's

  • Profit center substitution in delivery from Purchase Order

    Hi all
    Hi have a stock transfer process between two company (1 sending company and the different target companies). I must change the profit center of sending company following the target company code (profit center A for target company A, B for B,etc.). The sales order substitution for PC doesn't work in this case because the delivery born from a PO not from a SO. I find I can make the change for the goods movement  with the exit EXIT_SAPLPCRW_002, but I don't found exit for the delivery document (important for the intercompany invoice profit center). Someone have ideas?
    thank
    Davide

    GGB1?

  • 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 in FB50

    Hi All,
      I have a requirement to substitute profit center by a contant value say 'CSB1.3' in the line of the Accounting doc which has the GL account no. which belongs to a particular cost element group.
    Example: In FB50, when I give the G/L account in the item line, and the order the profit center, by default is picked up from the account assignments in the Order. But, this has to be overridden by a contant CSB1.3 value.
    I tried achieving it by SUBSTITUTIONS through OKC9, but i didn't work.
    However, Now I have written a field exit for PRCTR for screen SAPLFSKB 0100.
      This is working, but it immediately pops-up a message saying...
    PROFIT CENTER WAS SET TO CSB2.8  -
    > which is the old value, coming from the order.
    and gets back the old value on screen.
    Can you please suggest, how to correct this or any other way to achieve this substitution.
    Thanks in advance,
    Sheetal Singh.

    Hi Sheetal,
    I observed there are 2 problems in your issue posted.
    1) Default profit center would have been assigned to the GLs u are using , which u need to delete. i.e. CSB1.3 assigned to GL accounts.
    Check in the below path whether any profit centers are assigned to GLs.
    SPRO->Financial Accounting (NEW)->General Ledger Accounting->Master Data->Profit Center-> Assign Default Profit Center to Accounts.
    If assigned removed so that ur field exit may work.
    2) If you want to write substitution for financial transactions there are 2 transaction codes involved.
    a) Tcode: GGB1 - Here u can select the Financial accounting folder and create substitution for which area u want like Document Header or Line item or Complete Document.
    i) U need to create a Step like SBUS_1 or something u like.
    ii) Now that u will find Prerequisite which u need to define, like company code & account type etc..
    iii) After that defining that u should click on Substitutions link under Prerequisite, u will find field & substituted by headings, add a field with + button available in that screen.
    iv)A popup window will be opened for field selection, u should select Profit Center field and press enter.
    v) It will give three options after BSEG-PRCTR selection, select a radio button constant value if you know the profit center number.
    b) Tcode: OKC9 - in New entries enter the following under columns,
    COAr- XXXX-Controlling Area
    Event- Line Item
    Substitution-SBUS_1
    Active-1
    and save it under a request.
    Now u can go to FB50 or any financial transaction u can see this substitution working.
    I hope it will help u in resolving issue.
    Regards
    PSNG
    Edited by: PSNG on Apr 8, 2009 3:17 PM

  • Profit center substitution in cross-company sales

    Hi,
    We're working here with cross-company sales and profit center.
    Let assume that we have a final customer, sales organization (1090 and 1190) and plants (1090 and 1190).
    1090 is selling to the final customer and 1190 will sell to 1090.
    Everything is monitored from SD in 1090. So we create a sales order in sales organization 1090 for the final customer. Then for the item we change the plant (automatic proposed value 1090 => changed into 1190), this in order to represent a cross-company sale.
    After we changed the plant ... we can see in the account assignment tab that we now have 2 "profit center fields". SAP notes 815972, 39254, 713228 ... explain that we can manage different values for the two fields (profit center and profit center billing) using subsitution (0KEL and 0KEM transactions). Unfortunately we're not able here to change the value for the Profit Center Billing field, even through an exit !!
    Could anyone give us a hand on this ?
    Regards.
    Benjamin BROCHON

    Hi we got the same problem where the substitution is not working, 0KEL we have set the status 2. but still the customer billing document contains the wrong profit center. can you help us on this issue? please replay to [email protected]

  • 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

  • Profit Center Substitution does not work in Invoicing of Service Orders

    Hi experts.
    While creating the Quotation (VA23) for Service Orders, the profit center field is populated with the correct profit center via substitution, but while creating the invoice, it is not being populated with any profit center, and hence this result in the posting being made into dummy profit center.
    Could anyone please share some knowledge or info?
    Any help will be greatly appreciated
    Thank you
    Regards, Erwin

    Hi Erwin
    The PC from parent document always flows into the invoice....
    Did you check the account assignment in your invoice VF01 or VF02.? Try to manually update the PC there and see if it posts in the document.. if not, you will have to put a break point in RV60AFZZ and check
    Regards
    Ajay M

Maybe you are looking for

  • Hp 2711x Monitor: Flickering red horizontal lines, dots, shapes

    I'm not sure if I have two seperate problems or if they are the same problem. But lately my monitor has many red horizontal lines or red dots, or random red shapes on screen that flicker slightly. They only appear on parts of the screen that are dspl

  • How do i update a tree display?

    I've created a tree, which will only be used as a display for values, but i'm not sure how to correctly update the tree if a value is changed. I just want to update the text for the changed node, and display the new view of the tree. Does anyone know

  • Check payment cancel after transferring the balances to SAP

    Hi All, Need your confirmation on below My Client have processed a payment to a Vendor before they move on to SAP. Means, while they were on Legacy. Now they want to cancel the payment after migrating to SAP What are the possibilities to overcome thi

  • BPM 11G licensing question

    I have a BPM 10G system in production, all paid up, sitting on WebLogic Server but no other Oracle bits and bobs like OSB for example. I want to migrate to 11G which is now part of SOA Suite, what are the licensing implications of doing this? Thanks

  • Correcting the date stamp with files converted with mpgstreamclip.

    I have converted some files using streamclip but it changes the date of the file to the date of the conversion. When I try importing them into imovie they are sorted incorrectly. The files were recorded in 07 but now have the date stamp of today. Can