4 weeks ago
Dear all,help me:
How to obtain the menu and transaction code of Sap based on the login name, including the Favorites created by this account?
By program? (Manually, there's a download for favorites.)
For favorites. search the Web around SMEN_BUFFC or BX_FAVOS_READ_ALL_NODES.
For "SAP Menu", it's the same for all users. The users can also display another menu which is role-based (varies for every user). For "SAP Menu", it's a menu named S000, use STREE_STRUCTURE_READ_N_TOP_LEV. As I don't find answers in the Web, I post the code here:
DATA structure_id TYPE ttree-id.
DATA read_all_levels TYPE hier_types-char1.
DATA read_n_levels TYPE hier_types-numc2.
DATA structure_table TYPE STANDARD TABLE OF hier_iface.
structure_id = 'S000'.
read_all_levels = 'X'.
CALL FUNCTION 'STREE_STRUCTURE_READ_N_TOP_LEV'
EXPORTING
structure_id = structure_id
read_all_levels = read_all_levels
read_n_levels = read_n_levels
TABLES
structure_table = structure_table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
111 | |
8 | |
8 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.