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

User Exit Issue

Former Member
0 Likes
712

Hi Experts,

I have one query in user exit. My requirement is prohibit the user to change the quantity in PO Change.

I wrote the logic in one user exit. Inside exit it is working as per my logic i.e. it will replace the value entered by user with the value maintained in standard table.

But when it comes out of the user exit again it will consider the value entered by user.

Can anybody will suggest me how I can achieve my requirement?

Thanks,

Neha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
673

hi,

i will suggest you u use BADI "ME_PROCESS_PO_CUST" or what to can do is replace the value which user have entered on screen in both the temp internal table(maybe *ekpo) in actualy table.

Atul

5 REPLIES 5
Read only

Former Member
0 Likes
673

Hi,

If your requirement is to restrict the user from changing the quantity, then why take chances, just make than field as not editable in some user exit.

Hope this will be helpful for you.

Regards

Karthik D

Read only

Former Member
0 Likes
673

Hi neha gupta,

In Which Exit did You code your logic and For which T-code I mean ME22 / ME22N. And paste the piece of code written by You which will help you to solve the issue.

And I agree with Karthik D, If SY-TCODE = ME22 / ME22N change that field to non editable Filed.

Regards,

Suneel G

Read only

Former Member
0 Likes
674

hi,

i will suggest you u use BADI "ME_PROCESS_PO_CUST" or what to can do is replace the value which user have entered on screen in both the temp internal table(maybe *ekpo) in actualy table.

Atul

Read only

0 Likes
673

Hi All,

Actually there is no screen exit is available for ME21N / ME22N tcode. So, I am doing changes in exit EXIT_SAPLMEKO_002. I guess we can't make the field uneditable using function module exit.

Let me suggest.

As per Atul's suggestion I did the same means I replaced the value entered by user with value maintained in database.

Under user exit the logic is working fine but when it comes out of the exit again it will consider the value entered by user.

Please suggest.

Thanks,

Neha

Read only

0 Likes
673

Hi,

try BADI..that's the way forward.. anyway

i have checked the exit which you using there is no export or changing parameter for ekpo...so it will not change any values.

you have to fine the correct exit or use dynamic value change code.

Atul