Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Compute present value of future cash flows.
DATA: cashflows TYPE STANDARD TABLE OF p DECIMALS 2 WITH DEFAULT KEY.
cashflows = VALUE #( (100) (100) (100) ).
DATA(r) = 0.05.
DATA(pv) TYPE p DECIMALS 2.
LOOP AT cashflows INTO DATA(cf) INDEX DATA(i).
pv = pv + cf / ( ( 1 + r ) ** i ).
ENDLOOP.
WRITE: / 'Present Value:', pv.SAP ABAP (Advanced Business Application Programming) is a high-level programming language developed by SAP for building enterprise applications on SAP systems, enabling customization, data processing, and business workflow automation.
Origin & Creator
Developed by SAP SE, Germany, originally in the 1980s for SAP R/2 and later SAP R/3 systems.
Industrial Note
Extensively used in enterprise software development, SAP module customization, and large-scale business process automation.