Validation on Clearing documents

Hello
    We need to write a validation on Clearing Documents.
can we validate the clearing functions F-03, F-32, F-44 for certain document types? We want to make sure that DocType 'ZL','ZG','ZS','ZI'( Z doc types in our business landscape) can't be cleared with regular document types like 'KR','SA'.
  How can we descriminate the Document type of Actual document and Clearing document type with respect to field names.
Appreciate your valuable answers.
Thanks
Suresh

hi,
look this discussion:
Re: F-03 Clearing
A.

Similar Messages

  • Resetting and reversing a cleared document

    Hello
    I want to reset and reverse a customer clearing document. The clearing document which is 54203512 was posted and matched against the customer invoice in the previous period. When reversing and resetting the document in transaction code FBRA, a pop up screen u201CReversal Datau201D appears. The reversal reason is specified as 01 (Reversal for incorrect posting), posting date is todayu2019s date however the original clearing document 54203512 was posted in 05.09.2008 and in previous period. Click on continue.
    The document is not reset and reversed and I am getting the error message u201CReversal reason 01 only permits posting date 05.09.2008u201D. Not sure why the document is looking at the posting date of original document even though I specified the reversal date as 08.10.2008. Can a document be reset and reversed in different periods?? Or does this cause any issues or problems? Or is this a bug??
    Thanks in advance
    Evelyn

    Hi,
    There are only 2 controls allowed for Reversal reasons:
    1.  Negative posting
    2.  Alternative date for posting
    The symptom you have mentioned would be of a control from somewhere else, i.e. either a user exit or a validation.  An order reason can only restrict it to current date or allow any other date.  At least that is what I have experienced.
    Cheers...

  • Error SAPMF05A 0700 E - while clearing document in F.13

    Hi All,
    While running the automatic clearing through t.code F.13. Getting the following error.
    ScName       Scr. Mtyp Mid Mno  Message text
    SAPMF05A 0131 S      F5  074  4 items were selected
    SAPMF05A 0700 E      /DS 310  Please Enter Valid Trading Partner: Reporter Code no longer exists.
    Can anyone please help me on this.
    Regards,
    Deep

    Hi,
    Yes i got the solution for the above issue.
    Error Message: Error SAPMF05A 0700 E - while clearing document in F.13
    Analysis :
    We got this error while clearing the open items in GR/IR account(GL account).
    when i have checked the documents(nock-off/opposite entires) then i found that trading partner entered in both the documents are not same.
    Trading partners is picking from the vendor master data
    As the trading partner has been changed in the vendor master data......the document posted before change has old trading partner and the document posted after change has new trading partner.
    Solution:
    We have validation/substitution to ignore trading partner while clearing the documents.
    We have extended the above validation/substitution for the related company code to clear the documents.
    Regards,
    Deep

  • Problems reversing a Clearing document

    Dear Frieds,
    User has cleared few documents with Transaction Code F-32 during monthend process and now he wants to reverse the clearing document.
    Trying to reverse through FBRA Tcode but it's giving error message as u201C Balance of the line items is not Zerou201D.
    Could you please help me with this to rectify this error.
    Thanks a lot for all your help.
    Regards,
    Hari.

    Hi Hari,
    Note 400530 - FBRA - F5136: Balance of line items not zero
    Summary
    Symptom
    A payment using a payment card fails, in other words, the payment is reversed using Transaction FBRC where the customer or vendor item is reopened.It is not possible to reset a payment document posted again for the open customer or vendor item by using Transaction FBRA, "Reset Cleared Items" and it responds with the error message "Balance of the line items is not zero".
    Other terms
    Error message F5136, FBRA, FBRC, payment cards
    Solution
    A solution is available in the Support Package for Release 4.0B and 4.6C. An advance correction is possible. The solution consists of a repair report, so that the current payment document can be reset by means of 'Reset Cleared Items', and of a correction.
    1. Repair-report ZREPAIR_BSEGC_FBRA:Create it temporarily as a test report using Transaction SE38. First the current payment/clearing document must be cleaned up of payment card data by means of the repair-report. Afterwards you can reset the payment document by means of 'Reset Cleared Items'. The report takes the current payment document as a parameter. In this case only changes are made to the database if the option "DO_UPD" is set.
    2. Advance correction:Supplement the interface for function module CREDIT_CARD_POST_REFUSAL with table parameter T_BSEG with reference type BSEG. The following describes the procedure in more detail.
    a) Transaction SE37: Enter function module CREDIT_CARD_POST_REFUSAL and choose "Change".
    b) On the "Tables" tab page, create parameter T_BSEG with reference to structure BSEG.
    c) Save and activate the function module.
    3. After you implemented the correction or the R/3 Support Packages valid for this note, read Note 450081 to avoid the unwanted deletion of payment card data.
    Regards
    udayakumar.k

  • Clearing document without line items

    Hello,
    While doing automatic/manual clearing, clearing doc gets posted with zero line items. We have requirement that documents without any line item can not appear in the legal books.
    Apart from validation/substitution, is there any way to avoid this ?

    Hello Mauri,
    Thanks for your answer.
    Problem is not how clearing rules/lines work but is there any solution in SAP to stop a clearing document being created without line items.
    For eg - while doing clearing,  FX gain/loss line item arises with zero amount in local currency. I know this is standard behaviour & also correct one, but, the requirement is that such zero lines can not appear in the legal books.
    Do you have any solution ?
    Thanks in Advance.
    Regards,
    Amol

  • Error while resetting a cleared document

    Hi everyone,
    I am getting an error while resetting a cleared invoicing document 'Document xxxxxxxxxxx with origin R4 can not be reversed'. Please guide me how can we reset the clearing of this document.
    Thanks and Regards

    Hi,
    You need to reset all clearing for the corresponding FICA document for the print document.
    Reset the clearing for the document no. mentioned in the output for EA13 execution.
    You need to reset all the clearing for the document, before reversing the same.
    To get all the clearing document, go to DFKKOP table, enter the FICA document no. (for the print document on FPL9). Get all AUGBL documents,
    Alternatively, you can go on to FPL9 screen, double click on the consumption document, in the basic data you will see the clearing date (if it is cleared), expand the view their (click on + sign), you will se the clearing document no,
    Pass the above clearing document no, to FP07, and once all the clearing is reset for the invoice, you can reverse the corresponding invoice through EA13.
    Regards,
    Rajesh Popat

  • Reset Cleared Documents and Vendor Open Items Report FBL1N

    Hi all,
    I have following scenario:
    - In last month, we had 2 documents (invoice and payment) cleared against each other. We created open items report as well as open items correspondence sent to Vendor. Obviously, the docs were not included in report.
    - In this month, we have reset and reverse clearing document of the documents. We create report again with the open key date as in last month. It should not include the 2 docs but it did with whichever key date we chose.
    Is there any setting that open item report doesn't include cleared item at the key date when we run report for previous month?
    Thanks and Regards,
    Dau

    Hi Dau,
    If i understand you correctly then you posted and paid invoice in Jan 2012 and generated the open line item report for Jan which correctly did not include this cleared invoice.
    Now in Feb 2012 you reset and reversed this payment document.
    The issue is when you execute the report FBL1N again then you get the open line item for this invoice correct. Please confirm what is the open item key date that you are using here for generating this report
    If you keep it 31.01.2012 then definetly this invoice should not appear in the report but if you keep that 29.12.2012 then this line item would for sure appear.
    The importance of key date is to limit the report to certain date. The system selects all items posted up to and including the specified key date and open for this period.
    so I think your issue is with the key date.
    Hope this helps you.
    Regards,
    Prasad

  • Resetting a clearing document from a previous financial year - Vendor Payment

    Finance team needs to reset a cleared item from a previous financial year. The cheque was
    never presented.  They are unable to create a new invoice to pay the vendor without this cheque going
    through and being processed.
    However, when using transaction code FBRA they receive an error message
    "clearing document from alternative fiscal year-. Message no F5A258".

    There are two option
    1. You Open the Close Period, or change the reversal code, which can allow alternative posting in the current period.
    2. Go to the IMG - Controling - General Controlling - Change Message control. Give the message application area and then the number and turn it off. (Tcode : OBA5)
    With regards,
    Uttam Maity

  • Reset Manually Cleared Documents

    Hi,
    I have the following scenario:
    I posted two document in first document i posted following transaction:
    EOBI EXP Dr 10,000    
    Exp Payable EOBI    Cr  10,000
    (Document Number 1000010, Type SA)
    The second transaction Was:
    Exp EOBI  Dr. 10,000
    Bank                          Cr     10,000
    (Document Number 2000010, Type KZ)
    then i manually selected these two documents and cleared them and a document 5000010 was generated by system. now for some reason i need to change the status from cleared documents to open again. for this when i go to FBRA and give any of the three document (1000010,2000010 or 5000010) for reset the system gives me an error that document XYZ is not a clearing document. what i understood here was that i was suppose to provide document number 2000010 in FBRA so that documents can be open again because this is the clearing document.
    this has messed up my concept of clearing document in system. what is the use of document number 5000010 which is automatically generated by system? when i view it it shows me some other posting and not one related to this transaction. help pleas. and how can i reset the document in FBRA?
    What am i missing here?
    Regards,

    Hello,
    This has messed up my concept of clearing document in system. what is the use of document number 5000010 which is automatically generated by system? when i view it it shows me some other posting and not one related to this transaction. help pleas. and how can i reset the document in FBRA?
    There is nothing to worry about the concept. The concept is when you posted the expenses the document 1000010 was generated and when you posted the payment to bank for this expense the document 2000010 got posted. When you cleared both the documents manually the clearing document is 5000010 posted.
    Now you want to set the status open for the cleared item as suggested above use FBRA with documnet num 5000010.
    But now the question is had you already cleared the bank account also. if not then this will not be a problem for you. If yes then you had to reset the doc num generated while bank clearing then you can reset the doc num 5000010..
    Hope this may help.
    Thanks,
    Chetan Ahuja

  • Reset of clearing documents with open items managed accounts

    Hi,
    I posted OI clearing document in Nov 2013 and had to reset it in March 2014. This rest impact my 2013 balances. Does anyone know why this document has been reset with old period? thank you

    Hi Sevinj,
    if document got cleared with some fx difference yes there will be impact if it's cleared without any fx diff there will not any impact in books.
    T-code FBRA.
    Regards,
    Raman

  • ICR: FBICS3 selects cleared documents and old documents

    Hi, I have just gone live with ICR functionality (processes 002 & 003) and I have notice that FBICS3 transaction is not working as I expected:
    1/ "Old documents": If I set in the program FBICS3 "year = 2010" & "month = 01"" I expected that the program would select document posted on period 1 year 2010. The reality is that the program has selected data from 2007 to now. I am surprised but probably the problem is that I did not understand how FBICS3 select data.  I assume It is correct and was my error. Since fiscal year and period are used to determine the key date of open items (open items "opened" at mm yyyy).
    2/But my real problem is that FBICS3 has selected cleared items and shows them on FBICA3 which I am sure is not correct.
    Does any body know if there is a SAP note that applies on this issue?
    Thanks a lot

    In order to give more information:
    I have already implemented following SAP Notes
    1159776     ICR: Select data from newGL     FI-GL-GL-G
    1235689     ICR: Runtime error TSV_TNEW_PAGE_ALLOC_FAILED     FI-GL-GL-G
    1337276     ICR: Cleared documents are not deleted     FI-GL-GL-G
    Thanks in advance for your help

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • Split payment document  by cleared document

    Split payment document  by cleared document
    hello, do you know if it s possible the following requirement:
    when posting a manual payment (F-53) my client would like to have bank line item splited by cleared document (invoice). Usually, you can clear several invoices with one payment (bank line item ) but my client wants to have the bank line item splited in several line items by the corresponding invoice cleared
    example
    now (allways)
    40 vendor's invoice 1 100
    40 vendor's invoice 2 200
    40 vendor's invoice 3 300
    50 bank                    600
    future
    40 vendor's invoice 1 100
    40 vendor's invoice 2 200
    40 vendor's invoice 3 300
    50 bank 1                  100
    50 bank 2                  200
    50 bank 3                  300
    I think that is not possible by the way...
    cheers!

    Hello
    I have defined the Splitting method as following:
    Z000000001 Splitting:
    Business transaction           1000       Payments
    Transaction variant            0001       Standard
    Item category                  01000      Balance Sheet Account
    As I want to split bank account in manual payments  I set Business Transaction as Payments, Transaction Variant as 0001...
    Do you know how I can define that splitting of bank account in payments will be done based in invoice number?
    The payment for the above vendor invoice then contains the following
    items when entered:
    PK         Account               Amount
    50          Bank                    -100
    25          Payables               100 (clearing 2 invoices 50 each)
    Document splitting then creates the following document in the General
    Ledger view:
    PK        Account     Split (invoice)  Amount
    50          Bank            INV1          -50
    50          Bank            INV2          -50
    25          Payables      INV1          50
    25          Payables      INV2          50
    I do not know how to configure that or is it possible. I have not seen "document" as  Define Document Splitting Characteristics...
    Help will be rewarded...

  • Automatic payment program; reversal of a reversal of the clearing document.

    Hi All,
    I created a vendor open item and cleared it using APP. lets say clearing document no. is 1. I reversed it using FBRA and the document no. is 2.
    now I tried to reverse the document no. 2.
    in one scenario, where there is a FX difference when posting document 1, reversal of document 2 not happened.
    in other scenario, where there is no FX difference, I was able to post the reversal of 2.
    is this standard behavior? in the first scenario I wasn't able to post the reversal for Doc.2 is it because of FX gain/loss only? can't we post reversal of Doc. 2 if there is a realized FX difference gain/loss?
    Regards,
    Sreeni.

    Hello Sreeni,
    The standard SAP behaviour should allow FBRA on Doc.2 even when FX gain/loss has been posted as I had done it already.
    Things to take note are, the respective reversal document type had been defined and number range has been set up properly.
    Kind regards,
    John chin

  • Down Payment Clearing Document shows as open item

    Hi,
    I made an Down Payment Request (f-47) for $ 1000; made a Down Payment on that request (f110) for $1000; posted an invoice (fb60) with $ 1000; cleared the down payment and invoice (f-54) for $1000.
    Now in vendor open item s(fbl1n), both invoice (KR) and the clearing document (KA) are shown, while in cleared items, the down payment request (KA), down payment (KZ) and the clearing document (KA) are shown.
    My questions:
    1) Why the invoice and the clearing document are shown as open items?
    2) Why the clearing document is shown as both open item and cleared item?
    Thanks in advance
    Edited by: Ming Cao on Mar 1, 2010 7:21 PM
    Edited by: Ming Cao on Mar 1, 2010 7:23 PM
    Edited by: Ming Cao on Mar 1, 2010 7:24 PM
    Edited by: Ming Cao on Mar 1, 2010 11:27 PM

    Dear,
    Do not worry this is standard behavoiur by the system..see the below flow...
    1. Create down payment request - F-47. (Open)
    2. Create downpayment from the request F-48. (Down payment is open)
    3. Clear downpayment F-54. (Invoice and payment are open in normal items and Downpayment and requests are cleared. So downpayment came to normal items.
    You will need to clear these items manually...
    Regards,
    Chintan Joshi

Maybe you are looking for