Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Userexit for deleting an item on a delivery note

Former Member
0 Kudos

Hi,

I'm looking for a userexit where I can add checks for users not to delete a item ofn a delivery note when it has a certain item catergory.

I can't find an exit on item level where I can stop the deletion. I did the same on sales orders and this was easy to find ... Can someone help me on this ?

thanks a lot!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

check the BADI

LE_SHP_DELIVERY_PROC

or

user exits.

*-----------------------------------------------------------------------
*        FORM-Routinen für Userexits
*-----------------------------------------------------------------------
         include mv50afzz.
         include mv50afz1.
         include mv50afz2.
         include mv50afz3.          "Userexit neu zu Release 3.0A
         include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)
         include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                               "n_693000
         include mv50afzp.          "Userexit for pricing screen input

.

Regards

Prabhu

4 REPLIES 4

Former Member
0 Kudos

check the BADI

LE_SHP_DELIVERY_PROC

or

user exits.

*-----------------------------------------------------------------------
*        FORM-Routinen für Userexits
*-----------------------------------------------------------------------
         include mv50afzz.
         include mv50afz1.
         include mv50afz2.
         include mv50afz3.          "Userexit neu zu Release 3.0A
         include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)
         include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                               "n_693000
         include mv50afzp.          "Userexit for pricing screen input

.

Regards

Prabhu

Former Member
0 Kudos

I've put a break on all exits in the MV50AFZ1 and when I delete a line it does not come into the coding. The other exits are also not called when deleting a line ...

Do you have an other idea ?

Thanks a lot;

Former Member
0 Kudos

Problem solved. Thanks a lot.

I used exit "userexit_save_document_prepare" and just before saving I check if the line that is marked for deletion (UPDKZ field = 'D') and then I do my check. If the line may not have been deleted I give a message and go back the the displaying of the delivery.

Thanks a lot!

former_member619377
Discoverer
0 Kudos

Please set this variable as xlips_loeschen_menge_0 = X, in any of the line item exits.