SAP CO_BT_AFVG_UPDATE Function Module for NOTRANSL: AFVG-Satz in Belegtabelle aktualisieren.









CO_BT_AFVG_UPDATE is a standard co bt afvg update 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: AFVG-Satz in Belegtabelle aktualisieren. 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 update FM, simply by entering the name CO_BT_AFVG_UPDATE 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_UPDATE 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_UPDATE'"NOTRANSL: AFVG-Satz in Belegtabelle aktualisieren.
EXPORTING
AFVGD_NEW = "
* I_PROT_IMP = "
* FLG_OCM = ' ' "
* I_FORCE_UPDATE = ' ' "Force Update
* FLG_NO_SCHED = ' ' "
* FLG_NO_UVO_UPD = ' ' "
TABIX_OLD = "Index on old PLAS record in document table
* FLG_SCHED_LIGHT = ' ' "
* INS_MODE = ' ' "
* FLG_NO_DEALLOC = ' ' "
* FLG_NO_CALC = ' ' "
* FLG_NO_REC_PROCESS = ' ' "

IMPORTING
TABIX_NEW = "Index on new PLAS record in document table
.



IMPORTING Parameters details for CO_BT_AFVG_UPDATE

AFVGD_NEW -

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

I_PROT_IMP -

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

FLG_OCM -

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

I_FORCE_UPDATE - Force Update

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

FLG_NO_SCHED -

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

FLG_NO_UVO_UPD -

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

TABIX_OLD - Index on old PLAS record in document table

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

FLG_SCHED_LIGHT -

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

INS_MODE -

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

FLG_NO_DEALLOC -

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

FLG_NO_CALC -

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

FLG_NO_REC_PROCESS -

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

EXPORTING Parameters details for CO_BT_AFVG_UPDATE

TABIX_NEW - Index on new PLAS record in document table

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

Copy and paste ABAP code example for CO_BT_AFVG_UPDATE 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_new  TYPE AFVGD, "   
lv_tabix_new  TYPE SY-TABIX, "   
lv_i_prot_imp  TYPE RC27X-FLG_SEL, "   
lv_flg_ocm  TYPE RC27X, "   SPACE
lv_i_force_update  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_no_sched  TYPE RC27X-FLG_SEL, "   ' '
lv_flg_no_uvo_upd  TYPE RC27X-FLG_SEL, "   ' '
lv_tabix_old  TYPE SY-TABIX, "   
lv_flg_sched_light  TYPE RC27X-FLG_SEL, "   ' '
lv_ins_mode  TYPE SY-DATAR, "   ' '
lv_flg_no_dealloc  TYPE RC27X-FLG_SEL, "   SPACE
lv_flg_no_calc  TYPE SY-DATAR, "   ' '
lv_flg_no_rec_process  TYPE SY-DATAR. "   ' '

  CALL FUNCTION 'CO_BT_AFVG_UPDATE'  "NOTRANSL: AFVG-Satz in Belegtabelle aktualisieren.
    EXPORTING
         AFVGD_NEW = lv_afvgd_new
         I_PROT_IMP = lv_i_prot_imp
         FLG_OCM = lv_flg_ocm
         I_FORCE_UPDATE = lv_i_force_update
         FLG_NO_SCHED = lv_flg_no_sched
         FLG_NO_UVO_UPD = lv_flg_no_uvo_upd
         TABIX_OLD = lv_tabix_old
         FLG_SCHED_LIGHT = lv_flg_sched_light
         INS_MODE = lv_ins_mode
         FLG_NO_DEALLOC = lv_flg_no_dealloc
         FLG_NO_CALC = lv_flg_no_calc
         FLG_NO_REC_PROCESS = lv_flg_no_rec_process
    IMPORTING
         TABIX_NEW = lv_tabix_new
. " CO_BT_AFVG_UPDATE




ABAP code using 7.40 inline data declarations to call FM CO_BT_AFVG_UPDATE

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 TABIX FROM SY INTO @DATA(ld_tabix_new).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_prot_imp).
 
DATA(ld_flg_ocm) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_i_force_update).
DATA(ld_i_force_update) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_sched).
DATA(ld_flg_no_sched) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_uvo_upd).
DATA(ld_flg_no_uvo_upd) = ' '.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_tabix_old).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_sched_light).
DATA(ld_flg_sched_light) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_ins_mode).
DATA(ld_ins_mode) = ' '.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_dealloc).
DATA(ld_flg_no_dealloc) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_flg_no_calc).
DATA(ld_flg_no_calc) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_flg_no_rec_process).
DATA(ld_flg_no_rec_process) = ' '.
 


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!