Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CONCATENATE

Former Member
0 Kudos
131

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
62

Hi,

Do it like this.

IF IAUFM-BWART = '262'.

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

ENDIF.

regards

Azad.

Reward if helpful.

6 REPLIES 6

Former Member
0 Kudos
63

Hi,

Do it like this.

IF IAUFM-BWART = '262'.

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

ENDIF.

regards

Azad.

Reward if helpful.

0 Kudos
62

BUT IT IS SAYING IAUFM-DMBTR SHUD BE CAHRCTER TYPE. BUT IT IS CURRENCY TYPE.

0 Kudos
62

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

Former Member
0 Kudos
62

Hi,

IF IAUFM-BWART = '262'.

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

ENDIF.

Reward if helpful.

Former Member
0 Kudos
62

IF IAUFM-BWART = '262'.

*{Correct the statement as below }

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

ENDIF.

Reemz

varma_narayana
Active Contributor
0 Kudos
62

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>