‎2006 Jul 07 11:16 AM
hi guys.
i am writting an ABAP upload program to process payments made automatically. I need to know how to make my program pick the file on my C drive automatically without a user having to pick it up, that is, to do away with the use of a parameter.
Thank you
Regards,
Willard
‎2006 Jul 07 11:19 AM
Hi willard,
1. If the Z Program is to be run thru front-end,
then u can always
specify the path name along with the file name,
in the abap code itself.
(the path /filename can be stored or
constructed dynamically in a variable,
using some logic and prefix/suffix)
2. BUT,
if the program is supposed to run in the background,
then we cannot access front-end server,
neither its files.
(in that case, the files need to be stored on application server,
and we need to use OPEN DATASET, read, CLOSE DATASET )
regards,
amit m.
‎2006 Jul 07 11:21 AM
HI,
PARAMETERS: file(30) default 'C:
filename.xls'.
Regards,
Wasim Ahmed
‎2006 Jul 07 11:23 AM
It si beter if you have the fiel on the application server instead of the presentation server.
Chances are that if you run the program when the PC is shut down, then it will lead ro errors and more over gui_upload function module will not work in background.
But if you still want there is a work around for this.
There is a document with me. Give me your email id, i'll send it to you.
Regards,
Ravi
‎2006 Jul 07 11:41 AM
Hi Kanth.
Thank you for the information.
My email address is willardchingarande@yahoo.com
Best regards