API RF SCE_GP_007

  Version ACE : 1.3

Package : Standard

gnc_up_suppression_op

Nom de la gnc : gnc_sce_gp_007

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

Cette API permet de supprimer une ligne d’OP.

API imbriquées : aucune.

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

RAS.

Paramétrage (PPE)

RAS.

Processus, contrôles et règles de gestion

ETAPE DESCRIPTION DU PROCESSUS
 

Lire le mouvement dans LMVTSTK.

Si le champ lmvtstk.statut est égal à ‘3’ :

appel de « gnc_valid_mvtstk_logis » :

  • Val.qteval_uc = qteunt
  • Val.dispo = 0
  • Val.majol = 1

Sinon :

Lire le mouvement d’entrée associé (sensmvt = ‘E’),

Appeler « gnc_up_non_livre » pour l’objet et la quantité totale de l’objet.

Détail :

Read the stock movement data (LMVTSTK table) with the input parameters (typdep, sigdep, sensmvt, typmvt and idmvt).

If the movement is not found, the API returns an error message ‘ELT_PASTRO’ and an error code 0.

If the movement is addressed (lmvtstk.statut=3).

Call the function gnc_valid_mvtstk, as so to delete the stock movement.

If the deletion does not succeed, the API returns an error code 0.

If the movement is not addressed.

Read the stock movement data (LMVTSTK table) with the input parameters (typdep, sigdep, typmvt, idmvt and movement direction of type ‘E’ (sensmvt=’E’)).

If the movement is not found, the API returns an error message ‘ELT_PASTRO’ and an error code 0.

Read the stock object data (lobjstk table) with input parameters (typdep, sigdep) and with the identifier of the found movement (lmvtstk.idobj).

If the stock object does not exist , the API returns an error message ‘ELT_PASTRO’ and an error code 0.

Call the API gnc_up_non_livre, as so to treat the non delivered PU.

If the function does not succeed, the API returns an error code 0.

Cas d'erreur

CODE PARAMÈTRES DESCRIPTION
0/ELT_PASTRO lmvtstk The stock movement does not exist.
0/ELT_PASTRO lobjstk The stock object does not exist.
0   The execution of the function gnc_valid_mvtstk is not successful.
0   The execution of the function gnc_up_non_livre is not successful.

Paramètres en entrée

NOM DESCRIPTION FORMAT OBLIGATOIRE/FACULTATIF
typdep Type dépôt Char (3) O
digdep Sigle dépôt Char (12) O
typmvt Type mouvement Char (18) O
sensmvt Sens mouvement Char(1) O
idmvt N° mouvement Long O

Paramètres en sortie

NOM DU PARAMÈTRE TYPE FORMAT TAILLE REMARQUE
Aucun.