Skip to Content
avatar image
Former Member

CONCATENATE

I want to add ' - ' (minus) to a field if the my conditions satisfies.

its like this.

IF IAUFM-BWART = '262'.

CONCATENATE ' - ' INTO IAUFM-DMBTR.

ENDIF.

but it is showing some error how to do it.

pls help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 21, 2007 at 10:45 AM

    Hi,

    Do it like this.

    IF IAUFM-BWART = '262'.

    CONCATENATE ' - ' IAUFM-DMBTR INTO IAUFM-DMBTR.

    ENDIF.

    regards

    Azad.

    Reward if helpful.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      So u need to define a string type and then move it a currency

      data:var type string.

      var = IAUFM-DMBTR.

      CONCATENATE ' - ' var into var.

      IAUFM-DMBTR = VAR.

      else if u want negative sign,why not just multiple by -1?

      IAUFM-DMBTR = IAUFM-DMBTR * -1

      Rewards points if useful

      reema

  • Aug 21, 2007 at 11:05 AM

    Hi

    Change the Syntax as below...

    IF IAUFM-BWART = '262'.

    CONCATENATE IAUFM-DMBTR ' - ' INTO IAUFM-DMBTR.

    ENDIF.

    or

    IF IAUFM-BWART = '262'.

    CONCATENATE ' - ' IAUFM-DMBTR INTO IAUFM-DMBTR.

    ENDIF.

    <b>Reward if Helpful</b>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 10:45 AM

    Hi,

    IF IAUFM-BWART = '262'.

    <b>CONCATENATE ' - ' IAUFM-DMBTR INTO IAUFM-DMBTR</b>.

    ENDIF.

    Reward if helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2007 at 10:48 AM

    IF IAUFM-BWART = '262'.

    *{Correct the statement as below }

    CONCATENATE ' - ' IAUFM-DMBTR INTO IAUFM-DMBTR.

    ENDIF.

    Reemz

    Add comment
    10|10000 characters needed characters exceeded