Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.