Profit center substitution (OBBH)

Hi Experts,
When using T Code OBBH, which user exit is not able to get the value of the financial document no and reference key,
Since i need to write a specific logic to get the value of the reason code from the material document during posting, may I request for some hints?
BR,
King

For material documents,
BKPF-AWTYP = 'MKPF'.
MKPF-MBLNR = BKPF-AWREF(10).
MKPF-MJAHR = BKPF-AWREF+10(4).
You can use MBLNR & MJAHR to get MSEG-GRUND field.

Similar Messages

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

  • PGI: Profit Center Substitution  / BAdI

    Hello Experts!
    I am facing a problem in applying an Enhancement. The requirement is to substitute profit center of the receivng plant (for freight line item - accounting docuement) with the profit center of the supplying plant while doing the PGI.
    As per my knowledge, there are two ways to acheive this:
    One is to write a FI Substitution exit. I have done this using GGB1 / OBBH both at Line Item and Complete Document level. The Substitution exit has BSEG structure in scope, but it doesn't gets triggered at all. I guess FI Substitutions work only for diret FI postings and not for postings which involve integration with other modules (please correct if I am wrong). So during PGI, it is not getting triggered, for Statistical Posting t.code it works.
    Second way is to implement the BAdI AC_DOCUMENT I tried implementing the BAdI and putting a breakpoint. It comes into play while doing a PGI but the data available in scope doesn't contains required fields (PRCTR); so we are not able to substitute the profit center using this. According to an SAP note too, the BAdI can be used to acheive this.
    Please help on this.
    Thanks and Regards,
    Aabhas K Vishnoi

    Hi,
    Go through the link
    https://forums.sdn.sap.com/click.jspa?searchID=12702563&messageID=4861653
    U can use the User-Exit: EXIT_SAPLV60B_008
    And write required code in Include ZXVVFU08
    Regards,
    Raj.

  • Profit center substitution rule not overriding OKB9

    There is an automatic assignment of a cost center to an expense GL account in OKB9.
    This is cost center is not assigned to any profit center because it is a generic cost center.
    When we try to post to the same account manually using FB50 and when we put the same cost center in, it will of course post to a dummy profit center since the cost center is not assigned to a profit center. The profit center field cannot be changed manually as it gets greyed out after derivation.
    In order to override it , we have created a substitution rule using OBBH where we have introduced the business area.
    We have mentioned that if GL a/c = XXX and business area = YYY , the profit center = ZZZ
    When we now try to post into the a/c using FB50 , it does derive profit center as ZZZ from the substitution rule when you press the enter key.
    But when you try to post the document, it gives a message saying, it has replaced the profit center to dummy profit center and when i click on the message for more info , it says, it will use the automatic assignment rule and so it will by dummy and not ZZZ.
    I would appreciate any help in getting the substitution rule to override the OKB9 in this scenario

    Hi Rajaram,
    First of all profit center field is available in cost center master data and you are saying you have maintained default cost center for the respective GL Account in OKB9.
    Now you are substituting the profit center after OKB9 has derived the Cost Center & Profit center.
    Yes, sap standard behaviour will not allow you to do that even if you notice that in simulation mode you are able to see that substitution is changing the profit center as in complete call it gets reset to the original profit center again back.
    So you can not achieve that with standard boolean logic but only through exit and thats too probably the exit need to get called after the line item value is passed but before posting.
    Thanks & Regards
    Subhasish

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

Maybe you are looking for

  • Error while compiling BerkeleyDB: Command failed for target `util_sig.lo'

    Hi, While trying to compile BerkeleyDB on Solaris 10 x86 ( is there an easier way to get BerkeleyDB running than compiling from source? ) I was confronted with the error message appended. I used Berkeley 4.4.20 and configured by executing PATH=/usr/c

  • Enhancement for user exit

    hello   can you please let me the know the enhancement for user exit:exit_sapliqs0_001 regards anik

  • Sending slideshow to IDVD from IPHOTO

    I am losing quality when i export slideshow from iphoto. Quality is good when it is in iphoto but not in idvd

  • 2 Agents Registered with different components registered...

    I have a server with 2 agents. Apparently an additional agent was deployed by mistake. There are several databases, listener and host. The listener and host are registered to agent 1 and the databases are registered to agent 2. What is the easiest wa

  • AIR application object - mouse drag problem

    Hi, We face the following problem. Attached herewith are code sample and simulation for the problem. Would be great if someone could help us. Problem: Objects created in AIR application experience mouse drag problem. To simulate the problem please ex