Skip to Content
author's profile photo Former Member
Former Member

Function Module for Data upload in background

Hi,

I want to upload data from a flat file in background . I tried the function module ws_upload but its giving an error when program is executed in background .

I am working on sap 4.6b .

Can any one help me alternate function module or any other way by which i can upload data in background in this version of sap.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 04:25 AM

    Hi,

    You CANNOT use any front end application func. modules to be executed in BACKGROUND. It will give an error.

    Use OPEN DATASET to upload from the app.server.

    Regards,

    Subramanian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 04:30 AM

    hi...

    you can upload your file on application server.Then you can use open dataset to upload data from this file on application server and schedule this program in background.

    i have done a similar kind of program.

    you can try this method.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Shelsa,

      Thanks for reply.

      Can you give me details of your coding steps .

      Like fm used to upload data to application server and later.

      And if possible any other methods because i dont want to use dataset in my program.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 04:15 AM

    Hi

    UPLOAD and WS_UPLOAD are used in older versions.in the new versions of SAP GUI_UPLOAD is used for uploading data.this is well know to every one.

    GUI_UPLOAD Replaces WS_UPLOAD. Upoad file from presentation server to the app server

    Regards

    Lakshman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sujit,

      GUI_UPLOAD and WS_UPLOAD function module doesnot work in background,if you want to upload data in bakground than you need to to transfer file to application server,and after you need to use DATASET(Open,Read,close).

      Thanks

      Ankur Sharma

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 04:18 AM

    Use tcode SM37 to schedule job in background.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 04:18 AM

    Hi Sujit,

    You can use the FM ARCHIVFILE_CLIENT_TO_SERVER to upload file from Presentation Server to your Application Server.

    Hope it helps.

    Reward with Points if helpful.

    Regards

    Hemant Khemani

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi hemant,

      my main concern is that i have to upload a file after every 10 minutes say . So my main concern is to upload this file very frequently so i cant upload this file in forground i have to use some other technique. What right now i have used is i have created a program that executes in foreground and submits the program after every 10 min using the function module . This is what you call a jugad . but i want a permanent solution.

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.