cancel
Showing results for 
Search instead for 
Did you mean: 
SAP Community Downtime Scheduled for This Weekend

removing stars in value

Former Member
0 Kudos
248

im doing checque printing in script.form name is zf110_prenum_check(standard form is f110_prenum_chck.standard program is RFFOUS_C.i assigned the standard pgm as it is to my zform in SPRO.when im displaying the value,

for ex : ***********2347.00 ,is coming in my check.my user dont want too many stars ,he wants me to remove 3 stars.this value is getting displayed by &regud-swnes&.i didnt touch my driver pgm which is standard.i made only modifications in form.please suggest a solution in removing those stars which is displayed by &regud-swnes&.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Write that field as below and see

&regud-swnes+3(15)&

It is a 18 Char field

so it will remove the first 3 Starts and print

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

thanku very much

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi just write a simple sub-routine for that single value

first it will remove your stars by replacing occurences * with '' then

you will get value like 5463.25

then script editor &'*****'REGUD-SWNES&

NOW IT WILL PRINT LIKE THIS *****5463.25

this is good one

Former Member
0 Kudos

Hi,

a small doubt...each and every value of the field u need to remove 3 stars or only for this particular value only u want to remove .

any way u can use

Shift &regud-swnes& by 3 places.

it will eliminate first 3 digits.

Thanks,