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

FB01

Former Member
0 Kudos
414

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

6 REPLIES 6
Read only

Former Member
0 Kudos
370

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.

Read only

0 Kudos
370

Hi Kishan,

Its a standard transaction how to check the datatype

plzz advice.

regards,

satish

Read only

0 Kudos
370

just click f1 on it.1st check it.

may be possible there is any field exit for perticular field.

Read only

0 Kudos
370

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

Read only

0 Kudos
370

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.

Read only

0 Kudos
370

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