SAP /ACCGO/ACM_MTM_PRICING Function Module for Simulates Pricing Data for VLOGP









/ACCGO/ACM_MTM_PRICING is a standard /accgo/acm mtm pricing SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simulates Pricing Data for VLOGP 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/acm mtm pricing FM, simply by entering the name /ACCGO/ACM_MTM_PRICING into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/ACMCM_MTM
Program Name: /ACCGO/SAPLACMCM_MTM
Main Program: /ACCGO/SAPLACMCM_MTM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /ACCGO/ACM_MTM_PRICING 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/ACM_MTM_PRICING'"Simulates Pricing Data for VLOGP
EXPORTING
IS_APPDOC_ASSGMT = "Document Flow Structure
IV_MATNR = "Material Number
* IV_RETURN = "Indicator for Realized or Returned
* IV_RECON_EXEC = "General Flag

IMPORTING
ES_KOMK = "Communication Header for Pricing
ET_PERIODDET_COM = "CPE - Communication Structure for Period Determination Rule
ET_PERIODOUT_COM = "CPE - Communic. Structure for Period Determination Result
ET_SURCHARGE_COM = "CPE - Communication Structure for Surcharge Rule UIs
ET_EXTENSION = "CPE Extension - Extension Data - Table Type for Key
ET_EXT_BASIS = "CMM Basis Handling - Table Type
ET_FIXATION_GROUPS = "Fixation Group Data - flat version
ET_MARKET_NORM = "Market norm key structure
ES_KOMP = "Communication Item for Pricing
ET_KOMV = "Table for KOMV
ET_FORMDOC = "Invoice Anticipation Condition Data
ET_TERM = "CPE in ERP: Term Details of Doc. Formula Result
ET_TERMINPUT = "CPE Term - Table Type for Changed General Data Input
ET_TERMOUTPUT = "CPE Term - Table Type for General Result
ET_TERMCONVIN_COM = "CPE - Communication Table for Input for Term Conversion
ET_TERMCONVOUT_COM = "CPE - Communication Table for Result of Term Conversion

CHANGING
CT_RETURN = "Table with BAPI Return Information
.



IMPORTING Parameters details for /ACCGO/ACM_MTM_PRICING

IS_APPDOC_ASSGMT - Document Flow Structure

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

IV_MATNR - Material Number

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

IV_RETURN - Indicator for Realized or Returned

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

IV_RECON_EXEC - General Flag

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

EXPORTING Parameters details for /ACCGO/ACM_MTM_PRICING

ES_KOMK - Communication Header for Pricing

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

ET_PERIODDET_COM - CPE - Communication Structure for Period Determination Rule

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

ET_PERIODOUT_COM - CPE - Communic. Structure for Period Determination Result

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

ET_SURCHARGE_COM - CPE - Communication Structure for Surcharge Rule UIs

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

ET_EXTENSION - CPE Extension - Extension Data - Table Type for Key

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

ET_EXT_BASIS - CMM Basis Handling - Table Type

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

ET_FIXATION_GROUPS - Fixation Group Data - flat version

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

ET_MARKET_NORM - Market norm key structure

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

ES_KOMP - Communication Item for Pricing

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

ET_KOMV - Table for KOMV

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

ET_FORMDOC - Invoice Anticipation Condition Data

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

ET_TERM - CPE in ERP: Term Details of Doc. Formula Result

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

ET_TERMINPUT - CPE Term - Table Type for Changed General Data Input

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

ET_TERMOUTPUT - CPE Term - Table Type for General Result

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

ET_TERMCONVIN_COM - CPE - Communication Table for Input for Term Conversion

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

ET_TERMCONVOUT_COM - CPE - Communication Table for Result of Term Conversion

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

CHANGING Parameters details for /ACCGO/ACM_MTM_PRICING

CT_RETURN - Table with BAPI Return Information

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

Copy and paste ABAP code example for /ACCGO/ACM_MTM_PRICING 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_es_komk  TYPE CMM_VLOGP_INV_ANT_RES_KOMK, "   
lv_ct_return  TYPE BAPIRETTAB, "   
lv_is_appdoc_assgmt  TYPE WB2_S_ASSGMT_COM, "   
lv_et_perioddet_com  TYPE /ACCGO/CPE_TT_PERIODDET_COM, "   
lv_et_periodout_com  TYPE /ACCGO/CPE_TT_PERIODOUT_COM, "   
lv_et_surcharge_com  TYPE /ACCGO/CPE_TT_SURCHARGE_COM, "   
lv_et_extension  TYPE CPET_EXTENSION_KEY_TAB, "   
lv_et_ext_basis  TYPE CMM_BASIS_DEF_T, "   
lv_et_fixation_groups  TYPE /ACCGO/CPE_TT_FIXATION_GROUP, "   
lv_et_market_norm  TYPE /ACCGO/CPE_TT_MKTNORM, "   
lv_es_komp  TYPE KOMP, "   
lv_iv_matnr  TYPE MATNR, "   
lv_et_komv  TYPE KOMV_ITAB, "   
lv_iv_return  TYPE /ACCGO/E_REL_RET_IND, "   
lv_et_formdoc  TYPE /ACCGO/CPE_TT_FORMDOC, "   
lv_iv_recon_exec  TYPE FLAG, "   
lv_et_term  TYPE /ACCGO/CPE_TT_TERM, "   
lv_et_terminput  TYPE CPET_TERMINPUT_TAB, "   
lv_et_termoutput  TYPE CPET_TERMOUT_TAB, "   
lv_et_termconvin_com  TYPE CPET_TERMCONVIN_COM_TAB, "   
lv_et_termconvout_com  TYPE CPET_TERMCONVOUT_COM_TAB. "   

  CALL FUNCTION '/ACCGO/ACM_MTM_PRICING'  "Simulates Pricing Data for VLOGP
    EXPORTING
         IS_APPDOC_ASSGMT = lv_is_appdoc_assgmt
         IV_MATNR = lv_iv_matnr
         IV_RETURN = lv_iv_return
         IV_RECON_EXEC = lv_iv_recon_exec
    IMPORTING
         ES_KOMK = lv_es_komk
         ET_PERIODDET_COM = lv_et_perioddet_com
         ET_PERIODOUT_COM = lv_et_periodout_com
         ET_SURCHARGE_COM = lv_et_surcharge_com
         ET_EXTENSION = lv_et_extension
         ET_EXT_BASIS = lv_et_ext_basis
         ET_FIXATION_GROUPS = lv_et_fixation_groups
         ET_MARKET_NORM = lv_et_market_norm
         ES_KOMP = lv_es_komp
         ET_KOMV = lv_et_komv
         ET_FORMDOC = lv_et_formdoc
         ET_TERM = lv_et_term
         ET_TERMINPUT = lv_et_terminput
         ET_TERMOUTPUT = lv_et_termoutput
         ET_TERMCONVIN_COM = lv_et_termconvin_com
         ET_TERMCONVOUT_COM = lv_et_termconvout_com
    CHANGING
         CT_RETURN = lv_ct_return
. " /ACCGO/ACM_MTM_PRICING




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

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!