# 2413 - Save Service

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2413-services-save-service
>
> Eventos EXT_2413 ao gravar um serviço, com os dados nas tabelas temporárias (SRV_Temp, SIT_Temp, etc.); o Replace usa outRunMSSCode.

2413 - Save Service

| Event | Extension action set | Description |
| --- | --- | --- |
| [Before ](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2413-services-save-service.md#before) | EXT_2413_1_Before | Will be executed before MSS saves the service, all information is stored in the temporary tables (SRV_Temp, SIT_Temp, SEQ_Temp, SCL_Temp, SMT_Temp and SLN_Temp); |
| [Replace](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2413-services-save-service.md#replace) | EXT_2413_2_Replace | Will replace MSS save service code, can be used also to create validations before MSS saves the service using the output parameter **outRunMSSCode**, all information is stored in the temporary tables; |
| [After](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2413-services-save-service.md#after) | EXT_2413_3_After | Will be executed after MSS saves the service; |

### Before

_Input Parameters_

* inServiceExercise – Exercise of the service (SRVEXR);
* inServiceSeries – Serie of the service (SRVSER);
* inServiceNumber – Number of the service (SRVNDC);

### Replace

_Input Parameters_

* inServiceExercise – Exercise of the service (SRVEXR);
* inServiceSeries – Serie of the service (SRVSER);
* inServiceNumber – Number of the service (SRVNDC);

_Output Parameters_

* outRunMSSCode – when replacing MSS module must return 0(zero), if working as validations can return 1 so MSS saves the service, 0 to ignore MSS code or -1 to abort the operation;

### After

_Input Parameters_

* inServiceExercise – Exercise of the service (SRVEXR);
* inServiceSeries – Serie of the service (SRVSER);
* inServiceNumber – Number of the service (SRVNDC);
