SAP Function Modules

ISU_SAMPLE_R973 SAP Function module - Calculation of Sales Tax During Creation of BB Plan







ISU_SAMPLE_R973 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISU_SAMPLE_R973 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: E25P
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_SAMPLE_R973 - ISU SAMPLE R973





CALL FUNCTION 'ISU_SAMPLE_R973' "Calculation of Sales Tax During Creation of BB Plan
  EXPORTING
    i_vkont =                   " fkkvkp        Contract Account Partner-Specific
    i_t001 =                    " t001          Company Codes
    i_abdat =                   " te011-ab      Date from Which a Time Slice is Valid
    i_sparte =                  " te001-sparte  Division
    i_kofiz =                   " fkkop-kofiz   Account Determination ID
    i_tvorg =                   " tfktvo-tvorg  Subtransaction for Line Item
    i_waers =                   " t001-waers    Currency Key
    i_txjcd =                   " sfkkop-txjcd  Jurisdiction for Tax Calculation - Tax Jurisdiction Code
    i_txdat =                   " sfkkop-txdat  Deciding date for calculating taxes
    i_nettobtr =                " sfkkop-betrw  Amount in Transaction Currency with +/- Sign
    i_fkktaxexc =               " fkktaxexc     Parameters for Determining the Tax-Exemption Key
  IMPORTING
    e_sbetw =                   " sfkkop-sbetw  Tax amount in transaction currency with +/- sign
    e_ermwskz =                 " ermwskz
    e_mwskz =                   " mwskz
  EXCEPTIONS
    IU_ERROR = 1                "
    SYSTEM_ERROR = 2            "
    .  "  ISU_SAMPLE_R973

ABAP code example for Function Module ISU_SAMPLE_R973





The ABAP code below is a full code listing to execute function module ISU_SAMPLE_R973 including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_e_sbetw  TYPE SFKKOP-SBETW ,
ld_e_ermwskz  TYPE ERMWSKZ ,
ld_e_mwskz  TYPE MWSKZ .

DATA(ld_i_vkont) = 'Check type of data required'.
DATA(ld_i_t001) = 'Check type of data required'.

SELECT single AB
FROM TE011
INTO @DATA(ld_i_abdat).


SELECT single SPARTE
FROM TE001
INTO @DATA(ld_i_sparte).


DATA(ld_i_kofiz) = some text here

SELECT single TVORG
FROM TFKTVO
INTO @DATA(ld_i_tvorg).


SELECT single WAERS
FROM T001
INTO @DATA(ld_i_waers).


DATA(ld_i_txjcd) = some text here

DATA(ld_i_txdat) = 20210129

DATA(ld_i_nettobtr) = 20.50
DATA(ld_i_fkktaxexc) = 'Check type of data required'. . CALL FUNCTION 'ISU_SAMPLE_R973' EXPORTING i_vkont = ld_i_vkont i_t001 = ld_i_t001 i_abdat = ld_i_abdat i_sparte = ld_i_sparte i_kofiz = ld_i_kofiz i_tvorg = ld_i_tvorg i_waers = ld_i_waers i_txjcd = ld_i_txjcd i_txdat = ld_i_txdat i_nettobtr = ld_i_nettobtr i_fkktaxexc = ld_i_fkktaxexc IMPORTING e_sbetw = ld_e_sbetw e_ermwskz = ld_e_ermwskz e_mwskz = ld_e_mwskz EXCEPTIONS IU_ERROR = 1 SYSTEM_ERROR = 2 . " ISU_SAMPLE_R973
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_sbetw  TYPE SFKKOP-SBETW ,
ld_i_vkont  TYPE FKKVKP ,
ld_e_ermwskz  TYPE ERMWSKZ ,
ld_i_t001  TYPE T001 ,
ld_e_mwskz  TYPE MWSKZ ,
ld_i_abdat  TYPE TE011-AB ,
ld_i_sparte  TYPE TE001-SPARTE ,
ld_i_kofiz  TYPE FKKOP-KOFIZ ,
ld_i_tvorg  TYPE TFKTVO-TVORG ,
ld_i_waers  TYPE T001-WAERS ,
ld_i_txjcd  TYPE SFKKOP-TXJCD ,
ld_i_txdat  TYPE SFKKOP-TXDAT ,
ld_i_nettobtr  TYPE SFKKOP-BETRW ,
ld_i_fkktaxexc  TYPE FKKTAXEXC .

ld_i_vkont = 'Check type of data required'.
ld_i_t001 = 'Check type of data required'.

SELECT single AB
FROM TE011
INTO ld_i_abdat.


SELECT single SPARTE
FROM TE001
INTO ld_i_sparte.


ld_i_kofiz = some text here

SELECT single TVORG
FROM TFKTVO
INTO ld_i_tvorg.


SELECT single WAERS
FROM T001
INTO ld_i_waers.


ld_i_txjcd = some text here

ld_i_txdat = 20210129

ld_i_nettobtr = 20.50
ld_i_fkktaxexc = 'Check type of data required'.

SAP Documentation for FM ISU_SAMPLE_R973


You need this enhancement if you have activated the function VAT determination in invoicing and want to use the partial bill ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISU_SAMPLE_R973 or its description.