SAP /ACCGO/CREATE_FEE_MD Function Module for Creates Fee Master Data









/ACCGO/CREATE_FEE_MD is a standard /accgo/create fee md SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creates Fee Master Data 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 /accgo/create fee md FM, simply by entering the name /ACCGO/CREATE_FEE_MD into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/FEE_MD_API
Program Name: /ACCGO/SAPLFEE_MD_API
Main Program: /ACCGO/SAPLFEE_MD_API
Appliation area:
Release date: 04-Sep-2020
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /ACCGO/CREATE_FEE_MD 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 '/ACCGO/CREATE_FEE_MD'"Creates Fee Master Data
EXPORTING
IV_FEE_TYPE = "Fee type(Fee Framework)
* IS_APPLICABLE_EVTS = "Structure for Applicable events
* IT_FEE_EXT_NOTE = "Text Lines (132 Characters)
* IT_FEE_INT_NOTE = "Text Lines (132 Characters)
* IV_COMMIT = 'X' "Boolean: True/False
* IT_PERCENTAGE_DATA = "Staggered percentage fee table type
* IV_VALID_FROM = SY-DATUM "Valid From Date
* IV_VALID_TO = 99991231 "Valid To Date
* IS_FEE_BASIC_PROP = "Fee basic properties like fee name,external description etc.
* IS_FEE_PROPERTIES = "Fee properties including message types
* IS_FEE_DUPL_SALE_PURCH = "Sales msg type and purchase msg type
* IS_FEE_ATTRIBUTES = "Include for fee attributes
* IT_CHARCTERISTIC_DATA = "Fee Characteristics BL Table Type
* IS_APPLICABLE_DOCS = "Structure for applicable docs

IMPORTING
ET_MESSAGES = "BAPI return structure
ES_FEE_ID_VER = "Fee id and version
.



IMPORTING Parameters details for /ACCGO/CREATE_FEE_MD

IV_FEE_TYPE - Fee type(Fee Framework)

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

IS_APPLICABLE_EVTS - Structure for Applicable events

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

IT_FEE_EXT_NOTE - Text Lines (132 Characters)

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

IT_FEE_INT_NOTE - Text Lines (132 Characters)

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

IV_COMMIT - Boolean: True/False

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

IT_PERCENTAGE_DATA - Staggered percentage fee table type

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

IV_VALID_FROM - Valid From Date

Data type: /ACCGO/E_VALID_FROM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VALID_TO - Valid To Date

Data type: /ACCGO/E_VALID_TO
Default: 99991231
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_FEE_BASIC_PROP - Fee basic properties like fee name,external description etc.

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

IS_FEE_PROPERTIES - Fee properties including message types

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

IS_FEE_DUPL_SALE_PURCH - Sales msg type and purchase msg type

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

IS_FEE_ATTRIBUTES - Include for fee attributes

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

IT_CHARCTERISTIC_DATA - Fee Characteristics BL Table Type

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

IS_APPLICABLE_DOCS - Structure for applicable docs

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

EXPORTING Parameters details for /ACCGO/CREATE_FEE_MD

ET_MESSAGES - BAPI return structure

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

ES_FEE_ID_VER - Fee id and version

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

Copy and paste ABAP code example for /ACCGO/CREATE_FEE_MD 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_et_messages  TYPE /ACCGO/TT_COMMON_BR_BAPIRET2, "   
lv_iv_fee_type  TYPE /ACCGO/E_FEETYPE, "   
lv_is_applicable_evts  TYPE /ACCGO/S_FEE_APPLICABLE_EVENTS, "   
lv_it_fee_ext_note  TYPE RE_T_TEXTLINE, "   
lv_it_fee_int_note  TYPE RE_T_TEXTLINE, "   
lv_iv_commit  TYPE BOOLE_D, "   'X'
lv_it_percentage_data  TYPE /ACCGO/TT_PCF_STA_DB, "   
lv_es_fee_id_ver  TYPE /ACCGO/S_FEE_ID_VER, "   
lv_iv_valid_from  TYPE /ACCGO/E_VALID_FROM, "   SY-DATUM
lv_iv_valid_to  TYPE /ACCGO/E_VALID_TO, "   99991231
lv_is_fee_basic_prop  TYPE /ACCGO/S_FEE_BASIC_PROP, "   
lv_is_fee_properties  TYPE /ACCGO/S_FEE_PROPERTIES, "   
lv_is_fee_dupl_sale_purch  TYPE /ACCGO/S_FEE_DUPL_SALE_PURCH, "   
lv_is_fee_attributes  TYPE /ACCGO/S_FEE_ATTRIBUTES, "   
lv_it_charcteristic_data  TYPE /ACCGO/TT_FEE_CHAR_API, "   
lv_is_applicable_docs  TYPE /ACCGO/S_FEE_APPLICABLE_DOCS. "   

  CALL FUNCTION '/ACCGO/CREATE_FEE_MD'  "Creates Fee Master Data
    EXPORTING
         IV_FEE_TYPE = lv_iv_fee_type
         IS_APPLICABLE_EVTS = lv_is_applicable_evts
         IT_FEE_EXT_NOTE = lv_it_fee_ext_note
         IT_FEE_INT_NOTE = lv_it_fee_int_note
         IV_COMMIT = lv_iv_commit
         IT_PERCENTAGE_DATA = lv_it_percentage_data
         IV_VALID_FROM = lv_iv_valid_from
         IV_VALID_TO = lv_iv_valid_to
         IS_FEE_BASIC_PROP = lv_is_fee_basic_prop
         IS_FEE_PROPERTIES = lv_is_fee_properties
         IS_FEE_DUPL_SALE_PURCH = lv_is_fee_dupl_sale_purch
         IS_FEE_ATTRIBUTES = lv_is_fee_attributes
         IT_CHARCTERISTIC_DATA = lv_it_charcteristic_data
         IS_APPLICABLE_DOCS = lv_is_applicable_docs
    IMPORTING
         ET_MESSAGES = lv_et_messages
         ES_FEE_ID_VER = lv_es_fee_id_ver
. " /ACCGO/CREATE_FEE_MD




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CREATE_FEE_MD

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_iv_commit) = 'X'.
 
 
 
DATA(ld_iv_valid_from) = SY-DATUM.
 
DATA(ld_iv_valid_to) = 99991231.
 
 
 
 
 
 
 


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!