SAP Function Modules

FI_WT_CHECK_CUSTOMIZING SAP Function module







FI_WT_CHECK_CUSTOMIZING 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 FI_WT_CHECK_CUSTOMIZING into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FI_WT_CHECK_CUSTOMIZING - FI WT CHECK CUSTOMIZING





CALL FUNCTION 'FI_WT_CHECK_CUSTOMIZING' "
  EXPORTING
    i_bukrs =                   " bseg-bukrs    Company Code
    i_lifnr =                   " bseg-lifnr    Account Number of Vendor
    i_kunnr =                   " bseg-kunnr    Customer Number
    i_witht =                   " with_item-witht  Indicator for Withholding Tax Type
    i_wt_withcd =               " with_item-wt_withcd  Withholding Tax Code
    i_land =                    " t001-land1    Country Key
    i_datum =                   " sy-datum      Date and Time, Current (Application Server) Date
    ok_code =                   " ok            OK Code
    .  "  FI_WT_CHECK_CUSTOMIZING

ABAP code example for Function Module FI_WT_CHECK_CUSTOMIZING





The ABAP code below is a full code listing to execute function module FI_WT_CHECK_CUSTOMIZING 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).

 

SELECT single BUKRS
FROM BSEG
INTO @DATA(ld_i_bukrs).


SELECT single LIFNR
FROM BSEG
INTO @DATA(ld_i_lifnr).


SELECT single KUNNR
FROM BSEG
INTO @DATA(ld_i_kunnr).


SELECT single WITHT
FROM WITH_ITEM
INTO @DATA(ld_i_witht).


SELECT single WT_WITHCD
FROM WITH_ITEM
INTO @DATA(ld_i_wt_withcd).


SELECT single LAND1
FROM T001
INTO @DATA(ld_i_land).

DATA(ld_i_datum) = '20210129'.
DATA(ld_ok_code) = '20210129'. . CALL FUNCTION 'FI_WT_CHECK_CUSTOMIZING' EXPORTING i_bukrs = ld_i_bukrs i_lifnr = ld_i_lifnr i_kunnr = ld_i_kunnr i_witht = ld_i_witht i_wt_withcd = ld_i_wt_withcd i_land = ld_i_land i_datum = ld_i_datum ok_code = ld_ok_code . " FI_WT_CHECK_CUSTOMIZING
IF SY-SUBRC EQ 0. "All OK 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_i_bukrs  TYPE BSEG-BUKRS ,
ld_i_lifnr  TYPE BSEG-LIFNR ,
ld_i_kunnr  TYPE BSEG-KUNNR ,
ld_i_witht  TYPE WITH_ITEM-WITHT ,
ld_i_wt_withcd  TYPE WITH_ITEM-WT_WITHCD ,
ld_i_land  TYPE T001-LAND1 ,
ld_i_datum  TYPE SY-DATUM ,
ld_ok_code  TYPE OK .


SELECT single BUKRS
FROM BSEG
INTO ld_i_bukrs.


SELECT single LIFNR
FROM BSEG
INTO ld_i_lifnr.


SELECT single KUNNR
FROM BSEG
INTO ld_i_kunnr.


SELECT single WITHT
FROM WITH_ITEM
INTO ld_i_witht.


SELECT single WT_WITHCD
FROM WITH_ITEM
INTO ld_i_wt_withcd.


SELECT single LAND1
FROM T001
INTO ld_i_land.

ld_i_datum = '20210129'.
ld_ok_code = '20210129'.

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 FI_WT_CHECK_CUSTOMIZING or its description.