SAP CO_DR_T496V_READ Function Module for NOTRANSL: Lesen der Tabelle T496V
CO_DR_T496V_READ is a standard co dr t496v read 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: Lesen der Tabelle T496V 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 co dr t496v read FM, simply by entering the name CO_DR_T496V_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CODR
Program Name: SAPLCODR
Main Program: SAPLCODR
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_DR_T496V_READ 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 'CO_DR_T496V_READ'"NOTRANSL: Lesen der Tabelle T496V.
EXPORTING
TCODE = "
WERKS = "
* AUTYP_IMP = ' ' "
IMPORTING
BATCH_PRINT = "
LOGFILE_PRINT = "
ONLINE_PRINT = "
EXCEPTIONS
NO_ENTRY_IN_T496V = 1
IMPORTING Parameters details for CO_DR_T496V_READ
TCODE -
Data type: T496V-TCODEOptional: No
Call by Reference: No ( called with pass by value option)
WERKS -
Data type: T496V-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
AUTYP_IMP -
Data type: T003O-AUTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CO_DR_T496V_READ
BATCH_PRINT -
Data type: RC27X-FLG_SELOptional: No
Call by Reference: Yes
LOGFILE_PRINT -
Data type: RC27X-FLG_SELOptional: No
Call by Reference: Yes
ONLINE_PRINT -
Data type: RC27X-FLG_SELOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_ENTRY_IN_T496V -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_DR_T496V_READ 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_tcode | TYPE T496V-TCODE, " | |||
| lv_batch_print | TYPE RC27X-FLG_SEL, " | |||
| lv_no_entry_in_t496v | TYPE RC27X, " | |||
| lv_werks | TYPE T496V-WERKS, " | |||
| lv_logfile_print | TYPE RC27X-FLG_SEL, " | |||
| lv_autyp_imp | TYPE T003O-AUTYP, " SPACE | |||
| lv_online_print | TYPE RC27X-FLG_SEL. " |
|   CALL FUNCTION 'CO_DR_T496V_READ' "NOTRANSL: Lesen der Tabelle T496V |
| EXPORTING | ||
| TCODE | = lv_tcode | |
| WERKS | = lv_werks | |
| AUTYP_IMP | = lv_autyp_imp | |
| IMPORTING | ||
| BATCH_PRINT | = lv_batch_print | |
| LOGFILE_PRINT | = lv_logfile_print | |
| ONLINE_PRINT | = lv_online_print | |
| EXCEPTIONS | ||
| NO_ENTRY_IN_T496V = 1 | ||
| . " CO_DR_T496V_READ | ||
ABAP code using 7.40 inline data declarations to call FM CO_DR_T496V_READ
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 TCODE FROM T496V INTO @DATA(ld_tcode). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_batch_print). | ||||
| "SELECT single WERKS FROM T496V INTO @DATA(ld_werks). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_logfile_print). | ||||
| "SELECT single AUTYP FROM T003O INTO @DATA(ld_autyp_imp). | ||||
| DATA(ld_autyp_imp) | = ' '. | |||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_online_print). | ||||
Search for further information about these or an SAP related objects