SAP CO_BT_AFVG_READ_WITH_KEY Function Module for NOTRANSL: CIM-Auftrag: Vorgangssatz per Schlüssel lesen in Auftrag









CO_BT_AFVG_READ_WITH_KEY is a standard co bt afvg read with key 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: CIM-Auftrag: Vorgangssatz per Schlüssel lesen in Auftrag 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 bt afvg read with key FM, simply by entering the name CO_BT_AFVG_READ_WITH_KEY into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_BT_AFVG_READ_WITH_KEY 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_BT_AFVG_READ_WITH_KEY'"NOTRANSL: CIM-Auftrag: Vorgangssatz per Schlüssel lesen in Auftrag
EXPORTING
APLZL = "General Counter for Order
* FLG_WORK = ' ' "Indicator: Read work center data
* STTAG = '000000' "
* INDEX_ONLY = "
* I_FLG_OPROLL = 'X' "Selection Indicator
* AUFNR_ACT = "Order Number
* AUFPL = '0000000000' "Task list number of operations in the order
* CHECK_DELETED = 'X' "Selection Indicator
* FLG_CONV = ' ' "
* FLG_EXTR = ' ' "
* FLG_PROV = ' ' "
* FLG_QUAL = ' ' "Indicator: Read qualification
* FLG_STAT = ' ' "

IMPORTING
AFVGD_EXP = "Order: Dialog Table for Table AFVG (Order Operation)
AUTH_EXP = "Network authorization fields
FLG_OVERFLOW = "Selection Indicator
INDEX = "
RC27F_EXP = "External processing data of task list operations/activities
RCR01_EXP = "Work center data
VBKZ_EXP = "Update indicator
VORNR_EXP = "Operation Number
OBJNR_EXP = "Status Object Number
UVORN_EXP = "Suboperation

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for CO_BT_AFVG_READ_WITH_KEY

APLZL - General Counter for Order

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

FLG_WORK - Indicator: Read work center data

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

STTAG -

Data type: RC271-STTAG
Default: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

INDEX_ONLY -

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

I_FLG_OPROLL - Selection Indicator

Data type: RC27X-FLG_SEL
Default: 'X'
Optional: Yes
Call by Reference: Yes

AUFNR_ACT - Order Number

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

AUFPL - Task list number of operations in the order

Data type: AFVC-AUFPL
Default: '0000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHECK_DELETED - Selection Indicator

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

FLG_CONV -

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

FLG_EXTR -

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

FLG_PROV -

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

FLG_QUAL - Indicator: Read qualification

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

FLG_STAT -

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

EXPORTING Parameters details for CO_BT_AFVG_READ_WITH_KEY

AFVGD_EXP - Order: Dialog Table for Table AFVG (Order Operation)

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

AUTH_EXP - Network authorization fields

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

FLG_OVERFLOW - Selection Indicator

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

INDEX -

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

RC27F_EXP - External processing data of task list operations/activities

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

RCR01_EXP - Work center data

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

VBKZ_EXP - Update indicator

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

VORNR_EXP - Operation Number

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

OBJNR_EXP - Status Object Number

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

UVORN_EXP - Suboperation

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

EXCEPTIONS details

NOT_FOUND - No record found for key

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

Copy and paste ABAP code example for CO_BT_AFVG_READ_WITH_KEY 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_aplzl  TYPE AFVC-APLZL, "   
lv_afvgd_exp  TYPE AFVGD, "   
lv_not_found  TYPE AFVGD, "   
lv_auth_exp  TYPE OPRAUTH, "   
lv_flg_work  TYPE OPRAUTH, "   SPACE
lv_sttag  TYPE RC271-STTAG, "   '000000'
lv_index_only  TYPE RC271, "   
lv_i_flg_oproll  TYPE RC27X-FLG_SEL, "   'X'
lv_aufnr_act  TYPE AUFK-AUFNR, "   
lv_flg_overflow  TYPE RC27X-FLG_SEL, "   
lv_aufpl  TYPE AFVC-AUFPL, "   '0000000000'
lv_index  TYPE SY-TABIX, "   
lv_rc27f_exp  TYPE RC27F, "   
lv_check_deleted  TYPE RC27X-FLG_SEL, "   'X'
lv_flg_conv  TYPE RC27X, "   SPACE
lv_rcr01_exp  TYPE RCR01, "   
lv_flg_extr  TYPE RCR01, "   SPACE
lv_vbkz_exp  TYPE AFVGB-VBKZ, "   
lv_flg_prov  TYPE AFVGB, "   SPACE
lv_vornr_exp  TYPE AFVC-VORNR, "   
lv_flg_qual  TYPE AFVC, "   SPACE
lv_objnr_exp  TYPE AFVGD-OBJNR, "   
lv_flg_stat  TYPE AFVGD, "   SPACE
lv_uvorn_exp  TYPE AFVGD-UVORN. "   

  CALL FUNCTION 'CO_BT_AFVG_READ_WITH_KEY'  "NOTRANSL: CIM-Auftrag: Vorgangssatz per Schlüssel lesen in Auftrag
    EXPORTING
         APLZL = lv_aplzl
         FLG_WORK = lv_flg_work
         STTAG = lv_sttag
         INDEX_ONLY = lv_index_only
         I_FLG_OPROLL = lv_i_flg_oproll
         AUFNR_ACT = lv_aufnr_act
         AUFPL = lv_aufpl
         CHECK_DELETED = lv_check_deleted
         FLG_CONV = lv_flg_conv
         FLG_EXTR = lv_flg_extr
         FLG_PROV = lv_flg_prov
         FLG_QUAL = lv_flg_qual
         FLG_STAT = lv_flg_stat
    IMPORTING
         AFVGD_EXP = lv_afvgd_exp
         AUTH_EXP = lv_auth_exp
         FLG_OVERFLOW = lv_flg_overflow
         INDEX = lv_index
         RC27F_EXP = lv_rc27f_exp
         RCR01_EXP = lv_rcr01_exp
         VBKZ_EXP = lv_vbkz_exp
         VORNR_EXP = lv_vornr_exp
         OBJNR_EXP = lv_objnr_exp
         UVORN_EXP = lv_uvorn_exp
    EXCEPTIONS
        NOT_FOUND = 1
. " CO_BT_AFVG_READ_WITH_KEY




ABAP code using 7.40 inline data declarations to call FM CO_BT_AFVG_READ_WITH_KEY

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 APLZL FROM AFVC INTO @DATA(ld_aplzl).
 
 
 
 
DATA(ld_flg_work) = ' '.
 
"SELECT single STTAG FROM RC271 INTO @DATA(ld_sttag).
DATA(ld_sttag) = '000000'.
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_flg_oproll).
DATA(ld_i_flg_oproll) = 'X'.
 
"SELECT single AUFNR FROM AUFK INTO @DATA(ld_aufnr_act).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_overflow).
 
"SELECT single AUFPL FROM AFVC INTO @DATA(ld_aufpl).
DATA(ld_aufpl) = '0000000000'.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_index).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_check_deleted).
DATA(ld_check_deleted) = 'X'.
 
DATA(ld_flg_conv) = ' '.
 
 
DATA(ld_flg_extr) = ' '.
 
"SELECT single VBKZ FROM AFVGB INTO @DATA(ld_vbkz_exp).
 
DATA(ld_flg_prov) = ' '.
 
"SELECT single VORNR FROM AFVC INTO @DATA(ld_vornr_exp).
 
DATA(ld_flg_qual) = ' '.
 
"SELECT single OBJNR FROM AFVGD INTO @DATA(ld_objnr_exp).
 
DATA(ld_flg_stat) = ' '.
 
"SELECT single UVORN FROM AFVGD INTO @DATA(ld_uvorn_exp).
 


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!