API RF SCE_AF_CHG

  Version ACE : 1.4

Package : Standard

Sous-programme Basic : gnc_rf_affect_miss_chg_egx

Fonctionnalité :SCE Mobile
Schémas d’entrée et de sortie : voir en fin de document.

Cette API permet d'affecter une mission RF de chargement à un opérateur RF.

API imbriquées : aucune.

Contraintes et limites de fonctionnement (hors périmètre)

RAS.

Paramétrage (PPE)

GESMIS -

Cas d'erreur

CODE PARAMÈTRE DESCRIPTION
3 / ELT_PASTRO lopr, typtie, sigtie, operateur The RF operator is not found.
2 / RFEXP01001   The RF loading mission is not found.

Détail de l'API

Read the RF operator data (LOPR) with the input parameters (typtie, sigtie, operator).

If the RF operator does not exist, the API returns an error code 3 and an error message «ELT_PASTRO».

For each loading mission (LMIS.ltypact = 9) affected to an operator (LMIS.statut =5) for the expedition tour (LMIS.typentite = 2 and LMIS.identite = idtrn)

If the mission is found.

Call the functon gnc_rf_controle_valid_mission (with the found mission data), as so to control the validity of the mission.

If the mission is not valid.

Delete the mission.

If the mission is valid and the ID of the operator assigned to the mission (LMIS.utimis) is the same as the operator ID from the RF operator data (lopr.idopr).

The mission is considered as found.

If the mission is not found.

For each created (LMIS.statut = 1) loading mission (LMIS.ltypact = 9) for the expedition tour (lmis.typentite = 2 and lmis.identite = idtrn)

If the mission is found.

Call the functon gnc_rf_controle_valid_mission (with the found mission data), as so to control the validity of the mission.

If the mission is not valid.

Delete the mission.

Else

The mission is considered as found.

If the mission is not found.

For each blocked (LMIS.statut = 2) loading mission (LMIS.ltypact = 9) for the expedition tour (LMIS.typentite = 2 and LMIS.identite = idtrn)

If the mission is found.

Call the function gnc_rf_controle_valid_mission (with the found mission data), as so to control the validity of the mission.

If the mission is not valid.

Delete the mission.

If the mission is valid and the blocking starting date is less than the system date.

The mission is considered as found.

If the mission is found.

If the activity is changed (LOPR.idact != LMIS.idact).

Save the mission data (LHSTOPR).

Modify the operator context (LOPR).

Assign the mission to the operator (LMIS.utimis = operator, LMIS.statut = ‘5’).

Modify the mission with the used equipment (LMIS.prfequip = LOPR.prfequip, LMIS.idequip = LOPR.idequip).

Call the function gnc_rf_memorise_utimis, as so to store the operator assigned to the mission in the lmis parameterised field refered by the GESMIS.D1 if presented or in the first parameterized field otherwise.

Else.

The API returns an error code 2 and an error message “RFEXP01001”.

Paramètres en entrée

NOM DU PARAMÈTRE FORMAT OBL O/N REMARQUE
Typtie Char(3) O Third-party type
Sigtie Char(12) O Third-party ID
Idtrn Number O Expedition tour ID
Operateur Char(8) O Operator

Paramètres en sortie

NOM DU PARAMÈTRE FORMAT REMARQUE
ParamOut1 Number Created mission ID (LMIS .idmission)