Skip to Content
author's profile photo Former Member
Former Member

Download to .CSV file.

Hi,

I am downloading an internal table into .CSV format.

In my internal table i have currency field which is having values EX: 4,900.00

While converting to .CSV i am removing ',' EX: 4900.00

But my problem is after removing the ',' it is not condensing with no-gaps. there is a space which i have to remove it.

EX: 4 900.00

can any one suggest me.

Thanks in advance.

Deepak.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 10:01 AM

    hi

    do u want to convert internal table to CVS or only one value.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 09:23 AM
    Have u tried  using this FM SAP_CONVERT_TO_CSV_FORMAT
    
    or
    data : v_curr(20).
    
    loop at itab.
    v_curr = itab-curr.
     replace all occurrences of ',' in v_curr with space.
    condense v_curr.
    itab-curr = v_curr.
    mdify itab transaporting curr index sy-tabix.
    endloop.

    Message was edited by:

    Chandrasekhar Jagarlamudi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 09:19 AM

    hi,

    1) move that currency value to Char

    2) Use condense on the char value.

    eg:

    data: l_amnt(100) type c.

    l_amnt = Curr_value..

    replace all occurrences of ',' in l_amnt with space.

    CONDENSE l_amnt NO-GAPS.

    write l_amnt.

    Regards

    Anver

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.