User-exist for material/batch deletion

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
GreenGreen
Posts: 699
Joined: Mon Jul 28, 2003 11:38 pm

User-exist for material/batch deletion

Post by GreenGreen » Wed May 08, 2019 2:48 am

Dear Experts,

In ECC 6.0, a material can be marked on deletion flag even the stock quantity > 0.

Regarding this, is there any user-exit, method/Class or BAPI that can be used with Tx code MM06 and MSC2N, so that when user try to delete the material at different level, system can check where stock exists and prompt error?

Thank you.

Green Green

Gothmog
Posts: 1954
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: User-exist for material/batch deletion

Post by Gothmog » Thu May 09, 2019 4:32 am

Doesn't look like there is one.
In MM06, you could implement enhancement point BUCHEN_01 (for enhancement spot ES_SAPMM03G).
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

GreenGreen
Posts: 699
Joined: Mon Jul 28, 2003 11:38 pm

Re: User-exist for material/batch deletion

Post by GreenGreen » Mon May 27, 2019 2:22 am

Dear Gothmog,

Thanks for your advise.

I tried to set break-point in BUCHEN_01 by SE20, but system not allow me to create Enhancement there.

Thanks & regards,

Green Green

Gothmog
Posts: 1954
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: User-exist for material/batch deletion

Post by Gothmog » Wed May 29, 2019 4:52 am

Strange - this enhancement spot is NOT set as SAP internal.

Try this way:
- go to module BUCHEN in include MM03GI00 in transaction SE80
- click on the Enhance button in the toolbar
- right-click on enhancement point BUCHEN_1, menu Enhancement operations/Create implementation

You should be able to add an implementation with your code.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

Post Reply