Skip to Content
avatar image
Former Member

Disallow changes in Invoice through T-Code VF02

User can change the field - ' Account Assignment Group ' of material in Billing Document.

I want to disallow to make such a change in Invoice. How this can be achieved apart from authorisation control.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 07, 2010 at 06:38 PM

    Hello Colleague,

    In va01/02, the field VBAP-KTGRM [Acct assignment group] is hard coded as only output (transaction SE51, screen SAPMV45A 4453, attributes of field VBAP-KTGRM: 'Input field' = blank).

    It defaults from the material master and cannot be changed in the sales order.

    With va02, your only option is by taking advantage of Userexit_Field_Modification within MV45AFZZ.

    Another possibility is to modify the field later in the invoice (VF01/ VF02).


    Ruy Castro

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      This may be possible in one of the ways mentioned below.

      a. Create a new screen variant for VF02. Grey out the Account Assignment group (either at header level or at item level). Now, when the users use the screen of VF02, they will not be able to put in any value. Search the form to know more about screen variants.

      b. You can also try with User exit with the help of your ABAPer. You can use one of the invoice user exit. In the user exit, put a logic to check if the Account assignment group is same as that of account assignment group in customer and/or material. If same, then allow the system to save the invoice. Else, make the system to give a message. Search the form to know more about invoice user exits.

      c. Check with ABAPer and your Basis team if they can put an authorization object to this particular transaction and field.

      Hope this helps


      Mukund S

  • avatar image
    Former Member
    Sep 10, 2010 at 06:36 AM

    In some case user might failed to enter account assignement group in sales view of material master,In that cases

    billing document won't hit accounting document due to this missing data in master.In that cases,You can

    manually select required account assignment & save it.Now accounting document will be posted thru VF02.

    Account assignment group will be open for editing when revenue account is not menitoned in masters.

    Check with wiki content [Transaction Variant - A Step by Step Guide for Creation|]

    Add comment
    10|10000 characters needed characters exceeded