# Menu configuration

{% embed url="<https://www.youtube.com/watch?index=5&list=PL74nuGSklShmOsKDpgus4wrEML55aCSkW&v=eAUrjRb69vA>" %}

To use PreBilt transactions, menus must be created and assigned. At least one menu must be defined.

## Defining menus

Menu definition is based on SAP WM Mobile Data Menu setup but are managed separately in PreBilt to support Warehouse and Inventory Management installations. A menu consists of a list of items in sequence, which may link to another menu or a specific PreBilt transaction.

## Creating a menu

Menus compromise a list of items in sequence that are either reference another menu or a specific PreBilt transaction.

Enter edit mode in transaction */TCTM/WM\_CFG* by clicking 'Display -> Change', then 'New Entries'. From the Dialog Structure on the left, select 'Warehouses' to choose the target warehouse, and then select 'Menu' to create the menu.

<figure><img src="/files/h2GTggicSW1MXOg7yskc" alt=""><figcaption></figcaption></figure>

The following settings need to be maintained:

* **Dynamic Menu**: A menu grouping options on one screen (e.g., MAIN00 for the main menu).
* **Sequence Number**: Defines the display order (0–20).
* **Item Type**: Set to "Menu" (links to another menu) or "Transaction" (navigates to a PreBilt transaction).
* **Menu Text**: Free text for the menu name (e.g., "Inbound").
* **Menu/Transaction**: Links to another menu or a defined transaction code.
* **Icon**: Optional; select from SAP UI5 or Font Awesome. Defaults to a standard icon if left blank.
* **Subtext**: Additional descriptive text for the menu.

## Global/Master menus

Using wildcard warehouses in PreBilt simplifies menu management for organizations with multiple warehouses. By creating "Global" or "Master" menus in wildcard warehouses (e.g., `xx*` or `***`), a single menu can be shared across many warehouses with similar requirements, reducing duplication and maintenance effort.

Wildcard warehouses also allow flexibility for exceptions. Specific menus can be defined for warehouses with unique needs by placing those menus in higher-priority wildcard warehouses, ensuring tailored configurations without disrupting the overall structure.

For multilingual environments, wildcard menus streamline translation management. Since the menus are centrally maintained, translations only need to be updated once, ensuring consistency across all warehouses.

* The system searches menus in this sequence:
  1. Specific warehouse (e.g., ABC).
  2. Wildcard warehouses (e.g., AB\*, *BC, A*\*, etc.).
  3. Global menu (\*\*\*).

### Wildcard examples

<figure><img src="/files/97A1CxKIP2W4aZpzk8xG" alt=""><figcaption></figcaption></figure>

* **Example 1 (Warehouse TD1)**: If menu `MAIN00` is defined for TD1, it is used. If not, the system searches through wildcards (e.g., TD\*, \*D1) until it finds a match or defaults to \*\*\*.
* **Example 2 (Warehouse TA2)**: If TA2 shares a menu with other Type A warehouses, the menu is defined in a wildcard warehouse (e.g., T\*\*, TA\*, or \*\*\*).

## Assigning a menu to a user

{% embed url="<https://www.youtube.com/watch?index=8&list=PL74nuGSklShmOsKDpgus4wrEML55aCSkW&v=p6GPEJXkeaY>" %}

To access PreBilt transactions, users must be assigned to all warehouses they need to operate in using the SAP transaction *LRFMD*.

1. For each warehouse, add the SAP user IDs of users who need PreBilt access and assign them to their designated menu.
2. Ensure each user has an **active status** for at least one warehouse. This is required for their initial PreBilt login.

<figure><img src="/files/2flRY6A00Jmnp4X42scg" alt=""><figcaption></figcaption></figure>

This assignment in *LRFMD* applies to both PreBilt IM and SAP WM warehouses. There is no validation in LRFMD to check if a warehouse listed in */TCTM/WM\_CFG* is valid in the SAP Enterprise Structure configuration `SAP Customizing Implementation Guide → Enterprise Structure → Assignment → Assign warehouse number to plant/storage location`.

The active warehouse is used during login and for validating if the data entered in an app matches the user’s warehouse. The PreBilt menu displayed will be the “Main menu” defined for the user in the active warehouse in LRFMD.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.theconfigteam.com/prebilt-for-im-wm-strm/configuration-guide/menu-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
