Integration
LISTDESC is a parameter of the function module EXIT_RSAQEXCE_001.
The LISTDESC description table contains a description of the fields in the data table DATATAB. This includes not only the type, length and number of decimal places, but also any information you cannot define with the DESCRIBE FIELD statement. If a query comprises several sub-lists (as in our example of the function module EXIT_RSAQEXCE_001 section), the description table always contains a description of the fields in all data tables (that is all sublists) which can be transferred by this query. You can use the LIST_ID parameter to retrieve the appropriate entries from the description table.
In our example of the Function Module EXIT_RSAQEXCE_001 section, the description table always contains the descriptions of fields of the data tables for the basic list, the statistics, and the ranked list.
The description table has the structure RSAQLDESC. This structure has the following fields:
FNAMENEW |
TYPE C, Length 70 |
Field name (source field) (Rel.4.0) like FNAME (from Release 4.0) |
FNAMEINT |
TYPE C, Length 30 |
field name (data table) Contains the field name from the data table. Use this name together with the statement ASSIGN COMPONENT to dynamically access the field in the data table. |
FKEY |
TYPE C, Length 1 |
flag for lead column Contains the value X if the field has been output as a key field (lead column) in the list. |
FGTYPE |
TYPE C, Length 1 |
flag for graphic type identifies the field's contents as S symbol I icon |
FNZERO |
TYPE C, Length 1 |
flag for zero display Contains the value X if the field has been output with the option NO-ZERO in the list. |
FSUM |
TYPE C, Length 1 |
summation flag Contains the value X if the field has been totaled in the list. |
FSONLY |
TYPE C, Length 1 |
sorting flag Contains the value X if the list has been sorted according to this field, but the field itself was not output. |
FSORT |
TYPE N, Length ยง |
sorting level Contains the sorting number if the list has been sorted according to the field. |
FSODS |
TYPE C, Length 1 |
sorting direction Contains the value X if the list has been sorted in descending order according to the field. |
FSUBT |
TYPE C, Length 1 |
subtotal flag Contains the value X if the list has been sorted according to the field and sub-totals were generated during sorting. |
FLPOS |
TYPE N, Length 4 |
position of field (like FPOS) Describes the position of the field in the sub-list specified by the LID parameter. The positions are counted consecutively from 1 (for example 01, 02,...). |
FNUMB |
TYPE C, Length 2 |
Field group ID Field group of the field whose name is stored in FNAMENEW. |
FNUMBT |
TYPE C, Length 24 |
Field group text Long text of the field group |
LID |
Type C, Length 03 |
ID of the sublist Indicates to which query sub-list the field belongs. The parameter values can be the same as for the LIST_ID parameter (see above) |
FPOS |
TYPE N, Length 02 |
Position of the field Describes the position of the field in the sub-list specified by the LID parameter. The positions are counted consecutively from 1 (for example 01, 02,...). Caution
Use FLPOS instead. |
FCONT |
TYPE N, Length 01 |
number of continuation line Describes the number of the continuation line in which the field is output (0,1...). This can occur with basic lists that collapse due to a too small list width (LINE SIZE). Field numbering (as in FPOS) is not affected, since it is independent of the FCONT value. Normally, this field is not required for the Private file function. |
FCURPOS |
TYPE N, Length 03 |
list position of field Describes the start position of the field in the list line, if the field is numeric (FTYP = P, I, F). Otherwise, FCURPOS contains the value 000. Normally, this field is not required for the Private file function. |
FGRAF |
Type C, Length 01 |
text flag for graphic Contains the value X, if you use the value of the non-numeric field as a help text for the graphic. Normally, this field is not required for the Private file function. |
FTYP |
Type C, Length 01 |
ABAP type of field Describes the ABAP type of the field and can accept the values C, D, F, I, N, P, T, or X. |
FLEN |
TYPE N, Length 03 |
length of field Describes the length of the field |
FDEC |
TYPE N, Length 02 |
number of decimal places for field Describes the number of decimal places for the field. This specification is only significant if FTYP contains the value P. In all other cases, FDEC contains the value 00. |
FOLEN |
TYPE N, Length 03 |
Output length of the field Describes the output length of the field in the sub-list, as specified when defining the query. |
FCUR |
Type C, Length 01 |
currency flag Identifies the field as F Currency amount field W Currency key or currency field M Amount field E Units Field |
FADD |
Type C, Length 01 |
flag for internal field Indicates whether the field is an additional field generated by the query itself. The following values are possible: R rank specification (only in ranked lists) C number of records read (only in statistics) P percentage specification (only in statistics) M Mean value (only in statistics) |
FDESC |
TYPE C, Length 40 |
field description (long text) Contains the field description that the user sees when defining the query. |
FNAME |
TYPE C, Length 30 |
field name (source field) Contains the field name from the query report from which the information for the data table is derived (up to Release 4.0) |
FCOL |
TYPE C, Length 30 |
column header for field Contains the one line column header for the data table field described by an entry in the LISTDESC table. |