cancel
Showing results for 
Search instead for 
Did you mean: 

VA02 user should not create another line item

Former Member
0 Kudos

Hi i am running scheduled job to create sales order from quotation.

in the change mode va02 i want to make user should not enter another line item.

i want to diable the empty lines .

Accepted Solutions (0)

Answers (2)

Answers (2)

ian_kehoe
Active Participant
0 Kudos

Hello Mahesh,

You could make the material number field (and/or the order quantity field) not open for input using USEREXIT_FIELD_MODIFICATION in MV45AFZZ.

This could be the solution you are looking for.

I hope this helps.

Best regards,

Ian Kehoe

Former Member
0 Kudos

hi all thanks ..i will try and let you know ..

sivaprasad_ml
Participant
0 Kudos

Hi Lan,

Thanks for the reply.. But how can we restict user from deleting items from table in VA02. What is the user exit that has to be enabled ??

Regards

Siva

Former Member
0 Kudos

yes it works by th way Ian said

Former Member
0 Kudos

I would suggest that (with the help of an ABAPer) you can use MV45AFZZ user exits (SAVE prepare routine) to remove all updates to internal table xvbap. xvbap internal table is used by SAP to store all sales order line items. This table has a flag updkz , which has to be reset so that no updates will actually be stored eventhough the user enters some line items.

Caution: whenever xvbap (current state) is modified, yvbap (previous state) internal table should also be populated. There is an OSS note for best practices of coding around xvbap /yvbap internal tables.