SAP CO_BT_AFVG_APPEND Function Module for NOTRANSL: CIM-Auftrag: Hinzufügen eines neuen Vorgangssatzes in Belegtabel









CO_BT_AFVG_APPEND is a standard co bt afvg append 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: Hinzufügen eines neuen Vorgangssatzes in Belegtabel 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 append FM, simply by entering the name CO_BT_AFVG_APPEND 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_APPEND 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_APPEND'"NOTRANSL: CIM-Auftrag: Hinzufügen eines neuen Vorgangssatzes in Belegtabel
EXPORTING
AFVGD_APP = "Order: Dialog Table for Table AFVG (Order Operation)
AUFNR_ACT = "Order Number
* INDEXSUMNR = '0000000000' "Index of Internal Tables
* STTAG = '00000000' "
* FLG_NO_ADD = ' ' "If 'X': Copy structure without reading header
* INS_MODE = ' ' "Selection for Entry in a Dynpro Field
* FLG_NO_PS_UPD = "Selection Indicator

IMPORTING
APLZL = "General Counter for Order
TABIX = "
AFVGD_EXP = "Order: Dialog Table for Table AFVG (Order Operation)

EXCEPTIONS
NO_REQ_CREATED = 1 NO_AUTHORITY = 2 AVO_ALREADY_EXISTS = 3
.



IMPORTING Parameters details for CO_BT_AFVG_APPEND

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

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

AUFNR_ACT - Order Number

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

INDEXSUMNR - Index of Internal Tables

Data type: SY-TABIX
Default: '0000000000'
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_NO_ADD - If 'X': Copy structure without reading header

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

INS_MODE - Selection for Entry in a Dynpro Field

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

FLG_NO_PS_UPD - Selection Indicator

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

EXPORTING Parameters details for CO_BT_AFVG_APPEND

APLZL - General Counter for Order

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

TABIX -

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

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)

EXCEPTIONS details

NO_REQ_CREATED -

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

NO_AUTHORITY -

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

AVO_ALREADY_EXISTS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CO_BT_AFVG_APPEND 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 AFVGD-APLZL, "   
lv_afvgd_app  TYPE AFVGD, "   
lv_no_req_created  TYPE AFVGD, "   
lv_tabix  TYPE SY-TABIX, "   
lv_aufnr_act  TYPE CAUFVD-AUFNR, "   
lv_no_authority  TYPE CAUFVD, "   
lv_afvgd_exp  TYPE AFVGD, "   
lv_indexsumnr  TYPE SY-TABIX, "   '0000000000'
lv_avo_already_exists  TYPE SY, "   
lv_sttag  TYPE RC27S-STTAG, "   '00000000'
lv_flg_no_add  TYPE RC27X-FLG_SEL, "   ' '
lv_ins_mode  TYPE SY-DATAR, "   ' '
lv_flg_no_ps_upd  TYPE RC27X-FLG_SEL. "   

  CALL FUNCTION 'CO_BT_AFVG_APPEND'  "NOTRANSL: CIM-Auftrag: Hinzufügen eines neuen Vorgangssatzes in Belegtabel
    EXPORTING
         AFVGD_APP = lv_afvgd_app
         AUFNR_ACT = lv_aufnr_act
         INDEXSUMNR = lv_indexsumnr
         STTAG = lv_sttag
         FLG_NO_ADD = lv_flg_no_add
         INS_MODE = lv_ins_mode
         FLG_NO_PS_UPD = lv_flg_no_ps_upd
    IMPORTING
         APLZL = lv_aplzl
         TABIX = lv_tabix
         AFVGD_EXP = lv_afvgd_exp
    EXCEPTIONS
        NO_REQ_CREATED = 1
        NO_AUTHORITY = 2
        AVO_ALREADY_EXISTS = 3
. " CO_BT_AFVG_APPEND




ABAP code using 7.40 inline data declarations to call FM CO_BT_AFVG_APPEND

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 AFVGD INTO @DATA(ld_aplzl).
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_tabix).
 
"SELECT single AUFNR FROM CAUFVD INTO @DATA(ld_aufnr_act).
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_indexsumnr).
DATA(ld_indexsumnr) = '0000000000'.
 
 
"SELECT single STTAG FROM RC27S INTO @DATA(ld_sttag).
DATA(ld_sttag) = '00000000'.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_add).
DATA(ld_flg_no_add) = ' '.
 
"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_ps_upd).
 


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!