Ansicht
Dokumentation

ABENREDUCE_STRUCTURED_ABEXA - REDUCE STRUCTURED ABEXA

ABENREDUCE_STRUCTURED_ABEXA - REDUCE STRUCTURED ABEXA

General Data in Customer Master   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

- Table Reductions, Structured Result

This example demonstrates a reduction of the columns of a table to a structure.

Source Code

Execute

Description

Reduces a two-column internal table itab using REDUCE. The content of the first column of all lines is concatenated after the FOR expression, the total of the second column is calculated, and the maximum value of the second column is determined. These values are assigned to the components of the local structure res, which is provided as the result.

The separator sep in the concatenation is declared as a helper variable after INIT. It is initial for the first line read and set to a value here for the evaluation of the following lines.






TXBHW - Original Tax Base Amount in Local Currency   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 1044 Date: 20240424 Time: 070838     sap01-206 ( 23 ms )