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: 

regrading * printing before amount

Former Member
0 Kudos

Hi experts,

I've fetched rwbtr field from payr table. At the time of print,

the amount placed as right-aligned.

My requirement is to print * at the blank place occupaied before the amount.

pls help.

thanks in advance.

10 REPLIES 10

naimesh_patel
Active Contributor
0 Kudos

You can use the OVERLAY for this purpose.


data: l_amt_c type char20,
      l_amt   type dmbtr.

l_amt = '123.45'.
l_amt_c = l_amt.
overlay l_amt_c with '****************'.
write: l_amt_c.

Regards,

Naimesh Patel

0 Kudos

Hi Naimesh,

Is this possible to overlay over curr field?

or are their any other syntax?

Goutam.

0 Kudos

Hi all,

fm RFFOCUS_C doesn't found in smartform program lines.

&wa_payr-rwbtr(F*)& doesn't work.

and overlay can't work over curr field.

Now what can I do to print * before blank space occupaied the amount in smartform. This is not a chaque-printing issue,

This is the issue to send a letter for money or chaque/DD transfer.

thanks.

Goutam.

0 Kudos

Overlay will work with the Character field. So, you need to conver the currency field to Character field and use that character field where-ever you want.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi,

May be you can use replace statement space with '*' or I think there is a function module, which is used in the program RFFOUS_C, which is to print checks.

Best Regards,

Former Member
0 Kudos

If you are using this field in smartform/sapscript.

write the filed like &payr-rwbtr(F*)& in form editor

Former Member
0 Kudos

just take the dmbtr into a field type character and then u can concatenate "*" before that.

You should reward people to whom you think they had helped you.

Edited by: Midhun Abraham on Sep 23, 2008 5:38 PM

Former Member
0 Kudos

Define the variable with character data type..

data: var type char15.

store wa_payr-rwbtr value to var

and try &var(F*)& in smartform.

it works.

Thanks

Ganesh

former_member329859
Participant
0 Kudos

Hi,

try concatenate .........

0 Kudos

Thanks to all.