2025 Jan 08 9:03 AM - edited 2025 Jan 08 9:04 AM
Hi,
In one of the Standard routine added custom include, to achieve the Business requirement.
Some logic written. Requirement is for Fiori App. So, In backend Abap code written.
There is a Transaction document "Manage Solution Quotations" Abap code will trigger.
If document is having 6 lines. 6 times code will trigger and calculate the value and
The result value will move into the Below Variable.
xkwert LIKE komv-kwert, (Condition Value)
Here(in the table) the logic is A*B/C = D
In Normally if i calculate the logic in Excel Values are coming like D column
But if it comes to coding Column E, Values are coming Bcz of Decimal 2 Variable is having.
if You observe both columns sum value D and E.. Rounding is missing At E Column.
Not able to Find the exact solution. Here in the code.. For every line(no of lines in the transaction) code will trigger. Suppose having 5 lines.. more than 5 times code will trigger and logic will execute bcz of standard routine.
Here 9999.98 value Standard code is calculating. Now issue is it should be Roud the value 10k
Some cases like 5k and 9k How can i achieve this one.
| A | B | C | D | E |
| 10000 | 37380 | 98384.95 | 3799.362 | 3799.36 |
| 10000 | 236.36 | 98384.95 | 24.024 | 24.02 |
| 10000 | 2535 | 98384.95 | 257.6614 | 257.66 |
| 10000 | 796.95 | 98384.95 | 81.00324 | 81 |
| 10000 | 796.95 | 98384.95 | 81.00324 | 81 |
| 10000 | 2535 | 98384.95 | 257.6614 | 257.66 |
| 10000 | 2535 | 98384.95 | 257.6614 | 257.66 |
| 10000 | 236.36 | 98384.95 | 24.024 | 24.02 |
| 10000 | 51333.33 | 98384.95 | 5217.6 | 5217.6 |
| 10000 | 9999.98 |
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.