Salut,
Merci pour vos réponses. J'ai essayé de faire de la façon suivante en utilisant la commande open dataset.
Par contre, ça ne marche pas, ça me donne une erreur.
mon textarea contient comme value : filename, c'est que je veux stocker dans mon fichier de sortie.
<textarea value="<%=filename%>"></textarea>
Je lance ensuite un OnInputProcessing :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| data : filename type string.
data : fic type string.
data : texte type string.
DATA FNAME(60) VALUE 'myfile'.
case event_id.
when 'retour'.
when 'valider'.
concatenate '/transfert/'
sy-sysid sy-mandt
'/ZStockage/out/'
'myfile' into fic.
OPEN DATASET FNAME FOR OUTPUT in binary mode.
DO.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
transfer fic to filename.
ENDDO.
CLOSE DATASET FNAME.
endcase. |
Partager