OB28 validation: not possible to clear future documents

Hi dudes,
I'm looking for how to build an FI validation (if possible) on OB28.
The purpose is to block users to clear a document of a future year.
Ex.
billing document y. 2009
payment document y.2010
the users create a clearing document with y.2009
It's possible to block this action with a simple OB28 validation?
I tried with a BKPF-BUDAT < BSEG-AUGDT but possibly I can't use two different tables on the same validation step.
Thanks.
Regards

You can use a exit in your validation.
1. Check that you have declared the form pool for application area "GBLR" validations in View V_T80D_SL. If not, then enter the name of the form pool (e.g. YRGGBR000) and copy the standard program RGGBR000 to the new program (e.g. YRGGBR000).
2. Declare the exit (the exit name, by convention is U9<XX>, where <XX> is a serial number.) after data statements in "FORM get_exit_titles" as follows:
form for Future Clearing
  exits-name  = 'U9<XX>'.                  "Description/ Purpose
  exits-param = c_exit_param_none.       
  exits-title = text-9<XX>.                     "Name of the exit
  APPEND exits.
3. Put your Code/ Logic in a new form "U9XX"  as follows:
FORM U9<XX>  USING b_result.
<PUT YOUR OWN CODE HERE>
*All fields of Tables BKPF, BSEG, COBL, GLU1 & ANLA are available here>
*REMEMBER - Some of the field values might not have been populated>.
ENDFORM.
4. Maintain text symbol U9<XX>, activate the form pool/ text symbol and exit.
5. Use OB28 to create a new step in a new or existing validation at suitable call up point.
6. Enter any pre-requisite, if required.
7. Select the "Check" node of your validation step. select "Exits" tab. You will find your exit U9<XX> here. Double click on it to insert in the "Check" code.
8. Select the "Message" Node of your validation step and enter the message type, no and variables. Save & Exit.
Regards
K.K. Tripathi

Similar Messages

  • Not possible to reverse the document in financial accounting Error

    Hi All
    We are getting invoice Data from Client
    through  ACC_EMPLOYEE_PAY02  
    Document Like
    31 45699(vendor )    2356.00
    31 45688 (vendor)    1245.00
    31 45677 (vendor)    1000.00
    31 45666 (vendor)    2000.00
    40  Accur(Clearing)       6601.00
    In this list some of vendors i did payment Run.
    I need to reverse the 1 vendor open Item.
    It is showing open item but i am unable to reverse this document.
    i tried to FB03 but it is showing Below Error
    Not possible to reverse the document in financial accounting
    Message no. F5673
    Diagnosis
    Document '1900000003' in company code '1164' should be reversed. However,
    this document was not posted in the Financial Accounting module, HRPAY is, rather, of type ''.
    System Response
    Documents which were not originally posted in Financial Accounting also cannot be reversed in Financial Accounting.
    Procedure
    Reverse the original transaction. 
    You can display the original document from the FI document via 'Environment' -> 'Original doc.'.
    I tried to trace Original Document.
    trhough Environment -> Original Doc.
    ERROR is
    Payroll Posting Document 000000091 does not exist
    How to Reverse the Open Item.
    raju.

    Hi,
    SAP doesn't allow you to reverse a document in FI if it was created subsequently from another module (in your case HR).
    Why don't you use F-44 transaction code to manually clear the open vendor line item and offset it against the same clearing account?
    Regards

  • Not possible to reverse the document in financial accounting

    Not possible to reverse the document in financial accounting
    Message no. F5673
    Diagnosis
    Document '5000082' in company code '1000' should be reversed.  However, this document was not posted in the Financial Accounting module, VBRK is, rather, of type ''.
    System Response
    Documents which were not originally posted in Financial Accounting also cannot be reversed in Financial Accounting.
    Procedure
    Reverse the original transaction.  You can display the original document from the FI document via 'Environment' -> 'Original doc.'.

    Proabably you are using Billing
    Reverse at VF11 - Cancel
    Other wise go to FB08 and enter FI docuemtn and go to environment and Original document there you can find the Billing number and then go to cancel at VF11

  • Since one of the updates of firefox it is not possible to add a document to my email i.e. Telfort.nl

    Since one of the latest updates of firefox it is not possible to add a document to my email account i.e. Telfort.nl
    I checked with Telfort and no problems of this kind is known.

    You can check for problems caused by extension and plugins.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://support.mozilla.org/kb/Troubleshooting+plugins
    You can try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    * http://kb.mozillazine.org/mimeTypes.rdf
    * http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    You can try to reset Firefox.
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    Reset creates a new profile and tries to import some settings from the old profile leaving the old profile intact.
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile

  • Validation not working when clearing an open item

    Hi SAP Gurus,
    We have a interesting scenario to discuss with you. We are using Legal Dunning Procedure so once legal action is intiated against the customer notifications are sent to the legal department if payments are received.
    Unfortunately this can happen only during the next dunning run which of course can occur in varying time intrevals. Therefore we need a validation to occur if a payment is received from a customer against whom legal action has been initiated.
    We tried using the following fields Date of the legal dunning proceedings, Dunning block, Dunning key, Dunning level but are not able to get the validation to work when attempting to clear the open item. These all work when trying to post a new document but fail when trying to clear a open item. Points will be given for helpful answers.
    Regards,
    Siva

    this is the radio button
    <af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                                                     label="#{bindings.Gender1.label}"
                                                     required="#{bindings.Gender1.hints.mandatory}"
                                                     shortDesc="#{bindings.Gender1.hints.tooltip}"
                                                     id="sor5">
                <f:selectItems value="#{bindings.Gender1.items}" id="si7"/>
              </af:selectOneRadio>
    i use this sample
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html

  • Not possible to save InDesign document?

    I'm working on a heavy InDesign document CS5, and now I can't save it. None of the options "Save" "Save As" or "Save a Copy" are possible to use.
    I made a export for psf where I can see my latest changes, but when I asked a colleague to make a copy of the InDesign-file, none of my latest changes where there.
    How can I save it now?

    Thanks, I tried it, didn't work. Now I have closed it and re-made all my latest work : ) Better luck next time I guess....

  • Document is alrady contains cleared items-reversal not possible

    Hi All,
    At the time of MIRO reversal we are getting error massage Document is already contains cleared items-reversal not possible
    actually one MIRO document using TDS line item and we make a payment for that TDS line item after that we try to reserve MIRO document that time we are getting error massage.
    Please help me to resolve this issue.
    Regards,
    juhi

    Hi Spradip & Minesh,
    Thanks
    But as per my client they do the same in system but this document only not getting reveres why they don't know.
    but what we do because they want to reverse the document.
    Please help me
    Thanks & Regards,
    Juhi

  • VSTS load test QUESTION : While recording the webPerformanceTest, is it is possible to clear / force to clear cachewithout stopping or closing the IE on recorder?

    VSTS load test QUESTION : While recording the webPerformanceTest, is it is possible to clear / force to clear cache without stopping or closing the IE on recorder?
    I am facing issue, while recording the webtest, our application first time loading any screen calls some requests and 2nd time when browsed the same information if it is available at cache then it will not
    call the requests again.
    How can i force the VSTS to clear cache while recording, so that i can record those requests which gets called at the first time.
    Regards
    SatishK

    Hi SatishK,
    Thanks for your reply.
    >>but my question was while recording (During recording using web test recorder) i want to clear cache.
    Based on your issue,
     I did some research about it,
    but I still find the official document about it. Generally, I know that if we want to clear the web performance test by the
    Cashe Control properties, so I think that it is not possible to clear the cashes when we are recording the web performance.
    If you still want to this feature for web performance test, I suggest you could submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You
    can send your idea there and people can vote. If you submit this suggestion, I hope you could post that link here, I will help you vote it.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Clear_document FM not working to clear customer open item.

    Hi Experts,
    1) I need to develop a report to clear the customer open items, the report has to display whether the Customer open items cleared or not?
         As we do f-30 transaction to clear documents.
       I have developed the report in this ways but its not clearing.
        a) First I have posted the document  through   'BAPI_ACC_DOCUMENT_POST
        I have filled the document in the below way. The Bapi returning OBJ_KEY value also.
    LOOP AT it_data INTO wa_data.
    ****Fill  DOCUMENTHEADER
        wa_docmentheader-doc_type     = 'DA'.   "doc type
        wa_docmentheader-doc_date    =  wa_data-bldat.   "doc. date
        wa_docmentheader-pstng_date  =  wa_data-budat.   "posting date
        wa_docmentheader-comp_code   =  wa_data-bukrs.   "company code
        wa_docmentheader-ref_doc_no  =  wa_data-belnr.   "Reference
        wa_docmentheader-header_txt  =  wa_data-bktxt .  "Header Text
        wa_docmentheader-username    =  sy-uname.        "user name
    ****Fill  ACCOUNTGL Table
        wa_gl-itemno_acc = l_no.
        wa_gl-gl_account = 2909509----" which i marked in the screen second red color(ACCount).
        wa_gl-alloc_nmbr = wa_data-xref2.
        APPEND wa_gl TO it_gl.
        CLEAR wa_gl.
    ****Fill  ACCOUNTRECEIVABLE
        wa_receivable-itemno_acc = l_no + 1.
        wa_receivable-customer = wa_data-kunnr.
        wa_receivable-gl_account = wa_data-saknr.
        wa_receivable-alloc_nmbr  = wa_data-xref2.
        APPEND wa_receivable TO it_receivable.
        CLEAR wa_receivable.
    ****Fill CURRENCYAMOUNT
        wa_currencyamount-itemno_acc = l_no.
        wa_currencyamount-currency = wa_data-waers.
        wa_currencyamount-amt_doccur = wa_data-dmbtr.
        APPEND wa_currencyamount TO it_currencyamount.
        CLEAR  wa_currencyamount.
        wa_currencyamount-itemno_acc = l_no + 1.
        wa_currencyamount-currency = wa_data-waers.
        wa_currencyamount-amt_doccur = wa_data-dmbtr.
        wa_currencyamount-amt_doccur = wa_currencyamount-amt_doccur * -1.
        APPEND wa_currencyamount TO it_currencyamount.
        CLEAR wa_currencyamount.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader
    = wa_docmentheader
    IMPORTING
    OBJ_TYPE     
    =
    obj_key      
    = lv_obj_key
    OBJ_SYS      
    =
    TABLES
    accountgl    
    = it_gl
    accountreceivable = it_receivable
    ACCOUNTPAYABLE
    =
    ACCOUNTTAX   
    =
    currencyamount
    = it_currencyamount
    return       
    = it_return.
    EXTENSION2   
    =
    endloop.
    2) After posting the document am using Clear_document to clear the document
       am filling the Clear_Document in the below way.
    1. a)get belnr, bukrs, gjahr & buzei from bsid table for invoice and append to T_AUSZ1
        b)T_AUSZ1-BUKRS, 'A', OBJ_KEY+0(10)(which you get from BAPI_ACC_DOCUMENT_POST bapi), posting date, posting date year pass it to T_AUSZ2-BUKRS, T_AUSZ2-AKTIO, T_AUSZ2-AUGBL, T_AUSZ2-AUGDT & T_AUSZ2-AUGGJ and append it.
    2. a)get BELNR, BUKRS, GJAHR, BLART & BUDAT  from bkpf where awkey = OBJ_KEY(which you get from BAPI_ACC_DOCUMENT_POST bapi)
    b) get belnr, bukrs, gjahr & buzei from bsid table where BELNR EQ bkpf-BELNR AND
                          ZUONR EQbkpf-BELNR AND
                          BLART EQ bkpf-BLART AND
                          GJAHR EQ bkpf-GJAHR AND
                          BUDAT EQ bkpf-BUDAT
    and append to T_AUSZ1
    c) T_AUSZ1-BUKRS, 'A', OBJ_KEY+0(10)(which you get from BAPI_ACC_DOCUMENT_POST bapi), posting date, posting date year pass it to T_AUSZ2-BUKRS, T_AUSZ2-AKTIO, T_AUSZ2-AUGBL, T_AUSZ2-AUGDT & T_AUSZ2-AUGGJ and append it.
    delete duplicates from T_AUSZ2.
    3) but am not able to clear the document using Clear_document Function Module
    4)I am able to post the document  through BAPI_ACC_DCUMENT_POST
    5)Please tell me how to clear the document.

    Hi Sunny,
    Please see the following :
    1. Down Payment Received (2500 INR.) F-29
    2. Customer Invoice Posted (2500 INR.) FB70
    3. Clear Down Payment (2500 INR) F-39
    4. Now Run Automatic Clearing (F.13)
    And then check the Customer line item report in FBL5N. It will clear both line items.
    Hope this helps.
    Kind Regards,
    Prakash Kumar

  • FBRA-Document includes already cleared items - reversal not possible

    While reset and reversal using FBRA I am getting the following error. Please do let me know if any clue to resolve this issue.
    Document includes already cleared items - reversal not possible
    Message no. F5 308
    Diagnosis
    A reverse posting clears all line items that are managed as open items. This is not possible if one of the items in question has already been cleared by another method.
    System Response
    Error message.
    Procedure
    If you really want to reverse the document with the number you specified, display the cleared items and reset all those items for which you can find clearing document numbers. Then repeat the reverse transaction.

    Hi Dewang,
    Thanks for your quick responce.
    step 01- Posted Customer Invoice on 01-Jan-2011with RV doc with Rs-1200: Doc 111111
    Step 02- Posted Customer downpayment on 01-Jan-2011 with DZ doc with Rs-1200: Doc No 2222222
    Step 03- Clear Customer line items on 10-Jan-2011 with AB doc with Doc no- 3333333
    Trying to reverse Cleared Item (i.e. Doc No 3333333) with T-Code FBRA. While doing Reset and reversal we are getting the above problem.
    Please let me know if you need any information.
    Regards
    Raj

  • MR8M-Document already contains cleared items - reversal not possible

    Hi Gurus,
    I am getting error message Document XXXXX 1000 2014 already contains cleared items - reversal not possible while cancelling IR via Tcode MR8M.
    Invoice was already paid twice by mistake hence we are trying to cancel via MR8M.
    I know we can do via FBRA by resetting the cleared item but is there any other options or workaround?
    Thanks,
    Kumar

    Hi Jurgen,
    Thanks for your reply;
    Invoice posted twice and 1 needs to be reversed. Please refer the attached screenshot.
    Thanks,

  • Possible to clear vendor open item against already posted payment document?

    Hi
    Can you advise if it is possible to clear an open item against already posted payment/clearing doc? Here is the background to the scenario:
    An invoice was posted with transaction FB60. This was subsequently picked up in the payment run F110 and cleared by payment document number 200005678. The item went to the bank on the paymnet file and was paid out to the vendor. The transaction reference, which appeared on the incoming bank statemnet was the payment document number 200005678.
    Subsequently it was discovered that the original invoice should have been posted with reference to a PO using MIRO. The requirement now is to reverse the paymnet documnet 200005678 in SAP, then reverse the document that was posted using FB60. After this the invoice will be posted using MIRO. This will create an open item on the vendor account.
    This item will not be piad out again. Therefore the requirement is to try clear that open item against the previously posted payment document 200005678.
    Is there any way to clear this vendor open item against the originally posted payment document 200005678?? Or any other advice on how this scenario can be handled in SAP?
    Thank for your help.
    Mike

    Hi,
    I tried that option in our test system. I ran FBRA and entered Paymnet Documnet Number (+Clearing Doc Number), Company Code, Fiscal Year.
    Then chose menu option Clearing -> Reset Cleared Items.
    The system pops up a window asking for a reversal reason and reversal date.  I use 01 and posting date of today.
    The system now posts another cleared document. That document places the invoice as an open item on the vendor account. It does not place the Payment Document as an open item on the account.
    When I go to F-44 only the open vendor invoice is showing there. There is no open paymnet document.
    Is there perhaps some configuration setting that stops the placement of the paymnet document as an open item when reset?
    Thanks for your help again.

  • Billing document cancellation (VF11) the cancelled doc. is not getting automatically cleared against the actual billing doc.

    Hi All,
    In case of billing document cancellation (VF11) the cancelled doc. is not getting automatically cleared against the actual billing doc. no. Each time user has to clear the doc. manually. We have observed this issue after recent patch updation dated 22nd Feb’2014. Till 21st Feb’2014 the cancelled doc. has been cleared automatically against their respective billing documents.
    Please guide.
    Thank you.

    Hi Gopi,
    Please chheck SAP Note No. 1259505. It explains two ways in which SAP releases cancellation documents to FI.
    OSS NOte 1259505 lists the possible causes from SD side &
    OSS Note 309208 lists the possible causes from FI side.
    Regards,
    Kavita

  • Document is in transfer for PO, creation not possible

    Hi
    We are using SRM 4.0 EC scenario. Recently we have been facing the subjected error 'Document is in transfer for PO, creation not possible' while making the confirmation in SRM. It is observed that this is happening mostly in case once we make GR and cancel and repost. Thru some other thread posted in forum, came to know taht we need to delete the entries in table "BBP_DOCUMENT_TAB"  via FM ''BBP_DELETE_FROM_DOCUMENT_TAB''. I ran thei FM but found NO poitive results. Hope somebody can help me out. This error became very common in our production system
    Thanks
    Kiran

    Hi Kiran,
    Please, use the report CLEAN_REQREQ_UP to clear the entry made for the GR in BBP_DOCUMENT_TAB. The problem comes because there is an entry for the GR in the table probably from the previous creation.
    Regards
    Saravanan.
    Please award if useful

  • GR Error: Document is in transfer for PO, Creation not possible

    Hi Experts,
    While posting a GR for PO, following error is being encountered,
    'Document is in transfer for PO, Creation not possible'.
    I checked the PR - PO. There are multiple GRs for the PO and all earlier GRs are posted successfully.
    For posting a new GR this error is coming.
    Any pointers?
    Thanks in advance.
    -Dhananjay

    Hi Kiran,
    Please, use the report CLEAN_REQREQ_UP to clear the entry made for the GR in BBP_DOCUMENT_TAB. The problem comes because there is an entry for the GR in the table probably from the previous creation.
    Regards
    Saravanan.
    Please award if useful

Maybe you are looking for

  • How can I print directly print a report from another app?

    Hi, Can I print a report (printer schedule immediate) passing parameters from another application? Like a html page! Thanks a lot. R.

  • Serial number in sales order creation

    HI all,      please help to me........ My requirement a add the serial number BAPI sales order. problem is their no serial number in bapi structure.             How to add serial number crate a salesorder bapi. serial number is RIPW0-SERNR. Thanks &

  • Puchased movie in iTunes not showing in Videos

    I bought a movie via iTunes ...it shows in my "purchased" and I got a receipt of the charge. Although I'd expect to be  able click it there and play (come on Apple!), I finally figured out I had to go to Videos . But only music videos are showing up

  • Missing space characters before and after span element (TLF 2 with Flex 4.1)

    It seems there's a bug, I reported it at http://bugs.adobe.com/jira/browse/SDK-29367 . (I wasn't able to specify "TLF" in the "Components" dropdown, that's why I'm posting the bug report URL here in the TLF forum.) Tobi

  • Sort "Group by Year" question

    Hi, I use Aperture 3.1.1 and have added a project which contains pictures from 2010 and 2011. I have the option "Group by year" enabled and display "newest first". Usually Aperture sorts every project which contains two years above the oldest year. S