SAP IDMX_DI_FI_DATA_EXTRACT Function Module for Generate Extract for FI digital invoice









IDMX_DI_FI_DATA_EXTRACT is a standard idmx di fi data extract SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Extract for FI digital 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 idmx di fi data extract FM, simply by entering the name IDMX_DI_FI_DATA_EXTRACT into the relevant SAP transaction such as SE37 or SE38.

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



Function IDMX_DI_FI_DATA_EXTRACT 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 'IDMX_DI_FI_DATA_EXTRACT'"Generate Extract for FI digital invoice
EXPORTING
IS_BKPF = "Accounting Document Header
IT_BSEG = "Table Type for BSEG
IT_BSET = "bset
IT_BSEC = "One-Time Account Data Document Segment
* IV_TEXT_READ_FLAG = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_TEXT_BADI_FLAG = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

IMPORTING
ES_DATA_EXTRACT = "Digital invoice Mexico: data for Original input message
EV_STRING_ADDENDA = "
EV_STRING_HEADER_COMPL_XML = "
ET_ITEM_COMPL_XML = "Complemento Text of accounting document lines items
ET_BSEG_REF = "Table Type for BSEG
EV_STRING_CUSTOMS = "
EV_REQUEST_CERTIFICATE = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for IDMX_DI_FI_DATA_EXTRACT

IS_BKPF - Accounting Document Header

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

IT_BSEG - Table Type for BSEG

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

IT_BSET - bset

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

IT_BSEC - One-Time Account Data Document Segment

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

IV_TEXT_READ_FLAG - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Default: ' '
Optional: Yes
Call by Reference: Yes

IV_TEXT_BADI_FLAG - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Default: ' '
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for IDMX_DI_FI_DATA_EXTRACT

ES_DATA_EXTRACT - Digital invoice Mexico: data for Original input message

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

EV_STRING_ADDENDA -

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

EV_STRING_HEADER_COMPL_XML -

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

ET_ITEM_COMPL_XML - Complemento Text of accounting document lines items

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

ET_BSEG_REF - Table Type for BSEG

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

EV_STRING_CUSTOMS -

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

EV_REQUEST_CERTIFICATE - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

EXCEPTIONS details

ERROR - Error has occured

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

Copy and paste ABAP code example for IDMX_DI_FI_DATA_EXTRACT 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_error  TYPE STRING, "   
lv_is_bkpf  TYPE BKPF, "   
lv_es_data_extract  TYPE IDMX_DI_ORI_IN_MSG_TYPE, "   
lv_it_bseg  TYPE BSEG_T, "   
lv_ev_string_addenda  TYPE STRING, "   
lv_it_bset  TYPE TY_BSET_IT, "   
lv_ev_string_header_compl_xml  TYPE STRING, "   
lv_it_bsec  TYPE IDMX_DI_T_BSEC, "   
lv_et_item_compl_xml  TYPE IDMX_DI_T_FIITEM_COMPLEMENTO, "   
lv_et_bseg_ref  TYPE BSEG_T, "   
lv_iv_text_read_flag  TYPE BOOLE_D, "   ' '
lv_ev_string_customs  TYPE STRING, "   
lv_iv_text_badi_flag  TYPE BOOLE_D, "   ' '
lv_ev_request_certificate  TYPE BOOLE_D. "   

  CALL FUNCTION 'IDMX_DI_FI_DATA_EXTRACT'  "Generate Extract for FI digital invoice
    EXPORTING
         IS_BKPF = lv_is_bkpf
         IT_BSEG = lv_it_bseg
         IT_BSET = lv_it_bset
         IT_BSEC = lv_it_bsec
         IV_TEXT_READ_FLAG = lv_iv_text_read_flag
         IV_TEXT_BADI_FLAG = lv_iv_text_badi_flag
    IMPORTING
         ES_DATA_EXTRACT = lv_es_data_extract
         EV_STRING_ADDENDA = lv_ev_string_addenda
         EV_STRING_HEADER_COMPL_XML = lv_ev_string_header_compl_xml
         ET_ITEM_COMPL_XML = lv_et_item_compl_xml
         ET_BSEG_REF = lv_et_bseg_ref
         EV_STRING_CUSTOMS = lv_ev_string_customs
         EV_REQUEST_CERTIFICATE = lv_ev_request_certificate
    EXCEPTIONS
        ERROR = 1
. " IDMX_DI_FI_DATA_EXTRACT




ABAP code using 7.40 inline data declarations to call FM IDMX_DI_FI_DATA_EXTRACT

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_text_read_flag) = ' '.
 
 
DATA(ld_iv_text_badi_flag) = ' '.
 
 


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!