cancel
Showing results for 
Search instead for 
Did you mean: 

displaying stars in script

Former Member
0 Kudos

Hi.

i want to display a field whose lenght is 35 char but i have to diplay only 29 char and rest two stars can

any one please help me how to do this.

thanks

Gayatri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I would like to give another option using the define keyword

/: DEFINE &symbol1& = u2018**u2019

/: DEFINE &symbol2& = u2018+the 29 character which u want to be printed +&symbol1&u2019

The resultant &symbol2& will be the 29 character which u want to be printed **

Regards,

K.Sibi

Edited by: sibi k kanagaraj on Mar 9, 2009 2:05 PM

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

&VARIABLE(29)'**'&

or

&VARIABLE(29)&**

Gr. Frank

Former Member
0 Kudos

Hi Gayathri,

Try to implement some thing like this:

Data:
  w_char1(35) type c,
  w_char2(31) type c,
  w_const(2) type c value '**'.

w_char2(29) = w_char1(29).
w_char2+29(2) = w_const.

Now display in the script like &w_char2&.

Former Member
0 Kudos

Hi,

Sorry I cant get your question..

Do u mean to say that you have a 35 character field and u r gonna write only 29 characters and rest 6 fields must be filled with star?

If you want it in the beginning then try it this way using Fill characters

&symbol(Ff)&

&tablename-fieldname& 700.00

&tablename-fieldname(F*)& **700.00

&tablename-fieldname(F0)& 00700.00

If you want it in the end then probably

&symbol(29)&**

Regards,

K.Sibi

Edited by: sibi k kanagaraj on Mar 9, 2009 12:03 PM