cancel
Showing results for 
Search instead for 
Did you mean: 

Disallow changes in Invoice through T-Code VF02

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187989
Active Contributor
0 Kudos

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|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]

Former Member
0 Kudos

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).

Regards

Ruy Castro

Former Member
0 Kudos

Thanks Mr. Ruy Castro

I am not talking about changes in Sales Order through VA02, I am worried about the billing documents wherein 'Acount Assignment group' field is available open for any change, anybody can go and modify through VF02. I want to disallow user to make change in the Billing Document through VF02.

Former Member
0 Kudos

Hi,

Logically that field should not be grey

but if you want you need to do development

take the help of ABAper he will do screen changes for that field but

make sure that you are maintaing account assingment in material master without fail.

otherwise if you are not maintained , then at the time of account posting you will get error and that time you will not able to do any changes

inspite of cancelling the invoice

Regards,

Rahul

Former Member
0 Kudos

Hi,

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

Thanks

Mukund S