Entering content frameFunction documentation Output of Description Texts

Use

In FI-AA reporting, you use sort versions to determine the sorting and totaling of the data records. You can use either the standard sort versions provided with the system or define your own sort versions.

A sort version consists primarily of a sort key. The sort key is made up of a maximum of 5 fields of the dictionary structure ANLAV. The selected data records of a report are sorted according to these fields. Totals are then output at the control level.

The report also outputs a name or description at the control level. For example, if a total is created for the assets in an asset class, the name of this class is read and output with the report. The reading of the name/description is pre-programmed in all the fields that are used in the standard sort versions provided with the system. You need to program the reading of the name/description yourself (using SAP enhancement ANLR0001) only if the conditions below are met:

Activities

You program this reading using the SAP enhancement ANLR0001 as described below:

Function module EXIT_SAPLANALR_001 is a component of SAP enhancement ANLR0001. Include enhancement ANLR0001 in a project using the function Project management of SAP enhancements (transaction CMOD), and activate this project.

Features

You call function module EXIT_SAPLANLR_001 from asset reporting. The function module contains, in its import parameters, all the necessary data for determining the text.

The function module then supplies (in the parameter E_BEZ) the text that belongs to this field content to asset reporting. The source code for this function module consists solely of include program ZXANLU01. You have to program the reading of the text in include ZXANLU01. You may need to first create this include program for this purpose.

Note

It is also possible to include only the relevant part of a field rather than the complete field in the sort version (for example, for the field ANLAV-TXJCD, the tax jurisdiction code). In this case, you also have to specify the offset and the length along with the field name in the definition of the sort version. When programming the locating of the text in include program ZXANLU01, you must then make sure that the complete field contents are available in the parameter I_CONTENT. This is necessary so that the entries for offset and length made in the parameters I_OFFSET and I_LAENGE in the sort version are also taken into account.

In addition, it is also possible that the text is dependent on a company code or depreciation area. This information is in the parameters I_BUKRS or I_AFABE, and can be included when you program the locating of the text.

Leaving content frame