Application Development and Automation 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: 
Read only

regrading * printing before amount

Former Member
0 Likes
1,143

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
Read only

naimesh_patel
Active Contributor
0 Likes
1,114

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

Read only

0 Likes
1,114

Hi Naimesh,

Is this possible to overlay over curr field?

or are their any other syntax?

Goutam.

Read only

0 Likes
1,114

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.

Read only

0 Likes
1,114

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

Read only

Former Member
0 Likes
1,114

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,

Read only

Former Member
0 Likes
1,114

If you are using this field in smartform/sapscript.

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

Read only

Former Member
0 Likes
1,114

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

Read only

Former Member
0 Likes
1,114

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

Read only

Former Member
0 Likes
1,114

Hi,

try concatenate .........

Read only

0 Likes
1,114

Thanks to all.