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

table control

SantoshKallem
Active Contributor
0 Likes
327

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
304

u jst sum up in teh PBO of the table control loop.

sum = sum + itab-amount.

regards

pratyusha

2 REPLIES 2
Read only

Former Member
0 Likes
305

u jst sum up in teh PBO of the table control loop.

sum = sum + itab-amount.

regards

pratyusha

Read only

Former Member
0 Likes
304

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