> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.0/untitled-1/orders/ext_orders_openmodule.md).

# EXT\_Orders\_OpenModule

Function to ask MSS to open the Orders screen to create a new order.

*Input parameters*:

* inDocumentType – Type of document to select automatically;
* inCustomerCode – Customer code to select automatically;
* inSaveAndClose – Close the windows after save;

*Output parameters*:

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
* outDocumentExercise – Exercise of the new document;
* outDocumentType – Type of the new document;
* outDocumentSeries – Series of the new document;
* outDocumentNumber – Number of the document;

{% hint style="info" %}
Note: If inSaveAndClose <> 1 the value of outResultcode will be always 0 and Exercise, Type, Series and Number will be empty.
{% endhint %}
