cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Printing Negative Value in SAP Script

Former Member
0 Kudos

Hi

I have to print a negative value in SAP Script print output, I am passing a value 1.41000- to the form from the print program , but in print preview I see the value as /1.41000, i.e the negative sign suffix is removed and prefixed with '/'.

The field I am trying to print is of type BKPF-KURSF (Exchange Rate).

Can anyone let me know how to print 1.41000- as such?

Many Thanks

Ryan

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor
0 Kudos

It's normal: everything is printed in external format: if you look at the domain of BKPF-KURSF field, you'll see "EXCRT" as routine conversion. It means that CONVERSION_EXIT_EXCRT_OUTPUT is called to format it for external format. For more info, see [SAP Library - Data Dictionary - Domains - Input and Output Conversions|http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee19446011d189700000e8322d00/frameset.htm].

You may use formatting option &symbol(K)& to ignore conversion routines. For more info, see [sap library - sapscript - formatting options|http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/803411454211d189710000e8322d00/frameset.htm]

Former Member
0 Kudos

Hi Sandra

Thanks for your quick response.

I have tried &symbol(K)&, &symbol(<)& and &symbol(>)&, but still I get the same /1.41000

Any thoughts?

Many Thanks

Ryan

Sandra_Rossi
Active Contributor
0 Kudos

Sorry about my answer, it seems that (K) works only for Character-like variables (char, date, time, numc), string and Integer. It doesn't work for packed, float and other fields (see routine CONVERT_SYMBOLVALUE in include LSTXVFCD).

So, the only solution is to assign the value to another field.