Skip to Content
author's profile photo
Former Member

conversion of currency field to character field

Hi,

I am working on a report where I have retrived netpr field from ekpo table.when I try to execute the program it is giving error as wa_ekpo-netpr must be a character type object(datatype C,N,D,T or STRING).fieldstring).Netpr is a currency field .How can I convert it into character type?

Regards,

Hema

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Posted on Sep 28, 2007 at 03:12 AM
    data : l_netpr(13) type C.
    
    move wa_ekpo-netpr to l_netpr.

    if it is inside a loop make sure you clear the l_netpr as well the work area of ekpo.

    Regards

    Gopi

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 03:39 AM

    hi,

    try this way,

    data : some_amount type ekpo-netpr,

    data : char_amount(13) type c,

    WRITE some_amount to char_amount CURRENCY 'USD'.

    regards

    siva

    Add comment
    10|10000 characters needed characters exceeded