Exit to validate data in CJ01
Hi experts ,
I have a issue in Exits . I need to validate data in CJ01 Project Definition data .
Exactly is there any Badi or Userexit to validate the data at SAVE of the CJ01.
Regards,
Sandeep thota.
Thats a very generic question. You can use various methods for that
1. Use script task and include your validation logic
2. Use derived column transform and do validation using ssis functions and return boolean result based on outcome
3. Get details onto staging table, use t-sql stored procedure etc
If you can explain exact scenario we may be able to suggest more specific answer.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Similar Messages
-
User exit, badi or enhancement to validate data before saving for qm02
Hi,
Currently, I have a requirement to validate the data of a notification before saving data in Tcode qm02.
I have found an user exit to check data for tcode qm02. It works for task tab, I mean I can get the data under task tab of qm02 and do the validation. However, for the tab processing: I want to validate the partner name before saving but I can not get the list of partners which is in Processing tab.
Please let me know if you could show me the user exit, enhancement, or Badi so that I can validate the data under processing tab in qm02.
Thanks in advance,
Hung ToHi Keshav.T,
Currently I am using this exit to validate data for the tab "Task". However, for the tab "Processing" I can not get the data, let say Partner, to validate.
Thanks,
Hung To -
MIGO Badi or Exit for validate Serial Numbers
Hi frnds,
I need a badi or exit, to validate data on EQUI by the migo, while it's making a commit, to extract information from this table, does anybody knows about them. this is very urgent, i need help from someone asap.Ferry :
The issue makes a big headache as i following describe it : When the user saves a Delivery trought a reservation, i need to check if he's introducing correct series, to do this i need to compare by a badi or exit this data. but i did'nt found a solution, i already check this implementation (EXIT_SAPLIPW1_008) and it's doesnt work for my porpouses. Like the badi of MIGO checks for every line while it's saving (IS_MSEG,IS_MKPF) i need to check for every serial number. -
Hi Team,
I am getting error while tring to Check in any document in Sharepoint 2007. Error - "Unable to validate data. System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength).
Anybody please let me know how to resolve the issue. It has affected our 9 site collection with almost 2000+ sites. Please email me your your suggestion or you can share your ideas here also.
Tried to reset the IIS, checked the Internet connection speed (8MBps). Cleared the cache and all but no luck.
Thanks,
PronobHello,
I have found this support window for you:
http://support.microsoft.com/kb/556031
http://technet.microsoft.com/en-in/library/cc298582%28v=office.12%29.aspx
This may help you
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Hi,
We have a date field in the form. I am validating date format as YYYY-MM-DD, validation works fine. But If user enters invalid date, how to validate date? For examples:
2006-02-31 It is an invalid date. How can i validate it.
If anybody have sample code, it will help me a lot.
thanks
Neopal.Hi Neopal,
You can use something like the following to test the date is valid, use the validation event on the <Field> which you want to validate to call a Rule something like this (not complete)..
<Rule name='isDateValid'>
<RuleArgument name='date'/>
<block>
<script>
var dateToTest = env.get('date');
var formatter = new java.text.SimpleDateFormat('YYYY-MM-DD');
Date validDate = formatter.parse(dateToTest); -
V50EPROP User Exit: Foreign Trade Data Proposal
Hello All,
I want to use EXIT_SAPLV50E_003 from V50EPROP(User Exit: Foreign Trade Data Proposal in MM and SD) enhancement to update the EXART field of the EIPO table.
I have written code etc and when I run the VL02n and click on the save button, my code in EXIT_SAPLV50E_003's include does not get called at all. where as the debugger I put in EXIT_SAPLV50E_006's include gets called.
PLease tell me anything I have missed in configuration of activation of user exit?Hi,
have you create and activate project from CMOD ?
Bye
Roberto -
Function Module to validate date
Hi,
Is there a Function module to validate date in transfer rules or update rules. I checked the forum, couldn't find an answer. Any help is appreciated
Thanks
BalaYou should be able to use this FM:
CALL FUNCTION 'RSAR_DATE_CHECK_PLAUSIBILITY'
EXPORTING
i_date = yourdate
EXCEPTIONS
PLAUSIBILITY_CHECK_FAILED = 1 -
Validate Date Range in inputDate component
Hi
I am using JDev 11.1.1.2.0
I have an inputDate component which on click i need to give dates from today to future dates not passed dates.
So i have included 'validate date time range' component in the inputDate component and in the minimum property i have declared 'adf.currentDate' using expression builder and set the maximum as Jan 31,2099.
But when i execute my application i am able to select passed dates using the inputDate component, please help how can i check the date using a validator in inputDate component.
Thanks
Sudeepya i had tried with that property too....
i have declared minValue as adf.currentDate and on that it changes the value of maxValue to current date in Jan 3,2012
i have convertDatetime component in my inputDate to display the selected date in certain format.
It gives error as the format doesnot matches with the convertDatetime and inputDate component.
How can i use the minValue and maxValue of inputDate component?
the component:-
<af:inputDate
label="Planned Termination Date"
id="id2"
value="#{modifyuser.pterminationdate}"
valueChangeListener="#{modifyuserfields.plannedTermDate}"
minValue="adf.currentDate" maxValue="2099-12-31">
<af:convertDateTime pattern="dd-MMM-yyyy"/>
</af:inputDate> -
Dear All,
May I enquire how to validate date for:
textDateofLoss.getText()
Is it:
if isDate(textDateofLoss.getText()){
//True date
else{
//False date}
Please advise.Sorry, have to use the following:
import java.util.*;
import java.text.*;
public class validateDate {
public static void main(String args[]) {
String dt = "10-10-1990";
String format = "dd-mm-yyyy";
// String dt = "1990-10/10" throws a ParseException
// String dt = "1990-10-35" throws a IllegalArgumentException
try {
//DateFormat df =
//DateFormat.getDateInstance(DateFormat.SHORT);
SimpleDateFormat df = new SimpleDateFormat(format);
df.setLenient(false); // this is important!
Date dt2 = df.parse(dt);
System.out.println("Date is ok = " + dt2);
catch (ParseException e) {
System.out.println(e.getMessage());
catch (IllegalArgumentException e) {
System.out.println("Invalid date");
} -
Hey guys,
Need to validate date using RE in format MM/DD/YYYY and optional HH:MM:SS
I already have simple solution, but would like to add checks for leap year and dates like 02/30/2006 or 04/31/2006
So far I have this:
private static final String datePattern =
"^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\\d\\d" +
"(\\s(([0-1]?[0-9]|2[0-3]):([0-5]?[0-9]):([0-5]?[0-9]))){0,1}$";A much better way is to specify the format of the data and parse it using the SimpleDateFormat class method parse.
-
How I can validate date of birth?
Month-Date-Year
Example: 11-21-1960
ThanksYou could use a regular expression:
E.g.
var dateRegExp = "^(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$"; // mm-dd-yyyy
if (oField.rawValue.search(dateRegExp) === -1) {
// error!
Or you could use a date object as suggested in the previous post, but also stop the user from typing in a date so they will be forced to use the date selection box. This would ensure that the date is always in the correct format. To stop the user from typing in data, put the following code in the change event for the field:
if (xfa.event.change.length == 1) {
xfa.event.change = ""; -
Validate Date and block JavaScript page change
how I can validate date acrobat, can block JavaScript page change, only change with a button?
If you use the "util.scand" method date validation is part of the process. It either returns the number of milliseconds from the Epoch date used by JavaScript for the date time object the null value.
Date Arithmetic has some sample scripts, but you need to keep in mind that Date and Time are not independent and using "new Date()" returns the date and time at the time that line of code is executed and that can cause issues for the computing of dates only.
Are you sure of day count, most differences include the start and end dates in the number of days for the calculation.
Custom calculation for today's date field (format is None):
// get today's date an time
var oToday = new Date();
// set to start of day
oToday.setFullYear(oToday.getFullYear(), oToday.getMonth(), oToday.getDate(), 0, 0, 0, 0)
// set field value
event.value = util.printd("d/mm/yyyy", oToday);
Custom calculation for the difference in days field (format None):
var cEnteredDate = this.getField("EnteredDate").value;
var cToday = this.getField("Today").value;
event.value = "";
if(cEnteredDate != "" && cToday != "") {
// process only if date values not empty
// convert date strings to date time objectat midnight
var oEnteredDate = util.scand("d/mm/yyyy", cEnteredDate );
if (oEnteredDate == null) {
app.alert("Error in processing entered date", 2, 0);
oEnteredDate.setFullYear(oEnteredDate.getFullYear(), oEnteredDate.getMonth(),oEnteredDate.getDate(), 0, 0, 0, 0)
var oToday = util.scand("d/mm/yyyy", cToday);
if(oToday == null) {
app.alert("Error converting today", 2,0);
oToday.setFullYear(oToday.getFullYear(), oToday.getMonth(),oToday.getDate(), 0, 0, 0, 0)
// convert date objects to days
var nEnteredDate = Math.floor(oEnteredDate.getTime() / (1000 * 60 * 60 * 24));
var nToday = Math.floor(oToday.getTime() / (1000 * 60 * 60 * 24));
// compute & format the difference
event.value = util.printf("%,0 1.0f", (nToday - nEnteredDate)); -
User exit for component data in ME21n/ME22n
Hello,
I have a requirement to issue an error message if a component quantity is not evenly divisible by the end item quantity. The component data (BOM) is entered after clicking the components button on ME21n/ME22n at the item level detail. I need to evaluate the data after a user clicks save, but I cannot find a user exit where the data is passed into, or where it is defined as global data where I can reference it in a user exit. The data is stored on the screen in structure MDPM and stored in the database in table RESB.
I appreciate any help,
DavidThanks for pointing me in the right direction.
I was able to put my code in EXIT_SAPMM06E_012 and retrieve the component data through (SAPLEINK)XMDPM[]
Below is the code I used to assign the data to be able to evaluate it.
FIELD-SYMBOLS: <z_mdpm_x> TYPE ANY.
DATA: i_mdpm_x TYPE STANDARD TABLE OF MDPM_X.
Fetching Component data
ASSIGN ('(SAPLEINK)XMDPM[]') to <z_mdpm_x>.
CHECK sy-subrc = 0.
Assigning data into an internal table
i_mdpm_x[] = <z_mdpm_x>.
CHECK i_mdpm_x[] IS NOT INITIAL.
David
Edited by: David Herrema on Oct 20, 2010 3:03 PM -
Problem with customer exit variable on date range
Hi All,
I have customer exit variable on date range. In the selection screen it has to give the week range as a default (05/21/2009 to 05/27/2009).
Earlier its working fine and from yesterday onwards it is not working properly. yesday onwards default date range was not displaying in selection screen.
Wht would be the problem.
Thanks in AdvanceHi Ashish,
I checked every thing what u told earlier. Every thing is fine.
And another thing is
I have routine in infopackage level. Since day before yesterday it was working fine and yesterday onwards it was not working.
Eg: budat will take the data based on routine for the week. But yesterday onwards it is not picking up the data.however I have the data in datasource for the week.
Wht would be the problem. I debuged the code and its working fine.
Sekhar -
[BPC 7.5] or [BPC 10] Validate data from different periods
Hi,
is it possible to use the standard validation business rule to validate data in different periods? I need a rule that validates the total in my flow dimension from last year end to the value in the opening flow in the current period. Is that possible?
Thanks,
ArnoldHi Arnold,
I do not think this is possible. You can only compare accounts and flows in the detailed rules. In the Header rules you can specify specific dimensions and time periods.
You can maybe use script logic to write data to the current month into a validation test account from the last year into the current period and then run the validation rules.
Thanks,
John
Maybe you are looking for
-
Error while running service tax program (New)
Hi I have created S3 as interim tax code and S4 as final tax code. I assigned S4 to S3 as a target tax code. Entries are perfectly flowing. But when i do service tax program for, session is created properly. When i run it in SM35, for gived error "Ta
-
Move media from external hard drive
External Hard drive to itunes: I put all my music, audiobooks, tv shows, movies into a separate folders under the "Itunes Media". I also have the xml and database files on my external hard drive as well. I just purchased a new computer, and I don't w
-
The music on my iPhone 4 is not working. There are red dots next to the selections and no sound occurs when they are touched.
-
Transfer data for text with BDC?
why there isn't a field for me to assign text contents to realize inserting text into TEXT in S/O? perform bdc_field using 'BDC_OKCODE' '=T\08'. perform bdc_field using 'BDC_CURSOR'
-
Is it okay to use J2SE source in MIDLets
I need to use some functionality from a J2SE class - is it legally okay to copy from the source (inside the J2sdk1.4.1 download package) the methods i require?