SAP Function Modules

B46C_GET_WT_INFO SAP Function module







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

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


Pattern for FM B46C_GET_WT_INFO - B46C GET WT INFO





CALL FUNCTION 'B46C_GET_WT_INFO' "
  EXPORTING
    iv_logical_system =         " bbp_backend_dest-log_sys
    iv_bukrs =                  " bukrs
    iv_vendor_nr =              " lifnr
    iv_budat =                  " bldat
    iv_langu =                  " langu
    iv_get_descr =              " xfeld
    iv_witht =                  " bbp_witht
  TABLES
    control_record =            " bbp_control_record
*   et_wt_tax_codes =           " bbps_wt_tax_codes
*   et_wt_propos =              " bbps_wt_propos
    .  "  B46C_GET_WT_INFO

ABAP code example for Function Module B46C_GET_WT_INFO





The ABAP code below is a full code listing to execute function module B46C_GET_WT_INFO 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:
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD,"TABLES PARAM
wa_control_record  LIKE LINE OF it_control_record ,
it_et_wt_tax_codes  TYPE STANDARD TABLE OF BBPS_WT_TAX_CODES,"TABLES PARAM
wa_et_wt_tax_codes  LIKE LINE OF it_et_wt_tax_codes ,
it_et_wt_propos  TYPE STANDARD TABLE OF BBPS_WT_PROPOS,"TABLES PARAM
wa_et_wt_propos  LIKE LINE OF it_et_wt_propos .


SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO @DATA(ld_iv_logical_system).

DATA(ld_iv_bukrs) = 'Check type of data required'.
DATA(ld_iv_vendor_nr) = 'Check type of data required'.
DATA(ld_iv_budat) = 'Check type of data required'.
DATA(ld_iv_langu) = 'Check type of data required'.
DATA(ld_iv_get_descr) = 'Check type of data required'.
DATA(ld_iv_witht) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_control_record to it_control_record.

"populate fields of struture and append to itab
append wa_et_wt_tax_codes to it_et_wt_tax_codes.

"populate fields of struture and append to itab
append wa_et_wt_propos to it_et_wt_propos. . CALL FUNCTION 'B46C_GET_WT_INFO' EXPORTING iv_logical_system = ld_iv_logical_system iv_bukrs = ld_iv_bukrs iv_vendor_nr = ld_iv_vendor_nr iv_budat = ld_iv_budat iv_langu = ld_iv_langu iv_get_descr = ld_iv_get_descr iv_witht = ld_iv_witht TABLES control_record = it_control_record * et_wt_tax_codes = it_et_wt_tax_codes * et_wt_propos = it_et_wt_propos . " B46C_GET_WT_INFO
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_iv_logical_system  TYPE BBP_BACKEND_DEST-LOG_SYS ,
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD ,
wa_control_record  LIKE LINE OF it_control_record,
ld_iv_bukrs  TYPE BUKRS ,
it_et_wt_tax_codes  TYPE STANDARD TABLE OF BBPS_WT_TAX_CODES ,
wa_et_wt_tax_codes  LIKE LINE OF it_et_wt_tax_codes,
ld_iv_vendor_nr  TYPE LIFNR ,
it_et_wt_propos  TYPE STANDARD TABLE OF BBPS_WT_PROPOS ,
wa_et_wt_propos  LIKE LINE OF it_et_wt_propos,
ld_iv_budat  TYPE BLDAT ,
ld_iv_langu  TYPE LANGU ,
ld_iv_get_descr  TYPE XFELD ,
ld_iv_witht  TYPE BBP_WITHT .


SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO ld_iv_logical_system.


"populate fields of struture and append to itab
append wa_control_record to it_control_record.
ld_iv_bukrs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_wt_tax_codes to it_et_wt_tax_codes.
ld_iv_vendor_nr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_wt_propos to it_et_wt_propos.
ld_iv_budat = 'Check type of data required'.
ld_iv_langu = 'Check type of data required'.
ld_iv_get_descr = 'Check type of data required'.
ld_iv_witht = 'Check type of data required'.

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