# EXT\_Menu\_OpenModule

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/menu/ext_menu_openmodule
>
> EXT_Menu_OpenModule abre um módulo do MSS pelo seu código (CLI, ENC, VEN, REC, KAL…) e devolve a chave do documento criado.

Function to open a MSS module, can be specified a parameter with, for example, a document type code, a customer and a delivery location code.

_Input parameters_:

*   inModuleCode – Code of the MSS module to open, can be one of the following codes:

    \
    CLI - Customers

    ART - Products

    ENC - Orders

    VEN - Sales

    REC - Receipts

    CTG - Catalog

    STK - Stocks

    IGC – Transport document

    ENT - Deliveries

    DOC - Documents

    DIA – Diary information

    VIS – Visit reports

    OLR – Online Requests

    POS - Mobile POS

    DSB - Dashboards

    DES - Expenses

    EQP - Equipments

    PRP - Prospects

    AGD - Agenda

    DEP – Bank Deposits

    FRN - Suppliers

    SRV - Services

    PPT – Prospection (only Tablet)

    INQ - Inquiries

    RPT – Reports (only Tablet)

    KAL – Kalipso function<br>
* inModuleParameter – If not empty must be a document type code, or if inModuleCode=KAL, the function code to be executed;
* inSaveAndClose – To close the module after save (only used in documents inModuleCode=ENC or VEN or REC);
* inCustomerCode – Code of the customer to select automatically;
* inDeliveryPlaceCode – Code of the delivery place to select automatically;

_Output parameters_:

* outResultCode – 0 – OK / -3 – Error or user canceled
* outDocumentExercise – Exercise of the document created
* outDocumentType – Code of the document created
* outDocumentSeries – Series of the document created
* outDocumentNumber – Number of the document created
