EDM Creating Formulas
EDM Creating Formulas
This post is about creating your own formula for use in Formula profiles and RTP
Interface.
But one can define formulas with specific functions in Customizing for SAP Utilities,
Tools -> System Modifications -> User Defined Enhancement for Energy Data
Management -> Formulas.
For each formula, a function module needs to defined first with the following interface,
CHANGING
REFERENCE (XY_CNTR) TYPE EEDMFORMULACTR
REFERENCE (XY_INP) TYPE TEEDMFORMPARLIST_I
REFERENCE (XY_OUT) TYPE TEEDMFORMPARLIST_O
EXCEPTIONS
GENERAL_FAULT.
One can also use template function modules provided for this purpose.
ISU_EDM_FORMULA_EASY or
ISU_EDM_FORMULA_XXXX.
Input Parameters
edm_read_input 1.
edm_read_input 2.
edm_read_input 3.
edm_read_input 4.
yval6 = xval1.
edm_quant_to_demand yval6.
• Calculating Below and Above Limit for Demand
edm_append_output 1.
edm_append_output 2.
edm_append_output 3.
edm_append_output 4.
edm_append_output 5.
edm_append_output 6.
This is how the RTP Formula : Input Parameters Looks like. As you can see the
function module is mentioned and the 4 input parameters are also mentioned.
While allocating input parameters we also have to allocate the Calculation Mode
So you see that not much coding is necessary once the logic is clear :)
Do leave a feedback. :D