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

currency/quantity

Former Member
0 Likes
779

Hi,

I am upgrading to an ERP2004.While doing an EPC I am getting an error like this

Use addition CURRENCY when outputting W_DMBTR

Use auxiliary field when outputting with MESSAGE

When i navigate it takes me to the below code.

AT END OF zuonr.

IF w_dmbtr > 0.

w_dmbtr = 0.

MESSAGE

ID 'ZAR01'

TYPE 'I'

NUMBER 000

WITH text-030

lt_bsis_temp-zuonr

category

w_dmbtr.

Kindly tell me how do i rectify this..

Regards

Navaneeth.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
762

replace w_dmbtr = 0 with

write '0' to w_dmbtr currency 'Currency type'.

5 REPLIES 5
Read only

Former Member
0 Likes
763

replace w_dmbtr = 0 with

write '0' to w_dmbtr currency 'Currency type'.

Read only

0 Likes
762

Hi

I tried that but it stil shows the same error.

Thnx...

Navaneeth

Read only

Former Member
0 Likes
762

WRITE w_dmbtr CURRENCY 'DEM' ROUND 3 DECIMALS 1.

define the currency in write statement

Read only

claus_wallacher
Product and Topic Expert
Product and Topic Expert
0 Likes
762

Hi,

the problem s actually in your MESSAGE statement. You cannot use a variable defined as a currency as one of your message variables. You need to move W_DMBTR to some other variable, defined as type C and use this value in your message output.

Regards,

Claus

Read only

0 Likes
762

Hi Claus

Thnx man.. it worked...

Regards

Navaneeth.