Share this page

# 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
tableID | Object ID Strings
column | Column number. The first column is numbered zero (0).
paramName | Output parameter for the retrieved value
args | Optional 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

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: