Skip to Content

f-32 clear debit

hi experts,

i am writing batch input program using tcode f-32. f-32 second screen it is displaying all credit and debit line items.i got all debit and credit line items in the internal tables.

I must select the credit amounts first and then according to the baseline date (bsid-zfbdt) determine the oldest debit and select that debit line.

If there is a credit balance after selecting the first line, (Field RF05A-DIFFB = debit balance) the next oldest debit line must be selected This process of allocating credits against debit lines must continue until a debit balance is calculated (Field RF05A-DIFFB = credit balance).

if the line items are like this.

customer amount baseline date

12300020 79 12.10.2006----

debit line item

12300020 59 13.10.2006----

debit line item

12300020 44 15.10.2006----

debit line item

12300020 89- 14.10.2006----

credit line item

first i must select 3rd line item,after that oldest debit line item according to baseline date i must select 1st line item,after that still

i got credit balance(89-79 = 10-).so i need to select second oldest debit line item that means 2nd line item must select.

how can i write the code for this.can anybodu please help me.

Thanks and regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 03:02 PM

    In your internal table, sort by baseline date (ascending). This will put your documents in the correct order. Then loop through that table adding the amounts until you get a debit balance. This should give you the list of documents that you have to clear.

    Then in your batch input session, you can press the 'document number' radio button on the first screen of f-32 and then the 'process open items' button. That will take you to a screen where you can enter the document numbers that you just selected.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.