cancel
Showing results for 
Search instead for 
Did you mean: 

Rounding in Sales and Purchase

former_member933888
Active Participant
0 Kudos
330

Dear Experts,

We have set the SAP B1 setting currencies to round to fivehundreth as default.

I tried to use SDK to create document that it is not to use any rounding.

oPCH.Rounding = SAPbobsCOM.BoYesNoEnum.tYES

oPCH.RoundingDiffAmount = 0

But the document still have rounding.

But if i put value in the DiffAmount props

oPCH.Rounding = SAPbobsCOM.BoYesNoEnum.tYES

oPCH.RoundingDiffAmount = -0.02

The value (-0.02) is added to the discount.

I'm on B18.82 PL 9 .

Is there any other way.

Screen shot attached.

thanks.

View Entire Topic
Johan_Hakkesteegt
Active Contributor
0 Kudos

Hi Andy,

If you need to not use rounding in the document, can't you just set:

oPCH.Rounding = SAPbobsCOM.BoYesNoEnum.tNo

?

Regards,

Johan

former_member933888
Active Participant
0 Kudos

Hi Johan,

Tried.

Its not working.

Regards,

Andy

Johan_Hakkesteegt
Active Contributor
0 Kudos

Hi Andy,

Perhaps I did not understand your question correctly.

With the example from your screenshot, I understand that the default behavior is to round MYR 30.02 to MYR 30.00 and that, using the DI API, you wish to override the default behavior, so that MYR 30.02 will actually stay MYR 30.02 and consequently the rounding amount remains MYR 0.00

Did I understand you correctly ?

Regards,

Johan