SAP CO_BT_AFVG_READ_WITH_INDEX Function Module for NOTRANSL: CIM-Aufträge: Vorgangssatz per Index aus Belegtabelle des Auftra









CO_BT_AFVG_READ_WITH_INDEX is a standard co bt afvg read with index 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-Aufträge: Vorgangssatz per Index aus Belegtabelle des Auftra 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 index FM, simply by entering the name CO_BT_AFVG_READ_WITH_INDEX 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_INDEX 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_INDEX'"NOTRANSL: CIM-Aufträge: Vorgangssatz per Index aus Belegtabelle des Auftra
EXPORTING
* CAUFVD_IMP = ' ' "Dialog Structure for Order Headers and Items
* STTAG = 00000000 "
* FLG_VALID_CHK = 'X' "
* FLG_OPROLL = 'X' "Selection Indicator
* FLG_CONV = ' ' "Selection Indicator
* FLG_EXTR = ' ' "Selection Indicator
* FLG_PROV = ' ' "Selection Indicator
* FLG_QUAL = ' ' "Read qualification data
* FLG_STAT = ' ' "
* FLG_STA_CHK = "Selection Indicator
* FLG_WORK = ' ' "Read Work Center
INDEX = "

IMPORTING
AFVGD_EXP = "Order: Dialog Table for Table AFVG (Order Operation)
RCR01_EXP = "Work center
VBKZ_EXP = "Update indicator
VORNR_EXP = "Operation Number
FLG_STA_LOE = "Selection Indicator
BEDZL_EXP = "Internal Counter
INVALID_EXP = "
ARBID_EXP = "Object ID of the resource
AUFNR_ACT = "Order Number
AUTH_EXP = "Network authorization fields
FLG_OVERFLOW = "Selection Indicator
INDEX_POS = "Index referring to record table for items
OBJNR_EXP = "Object Number
PROJN_EXP = "WBS Element
RC27F_EXP = "External processing data of task list operations/activities

CHANGING
* FLG_STA_LVM = "Selection Indicator

EXCEPTIONS
ERROR_READ_AFVG = 1
.



IMPORTING Parameters details for CO_BT_AFVG_READ_WITH_INDEX

CAUFVD_IMP - Dialog Structure for Order Headers and Items

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

STTAG -

Data type: RC27S-STTAG
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_VALID_CHK -

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

FLG_OPROLL - Selection Indicator

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

FLG_CONV - Selection Indicator

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

FLG_EXTR - Selection Indicator

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

FLG_PROV - Selection Indicator

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

FLG_QUAL - Read qualification data

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

FLG_STAT -

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

FLG_STA_CHK - Selection Indicator

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

FLG_WORK - Read Work Center

Data type: CHAR1
Default: SPACE
Optional: Yes
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)

EXPORTING Parameters details for CO_BT_AFVG_READ_WITH_INDEX

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

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

RCR01_EXP - Work center

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

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: AFVGD-VORNR
Optional: No
Call by Reference: No ( called with pass by value option)

FLG_STA_LOE - Selection Indicator

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

BEDZL_EXP - Internal Counter

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

INVALID_EXP -

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

ARBID_EXP - Object ID of the resource

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

AUFNR_ACT - Order Number

Data type: AUFK-AUFNR
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_POS - Index referring to record table for items

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

OBJNR_EXP - Object Number

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

PROJN_EXP - WBS Element

Data type: PRPS-PSPNR
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: Yes

CHANGING Parameters details for CO_BT_AFVG_READ_WITH_INDEX

FLG_STA_LVM - Selection Indicator

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

EXCEPTIONS details

ERROR_READ_AFVG -

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_INDEX 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_afvgd_exp  TYPE AFVGD, "   
lv_caufvd_imp  TYPE CAUFVD, "   SPACE
lv_flg_sta_lvm  TYPE RC27X-FLG_SEL, "   
lv_error_read_afvg  TYPE RC27X, "   
lv_sttag  TYPE RC27S-STTAG, "   00000000
lv_rcr01_exp  TYPE RCR01, "   
lv_vbkz_exp  TYPE AFVGB-VBKZ, "   
lv_flg_valid_chk  TYPE FLAG, "   'X'
lv_vornr_exp  TYPE AFVGD-VORNR, "   
lv_flg_oproll  TYPE RC27X-FLG_SEL, "   'X'
lv_flg_sta_loe  TYPE RC27X-FLG_SEL, "   
lv_bedzl_exp  TYPE AFVGD-BEDZL, "   
lv_invalid_exp  TYPE FLAG, "   
lv_flg_conv  TYPE RC27X-FLG_SEL, "   SPACE
lv_arbid_exp  TYPE AFVC-ARBID, "   
lv_flg_extr  TYPE RC27X-FLG_SEL, "   SPACE
lv_aufnr_act  TYPE AUFK-AUFNR, "   
lv_auth_exp  TYPE OPRAUTH, "   
lv_flg_prov  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_qual  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_overflow  TYPE RC27X-FLG_SEL, "   
lv_flg_stat  TYPE CHAR1, "   SPACE
lv_index_pos  TYPE RC27I-INDEX_PLPO, "   
lv_objnr_exp  TYPE AFVGD-OBJNR, "   
lv_flg_sta_chk  TYPE RC27X-FLG_SEL, "   
lv_flg_work  TYPE CHAR1, "   SPACE
lv_projn_exp  TYPE PRPS-PSPNR, "   
lv_index  TYPE SY-TABIX, "   
lv_rc27f_exp  TYPE RC27F. "   

  CALL FUNCTION 'CO_BT_AFVG_READ_WITH_INDEX'  "NOTRANSL: CIM-Aufträge: Vorgangssatz per Index aus Belegtabelle des Auftra
    EXPORTING
         CAUFVD_IMP = lv_caufvd_imp
         STTAG = lv_sttag
         FLG_VALID_CHK = lv_flg_valid_chk
         FLG_OPROLL = lv_flg_oproll
         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
         FLG_STA_CHK = lv_flg_sta_chk
         FLG_WORK = lv_flg_work
         INDEX = lv_index
    IMPORTING
         AFVGD_EXP = lv_afvgd_exp
         RCR01_EXP = lv_rcr01_exp
         VBKZ_EXP = lv_vbkz_exp
         VORNR_EXP = lv_vornr_exp
         FLG_STA_LOE = lv_flg_sta_loe
         BEDZL_EXP = lv_bedzl_exp
         INVALID_EXP = lv_invalid_exp
         ARBID_EXP = lv_arbid_exp
         AUFNR_ACT = lv_aufnr_act
         AUTH_EXP = lv_auth_exp
         FLG_OVERFLOW = lv_flg_overflow
         INDEX_POS = lv_index_pos
         OBJNR_EXP = lv_objnr_exp
         PROJN_EXP = lv_projn_exp
         RC27F_EXP = lv_rc27f_exp
    CHANGING
         FLG_STA_LVM = lv_flg_sta_lvm
    EXCEPTIONS
        ERROR_READ_AFVG = 1
. " CO_BT_AFVG_READ_WITH_INDEX




ABAP code using 7.40 inline data declarations to call FM CO_BT_AFVG_READ_WITH_INDEX

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.

 
DATA(ld_caufvd_imp) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_sta_lvm).
 
 
"SELECT single STTAG FROM RC27S INTO @DATA(ld_sttag).
DATA(ld_sttag) = 00000000.
 
 
"SELECT single VBKZ FROM AFVGB INTO @DATA(ld_vbkz_exp).
 
DATA(ld_flg_valid_chk) = 'X'.
 
"SELECT single VORNR FROM AFVGD INTO @DATA(ld_vornr_exp).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_oproll).
DATA(ld_flg_oproll) = 'X'.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_sta_loe).
 
"SELECT single BEDZL FROM AFVGD INTO @DATA(ld_bedzl_exp).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_conv).
DATA(ld_flg_conv) = ' '.
 
"SELECT single ARBID FROM AFVC INTO @DATA(ld_arbid_exp).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_extr).
DATA(ld_flg_extr) = ' '.
 
"SELECT single AUFNR FROM AUFK INTO @DATA(ld_aufnr_act).
 
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_prov).
DATA(ld_flg_prov) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_qual).
DATA(ld_flg_qual) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_overflow).
 
DATA(ld_flg_stat) = ' '.
 
"SELECT single INDEX_PLPO FROM RC27I INTO @DATA(ld_index_pos).
 
"SELECT single OBJNR FROM AFVGD INTO @DATA(ld_objnr_exp).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_sta_chk).
 
DATA(ld_flg_work) = ' '.
 
"SELECT single PSPNR FROM PRPS INTO @DATA(ld_projn_exp).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_index).
 
 


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!