Skip to Content
author's profile photo
Former Member

Smart forms --- Currency problem

Hello, My friend,

Sorry for disturb you .

Who was using smart forms for report program.

I met a problem about currency ,How to put the minus sign to the front of money in smart forms. How to configuration.

Thank you in adavance

looking forward to your reply

Kevin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Oct 06, 2005 at 07:27 AM

    The easiest method is

    concatenate '-' amount into a variable, and then display this variable in the smart form .

    Or use this method to modify your internal table (your internal table should have this variable as a field).Now loop and write it in the smartform.

    Regards

    Binoo

    NB: Award points if it works

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 06, 2005 at 07:30 AM

    Hi,

    Use this.

    &VBAK-NETWR(<)&

    Also the SET SIGN LEFT command put the sign on the left side of all numeric value.

    Cheers

    Vinod

    Message was edited by: Vinod C

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vinod Chandran

      Hi ALL,

      I have defined reference field in currency/quantity tab of smart foms global definition.

      If i deleted these referece field.

      I can't use the syntax & GS_LINE-dmbtr(<)& ?

      If i done, the system popup a warning, some field is unknown.

      why?

      Kevin

  • author's profile photo
    Former Member
    Oct 06, 2005 at 07:30 AM

    hi,

    use this piece of code.

    if p_amount ca '-'.

    replace '-' with '' into p_amount.

    concatenate '-' p_amount into p_amount.

    endif.

    you can write this in command lines before displaying the amount.

    hope ur problem will be solved with this.

    Add comment
    10|10000 characters needed characters exceeded