'GUI_UPLOAD': uploading of only numbers

Dear Experts,
I use 'GUI_UPLOAD' for uploading of the CSV-File into my ALV and I need that whatever information this list contains, only numbers (well no letters)
will be uploaded into the grid.
My current code for uploading looks following:
CALL FUNCTION 'GUI_UPLOAD'
     EXPORTING
       filename = v_filename
       filetype = 'ASC'
     TABLES
       data_tab = ta_csv_data.
   LOOP AT ta_csv_data INTO v_string.
     IF sy-tabix = 1.
       CONTINUE.
     ENDIF.
     SPLIT v_string AT ';'
     INTO
     wa_csv-vkorg
     wa_csv-matnr
     wa_csv-preis.
     APPEND wa_csv TO ta_csv.
     CLEAR wa_csv.
Is this somehow possible?
Thank you in advance
BR, Denis

From here
Re: numeric containing in char - how to extract
DATA lv_text TYPE string VALUE 'ab000cdeSDFf34534gh1ASDF234ijk5abc0'.
WRITE : /,'Before Replace :',lv_text. REPLACE ALL OCCURRENCES OF REGEX '[[:alpha:]]' IN lv_text WITH ''.
WRITE : /,'After Replace :',lv_text. 
Output: Before Replace : ab000cdeSDFf34534gh1ASDF234ijk5abc0  7
After Replace : 00034534123450
[[:alpha:]]
specifies any alphabet in lower or upper case.
Remember that there is no space between the single quotes in the WITH clause.
Or hereDelete all non-numc from string
You have to do it for your char fields

Similar Messages

  • A more efficient way to assure that a string value contains only numbers?

    Hi ,
    I'm using Oracle 9.2.0.6.
    I was curious to know if there was any way I could write a more efficient query to determine if a string value contains only numbers.
    Here's my current query. This SQL is from a sub query in a Join clause.
    select distinct cta.CUSTOMER_TRX_ID, to_number(cta.SALES_ORDER) SALES_ORDER
                from ra_customer_trx_lines_all cta
                where length(cta.SALES_ORDER) = 6
                and cta.SALES_ORDER is not null
                and substr(cta.SALES_ORDER,1,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,2,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,3,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,4,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,5,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,6,1) in('1','2','3','4','5','6','7','8','9','0')This is a string where I'm finding A-Z-a-z characters and '/' and '-' characters in all 6 positions, plus there are values that are longer than 6 characters. That's what the length(cta.SALES_ORDER) = 6 is for. Also, of course. some cells are NULL.
    So the question is, is there a more efficient way to screen out only the values in this field that are 6 character numbers or is what I have the best I can do?
    Thanks,

    I appreciate all of your very helpfull workarounds. The cost is a little better in all cases than my original where clause.
    To address the discussion that's popped up about design from this question, I can say a few things that should clear , at least, my situation up.
    First of all this custom quoting , purchase order , and sales order entry system WAS written by a bunch a of 'bad' coders who didn't document their work and then left. We don't even have an ER diagram
    The whole project that I'm only a small part of is literally trying to put Humpty Dumpty together again and then move it from a bad custom solution into Oracle Applications.
    We're rebuilding, documenting, and doing ETL. This is one of your prototypical projects from hell.
    It's a huge database project so we're taking small bites as a time. Hopefully, somewhere right before Armageddon hits, this thing will be complete.
    But until then,..., well,..., you know the drill.
    Thanks Again.

  • XSLT mapping requirement.. Only numbers need to be picked..!!

    Hi ,
    XSLT mapping requirement.
    I will be getting the value as mix of numbers and alphabets like " 1343: -BIZ USA ".
    I need to pick only number '1343' from the input field.
    Is there any function in XSLT to pick only numbers and ignore alphabets?
    Thanks
    Deepthi

    Hi There,
    The below piece of code could cater your requirement, for flltering the non digit chars from your field,
    <xsl:value-of select="translate(<your field name>, translate(<your field name>, '0123456789', ''), '')"/>
    This would separate the non numeric chars from your field in mapping.
    Let me know this works.
    Regards,
    Rajesh Kumar T

  • Trying to install Adobe Photodeluxe (elements 13)   I have box and cd sleeve with serial number,   But registration won't let me type letters only numbers allowed.  Help please.

    Trying to install Adobe Photodeluxe (elements 13)   I have box and cd sleeve with serial number,   But registration won't let me type letters only numbers allowed.  Help please.

    You possibly have a redemption code which has to be converted into a serial number.
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How to restrict the text field to enter only numbers???

    I have used "onkeyup" event to call a function "test", I am getting the alert message for every entry (even for a number), I dont know why I am getting this. Please help me out.....
    Number1 : <input type="text" name="myin1" id="a" onkeyup="test(this,event)">
    function test(ff,evt)
    evt = (evt) ? evt : event;
    var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode :
    ((evt.which) ? evt.which : 0));
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
    alert("Only numbers are allowed"); }
    }

    Hi,
    However this is java forum and you are asking for a solution of a javascript problem,
    I think I got the problem.
    This script works fine when I run it on IE and use the numeric keys above the text keys,
    but give error when I use the numerical keypad on the right.
    I think you should change your if condition like this
    if (charCode > 31 && ((charCode < 48 || charCode > 57) || (charCode < 96 || charCode > 105)) {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Please help!!!!  Favorites show only numbers and no names

    I have seen this question, but no solution.  All of the sudden, when i look at my contact favorites only numbers are displayed, with no names.  For example my wifes number is there but not her name.  Furthermore, in the contacts app, she is not there.  However, if i try to compose a text and type her name in the to: field her name is there so clearly all that data is somewhere on the phone but not where it should be!  What can i do?

    If she's not in the contacts, then add her.
    I remember making a contact for a guy name Derrick. After a few days I texted him, but it turned out I had one digit wrong. So I corrected it. Some time passed, I went to text him again. BUT both numbers came up in the start message box. Of course I forget which one was the correct number. But I Knew that I changed it in his contact info. Checked that, yup only one phone number.
    It wasn't until iOS 7 that I could get rid of that wrong number. When I typed his name, in that list there was an circle with an i in the middle. I selected it and I was able to remove it from recently used. This is why when you type your wife's name, she comes up in the list. But not in your Contact app.
    KOT

  • Only numbers in a text field?

    Problem Solved.

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>SAPUI5 Accordion</title>
    <script id="sap-ui-bootstrap"
    src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
    data-sap-ui-theme="sap_bluecrystal"
    data-sap-ui-libs="sap.ui.commons"></script>
    <script>
    //var integerPattern = (/^-?\d*(\.\d+)?$/);
    var phoneNOTextField= new sap.ui.commons.TextField({
    id:"phoneNOTextField",
    width:"100px"
    /*onKeyup:function(evt){
    evt = (evt) ? evt : window.event;
    var charCode = (evt.which) ? evt.which : evt.keyCode;
    if (charCode > 31 && (charCode < 48 || charCode > 57))
    sap.ui.getCore().byId("phoneNOTextField").setValue="";
    phoneNOTextField.attachBrowserEvent("keyup",function(evt){
    var charCode = (evt.which) ? evt.which : event.keyCode
    var phoneNOValue = evt.target.value;
    if (charCode > 31 && (charCode < 48 || charCode > 57))
    //if(!(phoneNOValue.match(integerPattern)))
    evt.target.value="";
    phoneNOTextField.placeAt("div1");
    </script>
    </head>
    <body class="sapUiBody">
    <div id="div1"></div>
    </body>
    </html>
    this is d code i am using
    i used keycode,keypress,keyup as events for the function
    works well but it displys letters and then empties the field
    my requirement is it should display and take only numbers
    please help

  • Why do we use only numbers to define a client?

    why do we use only numbers to define a client?

    If you find the field name in SAP, in the same method you get the structure (from technical information). In the bottom is "Field description for batch input".
    i.e. Screen field CSKSZ-KOSTL.
    Enjoy!

  • HT4993 Updated iPhone and now only numbers listed not contacts

    Updated iPhone to 6.1.3.   Now only numbers listed instead of contact names like before

    Try a reset. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. After the phone restarts, see if that helps.
    Check to see that the number you have listed in Contacts is the full number that is sent from Caller ID. The two have to match before the name is displayed.

  • Favorite contacts appear as only numbers, no names.

    After iOS8 update, my iPhone 5's Favorites show only numbers, not names. They also do not appear in my Contacts list. All other Contacts appear as they should. I am able to call and message all my Contacts.

    DAVB
    your post got me to thinkin - in fact I do have memory of having rxd some texts from ATT - these were inititated by them - and have even rxd spam texts from unknown sources- which ended up in the list as "numerical contacts"
    I deleted those.....
    Now as far as narrowing down - seems like there must be some link from the senders end between their "text name" and their associated number... which makes me wonder - what if they send u a text but don't bother to setup the "text name" stuff ? if they were a stranger on my radar I wouldn't have their contact info...
    So perhaps it gets down to whether or not I initiated the conv
    if I didn't - yet still put them into my Macbook Pro's Address Book
    one might presume the iPhone's text app is smart enough to link that strange phone number to a contact
    Perhaps an oversite on the programmers part ?

  • Installation: hello, I am trying to install my adobe elements twelve. I have a serial number, which contains no letters (only numbers), from the box. I use a mac. When I try to install it, it says it's unable to validate my serial number. I have already c

    Installation: hello, I am trying to install my adobe elements twelve. I have a serial number, which contains no letters (only numbers), from the box. I use a mac. When I try to install it, it says it's unable to validate my serial number. I have already checked the spelling. What should I do?

    Does it begin with 1057? If not, it's a redemption code. In which case, see here:
    Redemption Code Help
    If it is a serial number, go to system preferences>security & privacy>firewall>firewall options and be sure that PSE is allowed to call out.

  • I have Photoshop CS6, Windows 7, I have no entry at the accesscode. When i will write the code into the nummeric fields. I can write only numbers, but no letters. What can I do?

    I have Photoshop CS6, Windows 7, I have no entry at the accesscode. When i will write the code into the nummeric fields. I can write only numbers, but no letters. What can I do?

    If you are talking about the serial number, as far as I know serial numbers are entirely numeric so there is no need to enter letters.  Maybe you are using the incorrect code.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • Adobe Reader XI causes Microsoft Laser Keyboard 6000 v2.0 to type only numbers

    Adobe Reader XI causes Microsoft Laser Keyboard 6000 v2.0 to type only numbers - I triedAdobe Reader X and it works fine, checked Microsoft Laser Keyboard driver and it is also upto date - any idea how to fix this annoying problem - it works fine till you open a PDF document in Reader XI or browser plugin and keyboard letters turn into typing numbers?

    Adobe Reader XI causes Microsoft Laser Keyboard 6000 v2.0 to type only numbers - I triedAdobe Reader X and it works fine, checked Microsoft Laser Keyboard driver and it is also upto date - any idea how to fix this annoying problem - it works fine till you open a PDF document in Reader XI or browser plugin and keyboard letters turn into typing numbers?

  • I purchased Elements 13 and everything downloaded great.  When I go to license the software before use the code wont accept letters, only numbers. My serial number has both.

    I can't use the software before a license it.  I am on the page to type in the serial number and it won't take letters only numbers.  This is very frustrating.

    Hi John,
    It seems you have got a redemption code. Try to follow the link mentioned below.
    Redemption Code Help
    https://helpx.adobe.com/x-productkb/global/find-serial-number-student-teacher.html
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Thanks,
    Atul Saini

  • Restrict a textInput component to accept only numbers from 0 to 250

    I want to restrict a textInput component to accept only
    numbers from 0 to 250. I know I can use restrict to some degree but
    all I can do is restrict it to 0-9 and use maxChars to 3 which
    allows any number from 000-999.
    I believe I could use the TextEvent.TEXT_INPUT and then write
    some code that will convert that event's text (i.e. the text
    entered into textInput component before it is actually added to the
    textInput component's text value) such that I do not allow values
    greater than 250 but I'm not sure what that code would be. Does
    anyone know an easier way to do this?

    use the change event to monitor the input value and if it's
    greater than 250 (after typing the text property as a number),
    assign the text property to be "250".

Maybe you are looking for

  • Remote Client Copy - Ended in Erros

    Hi Friends, We recently performed a Remote client copy. What we normally do is we restore an latest offline backup of the Prod into an instance built exclusively for performing client copies into our QA system. So if our actual PROD is ABC ( producti

  • Unable to clear intercompany Gl account

    we have had some miscellaneous receipt and invoices in the intercompany General ledger accounts. However, when we do reversal or negative counter booking, it does not pick up the reversal made on those transactions. Is there a set up that we should e

  • Error occurred while setting up Apps Context.

    I am trying to call a stored procedure using Oracle Apps Adapter . MY JCA settings are as following. <endpoint-interaction portType="AppsService_ptt" operation="AppsService"> <interaction-spec className="oracle.tip.adapter.apps.AppsStoredProcedureInt

  • Looking for funny clapperboard transition

    Hey everyone... I'm looking for a transition that you see all the time in comedy, especially when they fake outtakes. It's where you hear the sound effect of a clapper board, accompanied by a flash of light and a beep. I have a series of outtakes tha

  • Query on appearing for SAP Certification

    I'm looking to know how do I appear for basis certification. I have been working for > 4 years and have been through the the course material for TADM 10/12. Please let me know if there is anything more that should be referred ? The only way of applyi