| Item | Material | Order Qty | SU | Description | Plant | Net Value | |
|---|---|---|---|---|---|---|---|
|
|
|||||||
| Item | Material | Order Qty | SU | Description | Plant | Net Value | |
|---|---|---|---|---|---|---|---|
|
|
|||||||
This program demonstrates the Kaprekar routine for 4-digit numbers, which converges to the constant 6174.
Kaprekar's constant, discovered by Indian mathematician D.R. Kaprekar in 1949, is 6174. For most 4-digit numbers, the routine converges to 6174 in at most 7 iterations.
The program displays each iteration showing the descending arrangement, ascending arrangement, and their difference until convergence to 6174 is achieved.
Program: ZKAPREKAR_CALC
Author: Custom Development
Report Type: Executable Report
Transaction Code: ZKAP
| Condition Type | Description | Amount | Currency | Unit | Per | |
|---|---|---|---|---|---|---|
| 1 | PR00 | Price | 500.00 | USD | PC | 1 |
| 2 | K007 | Discount | -25.00 | USD | PC | 1 |
| 3 | KF00 | Freight | 75.00 | USD | 1 | |
| 4 | MWST | Tax | 82.50 | USD | 1 |
| Condition Type | Description | Amount | Currency | Unit | Per | |
|---|---|---|---|---|---|---|
| 1 | PR00 | Price | 500.00 | USD | PC | 1 |
| 2 | K007 | Volume Discount | -25.00 | USD | PC | 1 |
Use this transaction to create a new sales order in the system. A sales order is a contractual agreement between your organization and a customer for the delivery of goods or services.
This program demonstrates the Kaprekar routine, which converges to the constant 6174 for most 4-digit numbers.
Press F1 at any time to get context-sensitive help for the current field or screen.
For the complete SAP library and latest updates, visit the SAP Help Portal online. Documentation is available in multiple languages.
Advanced Business Application Programming - SAP's proprietary programming language
Available-to-Promise - Check if products are available for delivery
Business Application Programming Interface - Standard interfaces for business objects
Independent business unit within an SAP system (e.g., 020)
Route through which products reach customers
Product grouping for sales and distribution
Search help/value help accessed by pressing F4 or clicking the search icon
International Commercial Terms defining delivery responsibilities
Products or services that can be procured or sold
Physical location where materials are produced or stored
Contract between company and customer for delivery of products/services
Organizational unit responsible for sale and distribution of products
Customer who orders the goods or services
Customer who receives the goods
Transaction Code - Shortcut to access SAP transactions (e.g., VA01)
Grid display for entering multiple line items
This is a demonstration version for educational and training purposes.