Checking Validation
Hi All,
I am working on BPC7MS version,I am unable to run validation rules for all accounts i.e Scenario
1.Total Assets in account1 side other side Total Liabilities account2 side
2.if iam trying to add all accounts(liabilities) one side and add all accounts(assets) other side
These Scenario's giving some regid values.
Can some body tell me any settings has to be done before starting validation rules if yes,HOW and WHAT???
Any other changes to be done in Rule it self.
Regards,
Naresh.K
Refer to 'Validating with Xml Schema tutorial'.
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM9.html
Similar Messages
-
Can Check Valid From task be run on multiple JVMs in clustered env.
The configuration screen for the Check Valid From scheduler task allows it to be run oin more than one JVM in a clustered environment.
Has anyone done this?
Does this cause any problems?Hello Timothy,
This is not recommended for any scheduler task as it potentially means that the task could be run multiple times and would most likely lead to inconsistencies in the results of the task. Have a look at SAP note 798633 which discussed this a little more.
Regards,
Lorcan. -
How to check validity of data reference
Hello everybody,
in my application I use a help class to buffer data objects.
This class contains one attribute which is an internal table ( columns: DATAID and DATAREF )
I use this databuffer to transport data between different classes.
Now I did the following mistake:
First I call the method 'METH_CHECK'. As import parameter I pass a reference to my databuffer class.
In method 'METH_CHECK' I call a function module 'FUNC_1' passing my reference to my databuffer class.
In 'FUNC_1' I declare a local variable 'lv_value'.
Then I use the statement 'GET REFERENCE OF lv_value' and save this reference into my databuffer class.
After processing functions / methods I´m back at the point where 'METH_CHECK' was called.
When I check my databuffer class, I´ve got one entry in it.
The reference I saved while processing 'FUNC_1' . But the referenced data has already be freed ( remember, it was a local variable ).
In the debugger I see the column where I save the references to data objects.
The field value has changed from a valid reference to i.e. 'FREED ITAB: 5'...
OK, I know what is wrong... No problem in my application, but I want to clean
this entry... How can I check this...
I can not check like
LOOP AT me->buffer INTO wa_buffer.
IF wa_buffer-data IS INITIAL.
DELETE...
ENDIF.
ENDLOOP.
or
LOOP AT me->buffer INTO wa_buffer.
IF wa_buffer-data CP 'FREED'.
DELETE....
ENDIF.
ENDLOOP.
How can I notice an invalid reference at this point?
Thank you very much,
Oliver SeiferHello Oliver,
Another approach might be to avoid any dependency to the caller at all.
Regards
Klaus
data:
buffer_Reference type ref to data.
field-symbols:
<buffer_Data> type data.
create data buffer_Reference like i_Value.
assign buffer_Reference to <buffer_Data>.
<buffer_Data> = i_Value. -
How to ReUse Existence Check Validation ?
Hi All,
I read chapter 9.6.2 of ADF Developer Guide 4GL, "9.6.2 Implementing an Efficient Existence Check". However the exists() method in the ProductDefImpl.java can only be use to check product existence when user add new product on Product entity .
But in my case, there are many entities having FK referring to Product
entity, e.g :
OrdersDetail has FK to Product
PurchaseDetail has FK to Product
ShipmentDetail has FK to Product
..and some more...
I don't want to code productExists() method to all xxxDefImpl class of all
above entities. How can I create just one productExists() method and reuse it in all entities having FK to Product entity ?
Thank you for your help,
xtantoHi Steve,
yes, I have check to ServiceRequestImpl in SRDemo, there is a method validator that invoke productDef.exists(getDBTransaction(),data).
But, by using method validator, I still have to copy-paste the code to ALL entities that has FK to Product.
How to make it a Reusable Validation Rule (like "DateMustComeAfterRule") so that I just need "plug" it to All entities (at attribute level) having FK to Product ?
Thank you,
xtanto -
Check validation of WBS and AGENT at SC level instead of PO creation time.
Hi all,
is there any function module to check the issues with the account assignment like agents are missing for cost center or WBS for a shopping cart , this is validated during PO creation but my requirement is to validate it during the SC Cart creation .
Thanks
AdityaHi Adidya
You are correct. Indeed all checks happen during PO only not through SC.
You can use DOC check badi only
How to get blocked cost centers in SRM from ECC(Table CSKS(
http://wiki.sdn.sap.com/wiki/display/SRM/META_READ_TABLE
BR
Muthu -
Hi All,
i have a requirement, while creating sales order i want to check creation date with some date range (this will come from some ztable). whether the creation date is in the range or not.
Can you help on this..
Regards.,
Raj.,Hi,
Use user exit 'MV45AFZB', form routine "USEREXIT_CHECK_VBAK". If you want to validate the date at the time of saving
the document use the exit "MV45AFZZ", form routine "USEREXIT_SAVE_DOCUMENT_PREPARE". Do the validation based
on the value of structure field VBAK-ERDAT.
Regards
Vinod -
DOUBLE INVOICE CHECK VALIDATION
Hi All,
We have one client in USA ,Their requireemnt is as follows for Double invice check for FB60 ,FV60 AND F-47
Double Invoice check required ,if REFERENCE NUMBER AND VENDOR NUMBER same for all business transactions irrespective of dates. In SAP there is Double check procedure with respective of Invoice date also. Can anybody help out in this regard?
is it possible to add validation for that ? or If any BTE ?
Rgds
SumaHello Lisa,
Your first question,
Yes system does not check MIRO invoice while posting FB60 invoice. Because when you post invoice with using FB60 transaction, system check BSIP table for duplication. But when you post MIRO invoice system doesn't fill BSIP table.
So that your question answer is YES, you can register an invoice in MIRO with same reference without a warning.
Your second question,
BTE means Business Transaction Event. Those events are known as FI user-exit.
So that when you posting an invoice with using FB60, system triggered on BTE 00001110 as i said on my previous message.
I try to explain step by step how can you activate this BTE. But you need to ABAPer for giving warning message on this exit.
Call FIBF transaction -> Settings -> Products -> ...of a customer
Create a new line,
Product : ZXX
Text : BTE Products for FI Exit
Product active : tick checkbox.
Call SE37 for exit function and copy from FM SAMPLE_PROCESS_00001110 to ZFI_PROCESS_00001110. Then active your FM and go to FIBF transaction again.
FIBF -> Settings -> Process Modules -> ...of a customer
Define a new line.
Process : 00001120
Function Module : ZFI_PROCESS_00001110
Product : ZFI
And then you can some write ABAP code for validation and give warning message.
In this FM, If you don't want to check duplicate invoice for your cases you can set export parameter e_nostd = 'X'.
I hope it helps to you,
Regards,
Burak -
Check Valid G/L Account in R/3
Hi Experts,
I need help regarding my requirement. I need to check a certain G/L account number if it's valid in Back-end (R/3) from SRM. Is there a function module to access the R/3 table (ex. SKA1) to validate the G/L Account number? Btw, I am using Web Dynpro ABAP to code this validation in a search help.
Regards,Hi,
checking of G/L-account and other accounting data against R/3 valid data is standard in SRM. If you need a special check against multiple tables or combinations you have to create a function module in backend and call it with backend destination from your check BADI in SRM.
Regards
Joe -
Posting Check validation error
Hi,
I did a program to check if a parked document is ready to be posted or if it has any errors. I used the FM PRELIMINARY_POSTING_CHECK_ALL to check that.
In one system I got an error message that the balance of the document must be zero (this is OK). But in another system from the same client, creating a similar document, I don't get that error from the FM (this is not OK).
Do you know if there's some customization that could be different from one system to another to avoid validating certain things such as the balance of the document?
Thanks is advance!
Matias.Hello Vincent,
I created a Javascript Function in Shared Components and tried using it in Form Level and Field level validation of forms and it is working fine ( as expected ). When an invalid value is encountered, the focus goes back to the field on which I had defined the validation.
I am using Oracle Portal version 3.0.9.7.3
Could you please check if your Javascript function has 2 arguments. Atleast 2 arguments are necessary as Forms passes 2 values to the function while calling it during form level validation. -
Any service available on net to check valid email addresses?jwenting, help.
Is there any 100% reliable service available on net to check the valid email address so that the mail should not get bounced back if sent to the email id.
According to jwenting in previous topic, there is one service. Here are his quotes.
Spammers would love to have such a
service. Just send random combinations to that
service at a rate of a hundred thousand a minute and
you have in a few hours a complete list of all
working addresses on the net.
Good enough that you can repeat the process before
every run and you're never getting bounces again.Could anybody explain what is meant by this?He's saying "No there is no such service". It would provide yet another haven for crappy spammers.
-
Very strange behaviour of checking valid SSL certificates
While sniffing our network to solve a problem of using the Exchange Account on Iphone OS 3.1 I saw something strange:
To use the Exchange Account on the Iphone, you first have to type your E-mail address, then optional domain, then the username/password.
When you are finished the Iphone starts to check the validity of the SSL-Certificate in the following way:
It takes the Domain from the right side of the "@"-sign and does something like "dig @domain.tld" and checks there if an valid certificate can be found. In my opinion this does not make sense, because Iphone does not check the certificate of the Exchange/Reverse Proxy. It checks whereever the dig leads it.
I tried this with 4 different domains.
Did anybody have the same problem?Cliff, Hi. I'm curious because this can't work. I have no problem synching with the exchange - as long as i accept the message that the certificate of the exchange (which is not the certificate of the exchange but the certificate of dig @reighthandsideofmailadress) is not valid (expired, wrong common name etc).
-
How to check Valid Email in sqlserver2008R2
Hi ,
I was created one application using Asp.Net, Sqlser2008 R2 , Actually I have one table named "tblRegisterUser" and have column names are id, email in Sqlserver2008 R2.
id Email
1 [email protected]
2 [email protected]
3 [email protected]
then When I creating [email protected] then click submit button then I need to display [email protected], [email protected](simillar id created from table) in popup . This is just Warning message. because i need to duplicate Email id.
Please help me If any one knows this bug.If you want to allo only emails with @live.com, then you can try as below:
Idea is to create a check constraint ....you can also specify more email domains as required too.
create table Test_San
id int,
email varchar(200) NOT NULL CHECK ((email like '%live.com'))-- Or (email like '%gmail.com'))
insert into Test_San select 1,'[email protected]'
insert into Test_San select 1,'[email protected]'
insert into Test_San select 1,'[email protected]'
Select * From Test_San
Drop table Test_San
EDIT: I would suggest you can do these validation at your presentation/application layer at .NET code side which is more appropriate. -
Hello, is there a function module which will allow me to check whether a date is valid or not?
then DATE_CHECK_PLAUSIBILITY is right FM in such cases...
DATA : p_date(8) TYPE d VALUE '20081301'.
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
date = p_date
EXCEPTIONS
plausibility_check_failed = 1
OTHERS = 2.
IF sy-subrc NE 0.
WRITE :/ 'Invalid date'.
ENDIF. -
SEM - checking validity periods in FOX.
Hi,
I need to include a check function before data is written into the cube.
EXIT function is not meeting my needs.
So, I need to check this using FOX.
Has any one done this before?
Users enter CAL QUARTER & VALID FROM & VALID TO dates & I need to check if VALID DATES are falling in the same quarter or not.
Info objects that we are dealing with are 0CALQUARTER, 0CRM_VALIDF & 0CRM_VALIDT.
if users enter 3/2005 & 7/1/2005 & 9/30/2005, no message.
if users enter 3/2005 & 8/1/2005 & 12/31/2005, message needed to change valid to date.
if users enter 3/2005 & 6/1/2005 & 7/31/2005, message needed to change valid from date.
Appreciate any help.Marc,
thanks for your reply & it's good to see you back on SDN.
We are still on 3.x version which is not allowing me to use (SUBSTR) function.
I've developed similar code & just posting the same incase if it helps any one working on 3.x versions. (Ofcourse, credit goes to you as you helped me to develop part of the code 6 months back, if I remember correctly)
now, a major debate is going on among our users.
FOX code is raising messages & at the same time, layout is taking incorrect entries as well & freezing the row with no option of changing the incorrect entry(meaning, users can't change the incorrect entry rather they have to delete & re-enter again).
Is the way it works? Is there any way of avoiding this? Is there any way of changing directly "VALID DATES" right after the error message?
Attribue Char relationship gives an option of changing the incorrect attribute.
Can we not do something in this case to change the Dates?
Appreciate any help.
Mary,
Can we use concatenation in FOX?
<Code>
DATA CM TYPE 0CALMONTH.
DATA CM_END TYPE 0CALMONTH.
DATA CQ TYPE 0CALQUARTER.
DATA CQ_TEMP TYPE 0CALQUARTER.
DATA DATE_S TYPE D.
DATA DATE_E TYPE D.
DATA ACT_S TYPE 0CRM_VALIDF.
DATA ACT_E TYPE 0CRM_VALIDT.
DATA MAT TYPE 0MATERIAL.
FOREACH MAT, CQ, ACT_S, ACT_E.
DO.
IF CQ = '20001'.
IF ACT_S < DATE_S.
MESSAGE E001 (ZTEST_SEM) WITH ACT_S CQ_TEMP MAT .
ELSEIF ACT_S > DATE_E.
MESSAGE E001 (ZTEST_SEM) WITH ACT_S CQ_TEMP MAT .
ENDIF.
EXIT.
ELSE.
CQ = TMVL( CQ, -1 ).
CM = TMVL( CM, +3 ).
CM_END = TMVL( CM, +2).
DATE_S = C2DATE(CM,S).
DATE_E = C2DATE(CM_END,E).
ENDIF.
ENDDO.
ENDIF.
ENDFOR. -
How to check validation for a input field?
For example, I need to check the validation of a field, if OK, then the field will be inputted, otherwise, there will rise a message, how can I implement that?
Thanks and best regards,
AndersHi Andres,
U can write a code in Request Processing--DO_VALIDATE_INPUT
DATA: LR_BTADMINH TYPE REF TO CL_CRM_BOL_ENTITY.
LR_BTADMINH ?= ME->TYPED_CONTEXT->BTADMINH->COLLECTION_WRAPPER->GET_CURRENT( ).
LV_ZZAFLD000057 = LR_ENTITY->GET_PROPERTY_AS_STRING( 'ZZAFLD000057' ).
IF LV_ZZAFLD000057 IS INITIAL.
DATA: L7_MSG_SERVICE TYPE REF TO CL_BSP_WD_MESSAGE_SERVICE,
LVSP_MSG_V1 TYPE STRING VALUE 'Spare in Progress'.
L7_MSG_SERVICE = ME->VIEW_MANAGER->GET_MESSAGE_SERVICE( ).
L7_MSG_SERVICE->ADD_MESSAGE(
IV_MSG_TYPE = 'E'
IV_MSG_ID = 'ZBSP'
IV_MSG_NUMBER = '008'
IV_MSG_V1 = LVSP_MSG_V1 ).
ENDIF.
Regards,
Lokesh. -
Checking/Validating user input in a text field
How can I validate a user's input in a text field and require them to input it in the following format:
AAA 9999-999
(where A can be letters and 9 can be numbers)
Is there any documentation on how to validate user inputs in this manner?
Thanks!
BoilerUPHi,
Create a validation PL/SQL process, select Function returning Error and use something similar to the example below.
I tested it but may be I missed something. I used field name P1_TEST.
DECLARE
v_number NUMBER;
v_error VARCHAR2(1000);
BEGIN
--check if you have numbers in positions 5-8 and 10-12
v_number:=SUBSTR(:P1_TEST,5,4);
v_number:=SUBSTR(:P1_TEST,10);
--check string length
IF LENGTH(:P1_TEST)!=12 THEN
RETURN 'String length must be 12 characters';
END IF;
--check if position 4 is empty
IF INSTR(SUBSTR(:P1_TEST,4,1),' ')=0 THEN
RETURN 'There should be a space between letters and numbers';
END IF;
--check if position 9 has "-"
IF INSTR(SUBSTR(:P1_TEST,9,1),'-')=0 THEN
RETURN 'There should be a dash between numbers';
END IF;
--check if positions 1-3 has letters
FOR i IN 1 .. 3 LOOP
SELECT ascii(substr(:P1_TEST, i, 1)) INTO v_number
FROM Dual;
IF v_number>=48 AND v_number<=59 THEN
RETURN 'Only letters are allowed in positions 1,2,3';
END IF;
END LOOP;
RETURN NULL;
EXCEPTION
WHEN OTHERS THEN
v_error:=SQLERRM;
IF INSTR(v_error, 'ORA-06502')>0 THEN
RETURN '...must be integers only';
ELSE
RETURN v_error;
END IF;
END;
I hope it will give you an idea on this type of validation.
Val
Maybe you are looking for
-
Can Pr Elements read H.264/MPEG-4 AVC ?
Premiere Elements 7 has been fine for my limited purposes until now, but I've recently started using wildlife cameras, which record video in the H.264/MPEG-4 AVC codec in an AVI wrapper. The resulting videos play perfectly well on Windows Media Playe
-
Problem with RESTful web service
I am running into a problem with Flex Web Services (REST) in trying to get the proper format returned. I can see that the HTTP header is set to Accept: */*; rather than Accept: application/xml when sending the request. The web service was generated v
-
No Screen On Micro During Connect
When I connect my micro, it doesn't show those two arrows on the screen. I hear the little beep when it connects and disconnects, but WMP doesn't recognize it, and neither do any other file managers. It says its not connected. I can't install any fir
-
HIs does anyone know if 1) netBeans Mobility Pack comes bundled wit hWireless Toolkit, or I have to download it separately? 2) Can I integrate my Wireless Toolkit version 1 with netBeans Mobility Pack? 3) Can I develop midlets based on midp1.0 and cd
-
Two Instances of Itunes on One PC?
All, I recently bought a new PC, and I would like to download my old backed up Itunes library to it, along with my girl-friends library (which was on a separate computer). Is this possible? 1- I have not yet downloaded Itunes to the new PC 2- I have