Start of Content Area

Procedure documentation Adding Tables  Locate the document in its SAP Library structure

Use

The Generic Reporting Tool (GRT) enables you to add tables to the user interface. In this environment, they have the following properties:

     Tables are created dynamically. There is no predefined user interface element for tables.

     Tables can be displayed only. You cannot enter any data and transfer it to the back-end.

The back-end is only notified of whether a user has selected a particular row of the table. To be able to transfer this information to the back-end, you have to create an attribute for selected table rows in the VCDATA node in the context of the visual application component (Vc).

Note

You have to create the attribute under the VCDATA node, not the VCTABLE node.

     The context of the table is divided into the two nodes for the field catalog and the table contents.

     The width of the table columns cannot be changed on the user interface.

     All contents of the table cells are treated as strings. No other data formats are possible.

Procedure

Carry out this procedure for all the tables you require in the application.

...

       1.      Create a VCTABLE node in the context of the Vc.

       2.      Create a node, TABLE0, under the VCTABLE node.

If you want to create more tables, create more nodes on the same level.

Note

The node for the first table must always have the label TABLE0. The nodes for additional tables must then be numbered consecutively (TABLE1, TABLE2, and so on). You must retain this naming convention.

       3.      Under the TABLE0 node create the elements CONTENT_TABLE0 and FIELDCAT_TABLE0.

     The CONTENT_TABLE0 node is used to store the data from the table.

     The FIELDCAT_TABLE0 node contains the field catalog of the table. It must contain the structure fieldcatalogueStructure.

       4.      Under the FIELDCAT_TABLE0 node, create the fields you require for the table (for example, HALIGN, TITLE, TOOLTIP, VISIBLE, WIDTH).

       5.      Bind the table to the TABLE_CONTENT element in the context of the Vc.

 

End of Content Area