Ansicht
Dokumentation
SAPLSEUT - Tree Framework
General Material Data BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Description
This function group contains function modules for creating, displaying, and working with hierarchy displays. You can use any of the function modules in the group that have been released.
You can dispaly the hierarchy either as a list or using a tree control. In a tree control, the programmer can use callbacks to react to user interaction with the hierarchy.
To create a new hierarchy, use the following function modules:
- RS_TREE_CREATE
- RS_TREE_CONSTRUCT
- RS_TREE_SET_CURRENT_TREE
To display and work with a hierarchy, use the following function modules:
- RS_TREE_LIST_DISPLAY
- RS_TREE_CONTROL_PREPARE
- RS_TREE_LIST
- This function module returns the formatted hierarchy in an internal table. You could use this table as a basis for your own display if, for example, the standard display RS_TREE_LIST_DISPLAY does not meet your requirements.
The remainin function modules can be divided as follows:
- Function modules for changing the display
- RS_TREE_EXPAND
- RS_TREE_COMPRESS
- RS_TREE_SET_CURRENT_LAYOUT
- RS_TREE_SET_LOCK
- RS_TREE_RESET_LOCK
- RS_TREE_SET_SCROLL_POS
- RS_TREE_SORT_CHILDREN
- Function modules for changing the hierarchy or individual nodes
- RS_TREE_ADD_NODE
- RS_TREE_DELETE_NODE
- RS_TREE_MOVE
- RS_TREE_SET_NODE
- Finding out about the state of the tree
- RS_TREE_GET_CURRENT_TREE
- RS_TREE_GET_CURRENT_LAYOUT
- RS_TREE_GET_CURRENT_ROOT
- RS_TREE_GET_CURRENT_NODE
- RS_TREE_GET_NODE
- RS_TREE_GET_NODE_BY_NAME
- RS_TREE_GET_PREDECESSOR
- RS_TREE_GET_MODIFICATION_LOG
- Auxiliary functions for processing user actions
- RS_TREE_GET_INPUT
- RS_TREE_GET_MARKED_NODES
- RS_TREE_GET_SEARCHSTRING
The function group only administers a hierarchy temporarily during a single session. If you want to maintain the state of a hierarchy beyond the end of a session, you must do it yourself. You can do this using the following function modules:
- RS_TREE_GET_CURRENT_TREE / RS_TREE_SET_CURRENT_TREE
- RS_TREE_GET_CURRENT_TREE returns a table containing all of the nodes in the hierarchy. This corresponds to the internal format, and can be stored in an INDX-like database table and then redisplayed (unchanged) using RS_TREE_SET_CURRENT_TREE. This is the most efficient method.
- RS_TREE_LIST / RS_TREE_CONSTRUCT
- The node table returned by RS_TREE_LIST corresponds to the formatting on the screen. It is useful if you want to implement your own display or store the hierarchy in a non-INDX file. In this case, you should use the function module RS_TREE_CONSTRUCT to redisplay the hierarchy.
If you want to switch between hierarchies during a session, you can use a stack and the following function modules:
- RS_TREE_PUSH
- RS_TREE_POP
The functions of the list display and the tree control differ. For further information, refer to the function module documentation for RS_TREE_CONTROL_PREPARE.
RFUMSV00 - Advance Return for Tax on Sales/Purchases ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 5176 Date: 20240601 Time: 055715 sap01-206 ( 54 ms )