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

Modify fields in ME21n

ankurgodre
SAP Mentor
SAP Mentor
0 Likes
771

Hello All,

I have a requirement where in I need to modify fields of me21n based on a condition:

if the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then all the conditions (From KOMV table) fileds & all the Pricing terms should be disabled for change/input i.e. should be in display mode.

I tried to search for an exit for this but could not find an appropriate one to modify screen fields however, the alternae to this requirement is :

If the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then on entry of the conditions(TABLE KOMV) fields and pricing terms user should get an error message so that he cannot proceed.

Please suggest me a solution for any of the above two requirements.

Any help on this would be highly appreciated.

BR

Ankur

Hello All,

I have a requirement where in I need to modify fields of me21n based on a condition:

if the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then all the conditions (From KOMV table) fileds & all the Pricing terms should be disabled for change/input i.e. should be in display mode.

I tried to search for an exit for this but could not find an appropriate one to modify screen fields however, the alternae to this requirement is :

If the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then on entry of the conditions(TABLE KOMV) fields and pricing terms user should get an error message so that he cannot proceed.

Please suggest me a solution for any of the above two requirements.

Any help on this would be highly appreciated.

BR

Ankur

2 REPLIES 2
Read only

Former Member
0 Likes
587

Hi,

Why dont you check with the enhancement project LO020 in CMOD.

Hope this would help you.

Or use the class CL_EXITHANDLER to find out the BADI used in ME21N for your requirement.

Regards,

Ranjith Nambiar

Read only

0 Likes
587

Hello Ranjith,

The project LO020 does not exists in CMOD (I'm on release 4.6C) ..

& I could not find appropriate BADI for the requirement.

Any other suggestion from you? or from any one else ??