09-23-2008 3:18 PM
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.
09-23-2008 3:28 PM
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
09-23-2008 4:08 PM
Hi Naimesh,
Is this possible to overlay over curr field?
or are their any other syntax?
Goutam.
09-23-2008 4:25 PM
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.
09-23-2008 4:34 PM
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
09-23-2008 3:40 PM
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,
09-23-2008 3:42 PM
If you are using this field in smartform/sapscript.
write the filed like &payr-rwbtr(F*)& in form editor
09-23-2008 4:38 PM
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
09-23-2008 5:28 PM
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
09-24-2008 9:38 AM
01-13-2009 7:00 AM