‎2007 Feb 16 3:19 AM
my requirement is to design cash reciept.
iam using table control for it.
i want to sum the <b>amount</b> fields in table control by pressing enter key and
pass that value to other internal table field.
can anyone give me code for it.
another one is after getting that total, i want to convert into the value to word.
which function module should i have to use.
plz send sample of it.
regards.
santhosh reddy
‎2007 Feb 16 3:37 AM
u jst sum up in teh PBO of the table control loop.
sum = sum + itab-amount.
regards
pratyusha
‎2007 Feb 16 3:37 AM
u jst sum up in teh PBO of the table control loop.
sum = sum + itab-amount.
regards
pratyusha
‎2007 Feb 16 4:06 AM
Hi,
Place a icon on the toolbar and give a function code '=ENTE' or '=IHKZ', or '\00'.
In the PBO event,
LOOP AT i_out_tab WITH CONTROL tc_cust_micr
CURSOR tc_cust_micr-current_line.
Add the column which you want into an internal table.
ENDLOOP.
In the PAI write:
MODULE user_command.
Double click on user-command and go to the PAI event of this module.
here check the sy-ucomm,
if sy-ucomm = any of the func.code set inthe toolbar for Enter, then
move the total to a internal table.
Use SPELL_AMOUNT func.module to convert the amount into words.
Regards
Subramanian