SAP IDWT_DISPATCHER Function Module for dispatcher for w/tax reporting tool









IDWT_DISPATCHER is a standard idwt dispatcher SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for dispatcher for w/tax reporting tool processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for idwt dispatcher FM, simply by entering the name IDWT_DISPATCHER into the relevant SAP transaction such as SE37 or SE38.

Function Group: FQSRTOOL
Program Name: SAPLFQSRTOOL
Main Program: SAPLFQSRTOOL
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function IDWT_DISPATCHER pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'IDWT_DISPATCHER'"dispatcher for w/tax reporting tool
EXPORTING
I_GLOB = "Global data of W/tax reporting
* I_FIELDS = "table type for sval

CHANGING
C_COMPCD = "
C_PARTNER = "table type for data of partner, w/tax type and code.
C_FIDOC = "
* C_ERROR = "error information collected during selection

EXCEPTIONS
ERROR_FORM = 1 ERROR_FILE = 2 ERROR_SCREEN_OUTPUT = 3 ERROR_MULTI = 4 ERROR_BADI = 5
.



IMPORTING Parameters details for IDWT_DISPATCHER

I_GLOB - Global data of W/tax reporting

Data type: IDWTGLOB
Optional: No
Call by Reference: Yes

I_FIELDS - table type for sval

Data type: TY_SVAL
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for IDWT_DISPATCHER

C_COMPCD -

Data type: TY_IDWTCOMPCD
Optional: No
Call by Reference: Yes

C_PARTNER - table type for data of partner, w/tax type and code.

Data type: TY_IDWTPARTNER
Optional: No
Call by Reference: Yes

C_FIDOC -

Data type: TY_IDWTFIDOC
Optional: No
Call by Reference: Yes

C_ERROR - error information collected during selection

Data type: TY_IDWTERROR
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR_FORM - error caused by printing forms

Data type:
Optional: No
Call by Reference: Yes

ERROR_FILE - error caused by creating file

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_SCREEN_OUTPUT - error caused by screen output

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_MULTI - multiple errors were caused

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_BADI - Error during calling BADI

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for IDWT_DISPATCHER Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_glob  TYPE IDWTGLOB, "   
lv_c_compcd  TYPE TY_IDWTCOMPCD, "   
lv_error_form  TYPE TY_IDWTCOMPCD, "   
lv_i_fields  TYPE TY_SVAL, "   
lv_c_partner  TYPE TY_IDWTPARTNER, "   
lv_error_file  TYPE TY_IDWTPARTNER, "   
lv_c_fidoc  TYPE TY_IDWTFIDOC, "   
lv_error_screen_output  TYPE TY_IDWTFIDOC, "   
lv_c_error  TYPE TY_IDWTERROR, "   
lv_error_multi  TYPE TY_IDWTERROR, "   
lv_error_badi  TYPE TY_IDWTERROR. "   

  CALL FUNCTION 'IDWT_DISPATCHER'  "dispatcher for w/tax reporting tool
    EXPORTING
         I_GLOB = lv_i_glob
         I_FIELDS = lv_i_fields
    CHANGING
         C_COMPCD = lv_c_compcd
         C_PARTNER = lv_c_partner
         C_FIDOC = lv_c_fidoc
         C_ERROR = lv_c_error
    EXCEPTIONS
        ERROR_FORM = 1
        ERROR_FILE = 2
        ERROR_SCREEN_OUTPUT = 3
        ERROR_MULTI = 4
        ERROR_BADI = 5
. " IDWT_DISPATCHER




ABAP code using 7.40 inline data declarations to call FM IDWT_DISPATCHER

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!