Type checking

my flat file
char numc currency
karthi 1233 123,000.0.
i have check give feild give correct format or worg.
urgent .................
when ever u get the data from flat file to internal table..
give a check if condition...
if check is fine append or else put it into a error file.. or write out..
how to write condition?sample code nned please urgent.

Friend,
use the FM NUMERIC_CHECK
parameters: ch(10).
data: ty type DD01V-DATATYPE.
  CALL FUNCTION 'NUMERIC_CHECK'
  EXPORTING
    STRING_IN        = ch
IMPORTING
   STRING_OUT       = ch
   HTYPE            = ty.
case ty.
when 'NUMC'.
when 'CHAR'.
endcase.

Similar Messages

  • [svn:fx-trunk] 10459: Change to ensure ScriptNodes are no longer part of the node tree after interface compilation stage in order to avoid the extra code that was necessary to avoid tripping over them during type checking , etc.

    Revision: 10459
    Author:   [email protected]
    Date:     2009-09-21 08:42:44 -0700 (Mon, 21 Sep 2009)
    Log Message:
    Change to ensure ScriptNodes are no longer part of the node tree after interface compilation stage in order to avoid the extra code that was necessary to avoid tripping over them during type checking, etc.
    Improving revision 10199 a bit, to allow for single line comments.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22027
    Reviewer: Paul
    Tests run: Checking, Compiler cyclones
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22027
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • Condition type check in va01 transaction

    Hi friends,
    I have a requirment.
    in va01 transaction , at the line item level iam entering a  material number and order quantity and  when i press enter i get the corresponding values for that particular line item.
    now iam double clicking on that particluar line item(matnr) and clicking on the conditions tab.
    there in the condtion type i will get what all the condition types are maintianed for that particular line item.
    now my requirment is i need to add another concdtion type manully
    say 'ZABC' and hit enter. the pricing for that particlular contion type 'ZABC' will be Determined.
    Now  can any one tell me in which internal table will i get all the condition type,
    coz i need to do some additional check for the  the manual entry'ZABC'  (condition type ) which i have given .
    which user exit should i use it.
    remember i need user exit for condition type check but not for pricing bsaed on the contion type
    Regards
    Priyanka.

    Hi priyanka
    If you want to Check  then check in the  KOMK and KOMP tables
    As you want to go for user exit use any one of the user exits as per your requirement  USEREXIT_PRICING_PREPARE_TKOMK  or USEREXIT_PRICING_PREPARE_TKOMP
    But can you tell what exactly you want to change and why you want to go for user exits
    Regards
    Srinath

  • How do I do a data type check?

    Hi.
    I was trying to do a hashtotal for a table column. It is necessary that the table column only contains numeric values. Is there a way to do a data type check, before I compute the hashtotal value? Thanks.
    LOOP AT itab INTO hash_value.
      IF hash_value = NUMC. " (==> Cannot)
        hash_total = hash_total + hash_value.
      ENDIF.

    you can try this
    data : text(50),
           dtyp like DD01V-DATATYPE,
           bef(15),
           aft(15).
    data : dtype(1).
    text = '1,234.60'.
    if text co '0123456789.,'.
    write : / 'numeric'.
    endif.
    split text at '.' into bef aft.
    replace all occurrences of ',' in bef with space.
    condense bef.
    CALL FUNCTION 'NUMERIC_CHECK'
      EXPORTING
        STRING_IN        = bef
    IMPORTING
    *   STRING_OUT       =
       HTYPE            = dtyp
    if dtyp cs 'NUMC'.
    write : / 'Befor decimal Numeric'.
    else.
    write : / 'Befor decimal Character'.
    endif.
    clear dtyp.
    CALL FUNCTION 'NUMERIC_CHECK'
      EXPORTING
        STRING_IN        = aft
    IMPORTING
    *   STRING_OUT       =
       HTYPE            = dtyp
    if dtyp cs 'NUMC'.
    write : / 'After decimal Numeric'.
    else.
    write : / 'After decimal Character'.
    endif.
    regards
    shiba dutta

  • Interfaces casts are type-checked differently to class casts?

    hi,
    this is a multipost of
    http://forum.java.sun.com/thread.jspa?threadID=677488&tstart=0
    as i'm hoping some compiler guys are hanging around in here :)
    I'm just wondering why interfaces are type-checked differently to class casts when casting between siblings in the inheritance hierarchy.
    e.g. casting a String to an Integer fails, but declaring
    interface IString {
       String toUpperCase();
    interface IInteger {
       int intValue();
    } and casting between IString and IInteger works fine?
    any help appreciated,
    thanks,
    asjf

    Unless you have specific memory usage requirements so that you must use arrays, just use a java.util.List:
    public abstract class Type<A extends Arg> {
        protected abstract List<A> method();
       // or if the only needs to read it can be more convenient to have
        protected abstract List<? extends A> method2();
    public class Sub extends Type<SubArgs> {
        protected List<SubArgs> method() { ... }
        // sub class can be more specific for method2 if it wants to
        protected List<SubArgs> method2() { ... }
    }

  • Hand Type Check Enter Accounts Payable

    Hi I was wondering How do we enter Hand Typed Check in to SAP, lets say we didn't run Check Payment but later we want to issue a Void check on a Plane Paper (instead of original check on which we already written by hand)for our record Purpose , and "I want system to use the same check Number" as of Hand written check.
    Handtyped Check 1234
    SAP Print Check number on Plane Paper 1234
    any ideas?it seems many business use this kind of Payments for emergency purpose ,please throw some light,
    Thank you,,
    Paartha

    Use F-58 to process manual payment which is not included in payment run F110.  The paid document must be pre-entered into the vendor account.  When you save, it will print a check as output so no need to manually type it.  In this case since you already manually typed the check, you may put a blank paper in the check.  You just want to process the transaction so the payment is recorded in system.
    Enter payment method (e.g. C) you normally use for check run in F110.  In output control, check u2018print immediatelyu2019. 
    Ignore the u201Cselect a valid functionu201D message, click on the u201CProcess Open Itemsu201D button to proceed to next screen to select the item(s) to be paid. 
    Try it out in QA environment first if you are not sure.  For internal control purposes, it makes sense that the printed check number align with the pre-numbered bank check.

  • Can't use LOV with item type "check box" in form

    I have created a LOV that I want to use with a form application in 3.0.9. I need to be able to do multiple choices in this LOV (check box style) in the same query (only queries - users won't be able to update this field)
    When I choose Check box as the item type in the form wizard I am not able to choose the LOV. I have to use combo box, popup or radio group for the LOV choices to appear, but then the query can only query for one value in the LOV at a time.
    Is there a solution to this?

    Hi,
    This feature is not supported as of now. You cannot have multi select LOV for a form field and hence a checkbox cannot have a LOV.
    Thanks,
    Sharmila

  • Valuation Type Check in STOs

    In STO creation in ME27 Transaction, the field Valuation Type is mandatory.In availability check, we could able to find the available stock at issuing plant at quantity level. But our requirement is how to find the issuing plant stock at each Valuation type level? Is there any setting in aAvailability Check? or any Standard System message available?
    Thanks & Regards.

    Hi...
    dear frnd the valuation type field is mandatory because the material for which you are creating a STO is split valuated, means in accounting view of the material you have maintained something in  the field "Valuation category".
    If this is the case, when  you received the goods in supplying plant you should have entered valuation type as your batch.
    And if the material is batch managed you have to check the valuation type for the batch in which the material stock exist.
    Batch can be displayed in T-Code - MSC3N (Tables -  MCHA and MCHB) Kindly check the data in both tables.
    Hpe this will solve the problem.
    Regards,
    Amit P hiran
    njoy SAP...
    njoy Lyf...

  • Dynamic Type Checking... Is this possible?

    I want to do a dynamic check for objec types in a datastructure. Something very similar to instanceof but using dynamic type parameter.
    Syntactically speaking...
    Instead of writing several methods like
    public boolean isOfTypeXYZ( )
    return ( this instanceof XYZ);
    public boolean isOfTypeABC()
       return ( this instanceof ABC);
    ...I want one single method like
    public isOfType ( Class a_type)
       return (this ***isoftype**** a_type);
    }Where isoftype can somehow dynamically figure out if the object is of given type (class)
    For those who want to know why I'd need this kind of contrived behaviour let me give a simple example (similar to my real issue).
    Suppose I have a swing GUI application which has several laid out components like Containers, JPanels, JToolBars, JMenuItems, JButtons, JToggleButtons, JRadioButtons etc.
    Now starting from the JFrame in this containment hierarchy, I want to find all instances of JButtons or say all instances of JRadioButtons or say all instances of JMenuItem or all instances of JComponents ...
    I do not want to write a special method for each possible type I might encounter.
    I want a more generic method like
    searchComponents( Class a_class) that I can invoke by just changing its argument to convey the type.
    Unfortunately getClassName() will not work as that gives the most derived type of the object. I want something very much like instanceof wherein I can check for an intermediate super class as well. (eg. All RadioButtons are AbstractButton and should return true for either type).
    I tried to search for this in the forums but couldn't find something close to this. (There are several discussions about dynamic type casting which are different).

    Is this what you want?
    searchComponents( Class a_class) {
    // browse components
    if (a_class.isInstance(component)) {
    // do something
    }

  • Operation Sequence & Confirmation Type  checked at PO Confirmation-CO11N

    Hi All,
    Thanks in Advance for solution.
    My client wants that, at the time of Production order Confirmation - CO11N, SAP should check Operation Sequence and its Type of Confirmation (Partial or Final)
    For Operation Sequence I have done necessary Configuration (SPRO) settings in Confirmation parameters. But how to check for Confirmation TYPE??
    For Example, I have production order with 5 operations, now if I confirm First (1st) operation with PARTIAL CONFIRMATION, then when I confirm Second (2nd) operation with Final Confirmation, it should check that previous operation is Partially Confirmed and thus allow me to confirm Second operation only Partially. Currently I am able to do Final Confirmation for Second operation in above scenario.
    How can the above thing be restricted please let me know?
    Regards,
    Ravi Davda

    During  configuration  the confirmation parameters are set as per the follow IMG path
    Production> > shopfloor control >> operation >> confirmation >> Define confirmation. Here we have 3 views in the first view of generally valid setting we will
    give check 1) error when operation sequence is not adheredto
                    2)  & 3) Error If over delivery & Underdelivery tolerence is not maintained as per Workscheduling view of Material master record
                    4) Error if the quality inspection value not exist
    In the 2nd view ONLY we have General individual screen in that we have
                    1) confirm type : choices are Partial / Full confirmation
                    2) Goods movement : If the indicator is set the system will give log screen message and ask you to say Y or N to correct the errors in goods movement
                 An other indicator for Quantity / activity as  control indicator
                 I think this will help
         Regards,
         Raj

  • File type check before uploading a file

    Right now I have a processing page that uploads a file only of type zip. If you try submitting something other than a zip file, it throws an error. Is it possible to check the file type before uploading?
    Something like this in pseudo code:
    if (file type does not = zip ) {
         redirect to the homepage with cflocation
    else {
         <cffile action="upload" ....  />

    Not with ColdFusion, it does not run on the client and has no idea about the file until the client browser has sent it to the web server and the web server as put it into the server's temp directory.
    Maybe with someting that runs on the client, like JavaScript.  But when dealing with files in the client browser you quickly run into security features that prevent you from doing much to prevent hackers from writing client code to farm unsupecting users systems for interesting files.

  • T440 MS + MMS Types - Checking RAM Slots

    Hi!
    I'm currently upgrading the memory in our companies laptops. So far I've already done about 80 T440's with probably another 20-60 to go.
    Is there any way to check if the laptop is the MS or MMS type without taking the battery off?
    If not is it safe to take the external battery out while the laptop is switched on and plugged into the power pack?
    We're putting 8gb chips in the MS types, then taking the 4gb chip and using it in the second slot of the MMS types. It's quite disruptive to have to physically go to every laptop and shut it down or ask the user to check - especially since a lot of people actually work remotely.
    I tried using the command prompt but it only shows the slots actually in use, not the free slots. I also tried running a script since I have admin access to all the laptops on the network but although this can work there's just too many logistics issues to sort out to make it happen (time is precious).
    Any help would be greatly appreciated!
    Solved!
    Go to Solution.

    You should be able to use WMIC to pull information on the model number as well as the memory configuration of the machine.
    The external battery is hotswappable; otherwise Power Bridge wouldn't work.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • How do I do a Sequence type check? (i.e. instanceof Sequence ?)

    This should be obvious as well. How do I test of a variable/object is of type sequence?

    Jeremy_Chone,
    use the following function to check. This will do the job.
    import java.lang.*;
    var weekDays = ["Mon","Tue","Wed","Thur","Fri",33,d ];
    var dt = [3,23,23,5, "#24", "324"];
    var dd:Integer= 0;
    function isSequence(sequence):Boolean
    try
    var ii = sequence as Object[]; // Sequence is synonmous with Object array.
    return true;
    catch (_ex:ClassCastException)
    return false;
    System.out.println(isSequence(dt));

  • Oracle 11g - how to disable the Static Type-Checking of XQuery Expressions

    Hi,
    I loaded XML files using pl/sql in Oracle 10 suggesfully and now after upgrading to 11g the thing doesn't work anymore.
    I believe the problem has to do with the DTD, the xml files structure is not as specified in the DTD. I did get away in Oracle 10 issuing the alter session set events ='31156 trace name context forever, level 2' in the code. Now this doesn't seem to have any effect. When loading the xml file I get the following error message
    "ORA-19276 XPST0005 - Xpath step specifies an invalid element/attribute name"
    How can I skip the checking as I can't change the DTD's.
    TIA,
    Kari

    DTD Support in Oracle XML DB
    A DTD is a set of rules that define the allowable structure of an XML document. DTDs are text files that derive their format from SGML and
    can be associated with an XML document either by using the <code>DOCTYPE</code> element or by using an external file through a DOCTYPE
    reference. In addition to supporting XML Schema, which provides a structured mapping to object-relational storage or binary XML storage,
    Oracle XML DB also supports DTD specifications in XML instance documents. Though DTDs are not used to derive the mapping, XML
    processors can still access and interpret the DTDs.
    Inline DTD Definitions
    When an XML instance document has an inline DTD definition, it isused during document parsing. Any DTD validations and entity
    declaration handling is done at this point. However, once parsed, theentity references are replaced with actual values and the original
    entity reference is lost.
    External DTD Definitions
    Oracle XML DB also supports external DTD definitions if they are stored in Oracle XML DB Repository. Applications needing to process an
    XML document containing an external DTD definition such as /public/flights.dtd, must first ensure that the DTD document is stored in Oracle XML DB at path /public/flights.xsd.
    .... thats all I could find...
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb05sto.htm#sthref540
    Edited by: Marco Gralike on Feb 26, 2009 11:19 AM

  • File type check

    Is there a quick and easy way to check my entire music library and see which songs are mp3's and which ones have been encoded to AAC?
    About a year or-so ago I transferred some CD's to iTunes as mp3's, and now I can't remember which ones so I can re-encode them to AAC format.

    +"After I formatted them to AAC and replaced the MP3 version with the AAC version... it took up less room...it's supposed to take up less room, right?"+
    Not exactly. Either AAC or MP3 takes up space proportional to its encoding rate. If the rate is 128 kb/s, the file takes approximately 1 MB per minute of music, whether it is AAC or MP3. To save space, you have to encode at a lower rate than you started with, as you apparently did.

Maybe you are looking for

  • Jabber login issue&uploading pic

    I am facing issue on logging jabber into iphone Status always shows verify what could be the problem can any body suggest me? How to set a photo in jabber client?

  • Is it alright to erase now?

    I have just installed a 40gb WD and did a OS X10.4 upgrade from 10.3.9 . When install was complete, I was asked if I wanted my old system transfered to my new drive. I answered yes and all is working fine. Would it cause any problems if I erase my ol

  • Solaris 8 IFS 9.0.2 can't start http

    hello all i just installed oracle 9i (9.2.0.1.0) , oracle 9ias (9.0.2) and oracle 9ifs (9.0.2) following installation instruction in the documentation. I try to start ifs with AS web interface and with command lines but without success ... Did anyone

  • No WebDynpro option in SE80 dropdown list

    I installed the sneak preview successfully (after a few tries). When I go into se80, the option to create/search for a WebDynpro application is not available. I have uninstalled and reinstalled the entire app server and db and  the same thing is happ

  • EMac restarts on wake from sleep

    Lately my eMac has begun to restart when I wake it from sleep. Everything works just fine afterward, but this makes me afraid something worse is coming. Has anyone heard of this problem? Any thoughts? TIA