Application Development 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: 

do not want asterix to be padded in left of currency value..

Former Member
0 Kudos
221

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 &REGUD-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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
104

Use the field <b>REGUD-SWNET</b> instead. It is same as SWNES but without asteriks.

8 REPLIES 8

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
104

Is the value of the field like this? Any you want to get rid of the asteric?

  • 1.00*

Try doing this.

translate REGUD-SWNES using '* '.

I'm not sure what the asterics are all about.

Regards,

Rich Heilman

0 Kudos
104

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

0 Kudos
104

One more question, Rich. What will this translate command do ? Will it remove the '*' ? Or replace it with blank space ??

thanks

0 Kudos
104

You need to put that statement in the print program not the form. It will change the * into a space.

Regards,

Rich Heilman

0 Kudos
104

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

0 Kudos
104

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

Former Member
0 Kudos
105

Use the field <b>REGUD-SWNET</b> instead. It is same as SWNES but without asteriks.

0 Kudos
104

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