Start of Content Area

Syntax documentationitem_set_alignment  Locate the document in its SAP Library structure

Use this method to set the width of an item.

CALL METHOD list_tree->item_set_alignment
     EXPORTING node_key  = node_key
               item_name = item_name
               alignment = alignment
     EXCEPTIONS failed              = 1
                node_not_found      = 2
                item_not_found      = 3
                cntl_system_error   = 4.

Parameters

Description

node_key

Node in the SAP Tree containing the item that you want to change.

The parameter is defined with reference to type tv_nodekey .

item_name

Name of the item for which you want to adjust the alignment.

The parameter is defined with reference to type tv_itmname .

alignment

list_tree->align_left : left justified

list_tree->align_right : right-justified

list_tree->align_center : centered

list_tree->align_auto : automatic alignment