cancel
Showing results for 
Search instead for 
Did you mean: 

How to put a check on the editing of line items in VA02

Former Member
0 Kudos

Hi All,

I have a requirement that i need to make the line items uneditable when the Billing block is blank in VA02 transaction.

I am searching for the relevant BADI implementations.

Can anyone please give me a quick solution on this.?

Your help will be appreciated........

Thanks in Advance,

Ramya

Accepted Solutions (0)

Answers (2)

Answers (2)

SmileZhang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ramya,

You could consider using userexit as suggested by the above person.

userexit_check_vbap(MV45AFZB)

However, USEREXIT_SAVE_DOCUMENT is not a proper one to use.

Please use USEREXIT_SAVE_DOCUMENT_PREPARE if you'd like.

Because USEREXIT_SAVE_DOCUMENT is called at form BELEG_SICHERN, before COMMIT which means that most of the work has already been done.

Using userexit_check_vbap would save time.

Regards,

Smile

Lakshmipathi
Active Contributor
0 Kudos

Dear Ramya

In two ways, you can achieve this.

- Go to VOV7, select your item category and untick the box "Business Item". If you do so, in sale order, you cannot make any changes at item level. Whatever flows at header level, that will be copied to item level and you cannot modify that.

- On the other hand, if this setting does not meets your requirement, you can try with User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT or User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAP

thanks

G. Lakshmipathi