cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FI_TAX_SERVICES_CALCULATE

chvreddy67
Explorer
0 Kudos
2,823

Hi ABAPer's

We are calling FM - FI_TAX_SERVICES_CALCULATE in UPDATE TASK of a BADI to get the ACCOUNTTAX lines and it is giving short dump saying "Statement "CALL_SCREEN" is not allowed in this form." did debug and yes it is coming across CALL SCREEN statement and leading to short dump in case the same FM called from normal task then it works great. If anyone came across such please throw some light any alternatives to FM - FI_TAX_SERVICES_CALCULATE ?

Regards,

Venkat Channa

Accepted Solutions (0)

Answers (1)

Answers (1)

hagit
Active Participant
0 Kudos

@raymond_giuseppi

I called method fi_tax_services=>calculate as you suggested.

The behavior of the method and FB60 is different for the following scenario:

  1. There is a vendor line without tax code (MWSKZ is initial)
  2. There is a GL line without tax code (MWSKZ is initial)
  3. 'calculate tax' is checked

 

The method updates the tax code to a value that means no tax.

FB60 raises a blocking  error: 'G/L account xxxxxx requires a valid tax code'

 How can I force the method to behave as standard?

The call to the method is:

  CALL METHOD fi_tax_services=>calculate
    EXPORTING
      documentheader    gs_doc_header
      accountpayable    gt_accountpayable
      accountreceivable gt_accountreceivable
*     distribute_deduct = SPACE
*     taxamount         =
    IMPORTING
      return_code       lv_subrc
    CHANGING
      currencyamount    gt_currencyamount
      accountgl         gt_accountgl
      accounttax        gt_accounttax
      return            lt_return.

Thankyou in advance

Hagit