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.
Similar Messages
-
Function module to check whether Goods Receipt of a Purchase Order is done.
Hi,
Is there any function module to check whether Goods Receipt of a Purchase Order is already done?
Taking into consideration reversals.
Thanks.Hi,
I think u can do this by using a simple select query.
u have to go in EKBE table.
put the PO no. in field EBELN + EBELP(line item) and get the material docuement no. in field BELNR + BUZEI(line item).
Thanks
Jitendra -
Function module to check if a given file/folder path is valid or not?
Hi,
I am using function modules GUI_DOWNLOAD and GUI_UPLOAD.
Is there any function module to check if a given file/folder path is valid or not?
Thanks.Hi Kumar ,
REPORT zdir_test.
TYPE-POOLS: abap.
DATA: v_dir TYPE string.
DATA: v_bol TYPE abap_bool.
v_dir = 'c:\sap\'.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = v_dir
RECEIVING
result = v_bol
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.IF NOT v_bol IS INITIAL.
WRITE:/ 'Directory exists.'.
ELSE.
WRITE:/ 'Directory does not exist.'.
ENDIF.
Regards,
Sachin M M -
Function module to check if a file is already open
Hi All,
Could any one of you tell me a function module which checks whether a given file on the application server is currently being open or not.
Regards
Amit MishraAmit,
Try GET DATASET.
Basic form
GET DATASET dsn.
Extras:
1. ... POSITION pos
2. ... ATTRIBUTES attr
In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. For details, see File Interface.
Effect
Used to get the properties of a file already open.
You can use this statement without additions to determine whether the file is open.
If the file is not open, an exception of the type CX_SY_FILE_OPEN_MODE is triggered.
Regards,
Rao A
Message was edited by: Rao Arimilli -
Function module for checking existance of rfc destination?
hi all,
is their any function module for checking existance of rfc destination?
regards
deepakHi,
check teh table 'RFCDES'.
reward if helpful.
Regards,
nagaraj -
Standard function module for checking the sales organization and plant
Hi all,
Does have standard function module for checking the relationship between sales organization and plant?
Thanks a lot!
Ninahi
good
check these BAPIS
BAPI_SALESGROUP_GET_DETAIL Sales Group: Display Name
BAPI_SALESOFFICE_GET_DETAIL Sales Office: Display Name
BAPI_SALESOFFICE_GRP_EXIST Sales Office / Sales Group: Existence Check
BAPI_SALESORG_EXIST Sales Organization: Existence Check
BAPI_SALESORG_GET_DETAIL Sales Organization: Display Data
BAPI_SALESORG_OFFICE_EXIST Sales Organization / Sales Office: Existence Check
PLANT=>
BAPI_PROMO_GETSITEPLANNING Detailed Data for the Plants Involved in a Promotion
thanks
mrutyun^ -
Function module to check source system
Hello
Can some one help me by providing the name of the function module to check the Source system connection?
I know that in the source system we can right click and check.
But i want to know the function module to check the status.
Thanks in advance
Kind regards
M.A
Edited by: M.A on Aug 19, 2008 12:42 PMHi shasank,
Thanks for the info.
I had given the tech name of the source system as an input to the function module.
But it raises an exception that destination does not exists.
But the source system connection is ok.
Regards
M.A -
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. -
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 -
Function Module to check posting date
Hi,
Is there any function module avilable to check whether the posting date is open or not.
Regards
Suresh.check G_POSTING_DATE_OF_PERIOD_GET
Reward points if useful, get back in case of query...
Cheers!!! -
Abap function module http_post and umlaut characters
I am using abap function module HTTP_POST to frame xml and send the data to our middleware system 'CASTIRON'.
Everything works fine but when there are any umlaut characters in xml, the function HTTP_POPST is unable to transmit the data and is creating SM21 updation failures. We are on ECC 6.0 unicode system.
Any help is vey much appreciated.Are you using a CDATA tag to encapsulate your data. Try doing it.
-
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.TChek the following SAP docu link and OSS note references:
http://help.sap.com/saphelp_erp2004/helpdata/en/b7/2326ceac7e11d299750000e83dd9fc/frameset.htm
Regards
Sridhar -
Functional module to check a remove system is up
Hi all,
Could anyone of you tell me whether any function module exists using which whether we can know a remote system
is pinging(up) or not?
Thanks in advance.
Thanks and Regards, PradeepTry this:
SALK_SYS_AVAILABILITY_RFC_PING
Also try:
RFC_PING_AND_WAIT
RFC_PING (Specify the destination that you want to ping in the RFC Call)
RFCPING (Specify the destination that you want to ping in the RFC call)
Regards,
Ravi kanth -
How to extract special characters from a field
Hi there.
I am a novice when it comes to Web Intelligence reports. I have been tasked with producing a final report that I can export to Excel which shows a project number and a project name. Very simple. Ultimately I need to import my final Excel file to a third party software. However, the issue is the project name field consists of special characters such as hyphens, parenthesis, asterisks, etc. I need to be able to create a formula which extracts all special characters and just leaves me with alpha-numeric characters and spaces. I also need to limit the character count to no more than 34 characters. I will not be able to import my final Excel file unless I can product those results. With the help of a very knowledgable person in the Crystal Reports forum, I was able to do that by using the following formula:
stringvar a:=left({Projects.ProjectName},34);
numbervar i;
Local StringVar fin;
for i:= 1 to len(a) do
if a[i]in ["a" to "z"] then
fin := fin & a[i]
else if a[i] in ["1" to "9"] then
fin := fin & a[i]
else if a[i] = " " then
fin := fin & a[i];
fin;
It worked amazingly well in Crystal Reports but this report now needs to move to Web Intelligence. Is there a way to do this in a Web Intelligence report? Itried but the formula is not recogizable. I tried creating a variable and using this formual but I couldn't get it to work. I appreciate all helpful responses. The version of Web Intelligence I am using is SAP Business Enterprise XI. I am working in a PC environment using Windows 7 if that helps at all.
Thank you!
LaurenHi Lauren, Please provide with some sample data...
In SQL, by writing some Functions/Procedures you can eliminate special characters. Ask your database team to do that.
or
Create an object with the following syntax... It Works in SQL.
= REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
(REPLACE(REPLACE(REPLACE([String_Object],'&',' '),'*',' '),'(',' '),'^',' '),'%',' '),'!',' '),'@',' '),'#',' '),'$',' '),'~',' '),')',' '),'+',' '),'=',' ' ),'-',' '),'_',' '),'/',' '),':',' '),';',' '),',',' '),'<',' '),'.',' '),'>',' '),'?',' '),'"',' '),'''',' '),'[',' '),']',' '),'{',' '),'}',' '),'\',' '),'|',' ')
Example: Input: '~!@#$%^&*()_+{}:"<>-=[]./\|/*-+ascdfv123'
Output: ascdfv123 -
Restrict Special Characters in String Fields
Hello,
My Jdev version is 11.1.1.6 using ADF BC and ADF Faces as technology stack.
I have a requirement to restrict special characters, html tags as input in String/Varchar2 fields.
I have couple of thoughts that can be used in application but not sure which is the best approach:
1. Implement <af:validateRegExp pattern="regular Exp"> inside <af:inputText> component
2. Implement Entity based validator using Regular Expression
Apart from picking the best out of above two, I would like to know if there is a better way to implement this validation.
My application has custom framework extn classes and all Entities/View Objects extend those. Is there a possibility to implement this type of validation at some central place.
I would highly appreciate expert inputs here.
Thanks,
JaiHi,
the answer to your question is *"use both"*. The entity level would be enough but then would make people subniitting a request afte which they see an error The RegEx validator in ADF Faces handles problems on the client side and thus before a submit is sent to the server (where it then would be also checked using server side validation in ADF Faces). Why not using RegEx validation in ADF faces alone? Because there are potentially many views accessing your entity through view objects and if only one developer forgets the RegEx validator you would be screwed.
Frank
Maybe you are looking for
-
My 2011 MacBook Air suddenly takes a long time to shutdown!
My 13-inch Mid 2011 MacBook Air running OS X 10.7.2 used to take less than 2 seconds to shut down. Recently it's been taking a lot longer time to shut down. Usually it takes 15-20 seconds, but occassionally never shuts down even after waiting for ove
-
SSL Multiple Tunnel Groups with Multiple group policies
Hello folks. Have a query and cant seem to find an answer on the web. I have configured SSL Clientless VPN on a lab ASA5510, using 2 tunnel groups, one for enginneers and one for staff, mapped to 2 different group policies, each with different custom
-
With major resouces Firefox slows over a period of time rending web usage to a crawl.
Running Debian Jessie (using lxde) on a system with major resources (well over 20 GB of RAM using 14 desktops). I tend to have lots of windows and tabs open. Use different windows for different lines of inquiry and tabs are things that I found intere
-
CC throws an exception starting and asks me to enter a debugger. like another instance of vb or something. I am in school for dw and have assignments due. Search for answers because I can find no way to contact someone , for the 170$ worth of softwar
-
SendXSIType not displaying xsi:type information in soap
We're attempting to communicate with a webservice that requires type information be passed with the SOAP request. I've seen many notes that suggest setting the sendXSIType = true in the partnerLinkBinding will accomplish this. I have set this value a