SAP /ACCGO/EXM_SAMPLE_RICEFW_CALC Function Module for Get Expense Data for Planned Expenses









/ACCGO/EXM_SAMPLE_RICEFW_CALC is a standard /accgo/exm sample ricefw calc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Expense Data for Planned Expenses 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/exm sample ricefw calc FM, simply by entering the name /ACCGO/EXM_SAMPLE_RICEFW_CALC into the relevant SAP transaction such as SE37 or SE38.

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



Function /ACCGO/EXM_SAMPLE_RICEFW_CALC 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/EXM_SAMPLE_RICEFW_CALC'"Get Expense Data for Planned Expenses
EXPORTING
* IM_TC_OPER = "Trading Contract Operation
* IM_SER_CONTR = "Service Contract Number
* IM_SER_ITEM = "Service Contract Item
* IM_SER_LINE = "Service Line Number
* IM_COND_TYPE = "Condition type
* IM_COND_AMOUNT = "Rate (condition amount or percentage)
* IM_SER_MASTER = "Service Master Number
* IM_EXP_CLASS = "GT Expenses: Expense Class

IMPORTING
EX_COND_AMOUNT = "Rate (condition amount or percentage)
EX_SER_CONTR = "Service Contract Number
EX_SER_ITEM = "Service Contract Item
EX_SER_LINE = "Service Line Number
EX_RC = "Return Code
EX_RETURN = "Return parameter table
.



IMPORTING Parameters details for /ACCGO/EXM_SAMPLE_RICEFW_CALC

IM_TC_OPER - Trading Contract Operation

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

IM_SER_CONTR - Service Contract Number

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

IM_SER_ITEM - Service Contract Item

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

IM_SER_LINE - Service Line Number

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

IM_COND_TYPE - Condition type

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

IM_COND_AMOUNT - Rate (condition amount or percentage)

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

IM_SER_MASTER - Service Master Number

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

IM_EXP_CLASS - GT Expenses: Expense Class

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

EXPORTING Parameters details for /ACCGO/EXM_SAMPLE_RICEFW_CALC

EX_COND_AMOUNT - Rate (condition amount or percentage)

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

EX_SER_CONTR - Service Contract Number

Data type: /ACCGO/E_SER_CONTR
Optional: No
Call by Reference: Yes

EX_SER_ITEM - Service Contract Item

Data type: /ACCGO/E_SER_ITEM
Optional: No
Call by Reference: Yes

EX_SER_LINE - Service Line Number

Data type: /ACCGO/E_SER_LINE
Optional: No
Call by Reference: Yes

EX_RC - Return Code

Data type: /ACCGO/E_RTN_CODE
Optional: No
Call by Reference: Yes

EX_RETURN - Return parameter table

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

Copy and paste ABAP code example for /ACCGO/EXM_SAMPLE_RICEFW_CALC 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_im_tc_oper  TYPE /ACCGO/E_TC_OPER, "   
lv_ex_cond_amount  TYPE KBETR, "   
lv_ex_ser_contr  TYPE /ACCGO/E_SER_CONTR, "   
lv_im_ser_contr  TYPE /ACCGO/E_SER_CONTR, "   
lv_ex_ser_item  TYPE /ACCGO/E_SER_ITEM, "   
lv_im_ser_item  TYPE /ACCGO/E_SER_ITEM, "   
lv_ex_ser_line  TYPE /ACCGO/E_SER_LINE, "   
lv_im_ser_line  TYPE /ACCGO/E_SER_LINE, "   
lv_ex_rc  TYPE /ACCGO/E_RTN_CODE, "   
lv_im_cond_type  TYPE KSCHA, "   
lv_ex_return  TYPE BAPIRET2_T, "   
lv_im_cond_amount  TYPE KBETR, "   
lv_im_ser_master  TYPE /ACCGO/E_SER_MASTER, "   
lv_im_exp_class  TYPE WB2_EXPENSE_CLASS. "   

  CALL FUNCTION '/ACCGO/EXM_SAMPLE_RICEFW_CALC'  "Get Expense Data for Planned Expenses
    EXPORTING
         IM_TC_OPER = lv_im_tc_oper
         IM_SER_CONTR = lv_im_ser_contr
         IM_SER_ITEM = lv_im_ser_item
         IM_SER_LINE = lv_im_ser_line
         IM_COND_TYPE = lv_im_cond_type
         IM_COND_AMOUNT = lv_im_cond_amount
         IM_SER_MASTER = lv_im_ser_master
         IM_EXP_CLASS = lv_im_exp_class
    IMPORTING
         EX_COND_AMOUNT = lv_ex_cond_amount
         EX_SER_CONTR = lv_ex_ser_contr
         EX_SER_ITEM = lv_ex_ser_item
         EX_SER_LINE = lv_ex_ser_line
         EX_RC = lv_ex_rc
         EX_RETURN = lv_ex_return
. " /ACCGO/EXM_SAMPLE_RICEFW_CALC




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

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!