Mode:
Duration:
1
2
3
4
5
6
7
8
DATA: n TYPE i VALUE 5.
DATA: factorial TYPE i VALUE 1.
DO n TIMES.
factorial = factorial * sy-index.
ENDDO.
WRITE: / 'Factorial:', factorial.Coding works best on desktop or with an external keyboard.
DATA: n TYPE i VALUE 5.
DATA: factorial TYPE i VALUE 1.
DO n TIMES.
factorial = factorial * sy-index.
ENDDO.
WRITE: / 'Factorial:', factorial.Coding works best on desktop or with an external keyboard.
Calculates the factorial of a given number.
DATA: n TYPE i VALUE 5.
DATA: factorial TYPE i VALUE 1.
DO n TIMES.
factorial = factorial * sy-index.
ENDDO.
WRITE: / 'Factorial:', factorial.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.
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.