Wrong profit center capture in the billing document of intercompany sales

Hi Experts,
     I am facing a problem on the incorrect profit center capture in the billing document while billing to external customer. I did try to search SAP notes found that it can be use substitution user exit to correct it. So I try to find out the substitutions by T-code GBB1 in the folder  "profit center accounting" under create sale order.
The problem is how to maintain the substitution? Besides that did any one knows how to write the user exit for this substitution.  I will appreciate if you can give me some sample program. Thanks in advance.
Regards,
Jennie Tan

Hi,
Refer to program RGGBS000 FORM u100. Your user exit has to be modelled along those lines.  Change the select statement to select the profit center from the material master using the material number field (PCASUB-MATNR) and plant (PCASUB-WERKS). Move this profit center to the profit center field (PCASUB-PRCTR).
Copy RGGBS000 to ZGGBS000 and then write this code.
Just writing this out of my mind. Get an abaper to help you with this.
TABLES: MBEW.
DATA: WA_MARC TYPE MARC.
  exits-name  = 'U345'.
  exits-param = c_exit_param_none.
  exits-title = 'profit center subs'.            
  APPEND exits.
FORM u345.
SELECT * FROM MARC INTO WA_MARC WHERE MATNR = PCASUB-MATNR AND WERKS = PCASUB-WERKS.
IF SY-SUBRC = 0.
   MOVE WA_MARC-PRCTC TO PCASUB-PRCTR.
ENDIF.
ENDFORM.
In SM30 table V_T80D assign the program ZGGBS000 to application area GBLS.
Then write your substitution in 0KEM. Make sure in TCode 0KEL the the activation level is 1 or 3.
Thanks and Regards
Shivram.

Similar Messages

  • Profit Center is missing in Billing document

    Hi,
    I am trying to create Intercompany billing document IV with reference to Cross replenishment delivery type NLCC,
    I am getting the following error:
    "Profit center US01/    TP3870 does not exist for 03/23/2011"
    Actually, profit Cetner 6045TP3870 is maintained in MMR and same as fed into Delivery document
    but while creating billing document the above error is coming
    the preceeding number 6045 is missing in billing doc.. system is picking only TP3870...
    So please advice what could be the reason the specifid profit center is missing in billing document
    Thanks in advance,

    Hi,
    If Profit Center has been marked as mandatory for the posting, you can face this kind of error before posting the Invoice.
    Please check the Profit Center maintained at followings:
    1) Material Master
    2) Sales Order ->Item Data->Account assignment-> Profit Center.
    3) OKB9-> for respective G/L Accounts.
    Please check with your FICO consultant, he will surely have better idea on the same.
    Thank You,
    RB.

  • Billing document pulling wrong profit center

    Having a problem getting sales revenue posted to the correct profit center.  Order is created and pulls the correct profit center (1010) from the material master.  When sales document is created, it is putting it to sales revenue account but with wrong profit center (2010). 
    Using one sales revenue account, 410000, cost center 1602 linked to profit center 2010000
    Getting confused as to why my sales when posted to 410000 revenue account I don't get the correct profit center ?
    Any help or suggestions for configuration - just using my sandbox.

    Hi,
    Profit center is determined from material master for sales orders, direct assignment of accounts to profit centers, derivation rule in PCA, or via user exit (if some custom logic is inbuild in the system). Check your PCA configuration in section PC assignment to object & accounts.
    Regards
    Ram

  • Wrong profit center posted for a customer invoice

    Dear All
    I have posted customer invoice with wrong profit center, is there any way to reverse the same other than FB08 as I used the transaction 9KE0 but it doesn't support customer and vendor account.
    I want to correct the same through profit center only.( i.e. reducing the balance of wrong profit center and
    increasing the balance of correct profit center )
    Thanks in advance.
    Viru.

    Hello,
    Even if you posted a customer invoice only Control Account totals will be moved to PCA.
    Hence, see the control account for the customer masteer assigned and adjust the account accordingly by posting the entry through 9KE0.
    Regards,
    Ravi

  • Profit Center to be populated in documents already posted

    Hi,
    I work for a retail client. There is a store that went live about a week back. There is a validation applied, which updates a profit center to the tender GL accounts (differnet kinds of revenue - like cash/credit card/debit card/sodexho etc) .
    As the validation was missed to be transported - profit center is not to be found in tender documents. Is there a way out that I get the profit center updated to the tender documents that have been posted until now. In other words update of profit center in the documents already posted.
    Regards,
    Soujanya.

    hai
    Profit center never gets updated in Table BSIK and BSAK ...You will never get it in FBL1N..Please use KE5Z or S_ALR_87013346 or S_ACO_52000888 Payables - Profit center as an alternate ..
    As you must be aware that profit Center information is never entered in Vendor in line item. It is only entered in the expense/income line items...You will always find this field blank in BSIK ...BSIK and BSAK segmentation table is BSEG , PRCTR is there hence it can be set in O7R3 as a special field to be displayed in ledger but it will not show values. I hope it clears you.
    Thanks and regards

  • Where do I find what Billing Document Type to Sales Doc Type is associated

    Good Afternoon
    Where in the configuration do I find how the Billing Document Type to Sales Document Type is mapped to each FI Document type?
    I thought I would find it under VTFA, VTFL and  VTFF
    Your help is greatly appreciated!

    Hi,
    In SD module, when you configure the flow of documents, i.e. Sales Order -> Delivery -> invoice, or Sales Order -> Invoice the rules of copying data from one document to another are defined.
    There are two fields, that are visible in FI documents to configure:
    a) the allocation number
    b) The reference number
    in both fields following values can be pass from SD to FI:
    A. Customer Purchase Order number
    B. Sales Order number
    C. Delivery number
    D. External delivery number
    E. Actual invoice number
    If those fields (ore one of them) are left blank, then no data is being passed to FI. This is situation, when you dont have any data in FI document. In such cases you should contact your SD coleague and ask to configure with respective document.
    I hope, it clarifies the situation (As far as I understood your last post).
    regards,
    wojciech

  • Wrong profit center in Billing document

    Hi,
    Currently I can't release my billing document to accounting because there is missing profit center setup in my controlling area. The profit center had been wrongly setup in the SO and there is no cancellation billing type so I can't cancel my billing and amend the SO and re-generate the billing. Is there any other way I can change to the correct profit center? Or I need to setup the wrong profit center in my CO and do adjustment to post to the correct profit center after the billing document had been released?
    Best Rgds,
    Li Ling

    Hi,
    I would suggest setting up the profit center in CO just so this billing can be released to accounting and make an adjustment to post to the right profit center. We had to do this sometime back.
    Meanwhile, may I suggest to activate the cancellation billing types and frame a rule such that billing documents passed onto accounting cannot be cancelled. This would be the best option rather than not having the type at all.
    Hope this helps,
    Thanks,
    Siva

  • Profit center document not generated after creating the billing document

    Hi,
    I have few billing document for which the accounting document is created, but no profit center document got generated. What could be the reason? The profit center is captured at the account assignment tab of sales order as well as at the item level of Invoice and in accouting document too. The only problem is it has not generated the "Profit center document".  Pl help. Thanks in advance.

    Hi
    When you save the billing document then the accounting document and Controlling document gets generated.
    A profit center gets captured and it can be used when we check the accounting  document. But make sure that for the G/L accounts profit center is assigned and in your controlling area details  also profit center is checked.While configuring controlling then the profit center should also be assigned . to the G/L accounts .So kindly check with the help of your FICO consultant wheather proper assignment has been done or not
    Regards
    Srinath

  • IN amount of FI document input the  wrong profit center,how to handle it?

    Dear everyone
    IN amount of FI document input the  wrong profit center,how to handle it? Transfer one profit to another or how to do it ?
    Thanks,
    Doris
    Cross-post

    Hi,
    Are you using NEW GL or EC-PCA? If New GL, you can do manual adjustment (FI entry). If EC-PCA, you can do it using 9KE0.

  • Disable profit segment in the billing document

    Hi experts,
    I'd like to know if it's possible to disable the field profit segment in the billing document.
    I need to post amounts from taxes in cost center , but as the profit segment is enable in billing document, the amounts are posted in CO-PA.
    Thanks in advance.
    Osmar Tardivo.

    Hi,
    You can disable the PROFIT CENTRE from the billing document using the transaction code SHD0
    Goto the Transaction code SHD0 and in the Transaction code give the transaction code VF01 and choose the screen sequence variant by selecting the Program as SAPMV60A
    and goto the change mode and select the Profit centre with the field as PRCTR and check the INVISIBLE to disable the field in the Billing document.
    Please check the above solution , it will help
    thanks,
    santosh

  • Wrong profit center in accounting document

    Dear Experts,
    There was wrong profit center in accounting document since the user changed the profit center in material master to the correct one after posting is created.
    How to make correction in Accounting and controlling side for the wrong profit center?
    Please advice.
    Thank you in advance.

    Hi,
    If you want to make an update in FI, you will have to reverse the document and post it again. However, if it's sufficient for you to make an internal update in PCA, you can use 9KE0 transaction.
    Regards,
    Eli

  • Wrong Profit Center on Material document (Goods Receipt PO for Asset)

    Dear SAP Expert,
    When our company upgrade our SAP version from 4.6C to ECC6, all Profit Center on Material document (Goods Receipt on Purchase Order for Asset) is filled by profit center DUMMY.
    This condition not happend in our previous version (4.6C). Is there any new configuration on ECC6 for Asset Accounting?
    Many Thanks
    Maickel P

    Hi, Maickel:
    There is a setting for Dummy Profit Center, you can check in SPRO: Controlling->Profit Center Accounting->Master Data->Create Dummy Profit Center.
    And you can refer to the help of this IMG activity:
    Create Dummy Profit Center
    This function lets you create the dummy profit center for the current controlling area.
    The dummy profit center is updated in data transfers whenever the object to which the data was originally posted (cost center, order, and so on) is not assigned to a profit center. This ensures that the data in Profit Center Accounting is complete. You can later send the data on the dummy profit center to the other profit centers using assessment or distribution.
    You create the master record for the dummy profit center using this special transaction. To change or display it, use the normal profit center maintenance functions.
    The name of the dummy profit center is displayed in the controlling area settings for Profit Center Accounting.
    Prerequisites
    The standard hierarchy must exist for the current controlling area.
    Actions
    Enter the name of the dummy profit center. The rest of the steps are the same as when you create a normal profit center.
    Choose the function Extras -> Set controlling area first to make sure that the correct controlling area is set.
    Notes on transporting
    You can transport the Customizing settings for Profit Center Accounting under Transport Connection.

  • MB11 & MBST accounting document ledger view wrong profit center

    Dear Friends,
    My user is trying make a stock correction from stock 0001 to 0003 (storage location) from MB11 transaction with movement type 411 E (with special stock indicator E).
    Every thing is fine but when we look in to accounting document in entry view the entry is as below.
    Offsetting account (GBB) Credit  (posting key 91) - with no profit center
    Inventory account (BSX) Debit (posting key 89) - With profit center ABC
    When we look in to ledger view of the above document the entry showing is as below.
    Offsetting account (GBB) Credit  (posting key 91) - with Z_SPLITT profit center
    Inventory account (BSX) Debit (posting key 89) - With profit center ABC
    Zero Balance account (posting key 50) - With profit center ABC
    Zero Balance account (posting key 40) - with Z_SPLITT profit center
    When I looked in to the configuration of document splitting I can see the below settings.
    1) Document splitting Characterostic for General ledgers - set on Profit center (Mandatory field)
    2) Zero Balance Posting account is maintained
    3) Constant for Document Splitting - Z_SPLITT profit center is maintained
    Also for testing I posted the document from FB01 transaction code with the below entry.
    Account XYZ - Debit - with no profit center
    Account ZYX - Credit - With ABC profit center.
    In the ledger view I can see the below entry.
    Account XYZ - Debit - With ABC profit center.
    Account ZYX - Credit - With ABC profit center.
    Then why this is not happening when my user posting the docuemnt from MB11 & MBST?
    Why the offsetting account (GBB) line item not copying the profit center (ABC) of line item of inventory account (BSX)?
    also why zero balance account with Z_SPLITT account entry added?
    Is the functionality is like that only or any thing in configuration or transaction level is missing?
    Please guide me for the same.
    Many Thanks in advance.
    Best Regards,
    Abdul Mazid

    We had the same problem.
    Make Profit Center field as Optional for Movement type 411/411E/412/412E in Transaction Code OMJJ.  This worked for us.  After this setting was changed the profit center from the material master was used for the movement.
    We still have rules that make profit center mandatory on the FI side so profit center is not really optional.

  • GR IR Clearing account posting to wrong profit center

    Dear All,
    Here I am encountering the live problem that ,
    After the some customization changes , there was an impact on GR/IR Clearing account with regards to the profit center posting
    When we receive (GR) , the FI document line item is posting to the different profit Center, then the PO profit center.
    Stock Account is capturing PO and meterial profit Center, when G R is posted ,
    GR/IR Clearing account is capturing the different profit Center(wrong profit center)
    Please advise me is there is any way to correct, the wrongly posted documents,
    we are trying to stop the encountering error by modifying the customisation but the problem is how to correct the error postings.
    This is urgent issue ,
    Please try to help me by providing proper solution as early as possible.
    Thanking you
    With regards
    Krishna Rao

    Hi,
    What has already been posted in SAP has been posted. One alternative in front of you is to create adjustment postings in PCA to post to the correct Profit Center. You can use transaction code 1KEL or 9KE0 for the same but it may not work as most probably you will the GR/IR clearing account set to "Post automatically" in the GL Master. In such a scenario the only option would be to have customized program to create IDOCs with Message Type "PRCMAS" to post the adjustment postings in your system.
    regards

  • Wrong Profit Center Posting during J1IEX

    Dear Sir,
    While posting the Excise invoice through J1IEX the accounting document generated captures different Profit Center. However it should capture the profit center from Material Master. The material master Profit Center is not getting updated.
    Kindly suggest.
    Regards,
    Saurabh

    Hi,
    Since they know the month they can use the reports S_AC0_52000888 for vendors and report S_AC0_52000887 for customers and they can give the input as wrong profit center and from period and to period and find out the document number and based upon that reversal can be passed.
    Regards

Maybe you are looking for