2006 Jan 24 5:32 PM
Hi,
I am trying to print a value in my SAP script. It is the field SWNES from REGUD. It so happens that its of TEXT18 domain and its data element is WNETS.
Its the Net Amount in Foreign Currency with Protective Asterisks. I refer to this field in my SAP script as ®UD-SWNES(R)&.
I do not want the asterix to the printed !! I just want the value in right aligned format !!
What should I do ??
thanks
2006 Jan 24 5:44 PM
Use the field <b>REGUD-SWNET</b> instead. It is same as SWNES but without asteriks.
2006 Jan 24 5:40 PM
2006 Jan 24 6:00 PM
Yes Rich, my value is prefixed and suffixed with asterix. I tried to insert this command in my form painter, but it reports it as unknown command !! Will it still work ?? or is there any syntax error.
thanks
2006 Jan 24 6:02 PM
One more question, Rich. What will this translate command do ? Will it remove the '*' ? Or replace it with blank space ??
thanks
2006 Jan 24 6:10 PM
2006 Jan 24 7:43 PM
Hi Rad,
AS Rich mentioned use translate command it will remove '*'.
Then you have to use Write command to format the currency value means with Comma separators.
Example :
WRITE REGUD-SWNES CURRENCY REGUD-WAERS.
Lanka
2006 Jan 24 10:30 PM
Thanks to all. I dont know why, but the translate command did not work for me...Will explore that later.
I was able to use REGUD-SWNET for my purpose !!
thanks
2006 Jan 24 5:44 PM
Use the field <b>REGUD-SWNET</b> instead. It is same as SWNES but without asteriks.
2006 Jan 24 6:01 PM
Thanks Sam. But wont this field display a +/- sign along with the value ? Thats what the field description says !!
I do not want any kind of prefix or suffix. Just the value in comma separated fashion.
thanks