Download the file in Presentation server with TAB Delimited
Hi,
I have to download the data of the finla internal table in presentation servr.
The oup put file should be TAB Delimited. I can do the same with using LOOP.
Is there any class or FM to do the same so that the out put file can be TAB Delimited.
Sandeep
HI,
you can use the fm
GUI_DOWNLOAD
in that if you see the
WRITE_FIELD_SEPARATOR - the import parameter, you can use this
so that the fille will be downloaded with tab delimited.
Regards,
Venkatesh
Similar Messages
-
Download the file in presentation server while the program runs in backgrou
Hi,
Usually we will never download the file in presentation server while the job is scheduled in back ground.
But now i need to do that. I need to download the data in excel file and the same program is scheduling in background.
Can any one suggest how can we do this?
Thanks in Advance,
RaviHi,
There is an alternative provided by SAP. The program RFCEXEC has to be installed locally on the PC.
In SAP R/3 we have to define a destination link to your local PC to the RFCEXEC program. And in the ABAP program we have to invoke the connection by calling the FM RFC_REMOTE_FILE.
I havent tried this before but a detailed documentation is available in this link.
http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
Reward if useful
Regards
Shiva -
How to schedule a program for download a file to Presentation Server
hi all,
I need to schedule a program which will download a file to presentation server. How can i handle this or is there any other to download a file during scheduling?
Points will be rewarded
Thanks in advanceHi Jayasree,
You can download your file to application server in background scheduling.
In your program use OPEN DATASET command for achieving this.
How ever, as far as i know, it is not possible to download the file to presentation server in background job.
regards,
G@urav. -
Download the file to apllication server
hai all,
My requirement is i need to download the file in application server and i need to validate the file path that file already exist or not if exist it has to give the error message
How can i do that.
Pls send the fn modules are methods which is suitable for my requirement with code.
I will reward the points,
Thanks in advance
LaxmiHI,
report zexternalfile .
tables : zzpublisher,
sscrfields.
data: it_publisher like standard table of zzpublisher,
wa_publisher like zzpublisher.
select * from zzpublisher into table it_publisher.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'C:\externalfiles\kamal.XLS'
FILETYPE = 'ASC'
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_publisher
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
<b>Reward useful points,</b>
siva -
How to get the files in presentation server while uploading?
how to get the files in presentation server while uploading?
give me the function module nameHi,
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES. "Prsnt Srvr
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = P_FILE
MASK = ',..'
MODE = '0 '
TITLE = 'Choose File'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5. -
Gui_download function to download the file in application server in bdc
Can we use gui_download function to download the file in application server in bdc?
Regards,
pandu.for downloading the file on application sever you use the concept of Dataset. GUI_DOWNLOAD is for presentaion server.
regards
Abhi -
Downloading a file on presentation server
Dear All,
I have a requirement where in I need to run a custom report in the background (since it gives a short dump for max permitted time when run in foreground). However, I need to download a file with report output on the presentation server (user's desktop). Can you please help me know how can I download a file on user's desktop by running the report in background?
Thanks & Regards
SujayHi Suraj,
I had also researched a lot for this requirement for my project. This requirement, to download the file to a local system by running a job cannot be done.
But there is a work around for this requirement, you can write a program to download the data to a "AL11" active directory in your the server( using an open dataset ). This program can be executed in background too, since we are writing the file to the server directory. If its a normal .txt file, you can ask the user to check it in AL11 or you can ask the basis team to copy that file from the active directory and send it to the user.
I think this will help you a little bit.
Regards
Maneesh Chandran -
Download Language file on Presentation Server.
Hii
I want to download a file which is language specific.Means the data in the internal table is in Login Language .I want to download the data as present in the internal table to a local file .
Please suggest .
Ajitabh PradhanHi,
You can do that using the GUI_DOWNLOAD. but at the same time , whatever thaelogon language is that should be installed in your system, then only the proper file will be downloaded ..
Regards
Sudheer -
About download the file into application server
Hi,
I have created the HR report for employee details like wbselement,manager details,
department,desg,etc. and this output will be downloaded to application server.
For this,am using open dataset and close dataset.
what's my problem is , when i am trying to download the details in Appln server, it exceeds the maximum line size and some of fields are truncated. how to avoid this?
Thankx,
SivasamyHi,
While you download the Sata into an application server, you can see upto 254 cahrecters only, you can not see more than then, but if you download the smae into an internal tabel then it will download all the data ...
Regards
Sudheer -
FM to get the details of the file on presentation server
hi friends ,
i need to read the files on the front end in c:\ directory which start with hw.
is their any function module to get the details of the files like name of the file .
as for application server we have "EPS_GET_DIRECTORY_LISTING".
thank you,
kat.Use method CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
CALL METHOD cl_gui_frontend_services=>directory_list_files
EXPORTING
directory = 'C:\'
filter = 'hw*.*'
changing
file_table = t_file_table
count = w_count.
Edited by: Swastik Bharati on Nov 3, 2008 7:53 AM -
Issue in downloading the file to application server (background)
i am downloading the PIR records to the application server.
the program is running fine .
i m using background coz i m downloading large no of records (>5000)
my actually target is 28000 records. we are spliting it up into atleast 7000 records at a time.
for 1000 records , it is taking 217 secs (this is fine)
for 2000 records , it is taking 1647 secs (not satisfactory)
for 5130 records , it is crossed more than 10647 secs still running (not acceptabe)
why is it increasing in expotenial of time for increase in the records
why not ~1000 sec for 5130 records...??
somebody help me , the hav check the extended check and fine tuned the code.
it is a modification of standard program RM06IBIE for download of PIR records.
regards
venkat.Hi,
It is definitely because of the poor performace in the code only.
Try using, FOR ALL ENTRIES, SORT BY key fields, DELETE ADJACENT DUPLICATES from the internal table COMPARING key fields, etc.
If you have already used all the possible ones, then check the table from which it is picking the data.
Whether they are using the primary key fields in the where condition, if they are using some other fields, then go for an option of secondary index if required.
Regards,
Santhosh. -
Downlaod file in Application server in tab delimited format
Hello,
Any sample code on the above Mentioned topic or any help plz....
Thanks in AdvanceDear Raja,
first get your data in one internal table. Also you need to have path to your application server. then use below code to download same.
*p_file - File name with path to application server.
*itab - internal table with your data.
OPEN DATASET: P_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT .
LOOP AT ITAB.
TRANSFER ITAB TO P_FILE.
ENDLOOP.
CLOSE DATASET: P_FILE.
If any more clarification needed do mail me.
Raj -
Error in Reading the file from Application Server
Hi,
This Error is regarding one of my interface, the issue is that , the interface reads data from file in bunch suppose 100 records at a time , then processes those records and once finished go for next 100 records .
Noe the error is that , the process takes place till 500 records correctly but when it went to fetch for next 100 i.e fom 501 to 600 it selects only 501 to 583 .
this records has been processed successfully but the job finished there only
but the file contains 788 records
When the same file has been run in other server it ran successfully without such error .
Can you please suggest how to resolve the issueHi,
Try to manually download the file from application server using standard transactions, and than check how many records are you able to download from app. server.
I guess there might be something wrong with the format of 583rd record, which makes sap assume that the file has come to an end.
Hope this will help you.
Regards,
Vinit... -
Problem while dowloading the file from Application Server
Dear Experts,
I am facing the Problem while downloading the file from Application server.
We done the automatic function while saving the invoice, this will create an idoc, and this idoc is written in the Application Server.
I am running the Transaction AL11 and select the record, and from menu --> List, i am downloading into TXT format.
But for some segments, the length is long, and so the last 3 to 4 fields values are not appearing in the File. Even though i am unable to view the values in the file before downloading. But i can view in IDOC.
Please help me to solve this issue.
Thanks & Regards,
Srinibut our user will use the Txn. AL11 and they will download from there
Educate the user On a serious note, tell him this is not how data from app server should be downloaded. You can ask him to talk to the basis team to provide him access to the app server folder where the file is being stored.
I can set the Variant and put this in background, But always the file name will be change, Like we use Time stamp in the File name.
You can't automate this process by scheduling in BG mode. This is because the in BG mode you can't dwld the file to presentation server.
Hope i'm clear.
BR,
Suhas -
I want to transfer all the files from source server with respective directory to designation server with respective directory (designation server - oracle reside server).
Is it possible to ftp from one server to another server(designation server - oracle reside server) through pl/sql. these two servers are independent & unix server.No ... The package mentioned in
http://www.oracle-base.com/dba/miscellaneous/ftp.pks
this works for across the server i.e. transfer the files from one server to other (it is basically ftp) ..
So it is NOT correct that this code transfer the file between two location & with in server..
Maybe you are looking for
-
What happens to the vm failed in HA
Hello, If an ESXi server fails, the VMs hosted on it will go down or at least become unreachable but VMware HA responds by restarting the VMs on other hosts in the cluster that survived the failure. My question is when only a single VM fails instead
-
Can't find the wine menu anymore :(
Hi, I've been playing around with my Wine menu, and somehow managed it, to remove it. Unfortunately I can't get it back again now . Beforehand every windows setup that has installed start menu entries has created its entried in the "Applications -> W
-
Synchronization to another computer
Hi, I have 2 PC's with iTunes and 1 Ipod. I would like to use 1 PC as my "music server" and synchronize this library to my iPod and to the other PC. But I don't want to copy all the songs of my main music library (for disk space problem) So It works
-
Creating script to split wav files
I'm using AA3 to record my vinyl collection for burning on to CD & I also use mixedinkey to ascertain the key for each track. Quite often the keys can be different at the beginning & end of each track so I want to create a script that will save the 1
-
It's very annoying.