Functional Area, ALV and ABAP Dictionary Interview FAQ
What is the new version of functional area?
- Now a days we use the term "InfoSet" insted of the term "functional area".
If an ABAP Dictionary structure or an ABAP Dictionary table contains several amount fields or quantity fields that are defined with a reference to the same currency field or unit field, the system displays several currency fields when the data of a query or an InfoSet Query is output.
- We should always treat the pairs of amount field - currency field and quantity field - unit field as a unit; in other words, they provide useful information only if they are treated as a unit. The query has the following prerequisite: Always when the value for an amount field or a quantity field is read, the assigned currency field or unit field must also be known and must be assigned the correct value.
- In the case of amount fields or quantity fields, the query generates the same number of currency fields or unit fields as the number of amount fields or quantity fields that are defined in the structure or table. You can define the output sequence in the query definition in the screen "Basic List Line Structure". For the output using the SAP List Viewer (ALV), you must use the assignment of amount field - currency field and quantity field - unit field to ensure that the currency and unit are displayed correctly. You can use a suitable layout variant to hide the generated currency fields.
In the ALV display, the system displays quantities or currency amounts with an incorrect number of decimal places.The amount or quantity is defined in the query without the relevant unit being output. In the query definition, the unit field is included in the display as a separate field. The query is generated using the new report structure.
- In the new generation, the ALV output is set automatically. The output of amount fields and quantity fields in the ALV requires that the corresponding currencies or units are also transferred as a reference. This is possible only if the currency or unit is output either before or after the amount or quantity in the query definition. It is only then that the references in the ALV display can be taken into account. The number of decimal places depends on the currency or the unit of measure.