Comparing dates (Start date should not be later than End date etc ...)
Hello All,
I have a table (5 rows) with 7 columns. Of which the first to columns are the start date and the end date. Can someone kindly advise on how I can go about to ensure that there is some validation mechanism in place such that the start date is not later than the end date and vice versa ? Thank you very much.
from
Kwok Wei
Hi
Use calculated attributes as Pran suggested. It should work. Where are you getting the data from. Is it from R/3. The node bound to the table ui element is it a model node. Anyway Here is the link on how to use the calculated attribute.
http://help.sap.com/saphelp_nw04/helpdata/en/7f/a0384162316532e10000000a1550b0/frameset.htm
regards
ravi
Similar Messages
-
AR Invoice date should not be less than delivery date
How can i make an alert for user when they will prepare AR Invoice?
Example:
If Delivery date is 01-10-2010 and Invoice date should be later or same but not less than delivery date(01-10-2010).
if Invoice date is less than delivery date then This data should not be added into the database.
So there is any way to stop this error.
Thanks
MizanDear Bala,
Here is the SP:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER proc [dbo].[SBO_SP_PostTransactionNotice]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- ADD YOUR CODE HERE
If @object_type='13' and @transaction_type='A'
BEGIN
If Exists (Select distinct 'error' from [dbo].[OINV] T0 Inner Join INV1 T1
On T0.DocEntry=T1.DocEntry Inner Join DLN1 T2 On T1.BaseEntry=T2.DocEntry
Where T0.DocDate<T2.DocDate
And T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
Select @error = -1,
@error_message = 'DocDate for Invoice Should not be Less than Del. Date. So You can not Add this Doc'
End
End
-- Select the return values
select @error,@error_message
end
Regards,
Mizan -
Flash Chart Error "A Start-tag was not matched with an end-tag."
All of the Flash charts on a page started displaying the error "A Start-tag was not matched with an end-tag." The charts were all working prefectly and no changes were made to the page. Any thoughts?
Thanks.Here is what I get when I click Show XML in debug mode. Thanks.
<?xml version="1.0" ?>
- <root>
- <styles>
<style type="background" id="background" background_type="solid" color="0xffffff" alpha="0" />
<style type="deal_background" id="dealBackground" enabled="yes" color="0xdddddd" alpha="100" />
<style type="deal_border" id="dealBorder" enabled="yes" thickness="1" color="0x666666" alpha="100" />
<style type="deal_position" id="dealPosition" left="146" top="169.1707317" />
<style type="deal_size" id="dealSize" startAngle="0" endAngle="180" innerRadius="0" outerRadius="109.5" />
<style type="indicator_background" id="indicatorBackground" enabled="yes" color="0x000000" alpha="100" />
<style type="indicator_border" id="indicatorBorder" enabled="yes" color="0xFFFFFF" thickness="1" alpha="0" />
<style type="scale_size" id="scaleSize" length="7.3" />
<style type="scale_position" id="scalePosition" radius="102.2" />
<style type="scale_lines" id="scaleLines" enabled="yes" thickness="1" color="0x000000" alpha="100" />
<style type="scale_labels_position" id="scaleLabelsPosition" radius="109.5" />
<style type="scale_labels_background" id="scaleLabelsBackground" enabled="no" />
<style type="scale_labels_border" id="scaleLabelsBorder" enabled="no" color="0x000000" />
<style type="scale_labels_text" id="scaleLabelsText" font="Verdana" size="10" color="0x000000" bold="no" italic="no" underline="no" align="right" />
<style type="scale_labels_size" id="scaleLabelsSize" />
<style id="areaBackground0" type="area_background" enabled="yes" color="0x669999" alpha="100" />
<style id="areaBackground1" type="area_background" enabled="yes" color="0xCCCCCC" alpha="100" />
<style id="areaBorder" type="area_border" enabled="yes" thickness="1" color="0xFFFFFF" alpha="100" />
<style id="areaBorder0" type="area_border" enabled="yes" thickness="1" color="0x666666" alpha="100" />
<style id="areaSize" type="area_size" outerRadius="105.85" innerRadius="36.5" />
<style type="circle_object_border" id="dotBorder" enabled="no" />
<style type="circle_object_position" id="dotPosition" left="146" top="169.1707317" />
<style type="circle_object_size" id="dotSize" radius="7.3" />
<style type="circle_object_background" id="dotBackground" enabled="yes" color="0x000000" alpha="100" />
<style id="emptyBorder" enabled="no" />
</styles>
- <shapes>
- <shape id="indicatorShape" type="polygon">
<point x="0" y="-4" />
<point x="-97.82" y="0" />
<point x="0" y="4" />
<point x="0" y="-4" />
</shape>
</shapes>
- <objects>
<circle sizeStyleId="dotSize" positionStyleId="dotPosition" backgroundStyleId="dotBackground" borderStyleId="dotBorder" />
</objects>
- <data>
<deal minimum="0" maximum="100" sizeStyleId="dealSize" positionStyleId="dealPosition" backgroundStyleId="dealBackground" borderStyleId="dealBorder" />
- <areas>
<area startValue="1" endValue="99" backgroundStyleId="areaBackground1" borderStyleId="areaBorder" sizeStyleId="areaSize" />
</areas>
- <scales>
<scale startAngle="0" endAngle="180" angleStep="18" labelsPrefix="" labelsPostfix="%" decimalPlaces="0" sizeStyleId="scaleSize" positionStyleId="scalePosition" linesStyleId="scaleLines" labelPositionStyleId="scaleLabelsPosition" labelBackgroundStyleId="scaleLabelsBackground" labelBorderStyleId="scaleLabelsBorder" labelTextStyleId="scaleLabelsText" labelSizeStyleId="scaleLabelsSize" />
</scales>
<indicator value="51.7412935" backgroundStyleId="indicatorBackground" borderStyleId="indicatorBorder" shapeId="indicatorShape" />
</data>
</root> -
Purchase Order Quantity should not be more than PR quantity
Dear all,
We want to control Purchase Order quantity against Purchase Requisition.
We have configured message setting 00 076 as ERROR. when we create Material PR for lets say 100 quantity. When we create single or multiple Material PO against this PR for more than 100 quantity system is giving us error. This is exactly what we needed.
But due to this message setting when we create Service PR and give service quantity lets say 100. and when we create Service PO and give Service quantity 60. First time system is allowing to save the Service PO.
When we create another Service PO with reference to same Service PR system is showing error as we have configured. Even though quantity 40 is still available.
What we want is to have control on quantity of Purchase Order for Material as well as service. Quantity should not be more than PR quantity.
Is there any other way to have such control? please provide other available options to configure.
Regards
KantHi,
06 076 is only for applicable only in case of material.
For Service and material both, use 06 400 as error "Materials/services for requisition & & already ordered with & &"
NOtes 786736
This may help u !
Regards,
Pardeep malik -
Downpayment should not be more than PO Value
Dear All
Down payment against purchase order
Downpayment should not be more than PO Value
here i want control material wise taht mean some of the material shouble be allow the exces payment and some of the material should not be allow the exces amount. againt purchase order
Regards
NavapHi,
For your you need to write Validation in OB28 and take help of your ABAPEr, the logic will be:
1. Create Set through GS01Table MARAField MATNR
2. Pre-Requisite
BKPF-BLART = 'Down payment Document"
Check
Give Exit Name such as UF101 and in this exit you can ask your ABAper to write code that
if Material on PO is in Set (created in Step 1) and Advance Amount > PO Amount then post DP
Message
Give your own message number
Hope this helps!
Br,Vivek -
Base Amount should not be more than PO net price
hi
Base Amount should not be more than PO net price , in MIGO if the Material is excisable excise tab will be populate i can able to change the base amount . i need the restriction Base Amount should not be more than PO net price , this requirement for purticarly for the dealar relegated tax codes . i am not maintain any conditions relegated BED ,ECESSand SECESS in the taxcode . i will eater the excise tab in MIGO or J1IEX Directly . please advise me how to restrict
@sakhiif that is the case why are you proividing the Authorization for MIGO_GR transcation...........Restrict the MIGO transaction and try to give MB01 transaction .So that there will no discrepancy in PO to GR....
-
How to write validation in java sript item should not allow more than 20 ch
HI,
I need to write validation in java script for a item it should not allow more than 20 characters.
Thanks
NrIf this answers your question, please mark your question as answered (so everyone knows it is answered) and assign points where you see fit..
Thank you,
Tony Miller
Webster, TX -
Should not allow more than one attendance or absence code on any given day
Hi Hr Experts ,
I need to use customer enhancement in my program.
CATS should not allow more than one attendance or absence code on any given day. requirement is
that each day will be either a full attendance or full absence and there will not be any mixture.
Function/Program: u2022
EXIT_SAPLCATS_006: CATS: Validate Entire Time Sheet
transaction code CAT2.
how to code the same?hai,
check the Time constraint class for absence/attendance types.
Regards,
Chiran Reddy. -
Date should not be less than current date.
Hello, I have a form.It has an item called end_date. I want to have validation of end_date in such a way that "end_date should not less than current date". Any tips would be helpful.
Thanks in advance.jwellsnh wrote:
Pravish,
A dynamic action executing JavaScript can do this:
Create a Dynamic Action:
Event Before Page Submit
Condition JavaScript Expression
Value $v('P1_END_DATE')<$v('P1_BEGIN_DATE')In this scenario; P1_BEGIN_DATE would need to default to sysdate and could be a hidden item on the page.
Jeff
Edited by: jwellsnh on Jul 19, 2012 9:50 AMMaybe I'm missing something but isn't this just a use case for a common-or-garden validation? Would be interested to know why you thought of javascript rather than normal built-in functionality (not meant as a criticism incidentally!) - is javascript your first port of call when it comes to APEX?
I'd also watch out for comparisons to SYSDATE - remember that SYSDATE includes the current time, so you'd need to take that into account (maybe you could make use of the TRUNC function to remove the time element?). Indeed, would javascript evaluate that expression as comparing two dates (I know Javascript evaluates variables byDuck Typing but does this work in practice)? -
Confirmation qty in co11 should not be more than operation GR qty (subc)
hi,
i have an issue after the operation(external process). we made GR in migo. it will be updated in particular production order
co03 - operation overview - select operation - ext proc tab - GR quantity ( here it is updated after migo)
now we have to do confirmation in co11. yield+ scrap = GR quantity(external operation quantity)
it should not more that of GR quantity.
sometimes they do partial receipt and do remaining operation in inhse.
so system should check First operation GR quantity , while making confirmation in co11
is it possible????
thanks in advance...Prakhash,
You will have to implement the Production Order Confirmation user-exits to check based on your requirement. Try the below user-exits and see which one meet's your requirement.
CONFPP01 |PP order conf.: Determine customer specific default values |
CONFPP02
PP order conf.: Customer specific input checks 1
CONFPP03
PP order conf.: Cust. specific check after op. selection
CONFPP04
PP order conf.: Customer specific input checks 2
CONFPP05
PP order conf.: Customer specific enhancements when saving
CONFPP06
PP Order Confirmations: Actual Data Transfer
CONFPP07
Single Screen Entry: Inclusion of User-Defined Subscreens
Try and revert back.
Regards,
Swapnil -
PO Qty should not be more than PR Qty
Hi All,
I am creating a PO from PR.
I want that the PO qty should never be more than PR qty, and if so it should give an error.
Can anyone tell me the BADI or exit for this? I have already seen exits for PO and PR, but I am not able to figure out which exit to use.
Thanks in advance.
Vinod.Hello,
You can use the function exit EXIT_SAPMM06E_012 to carry out this validation.
Thanks,
Venu -
Residual payment should not allow more than Vendor Invoice
Hi,
Eg: Vendor has booked invoice 5000 INR, when user make payment through F-53 or F-58 through "Residual" payment user can pay more than invoice 5002 INR and below accounting entry is posting.
Bank Cr 5002 INR
To Vendor Dr 5000 INR (Invoice amount)
To Vendor Dr 02 INR Excess than invoice
Business requirement is system should not allow pay more than invoice amount. How to control suggestion would be appreciated.
I have done below settings for your understanding here system configuration.
1. OBA3: Under "Permitted Payment difference" zero for Gain , Loss , Amount, Percent & Adjust Discount By However "Permitted Payment Differences for Automatic write-Off(Function code AD)" zero.
2. OBA4: Cash discount per line item: Zero and Under "Permitted Payment difference" Revenues, Expense, Percent & Cash discount put Zero.
Regards,
Babu.Hi Prashant,
I have restricted many fields to use through screen variant now user can not pay more than Invoice amount except through Residual payment process.
Client side management strongly says that they want to use Partial and Residual payment process options but user should not allow pay more than invoice amount.
If any solution please guide me.
Regards,
Babu. -
Validate that user should not enter more than specified number of digits/chars?
Hello
First case: I have placed a TEXT field on the form. Now i want to put the below validation,
1) User has to enter only numbers (no decimals)
2) Only 10 digits
If not i need to
1) Alert app.alert
2) Make the field either CLEARIng or considering & resetting only the first 10 digits (if user entered more than 10 digits)
2nd case: Same as above, a TEXT field, but, the data is with a DECIMAL notation, the allowed lenghts are as
2 digits as prefix to decimal
2 digits as suffix to decimal position
example, 35.88
Pls. let me knw the Java Script for these 2 cases or do you suggest me PATTERN validation if so, can i CLEAR or reset and if so, pls. let me know under which TAB(Display / Edit / Data) i need to put the PATTERN validation?Firstly if you are only allowing numbers then the field should be a numeric field not a text field. You can use patterns to allow only whole numbers or to have 2 digits on either side of the decimal.
In regards to the number of digits you can use the len function to determine the length of the data and if it is too long give a message or clear it. -
Commercail invoice qty should not be greater than PO qty.
Hi,
We have a requirement where, system should check for the commercial qty with PO qty and if commercial invoice qty exceeds than PO qty, system should give an error. This is required to avoid duplicate payment of customs duties.
This functionality should work for parking and posting of commercial invoice both.
Please suggest relevant solution.
Thanks & Regards,
Bhargavi.Hello,
You can use the function exit EXIT_SAPMM06E_012 to carry out this validation.
Thanks,
Venu -
Downpayment should not be more than PO Value including tax and other charg
Hi
when we create a down payment request thru F-47, it checks on basic amount ,but we want it checks with total PO value and at the same time for all po line itmes. How is possible. please help.
RegardsDear Avinash,
We had the same issue.
There is no standard configuration in SAP because system throws error when the net value in PO is exceeded.
But your requirement is when Gross value (Net Value + Freight, legalization charges etc) is exceeded the system should throw the error.
We had to take help of our ABAP team to create user exit.
They added a break point with the logic of throwing error when Gross value is exceeded.
It worked for us.
Regards
Saurabh
Maybe you are looking for
-
Adobe Media Encoder Excessively Slow After New Update
Recently (since the last update it seems like) Media Encoder has been excessively slow for me. For example - I loaded 4 videos in the the queue from Premiere that were about 5-10 minutes each. These videos were shot on DSLR and was a one shot the who
-
Project won't open after upgrade to FCP 6
I upgraded from FCP5 to 6, but now my current 107 Mb project file won't open (and neither will recent older versions of it). As FCP is reading the file, a message appears: "The filter 'shift fields' has been incorrectly applied. Do you want to fix?"
-
2LIS_02_ITM ENHANCEMENT
Hi all, We have made enhancements in the extractor 2LIS_02_ITM, the fields to include are in the MCEKPO. The only one thing what I do is put those fields in the structure. But the fields aren't in blue colors like others. When the init is execute thi
-
Hi, Could some body pl give pointers to material on EBP Documents archiving. Espl Shipping Cards and Confirmations. I want the checks carried out by program before documents are set to achievable status. Thanks in Advance
-
Elements 11 - How do I Change default setting on jPEG OPTIONS
Hi Guys, Can anyone tell me how to change the default setting under Jpeg options when saving changes, at present its ticked for Qulaity 12 Max but we want it on Quality 8 high and its a real pain having to change this setting every time we edit an im