Removal of TABS from File Upload
Hi all,
I made an upload of a local file with TAB spaces in an internal table .I am required to remove the TABs from the records.I tried to used command REPLACE '/h' by single space, where '/h' being the TAB , but it did not work.
How can I achieve the requirement?
Your ideas are appreciated
Thanks,
stock
first you wil call GUI_UPLOAD in normal way.
<b>if you are in UNICODE system,</b>
CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
CONSTANTS: X_DELIM TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
this X_DELIM is to store HORIZANTAL TAB value.
<b>if you are in a NON UNICODE SYSTEM,</b>
you can use,
data X_DELIM type x value '09'.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = V_FNAME
FILETYPE = 'ASC'
TABLES
DATA_TAB = IT_READFILE
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.
EXIT.
ENDIF.
*--Delete any Empty lines in the input file,if any
DELETE IT_READFILE WHERE LINE IS INITIAL.
LOOP AT IT_READFILE INTO X_READFILE.
SPLIT X_READFILE-LINE AT X_DELIM
INTO X_INPUTFILE-F1
X_INPUTFILE-F2
X_INPUTFILE-F3.
APPEND X_INPUTFILE TO IT_INPUTFILE.
CLEAR X_INPUTFILE.
ENDLOOP.
HERE IT_INPUTFILE IS the internal table with your fields.
IT_READFILE IS a character type internal table
data : BEGIN OF IT_READFILE occurs 0,
LINE(1000) TYPE C,
END OF IT_READFILE.
or you can put HAS_FIELD_SEPERATOR = 'X' in calling the above function module.
Regards
Srikanth
Message was edited by: Srikanth Kidambi
Similar Messages
-
How to remove Competetors TAB from PCUI Opportunity create trx
Hi Group,
we are using CRM 5.0, i want to remove Competitor's TAB from PCUI Opportunity Transaction. i see a option in CRMC_BLUEPRINT_C transaction-> Application/Layout->Define layout of the people-centric UI(Customizing tool). here i went to CRMD_BUS2000111-> Version 1-> Static model-> Tabpage groups-> OPP_1: when i clicked on this i got all Tab's details. but when i tried making OPP_HD_COMP "Inactive" and hit Save that Check mark goes away. tried many times but did not help.
then i tried going to CRMC_BLUEPRINT_C transaction->Application element-> tab page group structure->OPP_1: here i dont see any entries. do i have to add all Opportunity Tab's details here or only the Competetor tab details?
Please let me know does anybody see all Tab's data here or you just enter all Tabs data manually in CRM 5.0? also how can i remove Competetors Tab? your help is appreciated and awarded.
regards,
Anu.Hello Anu,
WHen you are in CRMC_BLUEPRINT_C transaction->Application element-> tab page group structure->OPP_1, go to edit mode and import the standard entries from CRMC_BLUEPRINT (on of the buttons on the screen).
Then, for the tab you don't want to see, just put it as inactive (if not possible, just delete the line, you can always come back to the standard by importing the S tables again).
Regards,
Frédéric -
Unable to remove sub-tab from portal page
Hi,
Get the following error when trying to remove a sub-tab from one of our portal pages;
An unexpected error occurred: User-Defined Exception (WWC-44082)
An unexpected error occurred: User-Defined Exception (WWC-44082)
Error while deleting page. (WWC-44130)
An unexpected error occurred: ORA-20100:
ORA-06512: at "PORTAL.WWSBR_STDERR", line 437
ORA-06512: at "PORTAL.WWV_THINGDB", line 4021
ORA-01403: no data found
ORA-01403: no data found (WWC-44082)
An unexpected error has occurred (WWS-32100)
ORA-1403: ORA-01403: no data found
ORA-01403: no data found (WWC-36000)
Unexpected error encountered in wwsec_api.remove_group_acl (ORA-01403: no data found
ORA-01403: no data found) (WWC-41417)
In advanced options for the tab, 'Inherit Access Settings From The Page' is selected.
Under page access settings, the 'From page template' option is selected.
Any ideas?
Cheers,
ChrisPlease report this problem to Oracle Support. This is not normal behaviour.
-
Remove address bar from file explorer (using regsitry)
This used to be possible in 2008, but I haven't been able to figure out how it's done in 2012 R2. The old method was to add a key under IE, and it would also remove the address bar from windows explorer - but this method
no longer works. So is anybody aware of what key needs to be changed or modified in order to make this happen. Further, ideally this change would happen in HKCU.
ThanksHi,
>>That would seem to remove run from start menu, not the address bar from file explorer.
Yes, this setting will disable Run.exe. However, this setting will also prevent users from accessing local or network resources by typing the accessing paths in the address bar of File Explorer.
I am not completely sure why you want to remove the address bar in File Explorer. However, if our target is to restrict users from accessing network resources by UNC path, in my opinion, enabling this setting a better way to go.
In addition, regarding this topic, the following thread can also be referred to for more information.
Hide Windows Explorer Address Bar
http://social.technet.microsoft.com/Forums/en-US/987305c6-bd48-4107-bcf5-84d4fff4097d/hide-windows-explorer-address-bar?forum=winserverGP
Best regards,
Frank Shen -
Removing "LineFeed" character from file
Hi,
I have a scenario where I need to develop an EJB session bean business method which will take a file (inputstream) as input.
The methods should remove all "LineFeed" characters in this file and return new file (inputstream).
How do I achieve this? How do I remove line feeds from inputstream?
Thanks and regards,
AmeyThis is how its done:-
import java.io.*;
public class RemoveLineFeed{
private static final String BLANK = "";
private static final String NEWLINE = "\n";
private static final String CARR_RET_NEWLINE = "\\r|\\n";
private static final String LINE_SEPARATOR = "line.separator";
public static void main(String[] args){
InputStream l_returnStream = null;
String l_inputStreamAsString = null;
byte[] byteArray = null;
try{
//1. InputStream to String
FileInputStream fileInputStream = new FileInputStream ("997AND824-TESTFILE_WithLF");
DataInputStream dis = new DataInputStream(fileInputStream);
int arraySize = fileInputStream.available();
byteArray = new byte[arraySize];
dis.readFully(byteArray);
l_inputStreamAsString = new String(byteArray);
//2. Carry out replace
//l_inputStreamAsString = l_inputStreamAsString.replaceAll(NEWLINE, BLANK);
//l_inputStreamAsString = l_inputStreamAsString.replaceAll(System.getProperty(LINE_SEPARATOR), BLANK);
l_inputStreamAsString = l_inputStreamAsString.replaceAll(CARR_RET_NEWLINE, BLANK);
//3. Convert String back into InputStream
//l_returnStream = new ByteArrayInputStream(l_inputStreamAsString.getBytes());
//4. Create new file
File l_outFile = new File("997AND824-TESTFILE_WithOutLF");
FileWriter fileWriter = new FileWriter(l_outFile, true);
fileWriter.write(l_inputStreamAsString);
fileWriter.close();
catch (IOException ioe) {
System.out.println(ioe.toString());
catch (Exception e) {
System.out.println(e.toString()); -
Remove LF characters from file names
I have a folder full of files with filenames that contain LF character (ASCII code 10). I want to use Automator's "Replace Text" funcion to remove these non printing characters from file names. Is there a way to do it?
If automator is not able to do this task, I will take a bash script or applescript solution as well...Take a look at: http://stackoverflow.com/questions/4417588/sed-command-to-fix-filenames-in-a-dir ectory
(I changed tr -d "\r\n" to tr -d "\n", but try both)
for f in ~/Desktop/*
do
new="$(printf %s "$f" | tr -d "\n")"
if [ "$f" != "$new" ]; then
mv "$f" "$new"
fi
done -
[solved] Removing the "tab" from Fluxbox windows
How would I remove these little tabs from Fluxbox?
Last edited by synthead (2008-01-12 21:16:32)fluxbox wiki wrote:To configure them just right click your your desktop to get the root menu, then scroll down to Fluxbox Menu -> configure -> tab options. If you want them off select tabs in titlebar and they will act like the tabs in the .9.x releases.
-
How to remove a tab from Accordion Menu?
I have a page that I am creating for my website which has an accordion menu on it. I originally created the menu in Dreamweaver CS4 using the Spry Accordion Widget, then transferred that code over to the website page. In place of words on the menu, I am using images for each drop down tab. I am trying to remove the last tab in the menu, but every time I do my entire menu no longer functions and the tabs, when clicked, no longer drop down.
http://www.tocico.org/?page=2015_workshop_test
Above is the link to the page I am working on. The last tab in the menu is titled TOC Thinking Processes (above the Register Now button). All I want to do is remove that tab, but when I do, the entire menu no longer works.
Please let me know if you need anything else from me.Never mind, I was able to figure it out. After I had removed lines 631-644 the code had changed for some reason.
CHANGED FROM THIS:
<script type="text/javascript" class="AccordionPanelClosed">
//<![CDATA[
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//-->
//]]>
</script><br>
TO THIS:
<div class="AccordionPanel AccordionPanelClosed">
//<!--[CDATA[
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//---->
//]]>
<br>
Turns out I was just missing the <script type="text/javascript" class="AccordionPanelClosed"> to match up with the </script> code at the end. Thanks for your help! -
Button from file upload item in wrong language
Hallo,
when i create a file upload item, the text from the search button is in wrong language.
The application primary language is en-us. And the ApEx language is en-us too.
Instead of "Durchsuchen..." I would like to have "Search..." as button text.
Can somebody help me?
Thank you in advance!
Kind regards
Michael87Hello Michael,
>> I'm talking about the button which is part of the "File Browse" item.
In that case, you’re in troubles :)
The “Browse” button is not generated by APEX, and as such it’s not subject to the APEX translation mechanism (or application language). This button is generated by your browser, as part of the HTML <input type="file"> tag (http://www.w3schools.com/htmldom/dom_obj_fileupload.asp), which APEX uses to render its item, and its text and language are determined by the language of your Web browser.
Regards,
Arie.
Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all. -
Remove index tab from tri-pane
Is it possible to remove the index tab from the HTML help
tri-pane window? Thanks!Hi mk20061. You can suppress the display of the Index AND TOC
tabs but not the index tab on it's own. Go to your window's
properties and deselect the "TOC & Index"option in the Tripane
Tabs & Windows dialog section. The other alternative is to
delete all the index keywords from the project as the index tab is
only displayed if there are keywords to display. -
Remove glossary tab from Microsoft HTML Help layout
How do I remove the Glossary tab from Microsoft HTML Help layout? Using RoboHelp 11
Thanks.Hi there
You do that by editing the Window defintion. Click View > Pods > Project Set-up.
Expand the Windows folder and double-click the CHM Window definition.
Then DE-select the Glossary option.
Cheers... Rick -
Unable to get the filename from file upload UI element
Hi,
I added a FileUpload UI element.
I created an attribute of type resource , assigned to the resource property of the file upload element.
I created an action button called upload and added the following code.
try {
IWDResource resource = wdContext.currentContextElement().getFileupload();
} catch (Exception e) {
e.printStackTrace();
when I debug to see the value of resource it is null.
Please let me know where I am going wrong.
Regards,
NarayaniHi,
Check if there are any space characters in your uploading path (file path).
First try to upload a file without any space characters in the uploading path(file path). If the problem is with the space characters then use the below encoding & decoding to resolve that issue.
Encoding while uploading the file:
// Getting the file resource
IWDResource resource = element.getCtx_va_FileResource();
//Getting the resource name
String resourceName = resource.getResourceName();
//Encoding the resource name
String encoderesourceName = java.net.URLEncoder.encode(resourceName,"UTF-8");
Again while downloading you can use decoder.
Hope this helps to resolve your issue.
See this below link.
Re: File Upload Problem
Try this encoding even if there are no space characters.
Regards,
Charan -
Delete file from the list & as well as from file upload
I have come across a situation where there is a sap.ui.unified.FileUploader & user is free to upload as many file selected. then there is a button to display the list of added files as list(deleteable list). list delete is possible by using the standard function provided in the explored of SAP UI5 SDK document. but how to bind both the controls?? do that at the time of deleting the list it will also delete the files added in FileUploader. attaching the screenshot for better understanding...
SAP UI5 Version 1.24.3Hi,
you can use the setValue() method when you delete a file from the list:
oFileUploader.setValue("");
Kind regards,
RW -
UDF - Removing Header Record from File
Hi Team,
In my file(File Content Conversion) to ABAP server proxy scenario...
The source File structure is like this...
KUNNR|Matnr|Description----->(This is Hearder Record.Each File contains this header record.)
1001|0077321|Special Materials
1002|0077323|Raw Material
File adapter will picks the file , In Message Mapping The first record is the Header Record from the above file structure.So I need to remove the Header Record.
Can we handle this requirement with any FCC parameter ;I think we can do it with the help of UDF in MessageMapping?
Can anybody ghelp me the sample code for this.
Thanks.
DrumiHi,
You can use Document Offset in FCC to specify the number of lines that are to be ignored at the beginning of the document.
Regards,
Priyanka -
Get current RID path from file upload in KM
Hi all,
I wrote an customized upload application using upload ui element.
The question is , how can I get the current RID Path when I trigger the WDJ upload action ?
Thanks for your help. please.Hi,
Here is some of examples from WDJ for uploading the files, please go thr below link i hope it will help you
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?QuickLink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
Thanks,
Sreeni.
Maybe you are looking for
-
Not that my computer doesn't recognize iPod, my iPod doesn't recognize comp
i forgot to eject my iPod before disconnecting. Now when i plug it in to my computer, it charges, but does not show the "Do Not Disconnect" message or show up on windows/iTunes. i've tried resetting b/c thats the only one of the 5 rs that i can (with
-
Mail keeps marking as junk mail in Mavericks
Hello all, I'm having an ongoing issue with my Mail app in Mavericks 10.9.1 in that it keeps sending an incoming email from a particular sender to my Trash box even though I have it marked as not Junk mail and I've added the senders email address to
-
I need to take a HD out of my PC and put into a external case for use with my macbook. I hear that you can read it but not write to it on a Mac? What do I need to do to use it?
-
Why Are Most Of My PlayLists Out Of Order?
Shuffle is off on all of them and I only have the little arrow to the far left highlighted. All but 3 of them are completely out of order and some of them have over 1200 songs so I'm not inclined to manually put them back in order. How can I fix this
-
trying to load iTunes, but stops at quicktime as the installer says that I have a newer level quicktime already installed. I have removed all itunes and quicktime per blogs, etc. Not working. Please help. Thanks.