获取税率GET_TAX_PERCENTAGE

FTXP查看税码

获取税率GET_TAX_PERCENTAGE_第1张图片获取税率GET_TAX_PERCENTAGE_第2张图片
获取税率GET_TAX_PERCENTAGE_第3张图片

GET_TAX_PERCENTAGE

  CALL FUNCTION 'GET_TAX_PERCENTAGE'
    EXPORTING
      aland   = ls_lfa1-land1
      datab   = sy-datum
      mwskz   = ps_out-mwskz
      txjcd   = 'MWVS'
*     EXPORT  = ' '
    TABLES
      t_ftaxp = lt_ftaxp.
  READ TABLE lt_ftaxp INTO DATA(ls_ftaxp) INDEX 1.
  IF sy-subrc = 0.
    cs_po-vat = ls_ftaxp-kbetr / 10.
    CONDENSE cs_po-vat NO-GAPS.
  ENDIF.

相关表

KONP:条件(项目)
A003:税收分类

你可能感兴趣的:(SAP)