07-09-2008 11:58 AM
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.
07-09-2008 12:09 PM
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
07-09-2008 12:10 PM
07-09-2008 12:20 PM
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.