Profict Center substitution in accounting Document of CRM billing

Hi Experts,
Currently we are using ECC6.0 and CRM 2007.
When CRM billing document is released for accounting,
We are required to Substitute profit center in accounting document/PCA document.
Presently we tryed user exit PCACRM01 ,
function module EXIT_RKECRM_PCA_40_001 using a break point but was not reached at tht point.
Kindly suggest something on this matter.
Thanks,
SA

Debbugging billing doc:
1)     Before saving the document enter /h and save.
2)     Now try to place the break point in the function module /1BEA/CRMB_BD_MWC_O_FLOW(CRM)
3)     This function module calls the method of the PROCESS_OUTBOUND of class CL_SMW_MFLOW. In the method make the variable  ls_header-dbgmode
To X.
4)     By doing this the BDOC stops in the debug stage.
5)     Now go to SMW01 . Select the BDOC and reprocess it. Before reprocessing it enter /h.
6)     Place the break point at the function modules BEM_UPLOAD_FI_SRV(CRM).
7)     Once this function module is executed it calls CRM_UPLOAD_TO_OLTP.
In this function module make the variable i_nosend to 'S'.This
Function module also calls the function module CRM_UPLOAD_TRIGGER
To debug the code in R/3 make the variable lv_synchron to u2018Xu2019 and
Make sure that RFC user is Dialog user
8)     Now the control is in R/3. In the flow it call
    BAPI_BILL_DOC_PROXY_CREATE and BAPI_ACC_DOCUMENT_POST.
Now you canplace the breakpoint in the ur userexit.
Note: Pls do not try this Production.

Similar Messages

  • No accounting document generated during billing

    Hi,
    I am getting the error : No Accounting document generated during billing. When I went thru the steps from Envt ---> Acc.determ.analysis- -> Revenue accounts, I found that Acct Assignment group has 'Exclamation' mark.
    Suggest a way how to resolve it.
    Thanks in advance.
    regds,
    Umesh

    Hi,
    Good afternoon and greetings,
    Please check in the Tcode VKOA, the account assignment is complete for the ERL key...This can be dependant on the following 3 main combinations.
    1. customer group, material group and accountkey
    2. customer group and accountkey
    3. material group and accountkey
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • Not able to post accounting document from CRM to ECC.

    I am tring to post accounting document through BDOC but it is not posting . Can any one have idea how we can post accounting document to ECC from CRM with out use of Bdoc .  Thanks

    Hi,
    Check if any of the condition types which has the account is having a tax code.. That tax code shouldn't have defined as EC tax code.
    When you double click on the line item condition type which will be posted to accounts, you could see the G/L account and tax code. Ask you FI consultant to check how that tax code has been defined.
    Btw, it is always good if you open a new thread.. But you can refer the old thread inside your post.
    Regards, Sai Krishna.

  • No accounting document generated in billing

    Dear Experts,
    I have created one header condition type ZD00 for freight charges in pricing procedure and assigned Account key ERF.It is calculating in Billing but when I am trying to save the billing it is throwing a message "Document 9310000061 saved (no accounting document generated)Message no. VF050".I have checked VKOA transaction where ERF key is assigned with customer & Material group with GL account.I am not able to find the problem .It will be great help if i get the solution.
    Thanks & Regards
    Rahul Sharma

    hi
    please go to check this areas
                1.G/L account is maintain or not
                2.account assignment of customer master
               3.account assignment of material master
               4.account keys in  check T-code VKOA
               5.profit center
               6.cost center
               7.posting period and number ranges
    check all
    rgds
    venkareddy

  • Config document on CRM Billing

    Hello Experts,
    I have to work on Service Module.
    If anybody has config document on Billing,please provide
    Thanks

    Hi,
    I can suggest u the customizing steps for CRM billing.
    If u want to do customizing for CRM billing follow the following steps:-
    u2022First of all make the item category for sales and services tht u r using as relevant for CRM billing.
    u2022Goto Customer Relationship Management>Billing>Define Billing Types and define the billing type. In this step, you define billing types to specify the characteristics and properties of a billing document (an invoice, credit memo or debit memo, for example). The billing type attributes determine how the system behaves during the billing process
    u2022Goto Customer Relationship Management>Billing>Define Billing Types --> Define Item Categories .In this step, you define the item categories for CRM Billing. The item category determines the properties and characteristics of billing due list items and billing items (normal service items, and credit/debit memo items, for example).The item category attributes determine how the system behaves during the Input Processing and Billing processes.
    u2022Goto Customer Relationship Management>Billing>Define Billing Types > Define Item Categories> Item Category Determination--> Assign Item Categories. In this step, you assign a combination of the business transaction type (that is, process type of the source application) and the item category of the relevant CRM business transaction to an item category in CRM Billing.
    u2022Also for integration with R3 goto Billing> Integration> Transfer of Billing Documents to Accounting> Transfer to Accounts Receivable Accounting (FI-AR)> Assign Document Types. In this activity you determine which accounting document types will be used to post billing documents in SAP ECC Accounts Receivable (FI-AR).
    u2022Also u need to do the following settings--> Assign Billing Units to Service/Sales Organizations. In this activity you define which billing unit should be determined from the characteristics sales organization and service organization.  This applies for service processes in CRM Online that are billed in CRM Billing, and posted as billing documents in SAP R/3 Financial Accounting (FI).
    Also refer the help docs in SPRO.
    I hope this will help u.
    Regards,
    PePe

  • Accounting document number from billing data

    hi
    i have billing document with multiple items. I need to find out the accounting document number corresponding to each of the billing document item. which tables i need to refer for this.give me the field names.
    thanks

    Hi,
    You can read the FI document with the function module AC_DOCUMENT_RECORD
      call function 'AC_DOCUMENT_RECORD'
        exporting
          i_awtyp      = 'VBRK'
          i_awref      = awref
          i_aworg      = aworg
          i_awsys      = awsys
          i_awtyp_incl = 'BKPF'
          i_valutyp    = '0'
          x_dialog     = ' '
        tables
          t_documents  = docs_fi
        exceptions
          no_reference = 1
          no_document  = 2
          others       = 3.
    where docs_fi is as the table ACC_DOC. Read the records where awtyp = 'BKPF' in itab docs_fi. Search AWREF, AWORG and AWSYS in equivalent fields in table VBRK.
    I hope this helps you
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on Jun 14, 2010 3:35 PM

  • Accounting document quantity and billing document quantity doesn't match

    Hello SAP Experts,
    I have an accounting document that was automatically posted in FI (TCode VF01) after billing document was created. Billing document (debit memo rebilling) shows invoiced quantity 1. But corresponding accounting document in FI shows quantity 0 (double click on G/L account in accounting document, section additional account assignments, field Quantity).
    Could you please help me where should I make appropriate corrections, settings?
    Thanks and best regards,
    Peter

    USe user exit EXIT_SAPLV60B_002 and EXIT_SAPLV60B_004 to modify customer lin and  GL line respectively in the accounting document. change values  in export parameter XACCIT
    Regards
    Sridhar

  • Add NEW invoice items  in accounting document when doing billing (VF01)

    Hi !
    Is it possible to ADD NEW Itemlines to the Accountingdocument while doing billing(VF01) ?
    Know that its no problem to change existing lines.
    Need to ADD one new debit and one new credit item line.
    Have tried  userexit  EXIT_SAPLV60B_008 and BADI  AC_DOCUMENT  in debugger.
    But did not get it to work , "Accounting document was not get created".
    Added lines to XACCIT and XACCCR tables.
    BTE 1130 ?
    Please let me know how i can solve this,
    Thanks !
    Cheers
    /Per

    Hi !
    OK did you solve it ??  What exit did you then use ?
    I copied one of the GL rows and changed to next index and changed the values i wanted in XACCIT.
    Same to the table that holds the amounts. Same index there as the XACCIT table.
    I just want to know IF it is possible and what exit to use.
    Best regards
    /Per

  • How to get Accounting documents based on Billing documents

    Experts,
    I have a particular requirement in SD. I need to fetch the details of Accounting documents(BKPF-BELNR) and Fiscal year(BKPF-GJAHR) based on the Billing documents(VBRK-VBELN). Is there any function module to do so or any other way. Currently I am fetching this data but there is a performance issue.
    Edited by: Ashish Kansara on Oct 16, 2008 1:54 PM

    A quick link is to take VBRK-VBELN and use it to lookup BKPF-AWKEY. Also select BKPF-AWTYP = "VBRK" to make use of a secondary index on BKPF.
    Thomas

  • Issue of account document generated when billing created

    Hi All,
    We have a background daily job to created the IC billing. Now we hit an issue that some billings can't get the account document generated automatically when the billing is created, but when we release them manually, they can generate account document successfully without issue. Anybody know what should be the reason and how to reslove it? 
    Thanks!

    Dear
           Check it could be either accounting determination error or coulde be due FI/CO interface or derivation rule error extra so need to check while create billing document.
    Regards
    Ajit K Singh

  • Two seperate accounting documents required while billing

    Hi Everyone
    In my current project there is a requirment at time of invoice generation
    When billing document is generated and for example the net amount is RS 1000 and tax is Rs 200 the accounting document when generated shows the spilt
    But when we view the data in FBL5N it shows the single entry of Rs 1200 including net value and tax
    Now my client wants that in FBL5N two line items are shown one for Rs 1000 and other for Rs 200
    Can u pl suggest me whether it is possible to create two accounting document at time of billing
    Thanks and Regards
    Sunil Iyer

    Hi Sunil,
    One idea, but be careful. I think that it's possible with enhancements. See Note 301077 - User exits for the interface to accounting, for EXIT_SAPLV60B_008. The question is get the line for customer, and add an additional line. For the first, initial amount less taxes, the new line, the amount will be the amount of tax. See Note 611040 - Down payment invoice for Italy to see how SAP does it for a legal requirement for down payments in Italy. Check only how SAP does with EXIT_SAPLV60B_008 or include ZXVVFU08. If it works, you might see two lines in FBL5N.
    Look for the help of an ABAPer. Good luck, and be careful. So, check again and again until you be sure.
    I hope this helps you
    Regards
    Eduardo

  • No Accounting Document for FAS Billing Type

    Dear All,
    I am creating a Down payment request ( FAZ ) for the Milestone Billing and a accounting entry is made to the Customer GL Account under Special GL which is visible when I see the Customer GL using the NOTED items check box
    But when i cancelling the same, FAS , is the document type for cancellation, as reversal entry to the GL account is not happening
    It gives an message :- " Clearing document without line items
    Message no. F5899"
    How can i resolve this issue.
    Pls. revert ASAP.
    Regards
    Ansh

    Hi Ansh,
    Maybe there was an error during processing of the cancellation of
    downpayments. Did you reset the cleared items in the downpayment
    with transaction FBRA first before cancelling in SD?
    Please have a look at note 213852:
      If, in Financial Accounting, down payments made are assigned
      incorrectly to down payment clearings or other postings when a
      clearing is carried out with Transactions FB1D or F-32 (Clear
      customer), incorrect assignments of the clearing items may occur
      in the next milestone billing document or final invoice. To
      ensure a proper clearing in SD in this case, clearing with
      Transaction FBRA (Reset cleared items) is cancelled
      again.Consequently, the special G/L transaction is an open item
      again on the customer account.
      With Transaction F39, down payment clearings are carried out in
      Financial Accounting.Note 90997 ensures that these clearings are
      also identified in SD.
    Maybe something went wrong within the process?
    Please check with a new document flow if possible.
    If you cancel a downpayment request - which is just a noted item
    on the debit account without offsetting entry - this noted item is
    just cleared. For doing that the clearing document without any items in
    is created. The items of a downpayment item are immediately cleared
    when cancelling it, there is no further action required in accounting.
    More information can be received in note 213852.
    Regards,
    Alex

  • Profit center in accounting document is differ with profit center in PO

    Dear Expert,
    I have created 2 PO. 1 PO is with material number, and  the other PO is without material number. both PO have account assignment category H ( Cost Center - COGS)
    I also have created 2 MIGO with reference to each of the PO. but when I checked the FI document in Material document I found that the profit center in accounting document is different with profit center in PO - this problem only occur for PO with material number.  Profit center displayed in accounting document is refer to ZOKB9 (user exit)
    Material ledger is active for this material number.
    My question is what may cause the different profit center in accounting document and in PO?
    How to solve it?
    Thanks
    Pauline

    HI,
    possible reasons are :
    In GR document profit center pulled from PO Material :
    If you have ordered with material code, must check profit center assigned into material by mm03/Plant Data2
    If you have ordered without material code, than check cost center assigned Profit center by 1KE4

  • Exit or substitution GL account when posting goods issue

    Hi out there,
    does anyone know how to change BSEG-HKONT via a subsitution ? It seems to be blocked for that purpose. Although if I unblock it in table GB01 this does not work.
    If there is no possibility does anyone know a customer exit to change the account determination for GBB VBR when posting a goods issue ? It is needed for special postings and I want to program it either in a substituiton or exit.
    Thanks a lot for your help.
    Sebastian

    Dear Sebastian,
    It is possiable to change G/L through subsitution. But you will have to take help from abaper who will write code for the subsitution.
    Any subsitution which is realted to G/L can be written though the following path
    Financial Accounting (New)->>Financial Accounting Global Settings (New)->>Tools->>Validation/Substitution->>Substitution in Accounting Documents
    after that enter new line and double clik to write ABAP code based on your requirement.
    Hope you got the way.
    Rupesh

Maybe you are looking for