Skip to Content
author's profile photo
Former Member

Call Function WS_UPLOAD error

hi,

need help. i called the function WS_UPLOAD from a custom report. and ran the report on both foreground and background. but i received above error messsage while running on the background. running the same program on the foreground don't yield any error messages.

thanks,

rico

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jan 27, 2004 at 05:26 PM

    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
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Mar 17, 2004 at 12:52 AM

    In the code you will find this:

    IF sy-batch = 'X'.

    RAISE NO_BATCH.

    ENDIF.

    So that's that!

    Add comment
    10|10000 characters needed characters exceeded