GUI_DOWNLOAD ignores blank in a numeric character field

Hi, exparts.
I found a problem about function module GUI_DOWNLOAD.
With the file type 'ASC', blanks in type N - fields disapears.
Field1(type N) = '  1 '
Field2(type N) = '  2 '
Download these 2 fields, then data become '12'
I hope '  1   2 '.
I've already confimed the import parameter 'TRUNC_TRAILING_BLANKS_EOL' does not affect this problem.
Please tell me how to avoid this problem!

Hi, Sunil
Thank you for your imformation.
SAP also says thet all blanks are eliminated.
In fact I could not be satisfied with it, and contacted OSS. Then I received this disappointing answer.
So I changed type from N to C.
Thank you a lot.
Naomi S.

Similar Messages

  • How to move the value from a character field to numeric or packed decimal

    Hi,
    can anyone explain me on how to move the value from a character field to numeric or packed decimal.
    Please help me on this. Thanks...
    Regards,
    Rose.

    Hi ,
    if you use keyword MOVE u may loose the decimal and thoussan separator and if u don't want to loose them just call the FM ..HRCM_STRING_AMOUNT_CONVERT.
    i doubt wherther it is HRCM or HCRM just try using *
    this will suit ur requirement.
    Regards,
    KK

  • Xcelcius--ignore blank fields

    Hi Experts,
    I'm working on the Xcelcius reportng by using combo box and column chart. Now i want to filter the blank values and to display only the graph where the values are there in the spread sheet.
    For ex: i've the data for day 1, day 2 ....day20 and for the months January, Feb,...till dec. for january i've values $10 for day 1, $20 for day 2...till day15 and for day 16 and 17 i don't have any value and there are values again for day 18, 19 and 20. Now i don't want to display the chart for day 16 and 17.
    Could you please let me know how to do this. Because by using the ignore blank value we can ignore at the end of the month but not the mid of the month.
    Any solution for this?
    Please let me know if you people require any further information.
    Thank you
    Best regards,
    Amarnath Reddy

    A...............     B
    01.01.2010     10
    02.01.2010     20
    03.01.2010     
    04.01.2010     30
    You need to do this for both columns. For days, it will be like
    =IF(B1<>"";B1;IF(B2<>"";B2;IF(B3<>"";B3;IF(B4<>"";B4;........))))
    If it was only a week, it could be implemented but I don't recommend it for a month.
    You may also keep the blank values and use a range slider for the graph.
    Regards,
    Erdem

  • Search for a not numerical character

    Hello,
    is it possible to search for a not numerical character in a string?
    E.g. # 1237538, the characters '#', ' ' and '' should be deleted.
    The answer to this problem should be as fast as possible, because I have very many numbers to edit.
    Thanks in advance

    Hi,
    <u><b>Finding Character Strings</b></u>
    To search a character field for a particular pattern, use the SEARCH statement as follows:
    SEARCH <c> FOR <str> <options>.
    The statement searches the field <c> for <str> starting at position <n1>. If successful, the return code value of SY-SUBRC is set to 0 and SY-FDPOS is set to the offset of the string in the field <c>. Otherwise, SY-SUBRC is set to 4.
    The search string <str> can have one of the following forms.
    <str> - Function
    <pattern> - Searches for <pattern> (any sequence of characters). Trailing blanks are ignored.
    .<pattern>. - Searches for <pattern>. Trailing blanks are not ignored.
    *<pattern> - A word ending with <pattern> is sought.
    <pattern>* - Searches for a word starting with <pattern>.
    Words are separated by blanks, commas, periods, semicolons, colons, question marks, exclamation marks, parentheses, slashes, plus signs, and equal signs.
    <option> in the SEARCH FOR statement can be any of the following:
      ABBREVIATED
    Searches the field <c> for a word containing the string in <str>. The characters can be separated by other characters. The first letter of the word and the string <str> must be the same.
      STARTING AT <n1>
    Searches the field <c> for <str> starting at position <n1>. The result SY-FDPOS refers to the offset relative to <n1> and not to the start of the field.
      ENDING AT <n2>
    Searches the field <c> for <str> up to position <n2>.
      AND MARK
    If the search string is found, all the characters in the search string (and all the characters in between when using ABBREVIATED) are converted to upper case.
    Ex.
    DATA STRING(30) VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH STRING FOR 'X'.
    WRITE: / 'X', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR 'itt '.
    WRITE: / 'itt ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR '.e .'.
    WRITE: / '.e .', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR '*e'.
    WRITE: / '*e ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR 's*'.
    WRITE: / 's* ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    Regards,
    Bhaskar

  • Sqlldr with error: non-numeric character was found when numeric number

    Hi,
    I have been struggling with this problem for long, can't get to anywhere.
    I am trying to use sqlldr to load a CSV file into table, the table looks like this :
    AD_ID NUMBER(38)
    CNTCT_ID VARCHAR2(60)
    AD_FILE_NAME VARCHAR2(80)
    AD_TITLE VARCHAR2(300)
    AGCY_APRVL_DATE DATE
    CORE_APRVL_DATE DATE
    ENTR_CMNT CLOB
    IC_APRVL_DATE DATE
    PURP_TEXT CLOB
    RVW_BRD_APRVL_DATE DATE
    ACTIVE_FLAG VARCHAR2(1)
    .......................................more fields
    The control file looks like this:
    LOAD DATA
    INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
    BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
    DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
    truncate INTO TABLE ADS_T
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         AD_ID INTEGER ,
         CNTCT_ID char ,
         AD_FILE_NAME char ,
         AD_TITLE char nullif (AD_TITLE=BLANKS) ,
         AGCY_APRVL_DATE DATE "MM/DD/YYYY" nullif (AGCY_APRVL_DATE=BLANKS) ,
         CORE_APRVL_DATE DATE "MM/DD/YYYY" ,
         ENTR_CMNT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
    PURP_TEXT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
         RVW_BRD_APRVL_DATE DATE "MM/DD/YYYY" ,
         ACTIVE_FLAG char ,
         ....more fields
    The Data file looks like this:
    10132,simpsonl,PMSDHHStemplate.pdf,"Depression, Irritability, Mood Swings Sound Familiar?",1/13/2003,11/14/2002,,1/13/2003,"The NIMH is conducting research on premenstrual
    10133,jolkovsl,10133ClozapineDHHS ver 0.pdf,Mood Swings? Unpredictable Moods? Are These Moods hard to Treat?,1/28/2003,11/14/2002,,1/28/2003,"The NIMH is conducting a study to test the efficacy of ...
    --- and log file looks like this:
    Record 5: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
    second enclosure string not present
    Record 7: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
    second enclosure string not present
    Record 9: Rejected - Error on table ADS_T, column RVW_BRD_APRVL_DATE.
    second enclosure string not present
    Record 2: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 4: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Record 6: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected
    IF I use to_date in control file:
    LOAD DATA
    INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
    BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
    DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
    truncate INTO TABLE ADS_T
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         AD_ID INTEGER ,
         CNTCT_ID char ,
         AD_FILE_NAME char ,
         AD_TITLE char nullif (AD_TITLE=BLANKS) ,
         AGCY_APRVL_DATE "to_date(:AGCY_APRVL_DATE,'MM/DD/YYYY')" ,
         CORE_APRVL_DATE DATE "MM/DD/YYYY" ,
         ENTR_CMNT CHAR(7000) nullif (ENTR_CMNT=BLANKS) ,
         IC_APRVL_DATE DATE "MM/DD/YYYY" ,
         PURP_TEXT CHAR(10000) nullif (PURP_TEXT=BLANKS) ,
         RVW_BRD_APRVL_DATE DATE "MM/DD/YYYY" ,
    I got extracctly same error message as above...
    If I use to_char in control file:
    LOAD DATA
    INFILE "C:\ORACLE_IRTMB\IRPADS\SQL_DATA\ADS_T.CSV"
    BADFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.BAD"
    DISCARDFILE "C:\ORACLE_IRTMB\IRPADS\ADS_T.DSC"
    truncate INTO TABLE ADS_T
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
         AD_ID INTEGER ,
         CNTCT_ID char ,
         AD_FILE_NAME char ,
         AD_TITLE char nullif (AD_TITLE=BLANKS) ,
         AGCY_APRVL_DATE "to_char(:AGCY_APRVL_DATE,'MMDDYYYY')" ,
    Then it's said a not valid number
    Record 2: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    Record 4: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    Record 6: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    Record 8: Rejected - Error on table ADS_T, column AGCY_APRVL_DATE.
    ORA-01722: invalid number
    someone, please help me out here.
    Thanks a lot.
    Wei

    hello
    pls use to_date
    If your session is set to default date format of DD-MON-YY, execute the following and you will receive the error message:
    SQL> select to_date('20-JAN-2010', 'DD-MM-YYYY') from dual;
    ERROR:
    ORA-01858: a non-numeric character was found where a numeric was expected
    no rows selected
    When you are converting a string to a date, you have specified that the date is being passed in DD-MM-YYYY format. But you have passed the date in DD-MON-YYYY format. As the month is expected as a number by oracle, but you have passed a character, oracle is unable to translate the string to a number.
    Do one of the following:
    SQL> select to_date('20-JAN-2010', 'DD-MON-YYYY') from dual
    2 /
    TO_DATE
    20-JAN-2010
    OR
    SQL> select to_date('20-10-2010', 'DD-MM-YYYY') from dual
    2 /
    TO_DATE
    20-JAN-2010
    or you can use alter sessin set nls_date_format='.....................';
    regards

  • Error while pulling data from an Oracle database. ORA-01858: a non-numeric character was found where a numeric was expected

    I'm trying to pull data from an Oracle database using SSIS. When I try to select a few fields from the source table, it returns the following error message:
        [OLE DB Source [47]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
        An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80040E14  Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
        An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-01858: a non-numeric character was found where a numeric was expected".
    The source columns are a combination of numeric and texts, and I've also tried selecting one of them, which didn't work. I'm using the Oracle client 11.2.0.1, and it works fine with any other data sources I have connected to so far. How can I resolve this
    error?

    Hi H.James,
    According to your description, the issue is a non-numeric character was found where a numeric was expected while pulling data from an Oracle database in SSIS.
    Based on the error message, the issue should be you are comparing a number column to a non-number column in a query. Such as the query below (ConfID is a number, Sdate is a date):
     where C.ConfID in (select C.Sdate
                       from Conference_C C
                       where C.Sdate < '1-July-12')
    Besides, a default behavior for the Oracle OleDb Provider that change the NLS Date Format of the session to 'YYYY-MM-DD HH24:MI:SS can also cause the issue. For more details about this issue, please refer to the following blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Replace Non-Numeric Characters with a Numeric Character in a String

    Hi Guys,
    I need to replace all the non-numeric characters (including embedded blanks & hyphen) in a string to a numeric character '1'.
    The trailing blanks should not be replaced.
    e.g. "P22233344455566" should be changed to "122233344455566"
    &    "49-1234567           " should be changed to "4911234567          "
    Please help.

    Use [replace|http://help.sap.com/abapdocu_70/en/ABAPREPLACE_IN_PATTERN.htm] with a regular expression to translate any non-numeric character (i.e. any character not between 0 and 9) to 1:
      REPLACE ALL OCCURENCES OF REGEX '[^0-9]' IN value WITH '1'.
    Cheers, harald
    p.s.: In older releases [translate|http://help.sap.com/abapdocu_70/en/ABAPTRANSLATE.htm] would also do the trick, but is more lengthy, because one would need to specify each individual character that should be replaced, e.g.:
      TRANSLATE value TO UPPER CASE.
      TRANSLATE value USING
          ' 1_1-1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1'.

  • ORA-01858: a non-numeric character found where a digit was expected

    Hi,
    I'll cut introductions short. We're trying to read data from a flat file (OWB ver.9.2. by the way). After successfully mapping, then generating (with two insignificant warnings), we execute.
    Although it says the execution was 'successful', more than a dozen errors return in the form of ORA-01858: a non-numeric character found where a digit was expected
    a - Here is the error:
    Record 1: Rejected - Error on table "TOPSSTAGE"."FLTR_DCS_IRREG", column "OPERATIVE_FLIGHT_LEG_DATE".
    ORA-01858: a non-numeric character was found where a numeric was expected
    *it's actually repeated 20 times (Record 1, Record 2, and so on and so forth...) with the same exact error description and details.
    b - Here's the part of the OWB-generated script that defines the creation of that field/column:
    "OPERATIVE_FLIGHT_LEG_DATE" DATE "mm/dd/yyyy"
    c - And here's the data from the flat file (1 of 4 rows)
    "2/20/2007","I","0899","N","TPE","MNL","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","750","950","746","955"," P3231",,"04","32","32",,,,,,,,"758","946",,"A000","4","D000","5","000","0","0","0","0","D","P","0","0","0","0","0","0","0","0","0","0","0","2/22/2007","000","012","144","2/20/2007","2/20/2007"
    *the part where it is in bold is the one that is mapped from the column OPERATIVE_FLIGHT_LEG_DATE to the OPERATIVE_FLIGHT_LEG_DATE column (flat to physical, right?)
    it is set as DATE in all settings (mapping, file, etc..)
    Any form of help will be greatly appreciated :)
    Thanks!
    Regards,
    _lilim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Bharadwaj,
    Yes, I believe you are right. And yes that column is designated a primary key. The weird thing is, we do have null values being entered into the table from the flat file, but these values are far from the "OPERATIVE_FLIGHT_LEG_DATE" column (index-wise). Let me give you an example of our case:
    this is a row in the flat file: (sample data only)
    "2/20/2007","I","0899","N","TPE","MNL","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","750","950","746","955"," P3231",,"04","32","32",,,,,,,,"758","946",,"A000","4","D000","5","000","0","0","0","0","D","P","0","0","0","0","0","0","0","0","0","0","0","2/22/2007","000","012","144","2/20/2007","2/20/2007"
    as you can see, I've made the 'null' values bold, as well as the data for OPERATIVE_FLIGHT_LEG_DATE (which shows up, as you can see, at the end of the row).
    Now, in the OWB table, the OPERATIVE_FLIGHT_LEG_DATE column is set as a primary key (or foreign, i think, I'll check again) and, thus, is set as one of those columns to first receive data transferred from the flat file.
    We see nothing wrong with our mask (which is mm/dd/yyyy by the way) as well as with our data type settings. It has to be with the flat file I guess. We're gonna try putting in dummy values in place of the null ones in the flat file. I'll get back to you asap. Thanks for helping out. :D
    Regards,
    _lilim

  • Xcelsius 2008 SP1 - Ignore Blank cells not working

    I have a ticker object that is showing the values from a QaaWs query just fine, but at the end of the list I keep getting the words NULL - NULL - NULL - .... This solution is working in the OEM release of Xcelsius 2008.
    The range is set longer than the expected number of rows returned to handle changes in the table its querying.
    I have Values selected and the Ignore Blank Cells In Values box is checked, so what am I missing?
    Is it time to log an issue within support?
    Tom Nather

    Hello Tom,
    This problem is known and documented.  It will be addressed in the next FixPack for Xcelsius 2008. 
    The problem is caused by binding the QaaWS/WS Output Values field to more rows than are actually returned.  The cells that are not filled with actual data are formatted with an "undefined" value, thus they are not ignored by "Ignore End Blanks".  This is expressed differently depending on the component. 
    For now, one workaround is to output the QaaWS/WS values to a range (A1:A10, for instance), then reference the range (=A1) in another (B1:B10, for example).  If the selector labels are bound to this 2nd range, they will Ignore End Blanks correctly.
    Javier Jimenez
    PG SDO QA
    Xcelsius 2008

  • Problem with numeric screen field....

    hi,
       I've gotta situation that,
    In sales order we gotto determine WBS element(ps_psp_pnr) based on some conditions, if none of the condition is satisfied then the 'project definition'(prps-pspid) has to be concatenated with '.99' and displayed as WBS element.
    Now the actual problem is, WBS element is of numeric character type whereas the projectdefinition(pspid)+.99 is of charcter type. So it throws me a dump. Even then, the screen field of WBS element doesnt shows any non numeric character and shows error message.
    So how do i overcome this situation? Can anyone help me? Its quiet urgent.
    Prompt answeres will be rewarded with points.
    with regards,
    praveen.

    Hi Praveen,
    If you take SE16 and PRPS, you can see how SAP store it internally and show externally. In the first screen where it shows the line items, the WBS element value is the one stored internally and if you double click and see the WBS value in the next screen it is the one showed in the transaction screen.
    For the conversion routine, even if the parameters are type less, you have to pass the variable with type.
    For example
    data: w_POSNR type PS_POSNR,
          w_wbs(8).
    w_wbs = '123.55'.
    CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'
      EXPORTING
        input          = w_wbs
    IMPORTING
       OUTPUT          = w_posnr
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • ANY FUNCTION MODULE TO ADD LEADING ZEROS FOR A CHARACTER FIELD

    THE CHARACTER FIELD IS OF LENGTH 40 AND IT HAS 5 NON NUMERIC CHARACTERS

    Hi ,
    Try this
    DATA : c4(40).
    data : P_FIELD(40) TYPE N.
    UNPACK P_FIELD to c40.
    <b>Reward Points if useful</b>
    Regards
    Saket Sharma

  • Returning Non-Numeric character

    Hi All,
    Im using Oracle 11gR2. Following is my sample data and i want to search the string having non-numeric characters in it.
    with t as
    select '123' val from dual
    union
    select ' 123' val from dual
    union
    select '1123' val from dual
    union
    select 'A123' val from dual
    union
    select 'x 123' val from dual
    union
    select '#123' val from dual
    select val from t
    where regexp_like (val, '[[:alpha:]|[:blank:]|#]')Query works perfectly for given result set but would break if another string, say '123@', with a special character comes. So is there any format specifier (as we have [:alpha:], [:digit:]) to directly identify non-numeric character including space from a string? If no what is the work round for it?
    Thanks,
    Vivek

    Vivek wrote:
    Query works perfectly for given result set but would break if another string, say '123@', with a special character comes. So is there any format specifier (as we have [:alpha:], [:digit:]) to directly identify non-numeric character including space from a string? If no what is the work round for it?What is your expected output?
    All the strings which contains anything other than digits? You could use TRANSALTE
    select val from t
    where translate(val,'a0123456789','a') is not null;
    --"Add space also if you want to exclude space
    select val from t
    where translate(val,'a 0123456789','a') is not null;
    {code}
    You could use REGEXP_LIKE or REGEXP_REPLACE, but regexp functions are more CPU consuming..
    {code}
    select val from t
    where not regexp_like(val,'^0-9+$');
    {code}
    Edited by: jeneesh on Apr 2, 2013 2:16 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Padding character fields with zeros

    Hello,
    I need to add zeros to the end of character fields TYPE C. I know i can use the conversion routines but that only works for numeric fields.
    Thanks

    Thanks for all the replies.
    STRLEN will give me the lenght of the field but i need the offset of the last chararcter.
    Your post gave me an idea though. I'm doing the following and it's working.
    value = 'Thank You          '.
    tmp    = '00000000000000'.
    FIND REGEX `\w[ [:space:] ][ [:space:] ]` IN value MATCH OFFSET moff.
    IF SY-SUBRC = 0.
       OVERLAY value+moff WITH tmp.
    ENDIF.
    The find looks for the last alphanumeric char and 2 spaces after it meaning the last alphanumeric char in the string.
    Thanks to all, i will reward as fairly as possible.

  • Character Field as Number, Need commas?

    I move a quantity to a character field for a form display output. I left justify the character by shift character field left deleting leading spaces. This way it formats perfectly in the column on my report/form.
    Is there any easy syntaxfunction module, etc.,  that will take char field 1000.0 and put inn a comma 1,000.0?
    I don't want the value to shift back to the right (right-justify).
         Thank-You
    Edited by: TMM on Jan 30, 2009 11:30 AM

    Hi,
    Ok..Please check this..
    * Input character.
    DATA: v_input   TYPE char20 VALUE '1000.0',
          v_output  TYPE char20,
          v_num     TYPE p DECIMALS 1.
    * Move it to numeric variable.
    v_num = v_input.
    * Use the write statement to add the thousands separator.
    WRITE v_num TO v_output.
    * Make sure in the user settings the decimal notation is 1,234,567.89
    * otherwise use this code.
    SET COUNTRY 'US'.
    WRITE v_num TO v_output.
    SET COUNTRY space.
    * Remove the leading spaze.
    SHIFT v_output LEFT DELETING LEADING space.
    * Display
    WRITE:/ v_output.
    Thanks
    Naren

  • How to sort a character field with numbers and letters on the end

    I have an internal table with character field which has data like this after I sort it.  This is not what I expect from the sort.:
    13A
    15A
    29A
    30A
    31A
    33A
    123A
    125
    62 
    76 
    94A
    I expect this, which is sorted number first, then alpha.  Any ideas how to get this sort?:
    13A
    15A
    29A
    30A
    31A
    33A
    62 
    76 
    94A
    123A
    125

    Thanks for the suggestions.  After reading the suggestions and reviewing some other post threads, here's what I did to get the sort to work:
    Add a dash - to the end of any record that did not have an alphabet character at the end.  This way, all records have at least one non-numeric character at the end.  Then I overlayed zeros  '0000000'  over each record.  Then I sorted the table.  Afterwards, I removed the dashes and zeros.
    The long way around, but it worked for me.  Since the internal table is processed in memory, it doesn't add much overhead to the run time.

Maybe you are looking for

  • Streaming video from Imac

    Brand new, 15 yrs.w/pc got tired replaced all w/apple,even iphone 3g. Anyway would like to stream things like fox strategy room, espn360.com ect.to my TV. Is there a setup that I could use to accomplish this ? Thanks again. Do kick myself for not swi

  • Regarding Currency update in  SAP BW

    Hello All, I am using SAP BW 3.0. In source system, one currency has been introduced. So how can load that  in BW I  know manually steps, source system in (RSA1) right click  in global setting n exchange rates. but  can we do the same automatic way  

  • Shared Excel spreadsheet "missing data"

    We are currently working in a mixed enviornment Excel 2003 and 2007.  Files are saved as XLS so all can use the files.  The workbooks are shared.  Multiple people can be accessing these files at the same time.  We will be in this mixed enviornment fo

  • HT204655 Mail not an option in Share

    In Photo's app I have decided not to use iCloud to store my Library. When I want to Share a photo by email there is no Mail option in the menu. Is emailing a photo from Photo's only available if you use the iCloud to store your library. I can of cour

  • Fresher on Java

    I hava a doubt in the following code.i need solution with explanation. i=0; for(j=1; j<=10;j++) i=i++; System.out.println(i);