Quick Question : Upload/Download text files
Hi,
can I use interMedia to upload text files on the Database. I don't need to query them for size or
whatever metadata but I'd like to retrieve them without any harm done :-)
I don't expect any problems but would still like to confirm.
Thanks,
Steve
Which interMedia object are you using to store the content?
No we don't do anyting to the content. You won't be able to use it easily within the database. You won't have any character set support. You will need to specify the mimetype yourself.
But it should work for raw storage and retrieval.
Similar Messages
-
How to upload a text file from a shared folder and provide an o/p
how to upload a text file from a shared folder and provide an o/p containing the details in each order in the text file
Hi,
Use <b>GUI_UPLOAD</b> to upload a text file from a shared folder.
Use <b>GUI_DOWNLOAD</b> to download data in a file on the presentation server or use <b>OPEN DATASET, TRANSFER</b> and <b>CLOSE DATASET</b> statements to download data to the application server.
Now, I hope the code for data fetching, if required, is already present in the report.
Reward points if the answer is helpful.
Regards,
Mukul -
Download text file from application server to client server.
Hi all,
I am facing a format issue while downloading text file from application server to the client machine.
The issue is that, say I have 6 to 10 lines in my text file in application server. but when i store it on the hard drive,
it shoes all the data in a single line. Where as i need to download data in same format as in application server.
Awaiting for your responses.
Regards,
JoseHi,
If we want to upload file data from the application server to the internal table, there is no function module or class static method which we can use, we must wirte the code by ourselves.
1. For the file data which has no seperator between field columns.
PARAMETERS p_file TYPE dxfile-filename.
START-OF-SELECTION.
OPEN DATASET p_file IN TEXT MODE ENCODING DEFAULT FOR INPUT.
DO.
READ DATASET p_file INTO gds_data.
IF sy-subrc <> 0.
EXIT.
ENDIF.
APPEND gds_data TO gdt_data.
ENDDO.
CLOSE DATASET p_file.2. For the file data which has tab separator between field columns.
DATA: gds_field_split type gts_data.
FIELD-SYMBOLS: <fs_field> TYPE gts_data.
PARAMETERS p_file TYPE dxfile-filename.
START-OF-SELECTION.
OPEN DATASET prf_file IN TEXT MODE ENCODING DEFAULT FOR INPUT.
DO.
READ DATASET p_file INTO gds_field.
SPLIT gds_field AT cl_abap_char_utilities=>horizontal_tab
INTO TABLE gdt_field_split.
LOOP AT gdt_field_split into gds_field_split.
gdf_index = gdf_index + 1.
ASSIGN COMPONENT gdf_index OF STRUCTURE
gds_data to <fs_field>.
IF sy-subrc = 0.
<fs_field> = gds_field_split.
ENDIF.
ENDLOOP.
APPEND gds_data TO gdt_data.
ENDDO.
CLOSE DATASET p_file.
Thanks & regards,
ShreeMohan -
How to upload a text file to a webpage and process it using a Java app?
Apologies if the question is off topic.
I would like a user to upload a text file to a webpage and have a pre-existing Java application I created process the text file and return the results to the user. The Java application is fairly memory intensive. It is expected that multiple clients will be uploading at the same time. What is the simplest or most efficient method to achieve this?
Thank youThis might help you to get started: http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml
As done in this example, processing the uploaded file in the JSP itself may not be a good idea though. You're better off handling it in your controller servlet or action class. -
How to upload the text file into smart forms
Hi Experts,
can any one tell me that how to upload the text file or html file to SAP Script form or smart forms
i have download the form info from SAPscript form.to text file.
now i want to upload the text file to smartforms.
is it possible ? if it is possible, then how can i do that ?
Thanks in Advance.
Regards,
Mani<b>For Scripts</b>
Go to SE38. Put in the program name RSTXSCRP. Execute it.
Mode(Export/Import) : Import.
Give the file name from which you want to upload and execute it.
<b>For Smartforms</b>
TCode : smartforms.
Give the form name.
Utilities-->Upload form.
Reward points if helpful.
Thanks
Aneesh. -
'No Upload Authorization' While Uploading a Text File from Multiple Select
Hi all,
The User is trying to upload a text file from Multiple Selection screen of a Query in BEx and it gives the error message of 'No Upload Authorization' (Error DB886).
In 'Logon data' tab of Tcode SU01, it has 'User' for 'User Group for Authorization check' for this User.
I could upload a text file from Multiple Selection screen with my User Id.
An idea about this error, PLEASE ?
Thanks,
Venkat.Hi Ron,
This User does not have the access to Tcode ST01.
The user executed Tcode SU53 immediately following the authorization failure to see the authorization objects. The 'Authorization obj' is blank and under the Description it has 'The last Authorization check was successful' with green tick mark.
Any further suggestions, PLEASE.
Thanks. -
Uploading a text file to FTP Loc
Hi,
Please guide me in the following query:
While uploading a text file to FTP Loc by using FM 'FTP_R3_TO_CLIENT', all the data is coming in one line. Please guide me how can i insert the new line character after the end of each line.
Please guide.
Thanks and RegardsHi,
When i make the character_mode = 'X', then no data is getting uploaded to FTP Loc, only a blank file is being created. Please guide.
Thanks and Regards
Edited by: MP Vashishth on Jan 12, 2010 10:34 AM -
Download Text file to Local drive from BSP Application
Hi Guys,
I am new to BSP, and I am doing a BSP application in which i want to download a text file to local drive C: on click of button. For that I am having a data in Internal table and Onclick event, in model class method DO_HANDLE_EVENT i want to download text file to local machine drive.
Can anybody provide me full code with all data declaration and all?
Your help would be appriciable. Thanks in Advance.Hi Jessy ,
You can download the file from BSP pages using the method
CL_BSP_UTILITY=>download.
Please follow the below mentioned steps.
1.Convert the text to a text table ie Internal table with a line type char255 or some others.
2.Convert the text table into a string.
3.Convert the string to XSTRING.
4.Download that XSTRING as text file using the method
CL_BSP_UTILITY=>download.
Parameters:
OBJECT_S - XSTRING data
CONTENT_TYPE = ' application/download'
CONTENT_DISPOSITION = 'attachment; file=test.txt'
RESPONSE = runtime->server->response
NAVIGATION = navigation
OBJECT_T
I dont have system to give a programatical explanation to u.
If you have any doubt kindly post.
Reward for every useful solutions..
Best Regards
Renga -
How to add a SPACE as suffix to the last field in the downloaded text file?
Hi Experts,
By using GUI_DOWNLOAD am saving the data(only 3 fields) in a text file on my desk top.
fine.
example current record1 : 010001 354.999 26.000
here, after 3rd field 26.000, immediately the cursor is jumping to next line in text file.
but, wanna a SINGLE SPACE after 26.000, say 26.000+space.
tried with CONCATENATE, OFFSETTING, but no use(may b am using incorrectly)
so, pls. suggect me, How to add a SPACE as suffix to the last field in the downloaded text file?
thanqSorry...Typo error...Too many in the last few days -:(
Wanted to say AFTER -:)
Do it like this...
FIELD1 TYPE XXX,
FIELD2 TYPE XXX,
FIELD3 TYPE XXX,
SPACE(1) TYPE C,
That way you should end with...
26.000+SPACE
Greetings,
Blag. -
Upload a text file of values when run a query
In SAP BW 3.x BEx Analyzer, we can import a text file with list of values for each variable.
For example, you want to run a report for certain product numbers, but say the prod no list is of 3000 no's long, it'll take the user forever to select and enter them in the report entry variable, so instead you upload a text file, with all this list of 3000 prod no's and run the report.
Does this option still exist anywhere for version 7.0? BI Analyzer is different than Bex Analyzer. Can anyone explain it? Thanks!Hi Qingbo,
Not using any standard solution (i don't know any in 3.5) you can use an variable of type exit. Inside the variable value calculation, you can use a flat file stored in the application server to read the values of the variable.
Another option is to store those values in a cube (mantained using flat file upload or a BPS layout) and use a replacement path variable using a query over this cube to run the query you need.
Hope this helps.
Regards,
Diego -
ITS - upload/download of files - getting java error on download
Hi, I'm working on ITS to upload/download some files, really simple files in ASC and i use cl_gui_frontend_services=>gui_upload it works fine, and to download the cl_gui_frontend_services=>gui_download that in R/3 works but on the ITS give an error.
Any idea or someone that happend the same?
Thanks in advance to all
Regards
Jaimethere is a dedicated ITS forum at Internet Transaction Server (ITS)
search that forum, this has been discussed may times.
Raja -
Uploading a text file from webi filter area as part of the query condition
Post Author: balasura
CA Forum: Publishing
Requirement : Uploading a text file from webi filter area as part of the query condition Hi, I am in a serious requirement which I am not sure available in BO XI. Can some one help me plz. I am using BO XI R2, webi I am generating a ad-hoc report, when I want to give a filter condition for a report, the condition should be uploaded from a .txt file. In the current scenario we have LOV, but LOV could hold only a small number of value, my requirement is just like a lov but the list of values will be available in a text file ( which could number to 2000 or 2500 rows). I would like to upload this 2500 values in the form of a flat text file to make a query and genrate report. Is it possible in BO XI? For Eg:- Select * from Shipment Where u201CShipment id = u2018SC4539u2019 or Shipment id = u2018SC4598u2019u201D The u201Cwhereu201D condition (filter) which has shipment id will be available in a text file and it needs to be loaded in the form of .txt file so that it will be part of the filter condition. Content of a .txt file could be this shipment.txt =============== SC4539 sc2034 SC2343 SC3892 . . . . etc upto 2500 shipment Ids I will be very glad if some could provide me a solution. Thanks in advance. - BalaHi Ron,
This User does not have the access to Tcode ST01.
The user executed Tcode SU53 immediately following the authorization failure to see the authorization objects. The 'Authorization obj' is blank and under the Description it has 'The last Authorization check was successful' with green tick mark.
Any further suggestions, PLEASE.
Thanks. -
Uploading a text file to a server using gprs connection and http method
Hi,
I want to upload a text file from my windows mobile device( WM 6.1 version) to a server using the gprs connection and the http method. The application runs on IBM weme j9 VM.
Anybody having done anything similar to this,please post a code snippet or provide helpful resources..
Thanks in advance.
Edited by: 803691 on Oct 20, 2010 3:50 AMPlease give a response..
I want to know whether there is a feasible solution for this in java..
PLease provide code snippets for establishing gprs connection in java.. -
How to upload a text file...
here iam developing a web application in that i need to upload a text file and that text file should converted in to binary file...
i have done the above things...by using just files concept...
for that i used file reader and writer objects and buffer reader and writer objects...and string tokenizer...now what i need is to upload a text file before converting it into binary fle....
iam using tomcat...
plz any one help me....You would use a FileReader for reading streams of characters from a text file, so you could open the file through a FileInputStream instead for a byte array. Look at the Java API for the read method.
Why do you need it in byte array format? -
Error while uploading standard text files for the Global rule set
Hi all,
As part of Post Installation Activities we have uploaded standard text files for business process, functions, risks and rule set obtained with the installable Software.
While uploading the text files we have uploaded the Basis Functions Authorizations first and then R/3 text files.
When we checked no actions are appearing in the rule architect under respective functions except for the BASIS Module.
Is this because we have uploaded the Basis functions before the R/3 text files?If yes, how to replace the Basis with the R/3 ones.
We tried to replace the Basis function authorizations by re-uploading the R/3 text files again but we got the below error message u201CORA-00001:unique constraint (SAPSR3DB.SYS_C004479) violatedu201D
Can somebody please help in this regard how to get the standard rule set in our system?
Thanks and Best Regards,
Srihari.KHi Sri,
you should upload first the static text files and the authorization objects first and then the GRC standard rule set files following the instructions of the SAP Configuration Guide available in Service Market Place under http://service.sap.com/instguides .
The GRC standard rule set contains files named Basis_functions_action.txt and R3_function_action.txt. The first one contains ONLY function definitions in terms of transcation codes for basis only, whereas the second one contains functions definition for basis AND ERP modules. The same holds for the *_function_permission.txt files. There are also function definition files for other SAP solutions such as APO, CRM, HR etc.
You can open a customer message and request a deletion script for the rule sets files you have uploaded already. After their application of this script all rule set data will be deleted from your database. If you have uploaded static text and authorization files correctly, you can then upload the GRC standard rule set files as needed again.
best regards,
Frank
Maybe you are looking for
-
How to set the language key in Sales document header text?
Hi Guys, When I am creating a sales order I found in the header text tab only three languages English, Thai and Ukranian are mentained.. So can you please tell me how to add/ delete more language keys in language key field in a step by step process??
-
5g 30gig iPod not working after update, Please Help!
I have a 5th gen 30gig iPod and a yesterday I tried to update it. During the update after it shut itself off and started back up the updater froze around 20%. After about two hours of waiting I forced the updater to quit (restarted it with menu/selec
-
Is there a way of recording component video output to a MacBook Pro
I have a Sony DXC990P video camera head i.e. it has no recorder. It has several output of which component video is regarded as the highest quality. Is there a way recording this output with a MacBook Pro? T5G5
-
Probably other people have a same problem since the new version updated. So much times in a day just freezout Firefox and than I have to restart. Even doesn't matter how much page I have opened. Sometimes 4-6 somtimes 10-12, but come on this is the N
-
Pls Send Some Good Doc's on Business Area and Cost Center
Dear Gurus, <b>Pls Send Some Good Doc's on Business Area and Cost Center. My mail id is [email protected]</b> Its Very Urgents. Regrds Mahesh