Substitution of Profit Center

Hi,
In our current system, we are trying to substitute the profit center in Sales Order based on the combination of sales office and division. Well, we have maintained the substitution rule in 0kEM, but seeing that the combination can be quite many, i am looking for user exits which can be used to derivate the profit center based on the combination of those SD organization structures above.
anyone knows the correct user exits for those?
Thanks in advance

Hi Erwin
Create a substitution in 0KEM.. While creating it, system would give 2 choices "Exit Only" or "Constant value".. Choose "Exit Only"..
While you write the subst rule, system would give you list of exits available in the subst rule in the tab "Exits"...
I think You can use exit U100 and write your ABAP code.... Maintain a Z table which contains the possilbe profit center entries for a given combination of SD org structure...
Regards
Ajay M

Similar Messages

  • Substitution of Profit center at the time of goods issue for consumption

    Dear All,
    We have a requirement of changing the profit center at goods issue level i.e. when goods is issued for consumption, it will pick the profit center maintained at Sales order level instead of picking Profit center maintained in Finished Goods.
    In our case, we have to maitain the profit center in the finished goods but the problem arises when we put the different profit center in sales order in place of FG Material master PC, then at the time of PGI & billing, system picks the PC maintained at sales order but the problem starts when we issue the goods for consumption i.e. it picks the FG material master PC.
    Can we go for substitution for it? but for substitution, i dont have any idea how it works & how to create it?
    Kindly do the needful asap.
    Regards
    Anuj

    ok

  • FI Line Item Substitution for Profit center

    Hello Gurus,
    The client wants
    1- that what ever profit center they put in the field ZUONR (Assignment) field in the line items, should be substituted in the field BSEG-PRCTR. I know how to create a field assignment substitution. and had created that, but user wants that the substitution should check that the profit center put in the assignment field, should be validated and checked if its a valid PC or not.
    or
    2 - The user can put in the assignment field as PC=130001, so the substitution should check if BSEG-ZUONR :1-3: = 'PC=' and if the BSEG-ZUONR :4-9: is a valid profit center substitute the BSEG-ZUONR :4-9: in the field BSEG-PRCTR.
    Any suggestions for both the above, how this can be done.
    Thanks in Advance.

    Hi,
         You will have to use an exit to do this.
    The code will be like:-
             Data:  ZPRCTR like BSEG-PRCTR      " Variable.
    *Requirement 2 first
            IF BSEG-ZUONR (3) = 'PC='
                   ZPRCTR =  BSEG-ZUONR+3
            else
                   ZPPCTR = BSEG-ZUONR.
    *Check validity
      Select single prctr from CEPC where
                      prctr = ZPRCTR.
    IF SY-SUBREC = 0    " Found a PC
         BSEG-PRCTR = ZPRCTR.
    *If ZUONR is not a PC nothing is done.
    Kind regards

  • Substitution for profit center for credit line item

    Hi
    There is some common material sold in two segments. (Example head phone is sold from cell phone segment and computer segment). These segments are created as a division also for SD purpose.
    Now for determining the profit center, i am using the validation rule. Logic: if the division in sales order is cell phone, entry should be posted in cell phone division. So my revenue and PGI will be in cell phone segment.
    When head phone was procured, it was procured in computer segment (division). So my inventory credit should be the posted to computer segment (via profit center) and consumption should be posted to cell phone division (for matching with revenue). Hence i want some substitution rule for posting to two different profit center ( or segments, determined by profit center) at the time of PGI. Debit (consumption) should be to the profit center for cell phone and credit (inventory posting) should be to profit for computer.
    Please help.
    Edited by: Meenu_ND on Jun 23, 2011 8:02 PM

    Hi
    In an ideal scenario, profit center is derived from material master. Since, your business is such that profit center is nto known as unique for a material master, try using the following BADI to derive profit center at the time of Goods movement document. You should not maintain profit center in material master in such a case.
    MB_MIGO_ITEM_BADI
    MB_MIGO_BADI
    Regards
    Sanil Bhandari

  • Substitution of Profit center across project structure.

    Dear All,
    Requirement: Need to substitute profit center entered at Project definition level (at all times) to all project elements (WBS elements, N/W header and Activities). Also I need to validate this complete structure for the profit center inconsistency.
    Problem: I have created Substitution rules, which will substitute across all the project objects (only when a new project is created). But if you change the profit center afterwards, it will change only at WBS elements level, however profit center at N/W and Activities will be substituted only when you make some changes to them. To avoid this I have created a validation, which will check across the complete structure.
    Now after changing the profit center using CNMASS for all the objects, even though in physical you can find the new value at N/W header, however while saving it will validate and finds only the oldvalue and hence throws an error.
    Can anyone throw some light on this?
    With regards,
    Harisha

    Hi Martina,
    My problem in detail:
    I am creating a new project structure XXXX (having WBS elements, N/W and Activities) with initial profit center as AA. 1st time while saving the project, profit center AA will be substituted to all objects (I have maintained substitution rules at all objects)
    Now again I will reopen the same project XXXX and I will change the profit center of project XXXX to BB (in the project definition level). With this due to automatic substitution only the profit center at WBS elements will be changed to BB. But not at N/W header and Activities (till you make some changes to N/W or Activity the profit center will be AA only, afterwards if you make any changes to N/W and Activities profitcenter will changes to BB). To avoid this difference I have created a validation rule, which will check the inconsistency of profit center all along the structure.
    Now I am using mass change functionality to change the profit center in onego at all the objects. After making the masschange the profit center at all objects will become BB (but still not saved), however while saving the system validates the profit center and found still N/W and Activities having AA only (in database), so it wont allow us to save.
    If you require further information please ask me again.
    With regards,
    Harisha

  • Delivery-Substitution of Profit center

    Hi,
    We have a requirement of Inter company stock transfer. So PO followed by Delivery and Billing .
    We need to change the Profit center using substitution  at the time of delivery so the Billing will also follow the substituted Profit center.
    Is there any substitution rules available or USer exit to make this chnage.?
    Looking for your uggestions
    Regards,
    Chitra

    Even it is an IC purchase order, why do you want to change the standard profit center used for goods issue?
    Even if it is an IC customer, IMHO the profit center should remain the same as in any goods issue from delivery.
    I had to do add special logic for profit center determination in a SAP system for IC Sales (many OSS notes, check them if needed), but from what I remember, nothing special has to be done for IC Purchases.
    Regards,
    Franck

  • FI substitution for profit center

    Dear all,
      I have a problem when make a substitution for FI document. The condition is: clear GL acct by FB1S,and when GL acct = 21451000,then get 21451000's profit center to put into GL acct 71/75 item which post automatically. Use OBBH to define substitution and callpoint is 3(complete document).
    Step 001-
    - Prerequisite :
    BKPF-TCODE = 'FB1S'
    - Substitutions:
        field: only exit
        by: U102
    FORM U102 USING BOOL_DATA TYPE GB002_015.
    LOOP AT BOOL_DATA-BSEG INTO BSEG
                           WHERE HKONT = '0021451000'.
      T_PF = BSEG-PRCTR.
      EXIT.
    ENDLOOP.
    LOOP AT BOOL_DATA-BSEG INTO BSEG
                         WHERE HKONT = '0071060022' OR
                               HKONT = '0075060022'.
      BSEG-PRCTR = T_PF.
      MODIFY BOOL_DATA-BSEG FROM BSEG INDEX SY-TABIX.
    ENDLOOP.
    ENDFORM.
    But it still not work...pls help me to check my code or provide your comment...Tks!
    BR
    Regina

    Hi Tsai ,
    put a break-point and find out what values if getting populated in that T_pf.
    or try to use U800.
    *       FORM U102                                                     *
    *       Inserts the sum of the posting into the reference field.      *
    *       This exit can be used in FI for the complete document.        *
    *       The complete data is passed in one parameter.                 *
    Regards
    Prabhu

  • Wrong step picked from Profit center Substitution.

    Hi,
    we have a number of steps created under a substitution rule (profit center accounting).
    I created a new step (1) with more details like sales org, sales order type, distribution channel, sales group and sales office with profit center "XXXX".
    However, there is an existing step (2) with the same sales org and distribution channel having profit center constatnt as "YYYY" in the same rule.
    I have placed the new created step above the existing step. so 1 precedes 2 in the rule.
    However, when creating the sales order it is picking up the profit center "YYYY" from the step 2. the details in the sales order matches for all the sales area data and order type of step 1.
    where am I making the mistake?
    Please help me on this.
    regards,
    Abhishek

    GGB1?

  • Profit center problem

    Hi Experts,
    There is problem for my user:  While posting the transactons in VF01 the user selected correct plant  & wrong profit center.    We can change the profit centers through 9KE0 but it is not reflecting in Financials.
    One more opition we have that we can post the transactions in F-02  but the system is not allowing to give profit center, Even we put Profit Center is mandadory in Field Status variant.
    Its an urgent issue Plz. any body can help me in this regard.

    Hi
    Normally as rightly said, the profit center is derived from Material master for customer or vendor.
    In case for customer you want to use a different profit center other than what is derived from material master, you can use the option substitution of profit center depending on the sales org/dist channel/etc...and other fields available in the substitution.
    Regards.
    Suraj

  • Sales Order with different Profit Center

    Hi All Experts,
       In material master, i was created profit center PBB2K for part A but it is showing different profit center when sales order created
       Please kindly advise why different profit center show in sales order?
       Thanks
    Regards,
    shirley

    Hi ,
    check 0KEM for any sales order substitution for profit center.
    In genreral the material master profit center defaults to profit center , But at sales order you can change the profit center other wise check 0KEM
    If helpful asign points.
    regards
    Prabhat

  • 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.

  • 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 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 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.

Maybe you are looking for