Skip to Content

User exit or BADI to not allow the user to change FI document when in approval status

Hi,

We have implemented workflows for approval of accounting documents (Customer). While the accounting document is in approval status, it should not be allowed for a change by the user.

Is there a BADI or User exit available in SAP so that we could write code based on some condition and provide error message to the user (later only display the accounting document).

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Dec 06, 2017 at 10:21 AM

    Are you asking for 'parked' documents, in this case did you consider some validation rules (tr. OB28 with some user exit code to check workflow status)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2017 at 06:25 AM

    Hi Siva,

    You can check for a BADI and put your validation there.

    for eg : ACC_DOCUMENT badi definiton., try to implement this. It may help

    Rgds

    Sivaprasad

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Siva,

      We implemented ACC_DOCUMENT for substitution and it will be triggered only during save/posting document.

      I am looking for some place where it even displays the document in change mode saying not allowed to change.

      thanks for your reply, anyway.

  • Posted on Dec 06, 2017 at 07:35 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2017 at 07:36 AM
    for approval of accounting documents (Customer)

    Can you be specific what exact this accounting document is? From your post, it is not clear as to why an accounting document should go for approval as it is predominently, this accounting document would be generated based on other transactions from SD and MM side in which case, you need to correct that preceding document and not the accounting document.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Lakshmi,

      This is not reference to any SD/MM document. Sorry, if I was not clear.

      It is a customer invoice which is created via FV70, that is to be approved by the manager. While it is in the inbox for approval, the same cannot be changed.

      We implemented implicit enhancement if the user tries to change the invoice via FBV2. However, if the user goes to FV70 and then clicks on tree on button, the list of parked invoices will be shown.

      If the user double clicks on the invoice, it is open for change and the implicit enhancement written for FBV2 doesn't trigger.

      thanks

  • Posted on Dec 06, 2017 at 09:24 AM

    You can create a screen variant via shd0 where I think you can set either Tree Off or in Display only option

    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.