cancel
Showing results for 
Search instead for 
Did you mean: 

vendor payment rounding

Former Member
0 Kudos

hi,

i need to round off vendor invoice ammount. vendor invoice amount is Rs1851.19 .it has to post Rs 1851.00 to vendor account remaining amount .19 has to post rounding diffarence account.could u give the idea of where we make this rounding option settings.

Nagaraju

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Just ask an Abaper to modify the undermentioned code to suit your requirement.

Include RV64A601

  • rounding rule for closest interger value

FORM FRM_KONDI_WERT_601.

  • data: da_xkwerx(15).

  • unpack xkwert to da_xkwerx.

*

  • move '00' to da_xkwerx+13.

*

*

*

  • pack da_xkwerx to xkwert.

data : lgort1 like lips-lgort .

data : d1(13) , d6(13) .

data : d2 type p decimals 2 .

data : d3 type p decimals 0 .

data : d4 type p decimals 2 .

data d5(2) .

data : d8(3) .

unpack xkwert to d1 .

d2 = d1 .

d3 = d2 .

unpack d3 to d6.

d5 = d6+11(2) .

if d5 >= 50 .

d8 = 100 - d5 .

d1 = d6 + d8 .

else .

d1 = d6 - d5 .

endif .

*pack d1 to xkwert .

select single lgort into lgort1 from lips where

vbeln = komp-vgbel and

posnr = komp-vgpos .

IF SY-SUBRC = 0 .

if lgort1 = 'JSTO'.

d1 = 0 .

pack d1 to xkwert.

else .

pack d1 to xkwert.

endif .

ELSE .

pack d1 to xkwert.

ENDIF .

Regards,

Rajesh Banka

Reward suitable points.

Former Member
0 Kudos

Hello Naga Raju,

On your requirement please find below mentioned the explanation.

With certain transactions, the system generates automatic postings. These include:

Input and output tax postings

Exchange rate differences

Cash discount gains and losses

Each automatic posting is shown as a separate line item. In the document overview, therefore, the automatically generated line items are displayed in addition to the manually entered items. For each automatic posting, you must define the G/L account to which the system is to post and the rules according to which the system generates the posting. For example, you can differentiate the tax posting according to tax codes. The system will then post to a different G/L account for each tax code.

You can manually add to automatic postings. If you want to do this, you must select the Supplement auto. postings field in the master record of the account to which the system posts automatically. The field status group in the G/L account master record determines the fields that the system offers for supplementary account assignment.

If you post an incoming payment, the system posts any bank charges automatically to a bank charges account. You can then add the cost centers in the automatically generated line item, for example.

Hope this helps. please assign points.

Rgds

manish