Validation date item
I am a new in apex and I am trying to disable a item change when a item date is less than a sysdate,
I have created a validation : SQL expression :
to_date(:P3_data,'dd-mon-yyyy hh24:mi') >= sysdate
Error message:
You can not change the item placar right now.
but it is not working , the error message is not showing up.
Any ideia?
thanks.
Firstly, make sure that the date mask you are using is the same as the one specified in your date picker.
Secondly, your requirements is a little conflicting as it stands. Here is why:
a. Validation's purpose is to prevent invalid data from beng saved. So, when a validation fails an implicit rollback is perfored (or the commit does not occur). This implies that the data though on the page will not be saved in the table(s).
b. An item can be disabled when it is fetched and displayed using conditions in ReadOnly section on the item. But, when the validation fails the data is not written to table and page item will still carry the ealier value from the database ( or will be null depending now how it came up ) and will not be disbaled
c. If you want to disable the item inspite of having a validation then you will have to use javascript triggered on the onchange event on the date item. But then where is the need for a validation as you are taking a "suo moto" action of disabling?
In a nutshell you either disabble the item and allow the commit to happen, or perform a validation and give the user an opportunity to correct date.
I am making sense?
Regards,
Similar Messages
-
Upload BOM - validity dates items
Hi All,
we want to upload BOMS with historical data in it. So I need to 'upload' the validity dates, but I'm not sure on how to do this...
Is there someone who can point me in the right direction ?
thanks in advance !
kr,
BjörnHi
U follow BDC method ..Its very easy to upload the data with out any problem according to ur flat file.
In BDC u use recording with call transaction method.
Regards:
Prabu -
ALE BOM. Updates ALL! items with validity date & change no.
Hi All,
We are having problems where ALE-BOM sent with change in validity date (with change no) to a particular item. What happens is that ALE-BOM will instead update ALL! items with the same validity date and change number.
Next,when we process ALE again for the same BOM with a different validity date(with change no), then only that
particular item is updated with validity date and change no.
Would anyone know what could be the problem that when changes are sent for the first time all items are updated?
[Version: SAP 4.6C/ SAPKH46C48]
Regards,
NeethDear:
The error itself telling you the correction. You profit center which is assigned to your cost center has a validity date less than the one you are now assigning.You can check in KE52 against the profit center assigned to your cost center master data. However the best thing is to go to KS01 and create this cost center with desired validity date.
This will resolve your issue.
Regards -
Trans ME31K:Defaulting item condition validity to contract validity date
Hello Experts,
I have a request from my client which is as follows :
On transaction ME31K (Create Contract), at header I can enter a start date and an end date for the validity of my contract.
Program name : SAPMM06E
FIELD-NAMES : EKKO-KDATB & EKKO-KDATE
The users want the same date range to appear at item level for the conditions :
Select a new created Item > Conditions.
Program name :SAPMV13A
FIELD NAMES : RV13A-DATAB & RV13A-DATBI
Because, the transaction is changing the program name, it is very difficult for us to replicate the dates at the item's condition level.
Can you please suggest any idea to implement this solution ?
Thanks & Regards,
Mahesh
Edited by: Maheshsingh Sharma Jhoomuck on Oct 5, 2009 4:52 PM
Edited by: Maheshsingh Sharma Jhoomuck on Oct 5, 2009 4:53 PMHi raghavendra sai !
Thanks for the answer.
But actually, my client wants 'from date' of the items conditions to be defaulted to the date that he indicated on the contract's validity date at header (from date - EKKO-KDATB).
A contract can be created with a validity interval that starts from a past date. -
Reg:Validation on Item Master data
Hi,
I would like to put the validation for Item Name and UOM Name fields in Item Master in Update mode.
And i try to do the following query.But it is not restricted in update mode.
if @object_type ='4' and @transaction_type in ('U')
begin
IF EXISTS(select t2.itemcode from oitm t2 where
t2.docentry =@list_of_cols_val_tab_del and
t2.itemname not in
( select t1.itemname from oitm t1 where t1.itemname is not null) or t2.InvntryUom not in(select t1.InvntryUom from oitm t1 where t1.InvntryUom is not null))
select @error=N'1',
@error_message =N'You cannot update this document.'
end
please correct my given query.Hi md,
If's wrong in this :
t2.docentry =@list_of_cols_val_tab_del
change by the following
if @object_type ='4' and @transaction_type in ('U')
begin
IF EXISTS(select t2.itemcode from oitm t2 where
t2.Itemcode =@list_of_cols_val_tab_del and
t2.itemname not in
( select t1.itemname from oitm t1 where t1.itemname is not null) or t2.InvntryUom not in(select t1.InvntryUom from oitm t1 where t1.InvntryUom is not null))
select @error=N'1',
@error_message =N'You cannot update this document.'
end
Hope it helps -
How to get the latest and valid BOM item entry from STPO
hi,
may i know with what condition we can get the latest and valid BOM item entry from STPO table?
i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of valid-from and valid till date.
can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
thank you.Hi
You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
Regards
Shiva -
Web template :Error Valid Data provider not assigned
Hello Friends we have the web template that was working before , we did the upgrade to SP13 from SP11.
It gives the error Valid Data provider not assigned and
Bad integer Parameter value of Parameter BLOCK_COLUMNS_SIZE of Object item:ANALYSIS_ITEM:ANALYSIS;
Please help where do i need to assign the Data provider beacuse the Values are same for Dataprovider as before
Portal Runtime Error
An exception occurred while processing your request
Exception id:
See the details for the exception ID in the log file.
Thanks
Soniya
Message was edited by:
soniya kapoorOpen the template in WAD and do a validation against the server and make sure the template is well formed.
Also make sure you apply BI JAVA Patch 1 for SPS 13. -
How to validate a date item "DD/MM/YYYY HH24:MI" ?
Hi,
I want to create a validation item. I have a date item usinhg this mask : "DD/MM/YYYY HH24:MI".
I want to validate if a date entered according to this syntax "DD/MM/YYYY HH24:MI"
Unfortunately APEX gives me only the choice to validate if a date is under the form "DD/MM/YYYY" which gives this syntax :
^([012]?[[:digit:]]|3[01])/(0?[[:digit:]]|1[012])/[[:digit:]]{4}$I don't know this syntax, do you know how I could transform it (I mean adding the hours and minutes criteria) to attain my goal ?
Sorry for my english, not perfect, today !
Regards,
ChristianTry this:
SELECT REGEXP_INSTR('04-OCT-2011 23:12',
'^([012]?[[:digit:]]|3[01])-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-[[:digit:]]{4}[[:space:]][0-2][0-9]:[0-9][0-6]$') test_result
FROM dualFor case-insenstive matching, use below:
SELECT REGEXP_INSTR('04-OCT-2011 23:12',
'^([012]?[[:digit:]]|3[01])-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-[[:digit:]]{4}[[:space:]][0-2][0-9]:[0-9][0-6]$',1,1,0,'i') test_result
FROM dualThanks!
JMcG -
B2B-51507 :The data starting at position 0 is not recognized as a valid dat
Hi All,
I am trying to work with Delimited Flat File in 11.1.13 version
B2B has to translate Flat into XML data for further operations
Sample looks like:
F01,,RM30207,Subinventory Transfer,KITCHEN1,100,LB,KETTLE1-HS,20-SEP-2011
It is a delimited data file.
Steps I am following:
1. Create Delimited Flat file ECS in Oracle B2B Document Editor (starting with a blank template)
2. Create XSD for the ECS
3. COnfigure the generated ECS and XSD into Oracle B2B
4. Create Trading partner and agreements
I am facing with below error when I enable translation
B2B-51507 :The data starting at position 0 is not recognized as a valid data transmission.
No errors when translation is disabled
Thanks,
DeeptiHi Deepti,
For inbound scenario, the parser schema should be created and has to be added inside the XERegistry.xml ($SOA_HOME/soa/thirdparty/edifecs/XEngine/config/)
e.g :
<Item Name="SchemaFile">${XERoot}/config/schema/csv_ParserSchema.ecs</Item>
This can be created using the document editor. This parserschema need to be created for the ecs file that is used for translation.
Regards,
Dheeraj
. -
Hello
The requirment is once the PO validity date is over, then system should not allow any GR or IV against the PO.
Is their any std SAP message which can control this.
Regards
Niti NarayanHi,
To control this.......you an use latest GR date in delivery tab
To prevent goods from being accepted in the case of delayed delivery, youmust specify the latest possible goods receipt date for the item in the purchase order. This field is in the item detail data on the Delivery tab page. You also have to set
message 163, Last possible delivery date was... (work area M7), as a warning or error message in Customizing.
If you have set the message as an error message for delayed delivery, you can post the delivered goods to the GR blocked stock and then post a return delivery from the GR blocked stock.
Hope Help U !
Regards,
Pardeep Malik -
Hello,
We are using MDM catalog to host all contracts from suppliers. I would like to set validity date on the Catalog (Standard field in the CATALOG table). I also want that catalogs that are not valid anymore would not be displayed to my SRM users.
Has anyone has experience with setting some kind of view, according to the contract validity date?
Thanks in advance
LimorHi,
One of customer has implemented item delete program using MDM API and scheduled it every night.
Please go to http://help.sap.com for MDM API.
Regards,
Masa -
Event ID 10801 - Abstract class ID not allowed in a discovery data item.
Hi All,
I am getting very frequent event id 10801 on my RMSE -
Discovery data couldn't be inserted to the database. This could have happened because of one of the following reasons:
- Discovery data is stale. The discovery data is generated by an MP recently deleted.
- Database connectivity problems or database running out of space.
- Discovery data received is not valid.
The following details should help to further diagnose:
DiscoveryId: a8cc450e-fdfa-9ff0-e46f-0b8a3f58a57b
HealthServiceId: 4e1815a1-6704-e686-f490-15d7d46773d2
Microsoft.EnterpriseManagement.Common.DiscoveryDataAbstractClassIdNotAllowedException,Abstract class ID not allowed in a discovery data item.
Class ID: e2ea0f3e-a2ac-41d8-9ba2-7c0b524a121e
Rule ID: a8cc450e-fdfa-9ff0-e46f-0b8a3f58a57b
Instance:
<?xml version="1.0" encoding="utf-16"?><ClassInstance TypeId="{e2ea0f3e-a2ac-41d8-9ba2-7c0b524a121e}"><Settings><Setting><Name>5c324096-d928-76db-e9e7-e629dcc261b1</Name><Value>ABCD.domain.domain</Value></Setting><Setting><Name>af13c36e-9197-95f7-393c-84aa6638fec9</Name><Value>11</Value></Setting></Settings></ClassInstance>.
When I check the Discovery ID it gives me the below discovery.
PS C:\> [guid]$g = "a8cc450e-fdfa-9ff0-e46f-0b8a3f58a57b"
PS C:\> Get-SCOMDiscovery | where {$_.Id -eq $g}
HasNonCategoryOverride : False
Enabled : onEssentialMonitoring
Target : ManagementPackElementUniqueIdentifier=3c998a33-cbc3-a258-b728-a67982377058
ConfirmDelivery : False
Remotable : True
Priority : Normal
Category : Discovery
DataSource : DiscoveryDataSource
DiscoveryClassCollection : {}
DiscoveryRelationshipCollection : {ManagementPackElementUniqueIdentifier=08d64c2a-2ba5-cafa-54ad-bfe91e2a39b3}
XmlTag : Discovery
ManagementGroup : SCOMPRODUCTION
ManagementGroupId : 1a77df0b-1a31-721c-be9d-aebe3f85db8c
Identifier : 1|Microsoft.Windows.HyperV.2012.Discovery/31bf3856ad364e35|1.0.0.0|Microsoft.Windows.
HyperV.2012.VirtualNetworkContainsNetworkAdapterDiscovery||
Name : Microsoft.Windows.HyperV.2012.VirtualNetworkContainsNetworkAdapterDiscovery
Id : a8cc450e-fdfa-9ff0-e46f-0b8a3f58a57b
DisplayName : Hyper-V 2012 Virtual Network Relationship Discovery
Description : Discovers Microsoft Windows Hyper-V 2012 Virtual Network contains Network Adapter
relationship
LanguageCode : ENU
Comment :
Status : Unchanged
LastModified : 12/11/2014 12:18:01 AM
TimeAdded : 12/11/2014 12:18:01 AM
InstanceName :
PS C:\>
I am getting this event for multiple agents now. I checked the discovery highlighted "Hyper-V 2012 Virtual Network Relationship Discovery" but did not get anything.
Can anybody help me in resolving this.
Thanks, S K AgrawalMicrosoft.Windows.HyperV.2012.VirtualNetworkContainsNetworkAdapterDiscoveryDataSourceModule Code (Code executed for your discovery Hyper-V 2012 Virtual Network Relationship Discovery)
Set oNIC = oDiscoveryData.CreateClassInstance("$MPElement[Name='WSLib!Microsoft.Windows.Server.NetworkAdapter']$")
Call oNIC.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.LogicalDevice']/DeviceID$", nicId)
Call oNIC.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", ComputerIdentity)
This class (Microsoft.Windows.Server.NetworkAdapter) is defined as abstract class in “Microsoft.Windows.Server.Library.mp”
<ClassType ID="Microsoft.Windows.Server.NetworkAdapter"
Abstract="true" Accessibility="Public" Base="Windows!Microsoft.Windows.NetworkAdapter" Hosted="true" Singleton="false">
This was filed as a Bug with Microsoft.
Thanks, S K Agrawal -
GATP - Issue with substitution rules with validity dates
Hi,
We are using GATP with RBA. Our condition table has plant as a field.
We are planning to have a substitution procedure (rules) defined at plant level.
Our rule control for product substitution list is "Start from top of list"
The issue we are facing is explained below.
The first item in the substitution procedure (rule) cannot have validity dates.
So it will always be balnk. And validity dates can be maintained for other items in the procedure (rule).
What happens in our scenario is when there is a requirement on an item in the substitution procedure (rule) which has a validity date, the first item in the procedure (which can never have validity dates) is never considerd for substituions.
If I remove the validity dates, then the first item in the procedure (rule) is considered for substitutions.
We find this strange and against our business requirement. We want the first item in the procedure (rule) to be considered for substitution ireespective of the validity date for the requested product.
It would be great if you could suggest a method to achieve this.
Thanks & regards,
Arvind.SHi Mohan,
Thanks for the response.
We are using back order processing (BOP) for allocation.
We observed that the first item was not getting considered for substitution in the BOP results and also in product view after the BOP run. No stock of that item was allocated for the order taken up in the BOP run.
However, we tried rule evaluation also. It shows the first item also, but in actual allocation the issue exists.
We are not using "start immediately" in check instructions.
Thanks & regards,
Ashok -
I have a simple Requirement, Please help me to resolve this
Requirement: I have Valid To Date for all Objects Now i want to create the Variable such that the
User Input Date(During Report Execution) is less than equal to Valid Date(OVALIDDATE).
Please let me know how to solve do i need to write the code in customer exit if you have any template. or any formula if you can explain step by step would be great help.
Thanks
PoonamJust set the value of the page item to sysdate and separately apply whatever format mask you want to use. Sysdate include a time element. For very accurate timestamping you might want your column to be a timestamp datatype rather than date.
Earl -
Validation "is a valid date" does not pass but Apex proceeding anyway
Hi,
I have a simple date-item which I validate first against "not null", then for "is a valid date", then that the date is not in the future.
In debug mode the first validation passes, the second ( is a valid date ) does not pass, but the validation process proceeds anyway...!? Then the third validation "date not in the future" produces ad DB-Error because it is not a valid date.
Why does the validation proceed even if the validation does not pass...?
Version 2.2.0
JuergenJuergen,
"In debug mode the first validation passes, the second ( is a valid date ) does not pass, but the validation process proceeds anyway...!?"
Do you mean that the third validation is firing even though the second is failing? This behaviour is correct. All validations fire (regardless of any having already failed) unless they have specific conditions set on them to make them act differently.
If you don't want the third validation to fire if the second has failed then you will need to put a condition on the 3rd validation to prevent this. Alternatively you could bundle all you validations into one of type "PL/SQL returning Error Text" then have some IF...THEN...ELSE logic in your PL/SQL to return the relevant validatoin text depending on what the problem is (i.e. Date is null, date is invalid or date is in the future).
Andy
Maybe you are looking for
-
Can Apple Sue Stores For Reselling Final Cut Pro X? Please Reply:)
Can Apple Sue Stores For Reselling Final Cut Pro X? Because i saw an authorized store selling it for 39 Dollars? Please Help Fast Thanks:)
-
Output type & example sales doc
Hi all, As we all know, we can get example billing doc which use the definited output type to print through T-code: VF31. Similarly, we also want there existed T-code which can help us to find the example sales doc which used the definited output typ
-
Spool to Excel or Text Conversion thru ABAP
Dear All, Is it possible to convert a spool into Excel file or Text Format thru ABAP?
-
My ipod wont connect/charge and is stuck on the home screen while trying to update it
i tried to update it not realizing i needed to connect to itunes so it was on the screen to connect to itunes all day during school til i got home and it wouldn't update so i restored it 5 times and then it wont charge/ connect or restore at all
-
Anyone notice a factory protective overlay on their 3G screen
Hi I was using my iPhone 3G today and noticed something I have not noticed before. Has anyone noticed that there seems to be some short of protective shield on the touch screen? I noticed this because when i looked at the speaker area and the home bu