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: 

SAP Smartforms text element with variables

former_member851720
Discoverer
0 Kudos
322

Hello dear friends,

I have a question, namely, I have a text element which is called GS_EF_BRT. This is 3 decimal places long. However, the wish is to output only 2 decimal places on the form. So I thought I would write it in the text element like this: &GS_EF_BRT(10.02)& but SAP tells me that position 20 could not be calculated (form is not displayed).

Originally it was output like this: &GS_EF_BRT(C)& it also works there, but how do I get the decimal places to 2 places?

Thank you for your help!

Manuel

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos
287

Which result do you get with &GS_EF_BRT(.2)& ?

former_member851720
Discoverer
0 Kudos
287

Thank you for the quick reply, I get the following:

The transfer price for item 000020 could not be determined

BR

Manuel

former_member851720
Discoverer
0 Kudos
287

the field is actually a QUAN data type, my predecessor set the text element behind it (C) so that the 0 values are gone.

How can I combine that the 0 values are gone and I cut off the last digit or don't output it?