Share this page

# sapgui_table_reorder

Table Functions

Reorders the columns in a table.

    int sapgui_table_reorder( const char *description, const char *tableID, const char *order, [args,] LAST );

description | User entered text to aid in understanding script
TableID | Object ID Strings
order | The new order
args | Optional Arguments
LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used.

sapgui_table_reorder reorders the columns in a table. The order argument is the old positions of the columns in the new order. The column numbers are separated with spaces. For example,`"0 1 3 2"` will move the fourth column (column three) to the third position.

## 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

In this example, sapgui_table_reorder moves the fourth column (column three) to the third position.

Copy code

    sapgui_table_reorder("Move Depart City",
        "usr/tblRSDEMO02TC_SPFLI",
        "0 1 3 2",
        LAST );

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