Save report in server directory programmatically

Hi Guys

I've implemented create report functionality. The following part is calling report creator:

Call ETAT("ZLETTREVIRR", "FILEPDF", "", 0, PROP, TPAR, TVAL) From AIMP3

Where "FILEPDF" destination - output file type pdf.
I also added FICHER for saving in the server directory: 
$ACTION
	Case ACTION
		When "FICHIER" : Gosub FICHIER
		When Default
	Endcase
Return

$FICHIER
	Local Integer YTEMP
	For YTEMP = 0 To 1
		If [M:AIP]TBPAR(YTEMP) ="filnam"
			 FICHIER =  filpath("tmp", "test","pdf",nomap(0),""):  infbox FICHIER
			 #Break
		Endif
	Next
Return

Subprog IMPRIME(NBPAR,PARAMETRE)
Value    Integer NBPAR
Variable Char PARAMETRE()()
Call EXEC(NBPAR,PARAMETRE)
End

Subprog EXEC(NBPAR,PARAMETRE)
Value Integer    NBPAR
Variable Char    PARAMETRE()()
End

On my local environment report creation working and file saving in the TMP directory but on the client-server file not created in the corresponding TMP directory.
So how can I solve this issue? 
Is it possible that ETAT not have access to the TMP directory to save file?