SAP ODN_READ_TR Function Module for NOTRANSL: Eine Entwertete Rechnung lesen









ODN_READ_TR is a standard odn read tr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Eine Entwertete Rechnung lesen 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 odn read tr FM, simply by entering the name ODN_READ_TR into the relevant SAP transaction such as SE37 or SE38.

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



Function ODN_READ_TR 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 'ODN_READ_TR'"NOTRANSL: Eine Entwertete Rechnung lesen
EXPORTING
I_BUKRS = "Company Code
I_LOTNO = "Internal Lot Number
I_BOKNO = "Book Number
I_INVNO = "Official Document Number
* I_XBLNR = "Reference Document Number
* I_BLLNR = "Billing Document
* I_XBLNR_TR = "Reference Document Number

IMPORTING
O_EXCP = "Errors for Prenumbered Documents
E_INVALID = "General Indicator

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for ODN_READ_TR

I_BUKRS - Company Code

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

I_LOTNO - Internal Lot Number

Data type: IDCN_EXCP-LOTNO
Optional: No
Call by Reference: Yes

I_BOKNO - Book Number

Data type: IDCN_EXCP-BOKNO
Optional: No
Call by Reference: Yes

I_INVNO - Official Document Number

Data type: IDCN_EXCP-INVNO
Optional: No
Call by Reference: Yes

I_XBLNR - Reference Document Number

Data type: IDCN_EXCP-XBLNR
Optional: Yes
Call by Reference: Yes

I_BLLNR - Billing Document

Data type: IDCN_EXCP-BLLNR
Optional: Yes
Call by Reference: Yes

I_XBLNR_TR - Reference Document Number

Data type: IDCN_EXCP-XBLNR
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ODN_READ_TR

O_EXCP - Errors for Prenumbered Documents

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

E_INVALID - General Indicator

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

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ODN_READ_TR 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_o_excp  TYPE IDCN_EXCP, "   
lv_i_bukrs  TYPE T001Z-BUKRS, "   
lv_not_found  TYPE T001Z, "   
lv_i_lotno  TYPE IDCN_EXCP-LOTNO, "   
lv_e_invalid  TYPE FLAG, "   
lv_i_bokno  TYPE IDCN_EXCP-BOKNO, "   
lv_i_invno  TYPE IDCN_EXCP-INVNO, "   
lv_i_xblnr  TYPE IDCN_EXCP-XBLNR, "   
lv_i_bllnr  TYPE IDCN_EXCP-BLLNR, "   
lv_i_xblnr_tr  TYPE IDCN_EXCP-XBLNR. "   

  CALL FUNCTION 'ODN_READ_TR'  "NOTRANSL: Eine Entwertete Rechnung lesen
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_LOTNO = lv_i_lotno
         I_BOKNO = lv_i_bokno
         I_INVNO = lv_i_invno
         I_XBLNR = lv_i_xblnr
         I_BLLNR = lv_i_bllnr
         I_XBLNR_TR = lv_i_xblnr_tr
    IMPORTING
         O_EXCP = lv_o_excp
         E_INVALID = lv_e_invalid
    EXCEPTIONS
        NOT_FOUND = 1
. " ODN_READ_TR




ABAP code using 7.40 inline data declarations to call FM ODN_READ_TR

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.

 
"SELECT single BUKRS FROM T001Z INTO @DATA(ld_i_bukrs).
 
 
"SELECT single LOTNO FROM IDCN_EXCP INTO @DATA(ld_i_lotno).
 
 
"SELECT single BOKNO FROM IDCN_EXCP INTO @DATA(ld_i_bokno).
 
"SELECT single INVNO FROM IDCN_EXCP INTO @DATA(ld_i_invno).
 
"SELECT single XBLNR FROM IDCN_EXCP INTO @DATA(ld_i_xblnr).
 
"SELECT single BLLNR FROM IDCN_EXCP INTO @DATA(ld_i_bllnr).
 
"SELECT single XBLNR FROM IDCN_EXCP INTO @DATA(ld_i_xblnr_tr).
 


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!