sapgui_table_get_column_width

Table Functions

Gets the width of a table column.

int sapgui_table_get_column_width( const char *description, const char *tableID, const char *column, const char *paramName, [args,] LAST );
description User entered text to aid in understanding script
tableIDObject ID Strings
column Column number. The first column is numbered zero (0).
paramName Output parameter for the retrieved value
argsOptional Arguments
LAST A marker indicating the end of the argument list. Not required if Optional Arguments are used.

The sapgui_table_get_column_width data retrieval function gets the width of column into the parameter paramName.

Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

Parameterization

You can parameterize all string (char type) arguments.

Example

The following example show the use of sapgui_table_get_column_width.

sapgui_table_get_column_width("Get Depart City Width",
    "usr/tblRSDEMO02TC_SPFLI",
    "2", 
    "colWidth", LAST );
Example: Output:
Notify: Found SapGui component by ID "usr/tblRSDEMO02TC_SPFLI"
Notify: Table - Found column 2
ColumnWidth.c(31): Notify: Saving Parameter "colWidth = 11"
ColumnWidth.c(31): Table - The width of column "Depart.city" is 11