‎2008 Jun 19 5:13 AM
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.
‎2008 Jun 19 5: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
‎2008 Jun 19 5: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
‎2008 Jun 19 5:28 AM
Hi Lakshman ,
My problem is not the function module. I am aware that ws_upload is now old. But the problem is sy-batch check which is used in all this upload function modules either it be ws_upload , gui_upload or upload. all these function modules doesnot work in background.
Is there any other way out.
‎2008 Jun 19 5:33 AM
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
‎2008 Jun 19 5:18 AM
‎2008 Jun 19 5: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
‎2008 Jun 19 5:34 AM
Hi Hemant,
Thanks for your reply . But i am afriad your solution suggested will not work as the function module you suggested uses WS_upload in its coding so this will again give error in background.
‎2008 Jun 19 5:39 AM
Hi Sujit,
You can use the FM specified by me to put your file on the Application Server and then you can use OPEN DATASET statement in SE38 program and schedule that to run in background.
Regards
Hemant Khemani
‎2008 Jun 19 5:48 AM
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.
‎2008 Jun 19 5: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
‎2008 Jun 19 5:32 AM
Hi Subramainiam ,
thanks for reply .
Isnt it possible without using dataset.
Due to some restrictions i dont want to use datasets.
‎2008 Jun 19 5: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.
‎2008 Jun 19 5:39 AM
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.