Doubt in Validation

Hi All,
I need to validate the input given by the user in Table Maintenance Screen.
So i used Table Maintenace -> Environment -> Events option to do that.
In that , i configured such that whenever a new entry is created, my validation subroutine will be triggered.
the pseudocode is.
if ztable-field1 is inital.
message 'supply value' type 'e'.
enif.
if ztable-field2 is inital.
message 'supply value' type 'e'.
endif
The thing is that, even if i give a null value to second field, the cursor always comes to the first field. The second field is disabled. So i need to delete the entire row to create a new valid record.
What should i do if want the cursor to be on the incorrect entry after the error message is triggered. (for me its always on the first field even if the second field is wrong. i could nt change the second field)

It depends on the requirement of the report.
All the fields which require to extract master data in report need to be validate.
Also, fields which are obligatory and have specific values will be bind with there correponding check tables.
Regards,
Amit
Reward all the helpful replies.

Similar Messages

  • Urgent doubt in validating numbers

    Hi Experts,
    i have a doubt that how can we checking and validating all numbers; mind you: the US uses different decimal notation so it would have to format into SAP's internal, catching conversion exceptions and notifying the user if such occurs?
    Thanks

    Hi
         Here iam giving 1 example .
    The Excel sheet provides:-template to fill out by user-control fields to verify what data format is used by userThe sheet must be protectedWe use control fields in the spreadsheet (protected, cannot be changed by user) to store a predefined date (i.e. 12/31/2005) and number (i.e. -12345.67). The upload program will read these values and confirms the user’s settings for date and number formatting.
    wa2_datatab-col020(4) = wa_datatab-col026(4).
    wa2_datatab-col024(2) = wa_datatab-col023(2).
    wa2_datatab-col026(2) = wa_datatab-col020(2).
    data: l_month(8) type c,
          l_mnr(2) type c.
    l_month = WA_DATATAB-COL02+3(8).
    perform sub_get_month using l_month
                          changing l_mnr.
    wa2_datatab-col02+3(2) = l_mnr.
    form sub_get_month  using    p_l_month
                        changing p_l_mnr.
    select mnr
           from t247
           into p_l_mnr
           where spras = sy-langu
           and ltx = p_l_month.
    endselect.
    how can do this?plz give the code DATE can be formeted as above logic but how can format number?
    Thanks
    Message was edited by:
            bhanu

  • Doubt Regarding validation of IDOCS

    Hi Gurus,
               I have some doubts regarding IDOCS.
    1. If we are sending a IDOC from XI to R/3, where does we do validations from R/3 side and how do we do that.  Suppose if we are sending a Purchase order IDOC form XI to R/3, how to do validations for that particular IDOC for PO number and some other fields  from R/3 side.
    2. Do we need to do validations in a aABAP Program.
    please clarify me these Questions. Thanks in advance..
    santosh.

    Hi Santhosh,
    If you want to do any validations in ur IDOC,then from XI just push the IDOC,dont post it.
    (ie)Send the IDOC from XI in status 64 :IDoc ready to be transferred to application.
    Once R/3 Received this status then thru your ABAP progream just get this IDOC no: and do the validations then Post the IDOC manually.
    Thanks.
    Note:Reward Points if you find useful.

  • Doubt abt validating the domain name

    Hi,
    I have a doubt in authenticating the domain name.
    Before the sendmessage can i verify whether the domain name's correct or not.
    for eg:[email protected] to verify whether test.com is valid or not.
    I'm using javax.mail to send mails in my application.
    I'm not getting how to do this and we dont have any DNS name.
    how do i authenticate this..plez help me in this.
    Thanx&Regards,
    Priya

    Before the sendmessage can i verify whether the domain
    name's correct or not.Not really, no.

  • Doubts in validating message using BPM

    1)Have to check the response message has not been sent twice for the same id,
    if wrong stop processing the message further.
    2)Have to check the values coming in message is valid or not by comparing the values with R/3 table.
    3) When sending Email alert, some of the values of the invalid message also has to be send with alert.
    4) Have to check the details sent back and sent are same.
    eg: if i send vendorid and some more values for which inturn they sent back are same
    or not.
    5) I have configured deadline branch there I have given the alert category, description.
    I have configured only one recipient for the alert. so if delay in response am getting the mail in particular id.
    So when i send message to particular system its fine.
    But in my scenario, one system connected to more than four system.
    When i send message to morethan two system how to send email alert to particular
    system where delay to send response.
    Can anyone guide me how can i approach these validations.
    Thanks in advance,
    Sakthi

    Hi,
    1)Have to check the response message has not been sent twice for the same id,
    if wrong stop processing the message further.
    --> If you have a synchronous call you EVER have just one reponse message. So in SYNC this should not be necessary. In ASYNC mode you don't have a response, so this is also not neccessary
    2)Have to check the values coming in message is valid or not by comparing the values with R/3 table.
    >>>You need a RFC in R/3 that gives you table records. In this case see, if a RFC is already available; otherwise you have to develop the RFC
    3) When sending Email alert, some of the values of the invalid message also has to be send with alert.
    >>> Design a sender step and send the interface which caused the error. The message will be attached.
    4) Have to check the details sent back and sent are same.
    eg: if i send vendorid and some more values for which inturn they sent back are same
    or not.
    >>> I would suggest that you inspect the samples delieverd by SAP. In Integration Repository goto SWC SAP BASIS. There are samples.
    5) I have configured deadline branch there I have given the alert category, description.
    I have configured only one recipient for the alert. so if delay in response am getting the mail in particular id.
    So when i send message to particular system its fine.
    But in my scenario, one system connected to more than four system.
    When i send message to morethan two system how to send email alert to particular
    system where delay to send response.
    Regards Mario
    null

  • Doubt on validator

    I am writing validator class. here is the code :
    The code is checking for the IP address, if it is invalid then will throw error in the screen.
    In the validator class how to handle the error or how the screen will know the error.
    public class IpValidator implements Validator
       public void validate(FacesContext context, UIComponent component, Object value)
       throws ValidatorException {
       String strValue = (String)value;
    }

    Just throw ValidatorException.

  • Urgent:Doubt on Validation

    hi friends ,
    I have written the code for telephone number validation for the formats XXX-XXX-XXXX
    and XXXXXXXXXX.
          IF <fl_ship>-telf13(1) EQ '-' AND <fl_ship>-telf17(1) EQ '-' .
            IF <fl_ship>-telf1 CO '0123456789-'.
              write sy-fdpos..
              li_ship_to-telf1 = <fl_ship>-telf1.
            ELSE.
              li_ship_to-telf1 = ' '.
            ENDIF.
          ELSEIF <fl_ship>-telf1 CO '0123456789'.
             write sy-fdpos.
            li_ship_to-telf1 = <fl_ship>-telf1.
          ELSE.
            li_ship_to-telf1 = ' '.
          ENDIF.
    this is not working for XXX-XXX-XXXX also for XXXXXXXXXX can any body can say why its not working . I have tested with 123-456-7890 also for 1234567890 ...

    Hi..
    <b>Observe the changes in BOLD</b>
    You have to include the SPACE ( ' ' ) also while comparing with CO.
    Otherwise if the String contains a SPACE it will not match the condition.
    Now try the code below.
    It works.
    <b>IF <fl_ship>-telf1 CO '0123456789- '.   "Add SPACE character also</b>
    write sy-fdpos.
    IF <fl_ship>-telf13(1) EQ '-' AND <fl_ship>-telf17(1) EQ '-' .
    li_ship_to-telf1 = <fl_ship>-telf1.
    ELSE.
    li_ship_to-telf1 = ' '.
    ENDIF.
    <b>ELSEIF <fl_ship>-telf1 CO '0123456789 '. "Add a space also</b>
    write sy-fdpos.
    li_ship_to-telf1 = <fl_ship>-telf1.
    ELSE.
    li_ship_to-telf1 = ' '.
    ENDIF.
    <b>Reward if Helpful</b>

  • Regarding Authorization in OBIEE

    Hello Experts,
    I am having trouble rather confusion with Authorization in OBIEE. We have configured Authorization using external table and it is working fine.
    Scenario is:
    We have hierarchy like Senior Managers-> Horizontal Head->ORG Head-> Team Leads
    I created their respective groups for each of them in RPD and in Presentations services.
    Senior Manager Group (SR_Manager) has NO restrictions, all other 3 groups(Horz_Group, ORGH_Group, TL_Groups) have data level security they can view data for Process_ID aligned under them. This we are maintaining in external table.
    My doubt comes in when a Senior Manager is member of other groups as well.
    Let say ABC is Senior Manager as well as Horizontal Head and as a Horizontal Head his access is restricted to 5 Process_IDs.
    My Doubt is shouldn’t ABC see all the data as he part of Senior Manager Group, Senior Manager Membership should supersede all other membership? As per documentation OBIEE should apply LEAST RESTRICTIVE PERMISSIONS?
    Kindly suggest if my doubt is valid.
    Thanks
    Ankita

    Hi Amith,
    Thanks for your reply.
    I would like to confirm from what you replied. You asked to change the scenario for our senior most group.
    For our scenario, Sr_Manager group has no restrictions. Hence, all data should be viewable to members of this group. We have now kept all members belonging to Sr_Manager group to this group only and no other group membership has been provided. This works fine and is giving expected results.
    I would like to bring this to notice that, this problem was not coming initially when all the groups had been created. Any member from Sr_Manager, belonging to other lower groups could view all data as per his least restrictive group membership. But, I am not sure why this is failing now.
    Could you pls suggest any cause of this problem?
    Regards
    Ankita

  • DatabaseMetaData.getAttributes throwing 'unsupported feature' exception

    Hi, maybe someone can help me with this.
    For a given schema, I'm trying to find the definition of a user-defined type. However, the getAttributes method of DatabaseMetaData throws an exception, claiming that the feature is unsupported.
    This is the code:
    Connection connection = null; ResultSet resultSet = null; try { connection = DriverManager.getConnection( URL, USERNAME, PASSWORD ); DatabaseMetaData dbMD = connection.getMetaData(); System.out.printf( "%s %d.%d%n", dbMD.getDatabaseProductName(), dbMD.getDatabaseMajorVersion(), dbMD.getDatabaseMinorVersion() ); resultSet = dbMD.getAttributes( null, null, "BATCH_T", "%" ); // this is line 32 // code to print the ResultSet } finally { if( resultSet != null ) resultSet.close(); if( connection != null ) connection.close(); }
    And this is the output:
    Oracle 10.2 Exception in thread "main" java.sql.SQLException: Unsupported feature         at oracle.jdbc.OracleDatabaseMetaData.getAttributes(OracleDatabaseMetaData.java:10980)         at udttest.Main.main(Main.java:32)
    The driver is the very latest one from the Oracle site, ojdbc6.jar, version 11.2.0.2.0. According to the JavaDocs of OracleDatabaseMetaData, the getAttributes method has been there since 9.0.2. So does this means that the method has merely been present, and always throws this exception?
    Alternatively, is there another way of programmatically retrieve information about a user-defined type?
    Thanks,
    - Peter

    Severity One wrote:
    jschell wrote:
    Severity One wrote:
    Yes, but the question was not how PL/SQL could know about how a Java object looks like, but how Java can know how a PL/SQL object looks like.You said the following.
    +"One issue we have at work is to pass to or receive from a PL/SQL stored procedure a Java object."+
    What I read from that is that you wish to get/send a "java object" to PL/SQL.
    Thus PL/SQL would in fact need to know what a "java object" is.No, you forgot to read the context: I wanted to know how Java could figure out how an Oracle user-defined type looked like, not the other way around. This business of "PL/SQL knowing about a Java object" is something you invented, that you keep harking on, and which I never said. So could you please drop it?
    I read what you posted, not your mind.
    Well, I could think of having the business logic for an application in PL/SQL, and using Java to create an API or web > > > Specifically, it's about an SMS sending application, which is interacting with just one table in Oracle and an SMS-C. Want to send an SMS? Insert it into the table. Want to receive one? Read it from the table. Any application that wants to send any number of SMS's, would therefore interact with this database, and a lot of things can be done purely in Oracle, without the need of having a separate application requiring the attention of support staff.Which I can implement completely and easily without using PL/SQL user defined types.Really? There are a lot of optional parameters when sending an SMS. It's not just sender, recipient and text content. So if I want to send, say an identical message to 10,000 recipients, or I want to send 10,000 individual messages; in both cases, with certain parameters for such things like time-outs, SMS-C port, protocol ID, data coding, delivery report options, priority, and all the other things that SMPP allows you to define, how would you pass those in a manner that doesn't lead to dozens of stored procedures, or very long parameter lists?
    Standard normal form in relational databases - an option table.
    And I doubt a valid format for delivery would work with 10,000 recipients stored in a single UDF verus a receiptant table.
    Not to mention of course that the fact that there might be one case for a UDF doesn't mean that the usage is a good idea for most applications. Or even that one application that uses a single UDF will need more than one of them.
    Restating what I said "...doesn't mean that it *normally* a good idea to use it."
    To clarify your confusion about that statement it means that there will in fact be some cases where it is acceptable but most cases it is not.
    Or do you prefer calling stored procedures with endless parameter lists? Or to have a whole bunch of insert and update statements called from Java?No idea what you are talking about. See the above example about sending SMS messages.
    Option table.
    First what you mention above is a standard idiom in all programming languages and used extensively since interactions between programming languages and relational database began.What, whole loads of stored procedures, or doing all the updates and inserts from Java? We've come to the conclusion that the inability to validate an SQL statement in Java source code is a bugger, and that it's better to do this sort of thing in a stored procedure. Also, using arrays means a significant performance improvement, and an array of objects/user-defined types is the next thing that comes to mind.
    That will not be a consideration in most applications. And for those applications where there is a proven performance bottleneck at the database layer most applications would be better served with one or more of the following
    1. Redoing the architecture/design
    2. Using a caching mechanism.
    3. Even look at redoing the requirements.
    Secondly I have no idea what you mean by "endles parameter lists". I do not have that problem. If you do then I can only suggest that you should look at problems with your design rather than than attempting to solve it with your implementation.If you have a lot of parameters, like with sending SMS messages, some of which are optional whilst others are not, and when many of these parameters are identical between different insert statements, you have two options:
    * use very long parameter lists.
    * use user-defined types; for example, an array with 'recipient + messages' types, and a single 'all other options' type.
    Or an option table.
    Perhaps not, but I didn't take off at a tangent. Anyway, one way of preventing binding is by having one of the frameworks figure out on its own what the other is doing. The whole reflection and annotation thing in Java lets you do that. Unfortunately, the getAttributes() method does not.
    First as you yourself noted it is irrelevant.No, that's something you claimed. When you ask for an example, don't brush them off as being irrelevant.
    My mistake then.
    Second dynamic interface code is NOT a mechanism that reduces coupling. The fact that it is dynamic does not alter the dependency.It reduced coupling between source code, which is what it's all about. I can always fix a library; it's a lot easier than changing dozens of applications.
    No it doesn't. Coupling is coupling. The manner of calling the methods doesn't alter the semantics that require that the method is called in the first place.
    That is similar to claiming that something like perl/javascript is less "coupled" because the language is interpreted versus C++ where the method calls are compiled. Which of course is not true.
    I can store data in a database, any database, in any number of ways. None of which would require a Oracle user defined type.True, but I'm using Oracle for more than just storing data. PL/SQL is extremely powerful for certain operations, and it'd be silly not to employ that power.Which has nothing to do with what I said.Quite frankly, I'm at a loss what point exactly you're trying to make. Passing data between Java and Oracle user-defined types and arrays is a total pain, so as a programmer I'm trying to find a way to do this in a standard way, something that can be put in a library. I agree that it a complex issue.
    It however is not something that most applications need however since most do not need UDFs.
    And so I have written such a library: small, database-agnostic (should work with any JDBC data source, although I haven't tested it yet), but with annotations to mark what UDT a class maps to, and to what field within the UDT each field of the class maps to. It's the annotation bit I was wondering whether it could be avoided. Obviously, because Oracle doesn't support the getAttributes method, it would no longer be database-agnostic. Which is not really a problem, because we only use Oracle, unless a vendor supports only some other database.
    Not sure what that means since most other databases do not support UDFs.
    That fact that a feature exists is not by itself a reason to use it. Java has 'strictfp' but I have never had a single business need that required that I use it. As such if I saw someone attempting to use it or stating that it must be used then I would insist that the provide specific details driven from the business needs that required its usage.The fact that you cannot think of a use or a business need, does not mean one does not exist. I suggest you re-read my first post, since that is not what I said.

  • Certificate expiration handling

    We know that during handshake a client's/server's certificate validity (expiration) is checked.
    But what about it expires during the run time. I doubt that validity check is carried out once a day or so??? or it occurs once in a session's lifetime?
    e.g. I have a certificate that expires on 01/12/2008 and the handshake is done on 30/11/2008.
    What happens if the session is still alive on 02/12/2008???

    Nothing. But your certificates should be renewed long before there is any risk of expiry during runtime though.

  • Lookout 6 Slow Response

    We are currently moving our clients to Lookout 6, but have noticed some major issues.
    When the server and client processes are opened on the dev. machine, displays are very unresponsive. Clicks to pots, buttons, etc. and delayed about 1-3 seconds. HyperTrends are shoppy, and take minutes to load (only 9 data points!). Client machines on the network are even worse, taking upwards of 10 minutes to load 1 hour of logged data (.1 resolution, very little fluctuation over 1 hour). Moving a panel via the titlebar causes the machine to slow, windows needing to be redrawn constantly.
    The new SQL/MSDE server for Citadel also causes 90% processor usage with the process idle!
    This appears to be a known problem, any ideas?
    Mike
    Dev. Machine Specs:
    Windows XP Pro
    Athlon 1Ghz, 512MB, 2x60GB RAID, ATI 9600 Video. (Not really that slow!)
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

    Mike@DTSI and skibum09,
    I am sorry to hear that you are having difficulties with Lookout 6.0. My co-workers and I in no way discount your concerns or doubt their validity. It seems quite obvious to me that both of you are having difficult issues.
    That being said, I want to assure you that getting very good performance from Lookout 6.0 in the types of applications that you are describing is completely possible. I have talked to dozens of people who are doing just that. We have not seen the issues that you are describing in any of our applications here at National Instruments. In my opinion, this most likely points at a difference in style of programming, hardware, peripheral software, or networks.
    That leaves a lot open for investigation. If you would both be willing, I would appreciate it if you could post, 1, a general description of your application, 2, details of the computer(s) having the trouble (HW, OS, and OS ServPack), 3, any peripheral software that is running on the machines (virus scans, firewalls, software updaters, thin clients, etc.), and 4, the details of the networking setup being used.
    I am hopeful that with this information that we may be able to identify some similarities between the machines that you are having trouble with. In addition, if either of you can create a small, hardware-free, application that can duplicate the problems that you are seeing and post it, I would be willing to try running it to see if it is possible for me to duplicate your trouble. I am hopeful that others in this forum might also be willing to do the same.
    So lets track down the problem that you are seeing and get it resolved. I look forward to your responses.
    Regards,
    Jed R.
    Applications Engineer
    National Instruments

  • Which Grafikcard for CS5?

    Hi,
    at the moment I work on Production Premium CS4 and thinking about upgrading to CS5. At the moment my System is a Intel i7 920 CPU, 12GB Ram, 1GB Raid 1 and 2 GB Raid 0 HDD and a Nvidia GTX 250 Grafikcard/512MB.
    To use the Merkury Playback engine I will need another GPU and according to the "hack" found several times on internet a GTX 560 should work very well!
    The Question now is, do I need/should I buy a GTX 460 with 1GB or 2GB or RAM?
    Or is the amount of GPU Ram not important (but I will need at least 768MB as I read in the tests)??

    To use the Merkury Playback engine I will need another GPU and according
    to the "hack" found several times on internet a GTX 560 should work
    very well!
    I doubt the validity of that information, because the GTX560 does not exist.
    Entry level: 460
    Economic: 470
    High-end: 480
    The more memory, the better.

  • Reservation of MacBook pro retina

    Just want to find out if it's possible to reserve a MacBook pro retina as I was told over the phone by the apple store Penrith in Sydney that I could do so after 9 pm. Please advise if it's possible if so how to do it.  Thanks

    This is a User to User Forum...
    If you doubt the validity of the information from the Penrith Store... try another store...
    See Here  >  http://www.apple.com/au/retail/storelist/

  • Support for using CS5 with Joomla

    So far, the information to get dreamweaver working with Joomla has been non-existent and/or extremely vague.  I've spent my entire Sunday, trying to simply get this to work.
    I ran a local server and followed the adobe tutorial, I uploaded my mysql database file and I either get an error saying that the dynamic-related files could not be reached etc etc etc. error, or I get simply a blank page when I try to view it in the localhost/FOLDER file.
    I am lost.  There is little support for this specific task.  It's my only interest in DW considering I work exclusively with Content Management Systems.  So far setting this up is time consuming, confusing, and well, it simply doesn't work.w
    IS THERE understandable documentation available for setting up the most TALKED ABOUT feature of DWCS5!?!?!?  Is it really even possible?  At this point I am starting even doubt the validity of the posts of people claiming they got this to work.  So far I get a string of unpredictable errors in an extremely complicated and confusing workflow, again, just trying to get the most talked about feature of CS5 to work as advertised.  I'm so frustrated, words cannot express.
    -Matt

    Hello out there? Can anybody be so kind an post a link to a good dokumentation? I am experiancing just the same problem and yes - I am frustrated, too. Pleeeese!!!
    Thank you very much for any little hint.
    Blechkrähe

  • Doubt in XML payload validation in PI 7.1

    Dear All,
    I understand that the PI message payload can be validated against a XSD/XML structure..
    but i do not understand its advantage as the payload will by default be validated against our source data type..
    then why do we need it to get validated against some other xml at adapter/IE level

    Dear Ravi,
    A very good question asked by you... Actually to tell there is not much of an advantage...
    What it actually does is..
    1)XML Validation allows you to check the structure of a PI message payload. The structure check is
    performed using saved data types.
    2)Syntax validation of the incoming message payload is done at the Advanced Adapter Engine and at
    the Integration Engine against their XML Schema stored in the File System.
    3)Syntax validation of outgoing message payload is done at the Integration Engine against their XML
    Schema stored in the File System.
    And regarding your question why do we need it ..." This feature is demanded by the customers. "
    Source:https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/406a97c4-748c-2a10-f2be-cb63c5b0a11f
    Rgds
    joel

Maybe you are looking for