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

Former Member
0 Likes
585

Hi folks,

i have assigned a quantity some_amount of type bseg-dmbtr to char_amount of type c which i will display in a form.

I am getting the SLIN(extended program check) error as: use addition CURRENCY while outputting the the some_amount field. Please tell me the reason for this and also remedy.

Also, what is meant by this error message "Field flag is not referenced statically"?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

For currency problem

when you write the value to the character field use the variation for currency format.

WRITE some_amount to char_amount CURRENCY 'USD'.

Hi folks,

i have assigned a quantity some_amount of type bseg-dmbtr to char_amount of type c which i will display in a form.

I am getting the SLIN(extended program check) error as: use addition CURRENCY while outputting the the some_amount field. Please tell me the reason for this and also remedy.

Also, what is meant by this error message "Field flag is not referenced statically"?

4 REPLIES 4
Read only

Former Member
0 Likes
553

For currency problem

when you write the value to the character field use the variation for currency format.

WRITE some_amount to char_amount CURRENCY 'USD'.

Read only

Former Member
0 Likes
552

hi Vishwa,

do this way to avoid that error


    WRITE:/ '          Total Dollars'(t19), v_tot   C<b>URRENCY 'USD'.</b>
    WRITE:/ '     Account 0520004104'(t20), v_acc104 CURRENCY 'USD'.
    WRITE:/ '     Account 0520004110'(t21), v_acc110 CURRENCY 'USD'.
    WRITE:/ '     Account 0520004112'(t22), v_acc112 CURRENCY 'USD'.

Read only

Former Member
0 Likes
552

Hi,

Try the following,

Check whether you have used any additions CURRENCY while displying Char_amount, if you have used then either remove the addition or use it with Some_amount.

This could be because you have used wrong addition for char_amount which is a character type field.

I'm no tsure about your second error message.

Thanks and Regards,

Prashanth

Read only

Former Member
0 Likes
552

when you are moving a currency field to char field the format of the amount will be lost , so it might be giving the error , do as suggested by others

<b>Field flag is not referenced statically"?</b>

You may not have used the variable flag in the program and you had declared that , remove the variable if not used.