How to update Tr code FB02   and update the field reference key1 (bseg-xref

Can any body
help me how to update   Tr code   fb02
and  update the field  reference  key1 (bseg-xref1)  with the interest amount
calculated.
Below i have  written My  program  flow logic
The program should read the open items i.e debit items in the customer account,
Based on the  invoice date and customer payment terms  calculate the due date and then the  interest should be  calculated on that item based on the due date.
Use the  transaction  fb02  and update the field  reference  key 1 (BSEG-xref1)
with the interest amount calculated
Only  consider  customers whose  interest indicator  knb1-vzskz = 'vk'.
Interest is to be  calculated for every  30  days
at the rate of  1% .please see example below.
Document date is 01.01.2007
for amount  1000SGD   payment  term  7  days
It becomes  due  on  08.01.2007
until  06.02.2007 you should not  consider  for calculation of interest
SGD  on   7.02.2007 run you can consider this  item for interest calculation

Hi Robert,
Thanks for answering.
I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
Ex: Billing document is created and accounted. Ref 2 is AB
Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
Thanks
NNS.

Similar Messages

Maybe you are looking for

  • Date and Cost formats in export toward Excel (2013)

    Hi, I'm trying to export Start date and Cost of my project tasks to Excel: File/Save as/ Excel Workbook... but all these date and cost data arrive in Excel with Text format. With the 2003 version, date and cost formats were well recognized. I'm using

  • Resizing/compresing images within a document

    Hi I am trying to compress all images within a document I've just creacted, in order to avoid having a 20Mb size document, but I cannot find the tool anywhere. I am just new to Pages, transfered from Office Word, where this task can easily be done by

  • Will the iPad get a CF card adapter sometime?

    The SD card adapter is cool if you have a normal digital camera, but SLR cameras usually have a CF card so is it best to get the USB adapter or will there be a CF adapter later on?

  • Google Calendar can only be read out but not modify

    hello,   i could set up my Google Calendar account in my playbook abd sync it. eveything is there. but... i can not add or modify appoitements.   is it a limitation? i wish to have full access to my calendar on my android phone and on my playbook.  

  • CR XI R2: Salesforce 3.0 driver on Windows 7 64-bit?

    Hello.  I have CR XI r2 SP6 with the Salesforce 3.0 driver running on Windows 7 64-bit.  When I try to connect to Salesforce, I get an error message "Invalid argument provided.  java server setup failure.  Please verify the PATH etc etc etc.  Please