SAP FMAVC_ASSIGN_CEFFYEAR_AVC Function Module for Assign year of cash effectivity for availability control









FMAVC_ASSIGN_CEFFYEAR_AVC is a standard fmavc assign ceffyear avc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assign year of cash effectivity for availability control 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 fmavc assign ceffyear avc FM, simply by entering the name FMAVC_ASSIGN_CEFFYEAR_AVC into the relevant SAP transaction such as SE37 or SE38.

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



Function FMAVC_ASSIGN_CEFFYEAR_AVC 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 'FMAVC_ASSIGN_CEFFYEAR_AVC'"Assign year of cash effectivity for availability control
EXPORTING
I_FM_AREA = "Financial Management Area
I_ALDNR = "Control Ledger
I_FISCYEAR = "Fiscal Year
I_CEFFYEAR = "Year of Cash Effectivity
* I_PLDNR = "Posting Ledger Number
* I_BLDNR = "Budget Ledger Number (Budget Category)
* I_FLG_BYPASS_BUFFER = ' ' "Flag: By-Pass Internal Buffer

IMPORTING
E_CEFFYEAR_AVC = "Year of Cash Effectivity (BCS)

EXCEPTIONS
INCONSISTENT_CEFFYEAR = 1
.



IMPORTING Parameters details for FMAVC_ASSIGN_CEFFYEAR_AVC

I_FM_AREA - Financial Management Area

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

I_ALDNR - Control Ledger

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

I_FISCYEAR - Fiscal Year

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

I_CEFFYEAR - Year of Cash Effectivity

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

I_PLDNR - Posting Ledger Number

Data type: BUBAS_PLDNR
Optional: Yes
Call by Reference: Yes

I_BLDNR - Budget Ledger Number (Budget Category)

Data type: BUBAS_BLDNR
Optional: Yes
Call by Reference: Yes

I_FLG_BYPASS_BUFFER - Flag: By-Pass Internal Buffer

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FMAVC_ASSIGN_CEFFYEAR_AVC

E_CEFFYEAR_AVC - Year of Cash Effectivity (BCS)

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

EXCEPTIONS details

INCONSISTENT_CEFFYEAR - Year of Cash Eff. Not Consistently Defined in BCS Budgeting and FM Updating

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMAVC_ASSIGN_CEFFYEAR_AVC 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_i_fm_area  TYPE FIKRS, "   
lv_e_ceffyear_avc  TYPE FM_CEFFYEAR_BCS, "   
lv_inconsistent_ceffyear  TYPE FM_CEFFYEAR_BCS, "   
lv_i_aldnr  TYPE BUAVC_ALDNR, "   
lv_i_fiscyear  TYPE GJAHR, "   
lv_i_ceffyear  TYPE GNJHR, "   
lv_i_pldnr  TYPE BUBAS_PLDNR, "   
lv_i_bldnr  TYPE BUBAS_BLDNR, "   
lv_i_flg_bypass_buffer  TYPE XFELD. "   ' '

  CALL FUNCTION 'FMAVC_ASSIGN_CEFFYEAR_AVC'  "Assign year of cash effectivity for availability control
    EXPORTING
         I_FM_AREA = lv_i_fm_area
         I_ALDNR = lv_i_aldnr
         I_FISCYEAR = lv_i_fiscyear
         I_CEFFYEAR = lv_i_ceffyear
         I_PLDNR = lv_i_pldnr
         I_BLDNR = lv_i_bldnr
         I_FLG_BYPASS_BUFFER = lv_i_flg_bypass_buffer
    IMPORTING
         E_CEFFYEAR_AVC = lv_e_ceffyear_avc
    EXCEPTIONS
        INCONSISTENT_CEFFYEAR = 1
. " FMAVC_ASSIGN_CEFFYEAR_AVC




ABAP code using 7.40 inline data declarations to call FM FMAVC_ASSIGN_CEFFYEAR_AVC

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_i_flg_bypass_buffer) = ' '.
 


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!