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

Message with duplicate data

ronaldo_aparecido
Contributor
0 Likes
1,502

Hi Guys.

I have a code

MESSAGE e000(zest) WITH p_i_ekko-ktwrt  v_valor_ktwrt.

Why the values appear duplicate? (see image attached)

See my class message attached.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,341

Hi Ronaldo,

try using escape character \  before $, since its a special character used as place holder in text messages

Valor do Contrato R \$ &1 <> Valor Fixado no Contrato R \$ &2

if thats not successful, you will have to pass it in your program.

data dollar type c value '$'.

in the message text give by

Valor do Contrato R &1 &2 <> Valor Fixado no Contrato R &3 &4

MESSAGE e000(zest) WITH dollar p_i_ekko-ktwrt dollar v_valor_ktwrt.


6 REPLIES 6
Read only

tolga_polat
Active Participant
0 Likes
1,341

Hi ,

System confuse $ and & for place holder. If you want to write currency use R&(for currency) &(for amount).

just remove $ in message.

Regards

Tolga

Read only

Former Member
0 Likes
1,341

Use two dollars in your SE91 message text like

Valor do Contrato R$$ &1 <> Valor Fixado no Contrato R$$ &2

The extra $ escapes the $ following it, so that MESSAGE command takes it as a literal $ and not interpret it as a special character

This should solve your problem and make the $ symbol appear in the message

Best regards,

Vishnu Tallapragada

Read only

sivaganesh_krishnan
Contributor
0 Likes
1,341

Hi Ronaldo,

By using "$" the system , thinks that it as a placeholder and places the values, try removing the "$" sign .

Please view the standards :Message Short Texts

Regards,

Sivaganesh.

Read only

Former Member
0 Likes
1,342

Hi Ronaldo,

try using escape character \  before $, since its a special character used as place holder in text messages

Valor do Contrato R \$ &1 <> Valor Fixado no Contrato R \$ &2

if thats not successful, you will have to pass it in your program.

data dollar type c value '$'.

in the message text give by

Valor do Contrato R &1 &2 <> Valor Fixado no Contrato R &3 &4

MESSAGE e000(zest) WITH dollar p_i_ekko-ktwrt dollar v_valor_ktwrt.


Read only

0 Likes
1,341

Thanks

Susmitha

You is correct.

Thanks comunitty you are the masters.

Read only

Former Member
0 Likes
1,341

Hii Ronaldo,

To distinguish between place holder and literal give the $$ it will be interpreted as literal not as specialcharacter(place holder).So write the message like below in ur message class

Valor do Contrato R$$ &1 <> Valor Fixado no Contrato R$$ &2.

then display the mesage in ur program

MESSAGE e000(zest) WITH p_i_ekko-ktwrt  v_valor_ktwrt.

here is ur desired output

regards

Syed