Sum of Array - Abap Typing CST Test
Loading…
Sum of Array — Abap Code
Calculates the sum of an internal table.
DATA: it_numbers TYPE TABLE OF i WITH DEFAULT KEY.
DATA: sum TYPE i VALUE 0.
APPEND 1 TO it_numbers.
APPEND 2 TO it_numbers.
APPEND 3 TO it_numbers.
APPEND 4 TO it_numbers.
APPEND 5 TO it_numbers.
LOOP AT it_numbers INTO DATA(num).
sum = sum + num.
ENDLOOP.
WRITE: / 'Sum:', sum.Abap Language Guide
ABAP (Advanced Business Application Programming) is a high-level, strongly typed, event-driven programming language created by SAP for developing business applications on the SAP platform. It is primarily used for enterprise resource planning (ERP), reporting, and workflow automation.
Primary Use Cases
- ▸Custom SAP reports and ALV grids
- ▸Enhancements to standard SAP functionality
- ▸Batch jobs and background processing
- ▸SAP interfaces (IDocs, BAPIs, RFCs)
- ▸Workflow and business rule automation
- ▸Forms (SmartForms, Adobe Forms) development
Notable Features
- ▸Strong typing and structured syntax
- ▸Integration with SAP database and modules
- ▸Supports both procedural and OO paradigms
- ▸Event-driven and modular design
- ▸Rich standard function modules and APIs
Origin & Creator
ABAP was developed by SAP in the early 1980s to support its R/2 and later R/3 ERP systems, allowing customers to customize and extend SAP applications.
Industrial Note
ABAP is critical in enterprise ERP implementations, large-scale business workflow automation, SAP S/4HANA data models, and integration with SAP Fiori/UI5 frontends.