SAP EDOC_DIALOG_IT_REJECT_DATA Function Module for Maintain rejection data control for incoming invoice









EDOC_DIALOG_IT_REJECT_DATA is a standard edoc dialog it reject data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain rejection data control for incoming invoice 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 edoc dialog it reject data FM, simply by entering the name EDOC_DIALOG_IT_REJECT_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function EDOC_DIALOG_IT_REJECT_DATA 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 'EDOC_DIALOG_IT_REJECT_DATA'"Maintain rejection data control for incoming invoice
EXPORTING
IS_EDOCUMENT = "eDocument
IS_EDOITINVIN = "eDocument Italy: Incoming Invoice
* IV_INCL_SUPPLIER = ABAP_FALSE "='X', if supplier data required
* IV_XML_DATA_FOR_UI = "eDocument Italy: Data from XML for Rejection UI
IO_DIALOG_IT = "eDocument Italy: User Dialog

IMPORTING
EV_USER_CANCELLED = "='X', if user cancelled the dialog
EV_REJECTION_TEXT = "Rejection Text

CHANGING
* CS_SUPPLIER_DATA = "eDocument Italy: Data of Supplier for Rejection

EXCEPTIONS
CX_EDOCUMENT = 1
.



IMPORTING Parameters details for EDOC_DIALOG_IT_REJECT_DATA

IS_EDOCUMENT - eDocument

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

IS_EDOITINVIN - eDocument Italy: Incoming Invoice

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

IV_INCL_SUPPLIER - ='X', if supplier data required

Data type: ABAP_BOOL
Default: ABAP_FALSE
Optional: Yes
Call by Reference: Yes

IV_XML_DATA_FOR_UI - eDocument Italy: Data from XML for Rejection UI

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

IO_DIALOG_IT - eDocument Italy: User Dialog

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

EXPORTING Parameters details for EDOC_DIALOG_IT_REJECT_DATA

EV_USER_CANCELLED - ='X', if user cancelled the dialog

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

EV_REJECTION_TEXT - Rejection Text

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

CHANGING Parameters details for EDOC_DIALOG_IT_REJECT_DATA

CS_SUPPLIER_DATA - eDocument Italy: Data of Supplier for Rejection

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

EXCEPTIONS details

CX_EDOCUMENT - eDocument exceptions

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

Copy and paste ABAP code example for EDOC_DIALOG_IT_REJECT_DATA 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_cx_edocument  TYPE STRING, "   
lv_is_edocument  TYPE EDOCUMENT, "   
lv_cs_supplier_data  TYPE EDOC_IT_INVIN_SUPPLIER_DATA, "   
lv_ev_user_cancelled  TYPE ABAP_BOOL, "   
lv_is_edoitinvin  TYPE EDOITINVIN, "   
lv_ev_rejection_text  TYPE EDOC_IT_REJECT_TEXT, "   
lv_iv_incl_supplier  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_iv_xml_data_for_ui  TYPE EDOC_IT_INVIN_XML_DATA_FOR_UI, "   
lv_io_dialog_it  TYPE CL_EDOC_DIALOG_IT. "   

  CALL FUNCTION 'EDOC_DIALOG_IT_REJECT_DATA'  "Maintain rejection data control for incoming invoice
    EXPORTING
         IS_EDOCUMENT = lv_is_edocument
         IS_EDOITINVIN = lv_is_edoitinvin
         IV_INCL_SUPPLIER = lv_iv_incl_supplier
         IV_XML_DATA_FOR_UI = lv_iv_xml_data_for_ui
         IO_DIALOG_IT = lv_io_dialog_it
    IMPORTING
         EV_USER_CANCELLED = lv_ev_user_cancelled
         EV_REJECTION_TEXT = lv_ev_rejection_text
    CHANGING
         CS_SUPPLIER_DATA = lv_cs_supplier_data
    EXCEPTIONS
        CX_EDOCUMENT = 1
. " EDOC_DIALOG_IT_REJECT_DATA




ABAP code using 7.40 inline data declarations to call FM EDOC_DIALOG_IT_REJECT_DATA

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.

 
 
 
 
 
 
DATA(ld_iv_incl_supplier) = ABAP_FALSE.
 
 
 


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!