That's because WS_UPLOAD uploads a file from the Presentation Layout (The User's PC). When something runs in the background, there is no connection to a prestionation layer. From the background you can access the file system of the application server your SAP system is running on. Often this might mean mounting a remote file directory to your SAP Server or doing a FTP on the file after it is written. Look at the help on OPEN DATASET, TRANSFER TO DATASET, and CLOSE DATASET for examples of writting to file in the background.
Add comment