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

Negative sign in front for Numeric Data Type

IM_TSL
Explorer
0 Kudos
663

Hi Guys,

I have an ALV Report that needs to be downloaded. Since the export option is disabled, I am exporting the internal table instead and used the GUI_DOWNLOAD function module. 

When downloaded the negative signs are coming at the end of the numbers. I used the CLOI_PUT_SIGN_IN_FRONT but since I used Type P decimals 0, the types are not compatible. Is there any other way to specify the placement of the negative sign?

Any suggestions/solutions will be really appreciated.

stri01_0-1726646809100.png

When downloaded:

stri01_1-1726646920866.png

SAP NetWeaver Application Server for ABAP 

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Kudos
615

Don't use obscure and unsupported function modules (e.g. don't use CLOI_PUT_SIGN_IN_FRONT).

The solution is pure ABAP language since ABAP 7.02, twenty years ago (see the ABAP documentation of string templates - formatting of numbers😞

 

DATA(string) = |{ number }|.