Thursday, September 11, 2008

Substitute Text for Empty Output in SAP Netweaver

If no data is available, you can specify a text that is displayed in the area of the ALV output.

To display the substitute text, the number of visible rows has to be set to -1 (see Size of ALV Output, Columns, and Cells, under Changing the Height).

To display the substitute text for empty ALV output, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE):

Methods for Displaying Substitute Text for Empty ALV Output

Function

Method

Specify substitute text

SET_EMPTY_TABLE_TEXT

Get substitute text

GET_EMPTY_TABLE_TEXT

No comments: