Application Development and Automation 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: 
Read only

Modification using User Exit...

Former Member
0 Likes
436

Hi ,

I am using an User exit RV61AFZB in the Transaction ME21N..

Now the requirment is , the "SAVE" button should be Disabled at some condition. (For example if the price is Greater than 500) .

So..Please let me know how to Disable the button..

Thank u.

2 REPLIES 2
Read only

Former Member
0 Likes
408

hi!!!!!!!!!!1

any business transaction, triggers a BADI on clicking some button on the application toolbar. You can read the fcode of that button in the relavant badi, and instead of disabling it, give user an error msg that "this functionality is diabaled". This is the alternate way if your business scenario allows this.

other way u do need a access key, contact ur basis team to obtain an access key, once u r done with that u need to write the condition 4 enabling n disabling.

reward if useful...

Read only

Former Member
0 Likes
408

Hi,

I am unsure if this program is active for MM - I have only used it from SD.

You need to use the existing forms to manipulate data - I have used FORM USEREXIT_XKOMV_BEWERTEN_END to manipulate the xkomv structure.

I am quite sure you can not disable the save button here, but it should be possible to check for SY-UCOMM = 'SICH' to identify that save was pressed and issue a message with E - disallowing saving ( when specific conditions are fulfilled )

- Ole