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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    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 comment
    10|10000 characters needed characters exceeded

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

  • 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 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

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 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.