SAP CO_ZA_AVAILABILITY_CHK_ORDER Function Module for NOTRANSL: Verfügbarkeitsprüfung generell









CO_ZA_AVAILABILITY_CHK_ORDER is a standard co za availability chk order 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: Verfügbarkeitsprüfung generell 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 za availability chk order FM, simply by entering the name CO_ZA_AVAILABILITY_CHK_ORDER into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_ZA_AVAILABILITY_CHK_ORDER 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_ZA_AVAILABILITY_CHK_ORDER'"NOTRANSL: Verfügbarkeitsprüfung generell
EXPORTING
CAUFVD_IMP = "Structure order header
* I_MEMO_TP = 'X' "Indicator: Fill memeory with data from MDVAX
* I_TRTYP = 'V' "
* SAVE_CALL = ' ' "
* OPEN_CALL = ' ' "Call up with transaction 'Create order'
* REL_CALL = ' ' "Call up with transaction 'Release order'
* INIT_PROT = ' ' "Log is initialized in function module
* SHOW_RESULT = ' ' "Display result of check on screen
* FLG_MESS_OBJ_DEP = ' ' "X = message in log under dependent object
* R62CLORD_IMP = ' ' "Reading scope with order network
* I_ANWDG = '1' "Calling Application
* I_AZERG = '1' "Type of results display in overall check

IMPORTING
RETCODE_EXP = "Result of availability check
FCODE_EXP = "

TABLES
* MDVAX_VPR = "
.



IMPORTING Parameters details for CO_ZA_AVAILABILITY_CHK_ORDER

CAUFVD_IMP - Structure order header

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

I_MEMO_TP - Indicator: Fill memeory with data from MDVAX

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

I_TRTYP -

Data type: SY-DATAR
Default: 'V'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAVE_CALL -

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

OPEN_CALL - Call up with transaction 'Create order'

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

REL_CALL - Call up with transaction 'Release order'

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

INIT_PROT - Log is initialized in function module

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

SHOW_RESULT - Display result of check on screen

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

FLG_MESS_OBJ_DEP - X = message in log under dependent object

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

R62CLORD_IMP - Reading scope with order network

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

I_ANWDG - Calling Application

Data type: CM61A-ANWDG
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AZERG - Type of results display in overall check

Data type: CM61A-AZERG
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CO_ZA_AVAILABILITY_CHK_ORDER

RETCODE_EXP - Result of availability check

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

FCODE_EXP -

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

TABLES Parameters details for CO_ZA_AVAILABILITY_CHK_ORDER

MDVAX_VPR -

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

Copy and paste ABAP code example for CO_ZA_AVAILABILITY_CHK_ORDER 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:
lt_mdvax_vpr  TYPE STANDARD TABLE OF MDVA, "   
lv_caufvd_imp  TYPE CAUFVD, "   
lv_retcode_exp  TYPE SY-SUBRC, "   
lv_i_memo_tp  TYPE SY-DATAR, "   'X'
lv_i_trtyp  TYPE SY-DATAR, "   'V'
lv_save_call  TYPE SY-DATAR, "   SPACE
lv_fcode_exp  TYPE SY-TCODE, "   
lv_open_call  TYPE SY-DATAR, "   SPACE
lv_rel_call  TYPE SY-DATAR, "   SPACE
lv_init_prot  TYPE TCMF6-APLID, "   SPACE
lv_show_result  TYPE SY-DATAR, "   SPACE
lv_flg_mess_obj_dep  TYPE SY-DATAR, "   SPACE
lv_r62clord_imp  TYPE R62CLORD, "   SPACE
lv_i_anwdg  TYPE CM61A-ANWDG, "   '1'
lv_i_azerg  TYPE CM61A-AZERG. "   '1'

  CALL FUNCTION 'CO_ZA_AVAILABILITY_CHK_ORDER'  "NOTRANSL: Verfügbarkeitsprüfung generell
    EXPORTING
         CAUFVD_IMP = lv_caufvd_imp
         I_MEMO_TP = lv_i_memo_tp
         I_TRTYP = lv_i_trtyp
         SAVE_CALL = lv_save_call
         OPEN_CALL = lv_open_call
         REL_CALL = lv_rel_call
         INIT_PROT = lv_init_prot
         SHOW_RESULT = lv_show_result
         FLG_MESS_OBJ_DEP = lv_flg_mess_obj_dep
         R62CLORD_IMP = lv_r62clord_imp
         I_ANWDG = lv_i_anwdg
         I_AZERG = lv_i_azerg
    IMPORTING
         RETCODE_EXP = lv_retcode_exp
         FCODE_EXP = lv_fcode_exp
    TABLES
         MDVAX_VPR = lt_mdvax_vpr
. " CO_ZA_AVAILABILITY_CHK_ORDER




ABAP code using 7.40 inline data declarations to call FM CO_ZA_AVAILABILITY_CHK_ORDER

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 SUBRC FROM SY INTO @DATA(ld_retcode_exp).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_i_memo_tp).
DATA(ld_i_memo_tp) = 'X'.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_i_trtyp).
DATA(ld_i_trtyp) = 'V'.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_save_call).
DATA(ld_save_call) = ' '.
 
"SELECT single TCODE FROM SY INTO @DATA(ld_fcode_exp).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_open_call).
DATA(ld_open_call) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_rel_call).
DATA(ld_rel_call) = ' '.
 
"SELECT single APLID FROM TCMF6 INTO @DATA(ld_init_prot).
DATA(ld_init_prot) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_show_result).
DATA(ld_show_result) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_flg_mess_obj_dep).
DATA(ld_flg_mess_obj_dep) = ' '.
 
DATA(ld_r62clord_imp) = ' '.
 
"SELECT single ANWDG FROM CM61A INTO @DATA(ld_i_anwdg).
DATA(ld_i_anwdg) = '1'.
 
"SELECT single AZERG FROM CM61A INTO @DATA(ld_i_azerg).
DATA(ld_i_azerg) = '1'.
 


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!