lunch FUNMDESA(TRTDESALLM) from script

Good morning. I need to launch the FUNMDESA function from script, indicating the component itmref.

I used the following syntax.

SAVACT = GACTION

PARBOUT(1) = GSITE
PARBOUT(2) = date$+365
PARBOUT(3) = '2' #allocazione dettagliata
PARBOUT(4) = '' #numero ordine
PARBOUT(5) = 'x' #articolo (lanciato o componente?)
PARBOUT(6) = num$(RES)
FLGEXE = 1

GACTION = "TRTDESALLM"
Call TRAITE_CHAR(VALBOUT,PARBOUT,"","FUNMDESA","DDESALLM",3,"XYFUNMDESA") From GTRAITE

GACTION = SAVACT

the sixth parameter, in the code indicated with the value 3, should govern the interaction with the user.

1:Direct
2:O/N
3:Dialogue
4:Autre
The required customization does NOT provide that the user must see the criteria mask.
So I'd replace the value 3 with 1. Unfortunately, the function goes into error "[M:DIA] class not found".

Is there another way to launch detailed deallocation from the components?

Thank you.
Parents Reply Children
No Data