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: 

Add an Object Authorization to a standard transaction

juancarlos_tena
Explorer
0 Kudos

Hello everybody,

I have to add an authorization to MB1C so that the user can't introduce a specific movement to a type of material and it can to other type of material.

I've not found some standard object what do it this. So I've created a new object, and in the user exit xxx validate the check, but when I should show the error, it shows "cancelled update" and I must go to SM13.

Are there another way to do this ? Any idea ?

Best regards

Paloma

2 REPLIES 2

juancarlos_tena
Explorer
0 Kudos

The User exit I use is : EXIT_SAPLMBMB_001 (MB_CF001)

Former Member
0 Kudos

Hi,

Exit EXIT_SAPLMBMB_001 is called in update task when saving the material doc. If you issue an error message here you will get an update error.

Try user exit EXIT_SAPMM07M_001 ( ZXMBCU02 ) in enahncement MBCF0002 . This will throw error on screen itself. You can also use MB_CHECK_LINE badi which has same functionality.

Cheers.