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: 

regarding currency and quantity fields

Former Member
0 Kudos

i hav to fill one field with the calculated value of currency and the field of type DEC as below

wa_final_unitprice = currency field/DEC field.

how to declare that field in data dictionary as i hav to create ztable.

and i hav to fill another field as

wa_final_val = (wa_final_unitprice * quantity field)

how to declare wa_final_val field?

plz help me in this.

3 REPLIES 3

Former Member
0 Kudos

declare wa_final_unitprice as currency field

and wa_final_val also as currency field only

for currency fields uneed to give refference fields

gto the entry/help check tab of any standrad table and see the reffrence field over there , u can use the same in your ztable

Former Member
0 Kudos

Hello

The same type - currency field/DEC field.

Former Member
0 Kudos

HI,

At table level you declare like currency only for that feild-c.

For Ex: feild-C = feild-A * feild-B.

But to get the value in the feild-c you need to create a table maintainece generator. In that you write Events. In Table control after save event (02) you need write the code like below.

feild-C = feild-A * feild-B.

to go the events, go to se11 maintain feilds and activate.

Then go to Utilities -


> Tabel Maintanence Generator

now go to Environment ---> Modification ---> Events

Many Thanks,

Raghu.