To remove Double quotes while uploading a file
Hi All,
I have a requirement, where i have to Remove double quotes after uploading a file.
I am uploading the file using GUI_UPLOAD.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = v_file
FILETYPE = 'ASC'
has_field_separator = '"'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = it_tab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT it_tab INTO wa_tab.
TRANSLATE wa_tab-line USING '" '.
SHIFT wa_tab-line LEFT DELETING LEADING space.
MODIFY it_tab FROM wa_tab.
CLEAR wa_tab.
ENDLOOP.
The above logic is replacing '"' with a blank space. I dont want this blank space which is generated. The double quote should be removed and the next character should shift to left in place of Double quote.
Note : I am on 4.6C and it doesnt have replace all occurrences of.
How to achieve this ?
Thanks in advance,
Best regards,
Prashant
Hi Prashant ,
There is one simple method for it . When you find <b>"</b> in you table , you shift the previous data into other tab (table2) . Continue searching and when you get next <b>"</b> again shift the data to table2 .
Hope this helps .
Edit : If you dont want to use another table , you can use function TRIM . To know more about it click
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/a8/2afd3f2d14e869e10000000a155106/content.htm">TRIM</a>
Message was edited by: Shounak M
Regards ,
Shounak M.
Message was edited by: Shounak M
Similar Messages
-
Removing Double Quotes while uploading CSV file in APEX
Whenever I upload a CSV file using data load option in APEX there are values which get uploaded in Double Quotes.
e.g Oracle Polska Sp. z o.o -----------value like this gets uploaded with Double Quotes."Oracle Polska Sp. z o.o"
How can I overcome this problem? I am using Apex 4.2.Did you specify the "Optionally Enclosed By" option with the double quote sign?
-
How to give the unix server path while uploading a file
Hi All,
Am very new to this file operations in Oracle.
here i have a requirement like we need to upload table to unix server using oracle. I have read about File operations in Oracle but in that i did not understand one point like how and where to give the unix server path .. like username@servername and Path where that file needs to be stored.
I have googled for file operations in oracle.. in that there are asking me to create one object like as follows
Create or replace directory rtvms2 as 'MYDIR:'
The MYDIR: i need to use while uploading the file .
UTL_FILE.FOPEN('MYDIR:','Report.txt','W');
My Question is how and where should i give my unix server information .?
and how and in which step oracle connect to unix server and upload the file.?
Can any one please help me.
Thanks
Sreeyou're close...
(this example shows it for a windows server, but you just replace the windows directory path with a unix server path)
CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
Then, grant permission to the users who require access e.g....
GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.
For security reasons, Oracle requires a directory object and it is that object that points to the actual path (it's up to you to make sure that path is valid and exists on the operating system). Then the object can have read and write permissions given to relevant database users as appropriate i.e. you may want one user to only be able to read files from that location whilst another user can read and write. You still need to ensure operating system level permissions exist for that path for the operating system user under which oracle was installed (on unix that's likely to be an "oracle" user). -
UCCX 8.0 "Error while uploading the file. Please try again."
I was on UCCX version 8.0.2.11003-10 and i was able to upload an script with the same name as an old one (overwrite).
Upgrade to UCCX 8.0.2.11004-12 and now I am receiving the error: "Error while uploading the file. Please try again."
There was a bug CSCth09248 that affected version 7 but supposed to be fixed on version 8 and was fixed on an earlier version. But after moving to a minor patch, problem came back...
Any ideas?Hi,
I belive the bug was initially opened to fix the issue when uploading script fails when using wizard to configure uccx.
But now they have re-opened the same bug instead of opened a new one for the issue that you have.
I looked at the case attached to that bug, case # 617145545. Below is the problem description that customer has which is same as yours and this bug has been re-opened to fix this particular problem.
When I tried to upload a modified script with an existing file name, the message "script file already exists.
Overwrite existing script file, continue?" comes up and when I select "OK" then,
it dispaly Status "Error while uploading the file. Please try again".
If I remove an existing file first, it will upload fine.
Using UCCX Admin 8.0.2.11004-12 and UCCX Editor 8.0(2.0).
Thanks
Ankita -
Error while uploading the file from Allpcation server in LSMW-7th step
Hi Experts,
what should be the specific CODE PAGE should be maintained while uploading the file from application server in LSMW-7th Step
Thanks in advance,
KSRHi
I mean that there is any seperate CODE PAGE which comes at the bottom of screen while uploading the file from the application server in 7th step.
Is there any specific CODE PAGE to be maintained...
Thanks in advance
Oarsk -
Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API
Hi All,
In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
Error within screenshot are : status Code : 409
status Text :conflict
For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
my code is
function PerformUpload(listName, fileName, listItem, fileData)
var urlOfAttachment="";
// var itemId = listItem.get_id();
urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
// use the request executor (cross domain library) to perform the upload
var reqExecutor = new SP.RequestExecutor(appWebUrl);
reqExecutor.executeAsync({
url: urlOfAttachment,
method: "POST",
headers: {
"Accept": "application/json; odata=verbose",
"X-RequestDigest": digest
contentType: "application/json;odata=verbose",
binaryStringRequestBody: true,
body: fileData,
success: function (x, y, z) {
alert("Success!");
error: function (x, y, z) {
alert(z);Hi,
THis is common issue if your file size exceeds
upload a document of size more than 1mb. worksss well for kb files.
https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
or try the below method
https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
Please remember to click 'Mark as Answer' on the answer if it helps you -
Error while uploading .xml file for Customer/Vendor List for Italy
Hi All,
We are facing problem while uploading the .xml file in DMEE transaction for the new Customer/Vendor List for Italy.
We have followed the entire process given in the OSS Note(1090857).
We have SAP 4.6c and followed the below steps:
1. Created ID-FI-IT Development class
2. Added domains
3. Added Data elements
4. Tried to upload the given .xml file and got any error saying ".xml file could not be interpreted".
Also there is a .SAR file mentioned to upload if we receive any errors while uploading .xml file.
Tried uploading the .SAR file also. STill we are recieving the same Error.
Can any one of you help us out.
Thanks in Advance.
RameshOk, we upload .SAR file in this way:
1. unpack .SAR file with SAPCAR.EXE program. Yuo obtain 2 files
R492445.P9C and K492445.P9C
2. put K492445.P9C in directory \SAPMNT\TRANS\COFILES and put R492445.P9C in directory \SAPMNT\TRANS\DATA of your system (DEV, TST or PRD)
3. Use Tx STMS. If You want create DMEE tree in DEV system, go to DEV import queue. Choose menu Extras | Other requests | Add. Insert P9CK492445 in Transp. request field.
4. Import the request. This creates the DMEE tree. You don't need ti upload XML file after. You can see the DMEE tree created with Tx DMEE and inserting
Tree type UMS1
Format tree IT_CUST_VEN_LIST
5. after continue follow the note
I hope this help you
Roberto -
Multiple languges used while uploading a file using java appn
Hi everybody,
i have a problem with multiple languages , let me clear you the question, i were developing a java application using spring ,hibernate frame works, so i got a problem while uploading a file with chinees language or other
it was saving with different format other than chiness in the database, can any one help me out ... i need the exact language when i upload the files
thank you very muchSanthosh_25 wrote:
actually i have asked the users for the languages... they told some languages like chinees,japanese,german,french,koriean,spanish,italian,dutch,russsian,englishThat isn't deterministic.
Again, this is pointless unless it is deterministic.
But lets say that each language group only uses a single character set.
And each language group stores their files in a specific directory (or server).
That allows you to deterministically identify the character set of the file.
So you can then read each file by using a text reader from the java.io package with the correct encoding set.
This works because it is determinstic.
The following will NOT work.
You have a directory with a bunch of files with completely random content in different languages. There is NO way to write a program that will correctly handle those.
So, again, the first step before doing anything in java is figuring out how you will differentiate the different files. -
Error message while upload excel file (with macro) to sap (iw28)
While upload excel file to sap through iw28, i get error message (vb)
u2022 i have to say that the excel file contain macro , with out the macro , work fine .
u2022 The error display just in refresh command.
the error message :
Public Sub ALV_CUS_Exit()
Dim objs As ChartObjects
Dim obj As ChartObject
Dim sheet As Worksheet
Dim r As Range
For Each sheet In Sheets
Set objs = sheet.ChartObjects
For Each obj In objs
Set r = Sheets("RawData").UsedRange
obj.Chart.SetSourceData Source:=r
Next obj
Next sheet
End Subhi,
This is releated to the ABAP coding...There might be some ouput problem in the Abap list viewer...Pls check it with the ABAP consultant...
Regards
Priyanka.P -
How to get full file path while uploading a file in flex Applications
How to get full file path while uploading a file in flex applications.
FileReference Object is giving file name and other details but not the actual path.
Is there any workaround to to get the file path?.
ThanksWhy not ask in the Flex forum; it is more likely that someone over there knows.
-
Jlaunch process using High CPU, while uploading the files in XI system
Hi,
we are facing jlaunch high cpu usage problems, while uploading the files of more than 25MB, in XI system. PIAFUSER is running on PRIV mode and huge java core dumps and heapdumps are getting generated in server0 node
error message-> - Out of memory situations running XI
Exception thrown [Fri Sep 30 13:57:27,855]:Exception thrown by application running in JCo Server
java.lang.Exception: java.lang.OutOfMemoryError
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:237)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
first , we tested in Quality system, where,we are getting same problems as well.
SAP Note 146289 - Parameter Recommendations for 64-Bit
increased em/intial_size_MB from 512MB to 2 GB and em/global_area_MB value from 96 to 256
SAP Note 723909 - Java VM settings for J2EE 6.40/7.0
we added some jvm parameters in confitool
-Djava.awt.headless=true
-XX:+UseParNewGC
-XX:+PrintGCTimeStamps
Present JVM values in XQ1 system..
Xmx value 3072
xms value 2048
xmn value 1000
we have tested JCo RFC's AI_DIRECTORY_JCOSERVER and AI_RUNTIME_JCOSERVER , connection test was OK.
We increased parameter com.sap.aii.ib.client.jnlp.j2se.maxheapsize from 512m to 800m
Please advice me.. how to proceed..
regards,
balaramHi Balaram,
Kindly review below note, Hope it suits.
716927 - Overview of AIX JVM for NetWeaver 2004 and 7.0 (2004s).
Regards,
Mani -
(409) Conflict Error while uploading the file into Sharepoint library
Getting the below error while uploading the file into Sharepoint library.
(409) Conflict. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl,
Stream stream, String etag, Boolean overwriteIfExists
I have used the below code:
ClientOM.File.SaveBinaryDirect(clientContext, "/Shared%20Documents/NewDocument.pptx", memoryStream, true);
Thanks in advance.May be issue is with path.
https://server/ should be there instead of
subsite path(https://server/path/path)
in the client context
Check the below link
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fbb38b10-1127-48a6-a65f-0301edd766c4/the-remote-server-returned-an-error-409-conflict-error-while-uploading-files-to-sharepoint?forum=sharepointdevelopmentlegacy -
Error Raised while uploading Excel file to SAP
Hi All,
I am getting error while uploading excel file into SAP using the function module 'TEXT_CONVERT_XLS_TO_SAP'.
Error Message is UX(893) - 'Excel file & cannot be processed' .
Please let me know what went wrong.
Regards,
DeepthiHi,
1 .TEXT_CONVERT_XLS_TO_SAP Funtion module will work if you have installed Microsoft Excel at front end.
2. Whenyou declare internal table for upload, specify the char only in the strcture ,don't specify any data element or dictionary reference. If the data element and dictionaly reference is character field then its ok.
eg.
types:begin of st_data,
field1 type char15,
field2 type char23,
endif.
3. Close the excel before you upload
Hope this might solve your issue.
Regards
Aromal R -
Issue while uploading .TIFF file into Standard text using RSTXLDMC
Hi All,
We are facing issues while uploading .TIFF file into standard text through program RSTXLDMC.
Getting the following error.
TIFF format error: No baseline TIFF 6.0 file.
The image is a colored one.
Please provide me solution if anyone has worked in this area.
Thanks in Advance,
Anand Raj Kuruba.Hi,
Often this error occurs because the TIFF file you have has been saved with some form of compression. You need to open in a picture edit program and save as TIFF making sure options are set so there is no compression.
Andrew -
Issue while uploading DME file generated from SAP using program RFFOAU_T
Hi Friends,
I ran f110 for our australian company code and able to generate DME file for making supplier payments successfully.
Encountered problem while uploading this file into our Bank Portal, upload is unsuccessful, status is showing as "Requires Repair u201C
I called the bank customer service and they told me that ,
We need to enter in our SAP the Bank ID ,
We have to enter there : NAB
Customer service told me that their bank is looking for Bank ID ,
But canu2019t see it , so the payment is not going through.
Can you please help me that where in SAP Bank ID should be entered, so as to upload this file successfully.
Thanks for your help.
Regards
AnilHi Anil,
While creating House Banks you can find Button called Data Medium Exchange. There is Bank Id field.
Try it once
reg
vishnu
Maybe you are looking for
-
Which is better buy a Thunderbold External vs Time capsual Price w/ an IMac i7
I want a 2TB external but not sure what to go with :S
-
How do I retrieve the tone panel in Lightroom 5 ( with the sliders for exposure, contrast, vibrancy etc which sits under the icons for cropping, red eye etc)?
-
Problems creating JCO Connections
Hi experts, I have a question regarding the JCO Connection creation in Content Administrator. My first doubt is if it's necessary to create each JCO Connection for each backend system that I'll run RFC functions? If is it true, during Creation I must
-
HELP - List Menu 2 fields?
I have a recordset that returns a list of Manager names and corresponding Manager ID numbers, which are two separate fields in my database. I would like to create a dynamic list menu and display both fields. This list menu would be used to drive anot
-
When I try to print from Aperture to my Epson R1800 nothing happens and the job's status is 'Stopped'. I can print from other apps to this printer. I have not been able to print for some time, likely since an OS update from a month or two ago. Have u