on 02-11-2010 4:02 PM
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
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.