Hi,
The logoic to generate tax flows will check the origin of the base
flow, only in following cases, tax flows can be derived, see
the coding in Class CL_CLASS_POSITION_OP_TRS, method
TRS_FLOWS_CALCULATE_TAX:
* find all flows from which tax flows are derived
IF ( l_flow_int-swoher = tpmco_char_k
OR l_flow_int-swoher = tpmco_char_m
OR l_flow_int-swoher = tpmco_char_c
OR l_flow_int-swoher = tpmco_char_n )
AND l_flow_int-trd_state = tpmco_con_trd_planned.
MOVE-CORRESPONDING l_flow_int TO l_tax_flow.
K Condition-based flow
M Manual Posting
C Clearing flow
N Manually entered additional flow
Derived business transaction will not be considered during the
tax generation processing.
You may consider to implement BADI TPM_TAX_CALCULATION (please see note
1159408) to calculate the tax depending on your requirements.
Best regards,
Jasmine