SlideShare ist ein Scribd-Unternehmen logo
1 von 7
Downloaden Sie, um offline zu lesen
ISU EDM: Creating formulas for use in
Formula Profiles & RTP Interface

This post is about creating your own formula for use in Formula profiles and RTP
Interface.

Formulas are predefined by SAP.

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.



I intend to create a formula similar to LIMIT04 but with some difference.

My formula has 4 input parameters and 6 Output Parameters.

Input Parameters

1. Measured Consumption (kwh)

2. First Limit for Consumption (kwh)

3. Second Limit for Consumption (kwh)

4. Limit for Demand (KW)
Output Parameters

1. Portion below First Limit (kwh)

2. Portion above First Limit (kwh)

3. Portion above second Limit (kwh)

4. Net Demand (Just for Evaluation)(KW)

5. Demand below Limit (KW)

6. Demand above Limit (KW)



So first I created a function module by copying the template function module.

Here I give snippets of the code

   ‱   The 4 Input Parameters

edm_read_input 1.
edm_read_input 2.
edm_read_input 3.
edm_read_input 4.


   ‱   Check if Measured Consumption exceeds First Limit and then if Measured
       Consumption exceeds Second Limit

IF xval1 > xval2.
    yval1 = xval2.
    yval2 = xval1 - xval2.
ELSE.
    yval1 = xval1.
    yval2 = 0.
ENDIF.
IF xval1 > xval3.
    yval3 = xval1 - xval3.
ELSE.
    yval3 = 0.
ENDIF.


   ‱   Converting Measured Consumption into Net Demand

yval6 = xval1.
edm_quant_to_demand yval6.
‱   Calculating Below and Above Limit for Demand

  if yval6 > xval4.
    yval4 = xval4.
  else.
    yval4 = yval6.
  endif.
  if yval6 > xval4.
    yval5 = yval6 - xval4.
  else.
    yval5 = 0.
  endif.


   ‱   Appending the result to the Output Parameters

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

The calculation mode determines how a value is processed when a formula is
executed. It could, for example, enable calculation based on the status of the input
profile value.

SAP has already predefined a number of calculation modes:

‱01 – Value included in calculation
‱02 – Value not included in calculation
‱99 – Value results in cancellation of calculation
When implementing formulas, you can use the constants

co_calcmod_use type e_formulamod value '01',
co_calcmod_not_use type e_formulamod value '02',
co_calcmod_abort type e_formulamod value '99'.


Below are the Output Parameters
now I executed this formula in a formula profile.




The values of the input profiles were like this.
First Limit for Consumption was at 2000 kwh
Second Limit for Consumption was at 5000 kwh
Demand Limit was at 10000 KW.


The calculation run was executed for the formula.
The profile values generated were.




So you see that not much coding is necessary once the logic is clear :)

This is also available in my blog at http://wp.me/p1Ci5j-5h

Do leave a feedback. :D

Weitere Àhnliche Inhalte

Was ist angesagt?

Rental price variants
Rental price variantsRental price variants
Rental price variantsRakesh Dasgupta
 
SAP ABAP HR TRAINING
SAP ABAP HR TRAININGSAP ABAP HR TRAINING
SAP ABAP HR TRAININGJoshiRavin
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantAnkit Sharma
 
Mr11 grir clearing account maintenance
Mr11 grir clearing account maintenanceMr11 grir clearing account maintenance
Mr11 grir clearing account maintenanceFarooq Wangde
 
Rate Category Period End Billing
Rate Category Period End BillingRate Category Period End Billing
Rate Category Period End BillingRakesh Dasgupta
 
Enhancement technique how to use validations
Enhancement technique how to use validationsEnhancement technique how to use validations
Enhancement technique how to use validationsUgeshkumarnetha Dasari
 
EDM Overview of Synthetic Profile
EDM Overview of Synthetic ProfileEDM Overview of Synthetic Profile
EDM Overview of Synthetic ProfileRakesh Dasgupta
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Ashish Saxena
 
Variant COMPUT25 explained
Variant COMPUT25 explainedVariant COMPUT25 explained
Variant COMPUT25 explainedRakesh Dasgupta
 
Business partner-2
Business  partner-2Business  partner-2
Business partner-2abc
 
Sap fico interview questions
Sap fico interview questionsSap fico interview questions
Sap fico interview questionschandubandreddi
 
EDM Activation of RTP Components I
EDM Activation of RTP Components IEDM Activation of RTP Components I
EDM Activation of RTP Components IRakesh Dasgupta
 
SAP ISU: Out-sorting Billing Validation
SAP ISU: Out-sorting Billing ValidationSAP ISU: Out-sorting Billing Validation
SAP ISU: Out-sorting Billing ValidationRakesh Dasgupta
 
Availability Check in SAP SD
Availability Check in SAP SDAvailability Check in SAP SD
Availability Check in SAP SDMangesh Ambardekar
 
AMI Capabilities: Operational Status
AMI Capabilities: Operational StatusAMI Capabilities: Operational Status
AMI Capabilities: Operational StatusRakesh Dasgupta
 
Payroll basics
Payroll basicsPayroll basics
Payroll basicsanisha gupta
 
Fi sd integration with copa
Fi sd integration with copaFi sd integration with copa
Fi sd integration with copaCapgemini
 

Was ist angesagt? (20)

Rental price variants
Rental price variantsRental price variants
Rental price variants
 
SAP ABAP HR TRAINING
SAP ABAP HR TRAININGSAP ABAP HR TRAINING
SAP ABAP HR TRAINING
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
 
Mr11 grir clearing account maintenance
Mr11 grir clearing account maintenanceMr11 grir clearing account maintenance
Mr11 grir clearing account maintenance
 
Rate Category Period End Billing
Rate Category Period End BillingRate Category Period End Billing
Rate Category Period End Billing
 
Enhancement technique how to use validations
Enhancement technique how to use validationsEnhancement technique how to use validations
Enhancement technique how to use validations
 
EDM Overview of Synthetic Profile
EDM Overview of Synthetic ProfileEDM Overview of Synthetic Profile
EDM Overview of Synthetic Profile
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
 
Variant COMPUT25 explained
Variant COMPUT25 explainedVariant COMPUT25 explained
Variant COMPUT25 explained
 
Business partner-2
Business  partner-2Business  partner-2
Business partner-2
 
Sap fico interview questions
Sap fico interview questionsSap fico interview questions
Sap fico interview questions
 
EDM Activation of RTP Components I
EDM Activation of RTP Components IEDM Activation of RTP Components I
EDM Activation of RTP Components I
 
HR ABAP
HR ABAPHR ABAP
HR ABAP
 
SAP ISU: Out-sorting Billing Validation
SAP ISU: Out-sorting Billing ValidationSAP ISU: Out-sorting Billing Validation
SAP ISU: Out-sorting Billing Validation
 
Pre DME
Pre DMEPre DME
Pre DME
 
Availability Check in SAP SD
Availability Check in SAP SDAvailability Check in SAP SD
Availability Check in SAP SD
 
AMI Capabilities: Operational Status
AMI Capabilities: Operational StatusAMI Capabilities: Operational Status
AMI Capabilities: Operational Status
 
Payroll basics
Payroll basicsPayroll basics
Payroll basics
 
Fi sd integration with copa
Fi sd integration with copaFi sd integration with copa
Fi sd integration with copa
 
Retro billing
Retro billingRetro billing
Retro billing
 

Andere mochten auch

DM Estimation Parameters for Meter Reading Entry
DM Estimation Parameters for Meter Reading EntryDM Estimation Parameters for Meter Reading Entry
DM Estimation Parameters for Meter Reading EntryRakesh Dasgupta
 
EDM Activation of RTP Components II
EDM Activation of RTP Components IIEDM Activation of RTP Components II
EDM Activation of RTP Components IIRakesh Dasgupta
 
EDM Synthetic Profile in Action
EDM Synthetic Profile in ActionEDM Synthetic Profile in Action
EDM Synthetic Profile in ActionRakesh Dasgupta
 
EDM Use of RTP Interface in Rate
EDM Use of RTP Interface in RateEDM Use of RTP Interface in Rate
EDM Use of RTP Interface in RateRakesh Dasgupta
 
DM Validation Class Absolute Tolerance Group
DM Validation Class Absolute Tolerance GroupDM Validation Class Absolute Tolerance Group
DM Validation Class Absolute Tolerance GroupRakesh Dasgupta
 
Installation Groups
Installation GroupsInstallation Groups
Installation GroupsRakesh Dasgupta
 
DM Season Group Calculation in Non Interval Scenario
DM Season Group Calculation in Non Interval ScenarioDM Season Group Calculation in Non Interval Scenario
DM Season Group Calculation in Non Interval ScenarioRakesh Dasgupta
 
DM Seal Management - India Localization
DM Seal Management - India LocalizationDM Seal Management - India Localization
DM Seal Management - India LocalizationRakesh Dasgupta
 
Linear Consumption Pattern
Linear Consumption PatternLinear Consumption Pattern
Linear Consumption PatternRakesh Dasgupta
 
SAP ISU : Installation Groups - Billing Sequence Control
SAP ISU : Installation Groups - Billing Sequence ControlSAP ISU : Installation Groups - Billing Sequence Control
SAP ISU : Installation Groups - Billing Sequence ControlRakesh Dasgupta
 

Andere mochten auch (10)

DM Estimation Parameters for Meter Reading Entry
DM Estimation Parameters for Meter Reading EntryDM Estimation Parameters for Meter Reading Entry
DM Estimation Parameters for Meter Reading Entry
 
EDM Activation of RTP Components II
EDM Activation of RTP Components IIEDM Activation of RTP Components II
EDM Activation of RTP Components II
 
EDM Synthetic Profile in Action
EDM Synthetic Profile in ActionEDM Synthetic Profile in Action
EDM Synthetic Profile in Action
 
EDM Use of RTP Interface in Rate
EDM Use of RTP Interface in RateEDM Use of RTP Interface in Rate
EDM Use of RTP Interface in Rate
 
DM Validation Class Absolute Tolerance Group
DM Validation Class Absolute Tolerance GroupDM Validation Class Absolute Tolerance Group
DM Validation Class Absolute Tolerance Group
 
Installation Groups
Installation GroupsInstallation Groups
Installation Groups
 
DM Season Group Calculation in Non Interval Scenario
DM Season Group Calculation in Non Interval ScenarioDM Season Group Calculation in Non Interval Scenario
DM Season Group Calculation in Non Interval Scenario
 
DM Seal Management - India Localization
DM Seal Management - India LocalizationDM Seal Management - India Localization
DM Seal Management - India Localization
 
Linear Consumption Pattern
Linear Consumption PatternLinear Consumption Pattern
Linear Consumption Pattern
 
SAP ISU : Installation Groups - Billing Sequence Control
SAP ISU : Installation Groups - Billing Sequence ControlSAP ISU : Installation Groups - Billing Sequence Control
SAP ISU : Installation Groups - Billing Sequence Control
 

Ähnlich wie EDM Creating Formulas for Formula Profile & RTP Interface

modularization-160202092213 (1).pdf
modularization-160202092213 (1).pdfmodularization-160202092213 (1).pdf
modularization-160202092213 (1).pdfSreeramBaddila
 
SAP Modularization techniques
SAP Modularization techniquesSAP Modularization techniques
SAP Modularization techniquesJugul Crasta
 
Synthetic Profile-Multiple Usage Factors
Synthetic Profile-Multiple Usage FactorsSynthetic Profile-Multiple Usage Factors
Synthetic Profile-Multiple Usage FactorsRakesh Dasgupta
 
Interesting and Useful Features of the DeltaV PID Controller
Interesting and Useful Features of the DeltaV PID ControllerInteresting and Useful Features of the DeltaV PID Controller
Interesting and Useful Features of the DeltaV PID ControllerJim Cahill
 
Pf700 energy savings_lab
Pf700 energy savings_labPf700 energy savings_lab
Pf700 energy savings_labconfidencial
 
Pl sql guide
Pl sql guidePl sql guide
Pl sql guideVinay Kumar
 
Session 14 validation_steps_sap
Session 14 validation_steps_sapSession 14 validation_steps_sap
Session 14 validation_steps_sapAmitava Saha, PMPÂź
 
Mod.2.pptx
Mod.2.pptxMod.2.pptx
Mod.2.pptxKokilak27
 
Savitch ch 05
Savitch ch 05Savitch ch 05
Savitch ch 05Terry Yoast
 
Processes in Query Optimization in (ABMS) Advanced Database Management Systems
Processes in Query Optimization in (ABMS) Advanced Database Management Systems Processes in Query Optimization in (ABMS) Advanced Database Management Systems
Processes in Query Optimization in (ABMS) Advanced Database Management Systems gamemaker762
 
PL_SQL - II.pptx
PL_SQL - II.pptxPL_SQL - II.pptx
PL_SQL - II.pptxpriyaprakash11
 
pl/sql Procedure
pl/sql Procedurepl/sql Procedure
pl/sql ProcedurePooja Dixit
 
PBDL.pdf
PBDL.pdfPBDL.pdf
PBDL.pdfsouzatg
 
Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...
Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...
Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...Emerson Exchange
 
Lecture05 abap on line
Lecture05 abap on lineLecture05 abap on line
Lecture05 abap on lineMilind Patil
 

Ähnlich wie EDM Creating Formulas for Formula Profile & RTP Interface (20)

modularization-160202092213 (1).pdf
modularization-160202092213 (1).pdfmodularization-160202092213 (1).pdf
modularization-160202092213 (1).pdf
 
SAP Modularization techniques
SAP Modularization techniquesSAP Modularization techniques
SAP Modularization techniques
 
Synthetic Profile-Multiple Usage Factors
Synthetic Profile-Multiple Usage FactorsSynthetic Profile-Multiple Usage Factors
Synthetic Profile-Multiple Usage Factors
 
Interesting and Useful Features of the DeltaV PID Controller
Interesting and Useful Features of the DeltaV PID ControllerInteresting and Useful Features of the DeltaV PID Controller
Interesting and Useful Features of the DeltaV PID Controller
 
Pf700 energy savings_lab
Pf700 energy savings_labPf700 energy savings_lab
Pf700 energy savings_lab
 
Pl sql guide
Pl sql guidePl sql guide
Pl sql guide
 
Session 14 validation_steps_sap
Session 14 validation_steps_sapSession 14 validation_steps_sap
Session 14 validation_steps_sap
 
Mod.2.pptx
Mod.2.pptxMod.2.pptx
Mod.2.pptx
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
C Language Part 1
C Language Part 1C Language Part 1
C Language Part 1
 
Savitch ch 05
Savitch ch 05Savitch ch 05
Savitch ch 05
 
Processes in Query Optimization in (ABMS) Advanced Database Management Systems
Processes in Query Optimization in (ABMS) Advanced Database Management Systems Processes in Query Optimization in (ABMS) Advanced Database Management Systems
Processes in Query Optimization in (ABMS) Advanced Database Management Systems
 
PL_SQL - II.pptx
PL_SQL - II.pptxPL_SQL - II.pptx
PL_SQL - II.pptx
 
pl/sql Procedure
pl/sql Procedurepl/sql Procedure
pl/sql Procedure
 
PBDL.pdf
PBDL.pdfPBDL.pdf
PBDL.pdf
 
Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...
Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...
Interesting and Useful Features of the DeltaV PID, Ratio and Bias/Gain Contro...
 
Lecture05 abap on line
Lecture05 abap on lineLecture05 abap on line
Lecture05 abap on line
 
BCOMP1101 Chapter4_2009.ppt
BCOMP1101 Chapter4_2009.pptBCOMP1101 Chapter4_2009.ppt
BCOMP1101 Chapter4_2009.ppt
 
C Programming - Refresher - Part II
C Programming - Refresher - Part II C Programming - Refresher - Part II
C Programming - Refresher - Part II
 

Mehr von Rakesh Dasgupta

Convergent Invoicing: Scheduling
Convergent Invoicing: SchedulingConvergent Invoicing: Scheduling
Convergent Invoicing: SchedulingRakesh Dasgupta
 
Serial Switching in Interval Meters
Serial Switching in Interval MetersSerial Switching in Interval Meters
Serial Switching in Interval MetersRakesh Dasgupta
 
Set Break Point: Meter Reading Data Processing
Set Break Point: Meter Reading Data ProcessingSet Break Point: Meter Reading Data Processing
Set Break Point: Meter Reading Data ProcessingRakesh Dasgupta
 
Disconnection/Reconnection of a Utilities Installation
Disconnection/Reconnection of a Utilities InstallationDisconnection/Reconnection of a Utilities Installation
Disconnection/Reconnection of a Utilities InstallationRakesh Dasgupta
 
Convergent Invoicing: Clarification Lists
Convergent Invoicing: Clarification Lists Convergent Invoicing: Clarification Lists
Convergent Invoicing: Clarification Lists Rakesh Dasgupta
 
Formula Profile: Define Default Values for Input Parameters
Formula Profile: Define Default Values for Input ParametersFormula Profile: Define Default Values for Input Parameters
Formula Profile: Define Default Values for Input ParametersRakesh Dasgupta
 
Access controls for Operands
Access controls for OperandsAccess controls for Operands
Access controls for OperandsRakesh Dasgupta
 
SAP ISU : Budget Billing Basics
SAP ISU : Budget Billing BasicsSAP ISU : Budget Billing Basics
SAP ISU : Budget Billing BasicsRakesh Dasgupta
 
Budget Billing : Payment plan
Budget Billing : Payment planBudget Billing : Payment plan
Budget Billing : Payment planRakesh Dasgupta
 
Budget Billing : Payment Scheme
Budget Billing : Payment SchemeBudget Billing : Payment Scheme
Budget Billing : Payment SchemeRakesh Dasgupta
 
SAP ISU Validation Class : Comparison of n periods
SAP ISU Validation Class : Comparison of n periodsSAP ISU Validation Class : Comparison of n periods
SAP ISU Validation Class : Comparison of n periodsRakesh Dasgupta
 
Dynamic Modification Factor_Synthetic Profiles
Dynamic Modification Factor_Synthetic ProfilesDynamic Modification Factor_Synthetic Profiles
Dynamic Modification Factor_Synthetic ProfilesRakesh Dasgupta
 
Study of Discounts I
Study of Discounts IStudy of Discounts I
Study of Discounts IRakesh Dasgupta
 
Meter Reading Upload Interval :Used for uploading readings through IDocs
Meter Reading Upload Interval :Used for uploading readings through IDocsMeter Reading Upload Interval :Used for uploading readings through IDocs
Meter Reading Upload Interval :Used for uploading readings through IDocsRakesh Dasgupta
 
Extrapolation with Periodic Consumption
Extrapolation with Periodic ConsumptionExtrapolation with Periodic Consumption
Extrapolation with Periodic ConsumptionRakesh Dasgupta
 
Franchise Contract
Franchise ContractFranchise Contract
Franchise ContractRakesh Dasgupta
 
Maximum Price Limitation
Maximum Price LimitationMaximum Price Limitation
Maximum Price LimitationRakesh Dasgupta
 
Rate Category Advance Billing
Rate Category Advance BillingRate Category Advance Billing
Rate Category Advance BillingRakesh Dasgupta
 
IDE Synchronizing Change Documents for Master Data Changes
IDE Synchronizing Change Documents for Master Data ChangesIDE Synchronizing Change Documents for Master Data Changes
IDE Synchronizing Change Documents for Master Data ChangesRakesh Dasgupta
 
IDE Sending Settlement Results EXPSETTLPA
IDE Sending Settlement Results EXPSETTLPAIDE Sending Settlement Results EXPSETTLPA
IDE Sending Settlement Results EXPSETTLPARakesh Dasgupta
 

Mehr von Rakesh Dasgupta (20)

Convergent Invoicing: Scheduling
Convergent Invoicing: SchedulingConvergent Invoicing: Scheduling
Convergent Invoicing: Scheduling
 
Serial Switching in Interval Meters
Serial Switching in Interval MetersSerial Switching in Interval Meters
Serial Switching in Interval Meters
 
Set Break Point: Meter Reading Data Processing
Set Break Point: Meter Reading Data ProcessingSet Break Point: Meter Reading Data Processing
Set Break Point: Meter Reading Data Processing
 
Disconnection/Reconnection of a Utilities Installation
Disconnection/Reconnection of a Utilities InstallationDisconnection/Reconnection of a Utilities Installation
Disconnection/Reconnection of a Utilities Installation
 
Convergent Invoicing: Clarification Lists
Convergent Invoicing: Clarification Lists Convergent Invoicing: Clarification Lists
Convergent Invoicing: Clarification Lists
 
Formula Profile: Define Default Values for Input Parameters
Formula Profile: Define Default Values for Input ParametersFormula Profile: Define Default Values for Input Parameters
Formula Profile: Define Default Values for Input Parameters
 
Access controls for Operands
Access controls for OperandsAccess controls for Operands
Access controls for Operands
 
SAP ISU : Budget Billing Basics
SAP ISU : Budget Billing BasicsSAP ISU : Budget Billing Basics
SAP ISU : Budget Billing Basics
 
Budget Billing : Payment plan
Budget Billing : Payment planBudget Billing : Payment plan
Budget Billing : Payment plan
 
Budget Billing : Payment Scheme
Budget Billing : Payment SchemeBudget Billing : Payment Scheme
Budget Billing : Payment Scheme
 
SAP ISU Validation Class : Comparison of n periods
SAP ISU Validation Class : Comparison of n periodsSAP ISU Validation Class : Comparison of n periods
SAP ISU Validation Class : Comparison of n periods
 
Dynamic Modification Factor_Synthetic Profiles
Dynamic Modification Factor_Synthetic ProfilesDynamic Modification Factor_Synthetic Profiles
Dynamic Modification Factor_Synthetic Profiles
 
Study of Discounts I
Study of Discounts IStudy of Discounts I
Study of Discounts I
 
Meter Reading Upload Interval :Used for uploading readings through IDocs
Meter Reading Upload Interval :Used for uploading readings through IDocsMeter Reading Upload Interval :Used for uploading readings through IDocs
Meter Reading Upload Interval :Used for uploading readings through IDocs
 
Extrapolation with Periodic Consumption
Extrapolation with Periodic ConsumptionExtrapolation with Periodic Consumption
Extrapolation with Periodic Consumption
 
Franchise Contract
Franchise ContractFranchise Contract
Franchise Contract
 
Maximum Price Limitation
Maximum Price LimitationMaximum Price Limitation
Maximum Price Limitation
 
Rate Category Advance Billing
Rate Category Advance BillingRate Category Advance Billing
Rate Category Advance Billing
 
IDE Synchronizing Change Documents for Master Data Changes
IDE Synchronizing Change Documents for Master Data ChangesIDE Synchronizing Change Documents for Master Data Changes
IDE Synchronizing Change Documents for Master Data Changes
 
IDE Sending Settlement Results EXPSETTLPA
IDE Sending Settlement Results EXPSETTLPAIDE Sending Settlement Results EXPSETTLPA
IDE Sending Settlement Results EXPSETTLPA
 

KĂŒrzlich hochgeladen

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

KĂŒrzlich hochgeladen (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

EDM Creating Formulas for Formula Profile & RTP Interface

  • 1. ISU EDM: Creating formulas for use in Formula Profiles & RTP Interface This post is about creating your own formula for use in Formula profiles and RTP Interface. Formulas are predefined by SAP. 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. I intend to create a formula similar to LIMIT04 but with some difference. My formula has 4 input parameters and 6 Output Parameters. Input Parameters 1. Measured Consumption (kwh) 2. First Limit for Consumption (kwh) 3. Second Limit for Consumption (kwh) 4. Limit for Demand (KW)
  • 2. Output Parameters 1. Portion below First Limit (kwh) 2. Portion above First Limit (kwh) 3. Portion above second Limit (kwh) 4. Net Demand (Just for Evaluation)(KW) 5. Demand below Limit (KW) 6. Demand above Limit (KW) So first I created a function module by copying the template function module. Here I give snippets of the code ‱ The 4 Input Parameters edm_read_input 1. edm_read_input 2. edm_read_input 3. edm_read_input 4. ‱ Check if Measured Consumption exceeds First Limit and then if Measured Consumption exceeds Second Limit IF xval1 > xval2. yval1 = xval2. yval2 = xval1 - xval2. ELSE. yval1 = xval1. yval2 = 0. ENDIF. IF xval1 > xval3. yval3 = xval1 - xval3. ELSE. yval3 = 0. ENDIF. ‱ Converting Measured Consumption into Net Demand yval6 = xval1. edm_quant_to_demand yval6.
  • 3. ‱ Calculating Below and Above Limit for Demand if yval6 > xval4. yval4 = xval4. else. yval4 = yval6. endif. if yval6 > xval4. yval5 = yval6 - xval4. else. yval5 = 0. endif. ‱ Appending the result to the Output Parameters 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.
  • 4. While allocating input parameters we also have to allocate the Calculation Mode The calculation mode determines how a value is processed when a formula is executed. It could, for example, enable calculation based on the status of the input profile value. SAP has already predefined a number of calculation modes: ‱01 – Value included in calculation ‱02 – Value not included in calculation ‱99 – Value results in cancellation of calculation When implementing formulas, you can use the constants co_calcmod_use type e_formulamod value '01', co_calcmod_not_use type e_formulamod value '02', co_calcmod_abort type e_formulamod value '99'. Below are the Output Parameters
  • 5. now I executed this formula in a formula profile. The values of the input profiles were like this.
  • 6. First Limit for Consumption was at 2000 kwh Second Limit for Consumption was at 5000 kwh Demand Limit was at 10000 KW. The calculation run was executed for the formula.
  • 7. The profile values generated were. So you see that not much coding is necessary once the logic is clear :) This is also available in my blog at http://wp.me/p1Ci5j-5h Do leave a feedback. :D