Sales order Output Options: Save a file
I would like to save a data file on the SAP server when a sales order is saved. I have set up a message category in the output options of the PO (T-CODE NACE). My set up looks like:
Output Type: ZTEST
Medium: Special Function
Program name: ZZTEST
The program form looks like:
open DATASET '/tmp/ZTEST' for INPUT IN TEXT MODE ENCODING DEFAULT.
CHECK sy-subrc = 0.
transfer 'test OK' to '/tmp/ZTEST'.
CLOSE DATASET '/tmp/ZTEST'.
But this is not working.
Any suggestion please?