Application Development and Automation 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: 
Read only

CONCATENATE

Former Member
0 Likes
1,051

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
Read only

Former Member
0 Likes
982

Hi,

Do it like this.

IF IAUFM-BWART = '262'.

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

ENDIF.

regards

Azad.

Reward if helpful.

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.

6 REPLIES 6
Read only

Former Member
0 Likes
983

Hi,

Do it like this.

IF IAUFM-BWART = '262'.

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

ENDIF.

regards

Azad.

Reward if helpful.

Read only

0 Likes
982

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

Read only

0 Likes
982

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

Read only

Former Member
0 Likes
982

Hi,

IF IAUFM-BWART = '262'.

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

ENDIF.

Reward if helpful.

Read only

Former Member
0 Likes
982

IF IAUFM-BWART = '262'.

*{Correct the statement as below }

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

ENDIF.

Reemz

Read only

varma_narayana
Active Contributor
0 Likes
982

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>