CHeck Special Characters
Hi everybody,
right now iam working on form CHek.let me need some info where can i get info of special characters which are in MICR format at bottom of chek).
please let me know its very urgent.
Thanks & reagrds..
Anil.T
Chek the following SAP docu link and OSS note references:
http://help.sap.com/saphelp_erp2004/helpdata/en/b7/2326ceac7e11d299750000e83dd9fc/frameset.htm
Regards
Sridhar
Similar Messages
-
How to check special characters in view
hi,
I have a field in view,in which want to check the field value doesnt contain any special characters.
the field is a char field and it is not associated to any specific data element.
Can u please help me in this reg.
Regards,
SaujanyaHi Saujanya,
In my recent reply............i have give the general answer.
Here is the answer you are looking for........
data:
w_check(37) TYPE c.
w_check = sy-abcde.
concatenate '0123456789' w_check INTO w_check.
concatenate '_' w_check INTO w_check.
IF view_name-field_name CO w_check.
ur code.......
ELSE.
Message 'UR text' TYPE 'E'.
ENDIF.
Hope,your problem is solved.........
Reward,if helpful.
Regards,
V.Raghavender. -
Function Module tto check special characters in a field
Hi All,
I have a requriemnt where i need to make sure there are no special characters allowed
in a paremeter ( is there any functional module to check it)
r anyway to work with
Thank in advance for u replies.
Regards,
Riyaz.DATA: vergleich_string(100) VALUE
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
CONCATENATE vergleich_string ' 1234567890,./!@#$%&*-_+=~|\[{]}()"'
INTO vergleich_string.
use condition.
if var ca vergleich_string.
raise error message.
endif. -
Check special characters in a string
Hi all
I am using oracle 10g.......
Need to know what should be the query to check whether a special character exists or not in a column value....used the following query like.....
select count(*) into emp_no_count_special_char
from dual
where REGEXP_LIKE(insert_data_rec.emp_no , '[#!$^&*%./\|]$' )
or REGEXP_LIKE(insert_data_rec.emp_no , '^[#!$^&*%./\|]' );
This works fine in case a string starts or ends with a special character ,what if a string of special characters lies in between numeric digits.
e.g: '100#$%7'
Please help find a query that checks for the existence of sp. characters irrespective of their position in the column!!!
Thanks
Dave
Edited by: Dave on Jun 6, 2012 5:17 AM
Edited by: Dave on Jun 6, 2012 5:18 AMHi Dave,
example below:
-- Check that at least one special character exists in the string
SELECT COUNT (*)
INTO emp_no_count_special_char
FROM DUAL
WHERE REGEXP_LIKE (insert_data_rec.emp_no, '[#!$^&*%./\|]');
-- Check that no special characters exist in the string
SELECT COUNT (*)
INTO emp_no_count_special_char
FROM DUAL
WHERE NOT REGEXP_LIKE (insert_data_rec.emp_no, '[#!$^&*%./\|]');
{code}
Regards.
Al -
How to check special characters in java code using Java.util.regex package
String guid="first_Name;Last_Name";
Pattern p5 = Pattern.compile("\\p{Punct}");
Matcher m5 =p5.matcher(guid);
boolean test=m5.matches();
I want to find out the weather any speacial characters are there in the String guid using regex.
but above code is always returning false. pls suggest.Pattern.compile ("[^\\w]");The above will match any non [a-zA-Z0-9_] character.
Or you could do
Pattern.compile("[^\\s^\\w]");This should match anything that is not a valid charcter and is not whitespace. -
In my program, on the selection screen a user can enter any variable except special characters.How can I put a check on special characters??
hi,
In our key board, these many special characters present..
so try your code like this..
data: spe_char(31) value '~`!@#$%^&*()_+-=\|][{}";:,./?><'. ( include all
special chars whatever u want)
spe_char1 value ' '. ( this is to check empty space)
spechar2. (this is to check single ' ).
Create one text element and assign ' as value to that text element.
in ur program code as given below.
spechar2 = text-001.
if (fieldname) CA spe_char.
MESSAGE "special character is present in the given input
endif.
if ( fieldname) CA spe_char1.
message "special character is present in the given input
endif.
if (fieldname) CA spe_char2.
len = strlen( fieldname ).
if sy-fdpos NE len.
message "special character is present in the given input
endif.
endif.
Hope this code will guide you ..
regards
vijay -
Check whether there is any Special Characters in a String ?
Hi All,
I am having a very large String. I like to know how to check whether there is any special characters present in a string
Thanks,
J.KathirI am having a very large String. I like to
I like to know how to check whether there is any
special characters present in a stringAll characters are special in a way. You shouldn't just single a few out because they don't look "normal" to you. Maybe they have golden hearts? -
How to check multiple special characters in instr function sql query.
Hi,
The following special characters are comma(,), slash(/), colan(:)
these special characters i need to be check in instr function.
select SUBSTR(master_title,1,INSTR(master_title,',',1,1)-1) from dual;
Can you please write the query with right answer.
Thanks in advance,
Lakshman.Why multiple post?
How to check multiple special characters in this query. -
Special Characters Check in OBPM
Is this code good to check for special characters in OBPM 10GR3?
Pattern p = Pattern.compile("/[a-zA-Z0-9]/g");
Matcher m = p.matcher("This is a string");
boolean matched = m.matches();
logMessage("--Identifying Special Characters--"+matched);
if (matched == true)
logMessage("--Contains Special Character--");
}Here's what I use to fix file names to ensure that they do not have special characters or international characters:
String beforeConversion = "àÀâÂäÄáÁéÉèÈêÊëËìÌîÎïÏòÒôÔöÖùÙûÛüÜçÇ’ñ";
String afterConversion = "aAaAaAaAeEeEeEeEiIiIiIoOoOoOuUuUuUcC'n";
// does it contain international characters?
if (originalFileNameArg.match(regexp : '/[àÀâÂäÄáÁéÉèÈêÊëËìÌîÎïÏòÒôÔöÖùÙûÛüÜçÇ’ñ]+/').length() > 0) {
int i = 0;
String @char;
while (i < beforeConversion.length()) {
originalFileNameArg = originalFileNameArg.replace(from : beforeConversion.charAt(position : i),
@to : afterConversion.charAt(position : i));
i = i + 1;
String[] m = originalFileNameArg.split(regexp : '/[^a-zA-Z0-9_,']+/');
int i = 0;
boolean first = true;
foreach (item in m) {
if (! item.empty) {
if (first) {
retValue = item;
else {
retValue = retValue + " " + item;
first = false;
i = i + 1;
return retValue.trim();Dan -
Just a simple check with special characters
Hi guys and gals,
i created a boolean method that will check the value of string for any special characters like (/,'%&^# ), what i did is to used indexOf() method. it will return false if the string doesn't have any special character. But, i'm having a problem using the check for the backlslach character ' \ ', since it is considered as escape literal when i put inside indexOf('\'). i really need you help on this.
if you have other ways to check this kind of character, please put them here. i really need them bady. :D many thanks,Look for "\\" or look up the unicode for "\" and use that.
-
Regular expression: check for the presence of special characters.
I have the following requirement:
I need to check for the presence of the following characters in a keyword: @, #, > if any of these characters are present, then they need to be stripped off, before going further. Please let me know the regular expression to check for these characters.I am trying to extend the same logic for the following characters:
.,?!@#%^&*()-~<>[]{}\+=`©® . here is the code fragment:
Pattern kValidator = Pattern.compile("[\\.,\\\\?!@#%^&*()-~<>[]{}\\+=\\`©®]");
Matcher kMatcher = kValidator.matcher(keyWord);
if (kMatcher.find(0)) {
keyWord = keyWord.replaceAll("[.,\\\\?!@#%^&*()-~<>[]{}\\+=\\`©®]", " ");
}I get the following error. This error is from the weblogic command window. I dont understand these special characters.
Error:
28 Oct 2008 12:27:48 | INFO | SearchController | Exception while fetching search results in controller:Unclosed character class near index
39
[\.,\‘\“?!@#%^&*()-~<>[]{}\+=\`©®]
^
java.util.regex.PatternSyntaxException: Unclosed character class near index 39
[\.,\‘\“?!@#%^&*()-~<>[]{}\+=\`©®]
^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.clazz(Pattern.java:2199)
at java.util.regex.Pattern.sequence(Pattern.java:1727)
at java.util.regex.Pattern.expr(Pattern.java:1687)
at java.util.regex.Pattern.compile(Pattern.java:1397)
at java.util.regex.Pattern.<init>(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:817) -
Checking for Special Characters
I need to check if a textbox in my form containes special characters (entered by user). If there are any, I need to display an error message.
I have written a function but it's not working.
here's my function:
function checkForSpecialChracters(oFiled)
var userInput = oFiled.rawValue; // take the String entered by the user
var iChars = "@#$%^&*+=-[]\\\';,./{}|\":<>?~_";
for (var i = 0; i < userInput.length; i++)
if (iChars.indexOf(userInput.charAt(i)) != -1) {
xfa.host.messageBox("Please check for special characters. The following characters are not allowed: @#$%^&*+=-[]\\\';,./{}|\":<>?~_ ", "Error Message", 3);
// Change the color of the field
oFiled.fillColor = "255,100,50";
Any help would be greatly appreciated.
Thank you!Paul,
It is working now. I don't know what I might have changed.
Here's my final function (It works!):
function checkForSpecialChracters(oFiled)
var userInput = oFiled.rawValue; // take the String entered by the user
var iChars = "@#$%^&*+=-[]\\\';,./{}|\":<>?~_";
var hasSpecialCharacter = false;
for (var i = 0; i < userInput.length; i++)
//app.alert("Value is: " + userInput.charAt(i));
if (iChars.indexOf(userInput.charAt(i)) != -1)
hasSpecialCharacter = true;
break;
} // end if
} // end For loop
if (hasSpecialCharacter)
// Change the color of the field
oFiled.fillColor = "255,100,50";
xfa.host.messageBox("Please check for special characters. \n\nThe following characters are not allowed:\n\n @#$%^&*+=-[]\\\';,./{}|\":<>?~_ ", "Error Message", 3);
else if (!hasSpecialCharacter)
oFiled.fillColor = "255,255,255"; -
Code to Check for Special Characters \/:*?" | in the given String
Hi All,
I need a java code to verify if the given string contains the Special Characters like \/:*?"<>|
thanks
krishnavenihttp://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
bye
TPD -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M -
Fields in Flat File are separated by special characters
hello every one,
fIf fields in Flat File are separated by special characters
and If Flat File is given in Excel sheet , how to handle this kind of issues.
to Upload data into R/3 system, in BDC.
If u have sample program ,please send it ot me and explain ?
others give me hints...Hi,
you can use the function module ALSM_EXCEL_TO_INTERNAL_TABLE .
Check this sample code.
hi,
use the FM ALSM_EXCEL_TO_INTERNAL_TABLE.
PARAMETERS:
P_INFL like RLGRAP-FILENAME.
DATA:
BEGIN OF T_DATA1 OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION TYPE P DECIMALS 2,
ACTIVITY(25) TYPE C,
B_NBILL(1) TYPE C,
END OF T_DATA1,
T_DATA TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE,
BEGIN OF T_FINAL OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION(15) TYPE C,
ACTIVITY(25) TYPE C,
B_NBILL(10) TYPE C,
END OF T_FINAL.
DATA : HEADER TYPE XSTRING.
Work Variables Declaration.
CONSTANTS:
W_Y TYPE C VALUE 'Y',
W_N TYPE C VALUE 'N'.
Work area.
DATA:
WA_DATA LIKE T_FINAL.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_INFL.
PERFORM GET_FILENAME CHANGING P_INFL.
START-OF-SELECTION.
PERFORM UPLOAD_DATA_FROMEXCEL.
FORM UPLOAD_DATA_FROMEXCEL.
Downloading the data from presentation server
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_infl
I_BEGIN_COL = 1
I_BEGIN_ROW = 2
I_END_COL = 8
I_END_ROW = 1000
TABLES
INTERN = T_DATA
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " upload_data_fromexcel
*& Form process_data
text
FORM PROCESS_DATA .
T_FINAL-RESOURCE = 'Resource'.
T_FINAL-DATE = 'Date'.
T_FINAL-DURATION = 'Duration'.
T_FINAL-ACTIVITY = 'Activity'.
T_FINAL-B_NBILL = 'Billable'.
APPEND T_FINAL.
SORT T_DATA BY ROW COL.
LOOP AT T_DATA.
CASE T_DATA-COL.
WHEN 3.
T_DATA1-RESOURCE = T_DATA-VALUE.
WHEN 4.
T_DATA1-DATE = T_DATA-VALUE.
WHEN 5.
T_DATA1-DURATION = T_DATA-VALUE.
WHEN 6.
t_data1-activity = t_data-value.
WHEN 7.
T_DATA1-B_NBILL = T_DATA-VALUE.
ENDCASE.
AT END OF ROW.
COLLECT T_DATA1.
ENDAT.
ENDLOOP.
LOOP AT T_DATA1.
T_FINAL-RESOURCE = T_DATA1-RESOURCE.
T_FINAL-DATE = T_DATA1-DATE.
T_FINAL-DURATION = T_DATA1-DURATION.
T_FINAL-ACTIVITY = T_DATA1-ACTIVITY.
T_FINAL-B_NBILL = T_DATA1-B_NBILL.
APPEND T_FINAL.
ENDLOOP.
ENDFORM. " process_data
*& Form get_filename
FORM GET_FILENAME CHANGING P_FILENAME.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = SPACE
DEF_PATH = P_FILENAME
MASK = ',. ,..'
MODE = 'O' " O = Open, S = Save
TITLE = BOX_TITLE
IMPORTING
FILENAME = P_FILENAME
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
CASE SY-SUBRC.
WHEN 1.
MESSAGE I999 WITH
'File selector not available on this windows system'(046).
WHEN 2.
MESSAGE E999 WITH
'Frontend function cannot be executed in background'(047).
WHEN 3.
MESSAGE I999 WITH 'Selection was cancelled'(048).
WHEN 4.
MESSAGE E999 WITH 'Communication error'(049).
WHEN 5.
MESSAGE E999 WITH 'Other error'(050).
ENDCASE.
ENDFORM. " get_filename
<b>Kindly Reward points if you found the reply helpful.</b>
Cheers,
CHAITANYA.
Maybe you are looking for
-
Are the i5/i7 processors way better than the Core 2 Duo?
Currently travel with my MacBook, but it's heavy (Pro stays home). I'm considering replacing the MB with an Air with 4GB RAM/256GB HD and I'm looking at refurbs. Go with the new i5 or i7 or is the Core 2 close enough? Thanks.
-
HP PSC 2175 spits out blank paper while I print.
I have Dell GX520 Desktop PC with Windows XP service pack 3 and HP PSC 2175 all-in-one printer. Since few days I m having trouble printing with my printer. When I try to print it simply picks up the paper scans it and spits out blank paper instead o
-
Formulas and Variables in Universe
I have been trying to find out how to create formulas and variables on universe Level. I know how to accomplish this in Webi. I'd appreciate if someone can point me to any documentation on this issue. Thanks.
-
I bought CS 5.5 web premium for windows 7 and the installation fails
Hi, The beginning of the installation goes well, serial number is Ok. First DVD OK. Beginning of the 2nd DVD and a lot of failures occurs, it begins with: Exit Code: 7 Please see specific errors and warnings below for troubleshooting. For example, E
-
Hello, I have component with Trees and I'm moving elements from one to another. I store data in dataProvider as XMLList with labelFiled="name" and itemRenderer as class, which expends one (thanks to that nodes and elements have checkboxes). I enabled