Validation(urgent)
Hi All,
My requirement is to update or add new record to z table.
I have to implose validation rule on specific fields.
For eg.
Consider,
Table - ZVARASTO.
Primary key field - VARASTO.
Field on which to impose validation - WERKS.
Rule is --- use check table T001W when checking the input and updating DB.
This is the code which im using for updating the record
UPDATE zvarasto SET varastonimi = zvarasto-varastonimi
werks = zvarasto-werks
lgort = zvarasto-lgort
nipkaa_kuvaan = zvarasto-nipkaa_kuvaan
kuljma_kuvaan = zvarasto-kuljma_kuvaan
kauptltiedot = zvarasto-kauptltiedot
ktinventointi = zvarasto-ktinventointi
kunnr = zvarasto-kunnr
laadutusvots = zvarasto-laadutusvots
WHERE varasto = zvarasto-varasto.
So where should i in clude this particular validation.
Please help me with same.
Thanks in Advance,
Amruta.
Hi,
First select data into internal table which field u want to update n then loop on that intarnal table n update.
Just refer this code.
*& Form SUB_READ_UPDATE_BSEG
text
FORM sub_read_update_bseg.
IF NOT it_final[] IS INITIAL.
LOOP AT it_final INTO wa_final.
UPDATE bseg SET zuonr = wa_final-ccnum
WHERE bukrs EQ wa_final-bukrs
AND belnr EQ wa_final-vbeln
AND rfzei EQ wa_final-rfzei
AND saknr NE ' '.
ENDLOOP.
*--Message data updated successfully
MESSAGE i888 WITH text-002.
LEAVE LIST-PROCESSING.
ELSE.
*--Message No data found
MESSAGE i888 WITH text-003.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " SUB_READ_UPDATE_BSEG
Regards,
Prashant
Similar Messages
-
Cursor on the same field after validation (urgent.)
Hi All,
I m doin validation on certain field. if the user enters wrong value then error message should be given along with the cursor should be in that field only.
Here in my case what happens is the cursor goes to intial screen i want it at on that field where i have given the validation.
What should i do for the same?
Please help me with the same..
Thanx in advance,
Amruta.Hi,
try this
SET CURSOR FIELD 'P_DATE'.
Message ..................
OR
Try to give out the error message inside a module inbetween
Chain.
field: <Fieldname>
module Endchain.
Regards,
Omkar. -
AUC Validation (URGENT)
Hai Guru's
We need the validation for not allowing multiple posting to assets while doing settlement of AUC.
where is the option in Order settlement
useful answers points will be assain
regareds
RAMHi
For validation and substution check ob28
and settlement profile u need to create and u should specify the pharameters that means wht u need to settle under valid oharameter tab enter settlement required or optional or settlement not allowed and also doc type no entreis and time period and Percentage settlement or amount settlement 100% Validiation these options u should be maintain allocation structure and default object type
Transation OKO7
I hope u problem solved assign me points
Regards
Rams -
Need help in date Validation Urgent
Hi ,
We need help in Date Validation.
we have 2 Date fields on the form Start Date, End Date
The requirement is: End Date (May not be greater than 30 years from the start date).
I have written following script on End Date Exit event. But the problem is its calculating 30 years from the Current Date not from the Start Date
var tDate = util.scand("mm/dd/yyyy", new Date());
var M = tDate.getMonth();
var D = tDate.getDate();
var Y = tDate.getFullYear();
var SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );
//app.alert(SRes)if (SRes <= this.rawValue){
app.alert("May not be greater than 30 years from the start date")
xfa.host.setFocus(
this);}
can someone please help me
Regards,
JayHi,
You'll need to get javascript date from LCD field, and calculate & compare with the future date in javascript date.
try following script;
var sDate = StartDate.rawValue;
var wkStartDate = util.scand("yyyy-mm-dd", sDate);
var nYear = wkStartDate.getFullYear();
var nMonth = wkStartDate.getMonth();
var nDay = wkStartDate.getDate();
var wkFutureDate = new Date(nYear + 30 , nMonth, nDay);
sDate = EndDate.rawValue;
var wkEndDate = util.scand("yyyy-mm-dd", sDate);
if (wkEndDate.getTime() > wkFutureDate.getTime()){
xfa.host.messageBox("May not be greater than 30 years from the start date");
xfa.host.setFocus(this); -
hi ,
i want to validate FileAttachment If i give some junk data in IE7 It is not executing that page but it's working fine in IE6 And if i give more than 2MB,it is not enter inside the if loop ( if(attachmentFileName != null {...... }) at all .this is my code
if(attachmentFileName != null){
try{
InputStream inputStream = new FileInputStream(attachmentFileName);
if(attachmentFileName.length() > ApplicationDefs.TWO_MB){ addActionError("Sorry your file is size is greater than 2 MB");
return;
if(inputStream.available() == 0){
addActionError("Invalid file format");
return;
if(!isValidFileFormat(attachmentFileName)){
addActionError("Invalid file format");
return;
}catch(FileNotFoundException fne){
addActionError("Uploaded file not found");
return;
}catch(IOException io){
addActionError("Unable to read the uploaded file");
return;
}//end of try-catch
}//end of if
showing the following errors
15:36:47,339 ERROR [MultiPartRequest] org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2264141) exceeds the configured maximum (2097152)
15:36:52,839 ERROR [FileUploadInterceptor] the request was rejected because its size (2264141) exceeds the configured maximum (2097152)
please any one help me
sreenu
Thank YouI looked at the sample code, (getCategory() == null ). I wasn't sure if it's ok for me to validate the contentType sheet in the ActionForm, it's not a String. I moved the validation to the Action after its not working. I placed the code back to the ActionForm and debugged the code and ti worked. Thanks.
-
Entity validation (Urgent)
In my validateEntity call, how do I call a set method for an attribute that belongs to another entity?
Just to clarify,
If you add this validation to your status attribute then it will validate that Reason is not null when you change the status to 4.
If you want to raise an entity validation just add a new Entity Validator and the expression should be something like what you had:
But slightly different
Status != null ? (Status==4? (Reason!=null) : true) : true -
Date Validation Urgent Please under deadline
I currently have this 2 methods to be used by a jsp for
this is in my bean
public void setendDate(String aendDate){
endDate=aendDate;
public String getEndDate(){
return endDate;
what is the easiest way to carry out a SimpleDateFormat dd/mm/yyyy;
and set a variable to show that there is an error in the date format enteredThen, this may of some help.
import java.text.*;
public class TestFormat{
public static void main(String[] args){
SimpleDateFormat form=(SimpleDateFormat)DateFormat.getDateInstance();// ClassCastException be checked
form.applyPattern("dd/MM/yyyy");//capital letter "MM" be used
System.out.println(((SimpleDateFormat)form).toPattern());
ParsePosition position= new ParsePosition(0);
position.setErrorIndex(-1);//initialize
Date date=null;
date=form.parse("4/12-2002", position);//pattern violated
if(date!=null) System.out.println(date.toString());
System.out.println(position.getErrorIndex());
position.setErrorIndex(-1);//initialize
date=form.parse("4/12/2002",position);// with pattern
if(date!=null) System.out.println(date.toString());
System.out.println(position.getErrorIndex()); //-1 expected (no error)
} -
About customer validation(urgent)
Hi experts,
on my selection screen i have
sales organization
Distribution channel
division.
i am getting customer number from one ztable. and i need to check
this customer with sales organization,distribution channel, and division.
what table do i need to check for this three condition.
thanks,
neo.You can use the FM : BAPI_CUSTOMER_EXISTANCECHECK or (checkexistance?) where you can pass Sales area details.
reward points if helpful
Krishna -
URGENT---Validating XML file against DTD
I have a XML & DTD file.I want to validate that xml file against the specified DTD without using any editor.Through program how can i validate?Pl. help me.It's URGENT.
>
and i recieved ORA-31001: Invalid resource handle or path name "/testdtd.dtd"
when the DBMS_XMLPARSER.parseClob( PARSER , v_xml ); is executed
i removed the <!DOCTYPE family SYSTEM "testdtd.dtd"> from the XML file
the procedures worked , but not sure if really validated against the DTD file>
you have to load your DTD into XDB repository.
<a href ="http://forums.oracle.com/forums/thread.jspa?threadID=416366">How do I use DTD's with XML DB ?
Ants -
URGENT: How to maintain validation for LongText fiel for Specific F-02Tcode
Hi Gurus,
Can anyone help me out from this issue:
My client requirement: While Posting a Transaction with F-02 If user forgets to give Long Text system should through an Error, For this i have Prepare Validation. But Tried with that but my Logic is Not Correct for this Please can any one help out from this
I want Full Validation Rule including Symbols.
IT IS URGENT REQUIREMENT. Plz help me Gurus.
Thanks In Advance
Regards
Sridhar
Moderator: Please, don't use SMS language and 'urgent' wordsHi,
Please maintain the validation like this.
Prerequisite
SYST-TCODE = 'F-02' OR SYST-TCODE = 'FB01' AND BKPF-BUKRS = '001'
NOT BSEG-SGTXT = ''
Message as per your setting.
I actually put a trace a found that when we use F-02 actually system takes FB01 as TCode thats why the system does not Give a Error message. -
I am attempting to RE install PSElements 11 on a computer where it WAS last week but had a hard drive crash. The message is wrong and the serial number is correct. URGENT as I am at the apple store trying to get help from apple people, and they DON'T want me to install a new version of Yosemite as it will make computer slower...
Error "The serial number is not valid for this product" | Creative Suite
http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html -
Validation for Amount fields..very urgent
hI ALL.
I want Validation like Right justify amount decimal point and 2 decimal places.
this is Work area
TYPES: BEGIN OF T_DATATAB,
COL01(60) TYPE C,
COL02(60) TYPE C,
COL03(60) TYPE C,
end of T_datatab.
data: g_t_dbt like table of dbt initial size 10,
wa_dbt type dbt.
DATA : VAL TYPE STRING.
Now i want move value from VAL to wa_DBT-CURRENCY as follows,
move wa_datatab-col07 to wa_DBT-CURRENCY.
MOVE VAL TO wa_DBT-CURRENCY.
so if i give input 100, i need display like 100.00
Help me
helpful answers will be get rewarded.it is very urgent
Regards.
Bhanu
Message was edited by:
bhanuHi bhanu,
1. simple
2. just use
WRITE numberfield to charfield.
(it will put the field
in the SAME FORMAT as DISPLAY FORMAT)
eg. YYYYMMDD will put as dd.mm.yyyyy
256 will put as 256.00
regards,
amit m. -
Validation in t-code FBCJ (Urgent Requirment)
Hi All,
I need to validate the field 'Amount' in the table control in tab strip Cash Payments. I have to check that the amount entered in the field doesn't not cross the required limit.
This pretty urgent requirement.
Thanks in Advance.
Regards,
Kalyan.Hi,
You can write a validation exit... Please elaborate your requirement...
Regards,
Vishu. -
DRM Validation Rules Guide----- Really Urgent
Hi All,
I worked in Hyperion Suit, now my client want to use DRM
So can you please help me where I can DRM/MDM Validation Rules
this is really urgent
Vijayhttp://download.oracle.com/docs/cd/E17236_01/nav/portal_6.htm
-
Hi experts,
I am facing a peculiar issue with Validation Check, in Process Control.
I have done the following:
1. set the Validation Top account, in my AppSettings
2. Enable SupportsProcessManagement - in appropriate scenario
3. Manage Submission Phases is set to * - in Phase1 column - My Validation Account's submission Group is set to 1.
4. I have 4 independent Validation hierarchies, each one, having a submission group as 1, and are set in ValidationAccount, ValidationAccount2, ValidationAccount3, ValidationAccount4 respectively.
When I plot the Validation Account, in a data grid, I can see values, coming in the grid.
However, when I start Process Management, the Pass / Fail, is showing as Pass, even if there is value in the Validation Accounts
When I click on the Validation Pass / Fail icon, the Validation Report inside, shows blank - not even a Zero value - throughout the grid. As a result, the entity is able to promote to the next review level, even if Validation is not cleared.
Is there any setting, which I am missing out on, which is not showing Validation errors, whereas I can see Validation values in the Data Grid?
thanks
Never mind.. I found out the issue.. It was related to Rules and Metadata setting.
Edited by: Indraneel Mazumder on Aug 2, 2011 10:50 PMI'm also facing the same issue,may i know what changes you made in metadata.quick reply is appreciated.
Maybe you are looking for
-
What is the best way to add a day to a Date object?
I have come across numerous examples on adding a day to the CURRENT date, using the Calendar object. However, what I need to do is to add a day to a Date variable. Can someone tell me how to do that? I tried to set the value of my Date variable into
-
SSIS query returns no results - same query in SQL management studio works
Hello, I'm running a very simple join to get a result set: SELECT dbo.sap_contracts.svc_id, dbo.sap_contracts.svc_code, dbo.sap_contracts.quantity, dbo.sap_contracts.start_date, dbo.sap_contracts.end_date FROM dbo.sap_contracts INNER JOIN dbo.contrac
-
I need to reset my disabled iphone 5
I need to reset my disabled I phone 5
-
As it says above.
-
Retrieve image from oracle table to vb front end
Hi I want to create a table in oracle and want to insert an image to the table using lobs and i am trying to get display of image in visual basic form please help me solution send on [email protected] thanx