2006 Dec 08 7:07 AM
Hi frnds,
I m updating standard transaction 'FB01' using BDC session , so when all the amount fields in BSEG tables get added up , the value is getting rounded off which is not the need , i need the exact after all the amount is added up.
Frnds if ur neot getting my query plzz get back to me.
I mean suppose the final value after adding up is 24.255555
but its giving 24.3.but i need 24.25555. plzz suggest
so i m not getting how to proceed in this regard, i.e shuld i write Exit and trigger a standard Fn module which will fetch the exact value when added.but not the rounded value.
regards,
satish
2006 Dec 08 7:11 AM
check the data type of variable it may have only i decimal place and u want to assiegn it value have 4 or grater than 1 decimal place.
2006 Dec 08 7:16 AM
Hi Kishan,
Its a standard transaction how to check the datatype
plzz advice.
regards,
satish
2006 Dec 08 7:18 AM
just click f1 on it.1st check it.
may be possible there is any field exit for perticular field.
2006 Dec 08 7:27 AM
hi kishan,
Thnk u , if u hav proably worked on FB01 then can u just let me know which field will add all the amount fields. i m actually not getting exactly which field.
i hav got a xsl document but finding it difficult to get that exat field, if u hav any idea can u plzz let me know.
i think the amount field is wmbtr. is in bseg table. but the final field which is adding all these amounts i m unable to get.
looking for ur help.
regards,
satish
2006 Dec 08 7:36 AM
ur rite it is wrbtr.
problem is same as i replied before.. for example just refer this demo code u will understand the proble. wrbtr have only 2 decimal place and u assigen it 4 decimal place so it round off it ...
ex-code----
data: kis1 like bseg-WRBTR .
data: p1 type p decimals 3 value '100.226'.
kis1 = p1.
write: kis1.
2006 Dec 08 7:47 AM
Thts correct kishan but the problem is when the amount is totaled, then the toatl value is getting rounded off.
so i think there is a field which keeps the total value and for that particular field a field exit is written which triggers the rounding off concept.
so if u hav any idea regarding which field is calculating the total it will be helpful for me.
regards,
satish