SAP CO_ZF_ORDER_READ Function Module for NOTRANSL: Sperren und Lesen von Aufträgen









CO_ZF_ORDER_READ is a standard co zf order 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: Sperren und Lesen von Aufträgen 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 zf order read FM, simply by entering the name CO_ZF_ORDER_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_ZF_ORDER_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_ZF_ORDER_READ'"NOTRANSL: Sperren und Lesen von Aufträgen
EXPORTING
* FLG_DIALOG = 'X' "If not all orders blocked -> Dialog
* CHECK_STATUS_READ = ' ' "Selection Indicator
* FLG_NO_GOS = ' ' "
* FLG_CALLED_TO_COPY = ' ' "
* FLG_ENQUEUE = 'X' "Lock orders
* OBJECTS_IMP = ' ' "List of objects in order that are to be read
* EXPLODE_IMP = ' ' "Explode collective order
* FLG_PROT_IMP = ' ' "
* FLG_NO_EXTERNAL = ' ' "
* FLG_NO_BANF = "
* FLG_CHECK_SIM = "
* IMPORT_MESSAGE_ID = "

IMPORTING
FLG_ENQUEUE_OK = "All transferred orders were blocked
FLG_ESCAPE = "

TABLES
* AUFNR_DEL_EXP = "Order read: New buffer table indices
AUFNR_TAB_IMP = "Orders To Be Processed

EXCEPTIONS
ORDER_NOT_FOUND = 1 RELEASE_NO_CHANGE = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCOZF_001 Customer Exits in Function Group COZF
EXIT_SAPLCOZF_002 Customer Exits in Function Group COZF
EXIT_SAPLCOZF_003 Exit for Predefining Fields in the Order Header

IMPORTING Parameters details for CO_ZF_ORDER_READ

FLG_DIALOG - If not all orders blocked -> Dialog

Data type: RC27X-FLG_SEL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHECK_STATUS_READ - Selection Indicator

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_NO_GOS -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_CALLED_TO_COPY -

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_ENQUEUE - Lock orders

Data type: RC27X-FLG_SEL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECTS_IMP - List of objects in order that are to be read

Data type: TCA11
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPLODE_IMP - Explode collective order

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_PROT_IMP -

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_NO_EXTERNAL -

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_NO_BANF -

Data type: RC27X-FLG_SEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_CHECK_SIM -

Data type: RC27X-FLG_SEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMPORT_MESSAGE_ID -

Data type: INDX-SRTFD
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CO_ZF_ORDER_READ

FLG_ENQUEUE_OK - All transferred orders were blocked

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

FLG_ESCAPE -

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

TABLES Parameters details for CO_ZF_ORDER_READ

AUFNR_DEL_EXP - Order read: New buffer table indices

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

AUFNR_TAB_IMP - Orders To Be Processed

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

EXCEPTIONS details

ORDER_NOT_FOUND -

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

RELEASE_NO_CHANGE -

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

Copy and paste ABAP code example for CO_ZF_ORDER_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_flg_dialog  TYPE RC27X-FLG_SEL, "   'X'
lt_aufnr_del_exp  TYPE STANDARD TABLE OF ORD_PRE, "   
lv_flg_enqueue_ok  TYPE RC27X-FLG_SEL, "   
lv_order_not_found  TYPE RC27X, "   
lv_check_status_read  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_no_gos  TYPE C, "   SPACE
lv_flg_called_to_copy  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_escape  TYPE RC27X-FLG_SEL, "   
lv_flg_enqueue  TYPE RC27X-FLG_SEL, "   'X'
lt_aufnr_tab_imp  TYPE STANDARD TABLE OF ORD_PRE, "   
lv_release_no_change  TYPE ORD_PRE, "   
lv_objects_imp  TYPE TCA11, "   SPACE
lv_explode_imp  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_prot_imp  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_no_external  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_no_banf  TYPE RC27X-FLG_SEL, "   
lv_flg_check_sim  TYPE RC27X-FLG_SEL, "   
lv_import_message_id  TYPE INDX-SRTFD. "   

  CALL FUNCTION 'CO_ZF_ORDER_READ'  "NOTRANSL: Sperren und Lesen von Aufträgen
    EXPORTING
         FLG_DIALOG = lv_flg_dialog
         CHECK_STATUS_READ = lv_check_status_read
         FLG_NO_GOS = lv_flg_no_gos
         FLG_CALLED_TO_COPY = lv_flg_called_to_copy
         FLG_ENQUEUE = lv_flg_enqueue
         OBJECTS_IMP = lv_objects_imp
         EXPLODE_IMP = lv_explode_imp
         FLG_PROT_IMP = lv_flg_prot_imp
         FLG_NO_EXTERNAL = lv_flg_no_external
         FLG_NO_BANF = lv_flg_no_banf
         FLG_CHECK_SIM = lv_flg_check_sim
         IMPORT_MESSAGE_ID = lv_import_message_id
    IMPORTING
         FLG_ENQUEUE_OK = lv_flg_enqueue_ok
         FLG_ESCAPE = lv_flg_escape
    TABLES
         AUFNR_DEL_EXP = lt_aufnr_del_exp
         AUFNR_TAB_IMP = lt_aufnr_tab_imp
    EXCEPTIONS
        ORDER_NOT_FOUND = 1
        RELEASE_NO_CHANGE = 2
. " CO_ZF_ORDER_READ




ABAP code using 7.40 inline data declarations to call FM CO_ZF_ORDER_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 FLG_SEL FROM RC27X INTO @DATA(ld_flg_dialog).
DATA(ld_flg_dialog) = 'X'.
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_enqueue_ok).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_check_status_read).
DATA(ld_check_status_read) = ' '.
 
DATA(ld_flg_no_gos) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_called_to_copy).
DATA(ld_flg_called_to_copy) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_escape).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_enqueue).
DATA(ld_flg_enqueue) = 'X'.
 
 
 
DATA(ld_objects_imp) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_explode_imp).
DATA(ld_explode_imp) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_prot_imp).
DATA(ld_flg_prot_imp) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_external).
DATA(ld_flg_no_external) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_banf).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_check_sim).
 
"SELECT single SRTFD FROM INDX INTO @DATA(ld_import_message_id).
 


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!