Accounting Document Creation in FB60 with Tax Calculation Enable

Hello everyone,
I am currently facing a strange issue. The issue is that I am using transaction FB60 to create an accounting document.
How I proceed with:
    1. Go to FB60
    2. Enter the necessary details
    3. Click on the "Save" button to post the document.
To view the accounting document created,
    1. Go to FB03
    2. Enter the document number generated previously to view the document.
The problem is that, currently I need to update a field in the accounting document during its creation. I know that the BaDi 'AC_DOCUMENT' is called before creation of any accounting document.
I have hardcoded a break point in the BADI to test whether when clicking on the button 'SAVE' from transaction FB60, whether the BADI 'AC_DOCUMENT'is called, and the debugger was not trigger.
I don't understand why the BADI 'AC_DOCUMENT'is not trigger, i did activate the 'Update debugger' to test whether the BADI was executed in the background but in vain, the BADI 'AC_DOCUMENT' was not triggered.
But if I click on 'PARK'(I don't  know a park document is  document in transaction FB60, the BADI 'AC_DOCUMENT' is trigger.
I would be grateful if someone gives me an idea or a small explanation on what is going on in the back.
Maybe, I am wrong with the BADI 'AC_DOCUMENT', maybe this BADI's is not trigger every time an accounting document is created.
Thanks a lot in advance.
Kind Regards,
Bryan

what field do you want to update? did you try FI substitution?

Similar Messages

  • Post FB60 with tax calculate

    Hi all
    when i post in fb60 with tax calculation in that time one error came
    that is tax code v2 country IN does not exist in procedures TAXN.
    but i check the tax procedures create and assigned but why i did't post the document

    Hi Sadhu,
    Kindly answer the below questions. (apart from the questions asked above)
    1) What tax procedure your using TAXINN or TAXINJ?
    2) Did you check whether the tax code is assigned to company code?
    Thanks & Regards
    Om

  • Accounting document creation for sales invoice with IDOC INVOIC02 ?

    Hi All,
    Our sales invoice are managed in a external system and those Invoice are going to be send in FI with IDOC interface.
    is it possible to use the IDOC INVOIC02 to do this operation ?
    if yes, what are the customizing points I have to implement ?
    if not, what kind of IDOC can I use ?
    Thank you in advance for your help
    Franck

    Hi Thenna
    The accounting document status in the document flow is determined dynamically when you display the document flow,
    it's not saved in a specific table.
    Here is the relevant logic:
    LV05CF01 -> form BUCHHALTUNGSBELEG
    IF vbrk-vbeln <> vbfa_tab-vbeln.
       PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
       REFRESH xbkpf.
       CALL FUNCTION 'FI_DOCUMENT_READ'
        LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
                      AND   belnr EQ xbkpf-belnr
                      AND   gjahr EQ xbkpf-gjahr
                      AND   ( koart EQ 'D' OR koart EQ 'K' ).
        ENDLOOP.
                IF NOT sy-subrc IS INITIAL.
      SET STATUS TO 'No items are cleared'
                  l_xdoc_num-status = 'A'. <<<
                ELSE.
                  LOOP AT xbseg WHERE augbl IS initial
                                AND   umskz NE 'A'
                                AND   vorgn NE 'AZUM'
                                AND   ( koart EQ 'D' OR koart EQ 'K' ).
                  ENDLOOP.
                  IF NOT sy-subrc IS INITIAL.
      Set status to 'All items are cleared'
                    l_xdoc_num-status = 'C'. <<<
                  ENDIF.
                ENDIF.
    Regards,
    Alex

  • Account document parking in BDC with multiple records

    Hi,
    I am writing one BDC program to park document( not posting the document) using transaction u2018FBV1u2019.In the file, we can have multiple item for posting key 40 and single item for posting key 50 and vice-versa. We can have multiple item both for posting key 40 and 50. But the summation of all amount of all record for posting key 40 and 50 should be u20180u2019( for debit and credit).All these multiple records is actually creating one account document.
    I have created the recording and written the BDC program, but I hope I am missing the grouping of records for posting key 40 and 50 for single document number. Can pls guide me for the same. If anyone has encountered such problem, can you pls guide me for the same. If you haave the code for BDC, please send me the same.
    Edited by: amrita banerjee on Jun 20, 2008 12:53 AM

    Hi amrita,
    I do not understand what do you mean by grouping of records. Can you please explain.
    Still for parking documents, the recommended solution will be to use the standard batch input program RFBIBL00.
    Here is the sample psedo-code
    *bgr00
      wa_bgr00-stype   = 0.
      CONCATENATE  'FBV1' sy-uzeit+0(2) '_' sy-uzeit+4(2)
                  INTO wa_bgr00-group.
      wa_bgr00-mandt   = sy-mandt.
      wa_bgr00-usnam   = sy-uname.
      wa_bgr00-start   = sy-datum.
      wa_bgr00-xkeep   = space.
      wa_bgr00-nodata  = '/'.
      MOVE wa_bgr00 TO wa_file.
      APPEND wa_file TO it_file.
      v_empty_indicator = wa_bgr00-nodata .
    *bbkpf
      PERFORM build_data CHANGING wa_bbkpf.
      wa_bbkpf-stype = 1.
      wa_bbkpf-tcode = 'FBV1'.
      wa_bbkpf-bldat = wa_docheader-doc_date.
      wa_bbkpf-blart = wa_docheader-doc_type.
      wa_bbkpf-bukrs = wa_docheader-comp_code.
      wa_bbkpf-budat = wa_docheader-pstng_date.
      wa_bbkpf-monat = wa_docheader-fis_period.
      wa_bbkpf-waers = 'USD'.
      wa_bbkpf-xblnr = wa_docheader-ref_doc_no.
      wa_bbkpf-bktxt = wa_docheader-header_txt.
      MOVE wa_bbkpf TO wa_file.
      APPEND wa_file TO it_file.
    *bbseg
      LOOP AT it_accntgl INTO wa_accntgl.
        CLEAR wa_bbseg.
        PERFORM build_data CHANGING wa_bbseg.
        READ TABLE it_curramount INTO wa_curramount INDEX wa_accntgl-itemno_acc.
        wa_bbseg-stype = '2'.
        wa_bbseg-tbnam = 'BBSEG'.
        wa_bbseg-zuonr = wa_accntgl-alloc_nmbr.
        wa_bbseg-newbk = wa_accntgl-comp_code.
        wa_bbseg-wrbtr = wa_curramount-amt_doccur.
        wa_bbseg-kostl = wa_accntgl-costcenter.
        wa_bbseg-aufnr = wa_accntgl-orderid.
        wa_bbseg-hkont = wa_accntgl-gl_account.
        wa_bbseg-prctr = wa_accntgl-profit_ctr..
        wa_bbseg-projk = wa_accntgl-wbs_element.
        IF wa_curramount-amt_doccur LT 0.
          wa_bbseg-newbs  = '40'.
        ELSE.
          wa_bbseg-newbs  = '50'.
        ENDIF.
        MOVE wa_bbseg TO wa_file.
        APPEND wa_file TO it_file.
      ENDLOOP.
      DATA: l_filepath TYPE eseftappl.
      CONCATENATE '/tmp/FBV1_load' sy-uzeit '.txt' INTO l_filepath.
    *write app file for rfbibl00
      PERFORM write_data_appl USING it_file l_filepath.
    *Submit the data to post the document
      SUBMIT rfbibl00 WITH ds_name   = l_filepath
                      WITH fl_check  = ' '
                      WITH callmode  = 'C'
                      WITH xinf      = 'X'
                      AND RETURN.
    form build_data  changing pv_header  TYPE any.
    DATA:
        v_field(3)   TYPE n.
      FIELD-SYMBOLS <fs_field_value> TYPE ANY.
      v_field = 1.
      DO.
        ASSIGN COMPONENT v_field  OF STRUCTURE pv_header TO <fs_field_value>.
        IF sy-subrc = 0.
    *     if the field is empty then fill it with nodata indicatort
          IF <fs_field_value> IS INITIAL.
            <fs_field_value> = v_empty_indicator.
          ENDIF.
          v_field = v_field + 1.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    endform.                    " build_data
    form write_data_appl   USING    pv_file      TYPE ty_t_filedata
                                    pv_file_path TYPE eseftappl.
      DATA:
           wa_file   TYPE ty_filedata,
           wa_return TYPE bapiret2,
           v_msg  TYPE string.
    *Open the application server file
    *and write the data
      OPEN DATASET pv_file_path FOR OUTPUT
                   IN TEXT MODE ENCODING NON-UNICODE
                   MESSAGE v_msg.
      IF sy-subrc = 0.
    *   write the file to the application server
        LOOP AT pv_file INTO wa_file.
          TRANSFER wa_file TO pv_file_path.
        ENDLOOP.
        CLOSE DATASET pv_file_path.
      ELSE.
        message e000(00) with v_msg.
      ENDIF.
    endform.                    " write_data_appl
    Thanks
    Romit

  • Check list for automatic accounting document creation

    Sir,
    I have created a new depot [ STO process ]
    After that I tested SOP in development server, and could successfully create sales order, delivery, billing, accounting document.
    Accounting document was automatically created at the time of VF01.
    But in production server, after billing document, I have to manually release the document for accounting.
    I checked following conditions.
    1] " Posting block" is unchecked in billing document type
    2] Account Assignment is maintianed in VKOA
    3] Account Assgn Grp is maintained in customer master and material master.
    What could be possible reason, why accounting document does not generate automatically. For all previous depots created it is generated automatically in production.
    Would appreciate reply
    Regards
    Trupti

    Dear,
            I think you do the check mark on posting block. I have check this scenario and it is work.
            In STO process, There is no requirement to create accounting document because STO is process of company inter transfer process. and in this scenario, accounting document should not be generated and invoice create as a perform invoice.
           Hope will help.
    Regards,
    Sandip

  • Error in accounting document creation

    Hello All,
    While releasing the billing document, getting the following error:
    <b>SYST: Tax jurisdiction code at lowest level not transferred
    Message no. FF793
    Diagnosis
    The application has not transferred the tax jurisdiction code at the lowest level (TXJDP) to the Accounting interface.</b>
    Can someone help me as to what the error is and how to rectify the same.
    Thanks,
    Gopal

    Gopal,
    check Tax Jurisdiction Code

  • FB60 Output Tax calculations (CST, VAT, Service Tax)

    HI,
    Tax rates are maintained in Condition types in SD module. 
    For FI transaction we need tax codes in FI.  In FTXP when I am giving tax rate system not saving the rates.
    Please let me know, how the tax codes are created in FI (when tax rates are maintained in SD conditions types).
    Thanks
    Partha

    I did as below:
    1. In FTXP i given percentage for respective tax codes.
    2. OB40  I assigned GL accounts for respective tax codes (diff. accts for diff tax code, ie. CST, VAT, Service Tax)
         But I used here MWS (which is differ to the SD account key)
    Accounts are updating properly.  
    Can you tell me, is there any problem, or is it right or wrong?
    Thanks
    Partha

  • Tax code Blank on Inter-company Accounting Document

    The Tax code field in Intercompany Accounting Document is Blank though MWST has A0 ( Zero Tax) as tax code but PR00 & PI01 have no tax codes . The Accounting document of Commercial Invoice has tax code  A2 which has MWST & PR00 with tax code A2 ( Full tax) & PI01 as Blank, even at the time of condition record creation for PR00 & PI01 there is no place to enter tax code as these I believe come from customer master record - tax classification. the customer record for Sales Org Ireland has been maintained as Tax exempt.
    Sales Flow-
    Irish Customer orders to Sales Org Ireland
    Sales Org Ireland  - has Plant UK as delivery plant- delivers goods to customer
    Sales Org Ireland Invoices - Irish customer with correct tax code
    Sales Org UK creates Intercompany Invoice to Sales org Ireland with blank tax code in accounting doc
    IV Invoice creates RD04 with fullprocessed IDoc in Ireland which does correct Invoice verificiation posting in Ireland.
    the only problem is when UK creates IV invoice the a/c document generates has tax code as blank where it should with A0 ( tax exempt) code.
    Kindly help

    Use SAP Note 10560 & 112609

  • Accounting Documents shows no taxes....

    Dear Sappers,
    Please tell me when I am billing a Sales delivery in a standard SAP CYcle the accounting document does not show any taxes.
    While:
    1. Sales order shows the taxes
    2. I have maintained Tax coded assigned to the G/L Accounts
    3. In the account determination assigned the account with customer group and other custiomizing in the Account determination and costing.
    Please reply how can this be solved
    regards,
    Amlan Sarkar

    Dear Laxmipati,
    Thanks for your inputs,
    I have checked for the suggested :
    ZIDS  Target                        ZLF    input
    Header : coping requirement 003 assigned
    Item TAQ   004 assigned (delivery related billing.
    Since morning i am trying but could not get any solution to the problem.
    How can the tax disappear in the billing document.
    Is there anything with the tax code ....but if it was tax code then it should not have appeared in the sales order .
    Please suggest me what sholud i attach......
    regards,
    Amlan

  • Reference field with sales order number in accounting document (FB03)

    Hello!
    Does anybody know if it is possible to display in FB03 in accounting document a refference field with sales order number?
    Can parameter AUN be used for this purpose? If so, how can it be set up?
    Thank you in advance for every help,
    Sylwia.

    You can config the rule of copy control for billing by tcode VTFL. for the reference number field you can choose B-sales order number. then when you invoice, the field reference number in the invoice header will be filled with the SO No. And this number will be displayed in FB03.
    hope it will be helpful to you.

  • Why an Additional Accounting document created after cancellation?

    Dear Experts,
    The sales order item was Invoiced using VF01 and excise invoice generated which  had two accounting document created.
    When we cancelled through VF11 we have now 3 accounting document instead of two. When checked the above two mentioned doc were additional and showing executed from J1IH but we have not passed any entry in this Tcode. They have already cancelled excise invoice so why this additional accounting document are showing for this line item.
    Is there someway to reverse this somehow? Why this additional accounting document? (Attached doc flow)
    Many Thanks ,

    Dear Deepak
    We can see Two accounting documents at the the time of VF01--one for excise entries and another for normal accounting(this is happening in my current client)
    Let me give an example-- if sales order having the value of total 1000Rs with Excise values 103Rs(10+2+1) and some sales tax--55Rs(5%)
    Then at the time of VF01 --one accounting document (Example--AC1)shows as:
    Customer account Dr 1158 Rs
    Domestic sales revenue account Cr 1000Rs
    Cenvat Suspense account Cr 103Rs
    Sales tax Cr 55Rs
    The another accounting document will be created automatically--due to background  excise invoice generation--which contains only excise entries:(AC-Excise)
    CENVAT suspense account Dr--103Rs
    CENVAT BED payable Cr--100Rs
    CENVAT CESS payable Cr--2 Rs
    CENVAT SH.Cess payable Cr-1Rs...
    Note: some times there is repeated creation of AC1(AC2,AC3 etc...) with same amounts due to some updation related errors(unfortunately we are unable to reproduce this due to--this was happening as and when)
    Note: I have checked the accounting document creation time for the repeated accounting documents--all are showing with same time with same user name.
    I think this was happened in your case-(i may be wrong here)
    So please check--the creation time of accounting and update us..
    Phanikumar

  • Discount - Tax calculation on discount taken

    I'm having trouble with tax calculation on discounts.  Here is what I'm trying to do and what the problem is.
    I would like to use Net Method for discount process, meaning the cash discount amount expected is already taken into consideration when the invoice is posted. 
    example
    Invoice amount      $1,000.00
    Tax (VAT)           $175.00
    Total           $1,175.00
    Discount Amount at 2% = $20.00
    Cost object = $980.00
    [<b>u]Invoice Document Entry</u></b>
    CR Vendor $1,175.00
    DR Expense $980.00
    DR Tax $175.00
    DR Discount Clearing $20.00
    <u>Problem</u>
    At time of payment the tax amount should be adjusted for the discount amount taken but this is not working for me.  We should reduce our payment to the vendor for the tax amount on the discount taken of $3.50(20*17.5%).  In this example we are overpaying the vendor for the tax portion. 
    CR Discount Clearing $20.00
    CR Cash $1,155.00
    DR Vendor $1,175.00
    I found a note on SAP help which outlines what I would like to do.  Here is the link to the note
    <u>http://help.sap.com/saphelp_erp2005vp/helpdata/en/47/60f8ba49f011d1894c0000e829fbbd/content.htm</u>
    I don't understand why the system is not adjusting the tax amount automatically, i.e. the tax amount for the cash discount is credited to the tax account.
    Can anyone please help me?

    Hi Ramesh,
    Yes I am using document type RN.  I'm happy with what the system is doing at invoice entry.  Please see the entry on my original post.  However, the problem is at payment time.  I would like to reduce the payment for the tax portion on the discount taken at time of payment
    The system should post the following entry
    DR Vendor $1,175.00
    CR Discount Clearing $20.00
    CR Tax $3.50
    CR cash $1,151.50
    What setup is required to have the system post the entry as shown above?

  • One invoice - two accounting document

    Hi to all,
    can someone help me with this issue ?
    I have to make this case:
    creation of SD invoice - creation of accounting document - creation of another accounting document which derives from previous one.
    First two steps are standard process, but for the third step we should use some user exit, but I don't know which one.
    Did someone use something like this ?
    thanks in advance,
    Dubravka

    Hi,
    As per my knowledge,all this is standard scenario only.No user exit is required for this.
    First we will create an invoice after that accounting document will be generated which is a standard process.
    After this by posting this one by using FB01 T.Code will create one more accounting document which is derived from the previous one only.
    So we can use FB01T.Code  to create one more accounting document which is derived from the previous one.
    Regards,
    Krishna.

  • Link between billing and accounting documents

    Hi Friends,
    After creating the billing document, automatically acctg document will generate.
    How the acconting document is generating?
    Where we give the link between these number ranges?
    help me
    Thanks in advance

    Hi Raja,
    In SAP as soon as you run the billing transaction accounting document is generated along with billing creation. In transaction VKOA (FI-SD Integration) you determine the revenue GL account created in FI with the help of "AcctDetermProc." which is usually KOFI00. In this procedure there is a condition type of KOFI for revenue account. And this "AcctDetermProc."  KOFI00 is mapped in the Billing Document Type in
    transaction VOFA. under account assignment/pricing tab.
    And number range for the billing document type is maintained in VN01. Both FI number range and SD number ranges have same interval. so that both billing document and accounting document receive same number.
    Moreover, there is an "Account Key" for the revenue account aligned to condition type KOFI and same account key is mapped to the pricing procedure in order to maintain the stability.
    might help you......................................

  • Accounting document not posted for the GR(105) Document

    Dear All,
    New material is created. Accounting1 & 2 views are maintained with valuation class, valuation type and Price Control as "V" (Moving Average Price). Moving Average Price is maintained as ZERO.
    Purchase order is created for this material with item category as "K"(Cost Center). Three cost centers are assigned with quantity split.
    Goods Receipt is posted with mvement types 103 and 105. But no corresponding  accounting document posted.
    While displaying the accounting documents for this GR, its showing the below message
    No subsequent document found in Accounting
    Message no. RW011
    Diagnosis
    All documents generated in Financial Accounting for object type 'MKPF',
    reference document number '3900167513' and organizational unit '2009' should be displayed.
    System Response
    No accompanying documents were found in Financial Accounting.
    Please suggest.

    if the PO item has a multiple account assignment then the accounting document will be created with invoice receipt only. It is system design that an accounting document is only created with the receipt if the order item has a single account assignment

Maybe you are looking for

  • How do I save an e mail address

    When I receive an e mail I do not know how to add the address to my contacts list. Any ideas

  • Spatial Query on ADFBC View Object

    Hello, I'm in the process of migrating some Oracle Forms modules to JDeveloper and I've hit a snag with a query that uses MDSYS.SDO_WITHIN_DISTANCE to find all records within X kilometers from a line which is composed of an undefined set of waypoints

  • Vendor master query

    Hi I need to make a sap query for all the fields available in both the tables LFA1 & LFB1.  So anyone can suggest the steps of config. for sap query of vendor master records. thanks & Regards, babjee

  • How do i set up auto numbering columns

    i am a former excel user and i used to do this certain command, but now that i use mac i dont know how to set up autonumbering automatically in a column.... for example 1 2 3 4 5 ...... so on and so on, but my numbers start like in 31311, 31312, so o

  • Correct users birthdate in creative cloud login.

    Hi In setting up 2 new users at my office I entered an arbitrary birthday which made them in eligible to use the software. Now I can not log them in to download the titles they need and I do not see how to correct the problem Any help would be apprec