Skip to Content

How to Upload a file in a Batch Mode ?

Hi, I want to upload a Comma separated value File via RFC to a BW system.

The scenario is the following: From a Portal server i call the BAPI using JC0/JCA.

The problem is that GUI_UPLOAD does not support a BATCH job. At least i get a error when calling the BAPI: Exception condition "NO_BATCH" raised.

How do i upload a file in a Batch Mode ?

Thanks,

Kai

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Oct 17, 2005 at 07:25 PM

    Thanks for your answers, but i need more clarifications.

    I thought there i no difference between Function GUI_UPLOAD and CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD ?

    Regarding the DATASET statements:

    From which location can the BW system read that ? only from its own appserver or other hosts as well ?

    Thanks,

    Kai

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Kai Unewisse

      Hi Kai,

      Sorry for the delay. The delay was in trying to get to talk to the Basis team.

      Here is how we have it.

      On the message server of every instance, there will be a SAP admin id that is '<SID>ADM' or 'SAPSERVER<SID>' where SID is the system ID. We use the '<SID>ADM' user id.

      On the external NT fileserver, there has to be a user id created on the NT box with the same SAP admin id and this id on the NT box should have access rights do Read/Write.

      All of these have to be in the same domain (or different domains that have trust access to each other).

      So, there is basis,network and security groups involved.

      Once these are in place, we can have file access to the external fileserver box.

      We use logical filenames at our place (Transaction FILE).

      This makes all the file transfer locations well organized and manageable.

      Hope that answers your question regarding this.

      Regards,

      -Ramesh

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 10:20 PM

    Did you try using methods from class

    "CL_GUI_FRONTEND_SERVICES"

    The only way that I know of to upload in batch mode is to

    use the OPEN DATASET/READ DATASET/CLOSE DATASET

    statements and the location of the file cannot be on the

    presentation server.

    Hope you can do that.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2005 at 03:42 AM

    Can you upload the file manually to file server and use that file in the program using dataset commands.

    The files cannot be uploaded in background processing.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2005 at 12:18 AM

    HI thanks for the answer.

    I will try it and if this solves the problem, i will reward the points....

    Kai

    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.