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: 

BADI for FK01

former_member1349771
Participant
0 Kudos

Guru's

I wish to restrict my user that as soon as he enter country other than IN i.e india he cannot select Rec. Account as '1000000'.

I hav implemented BADI with defination name VENDOR_ADD_DATA

& in that Method PRESET_VALUES_CCODE

the is as

if I_LFA1-land1 <> 'IN'.

if E_LFB1-AKONT = '1000000'..

MESSAGE 'Wrong No. Enter' type 'E'.

endif.

endif.

But my problem is that the whole screen converts into grey field.Please suggest some other defination name so only error msg is displayed.

Regards,

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

Similar code you just try in EXIT_SAPMF02K_001.reason BADi sometimes not support enough message type E due to message severity.

Edited by: Ámit Güjärgoüd on Oct 3, 2008 8:59 AM

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can achieve this using field exit for the field AKONT. It will allow you to change the field.

Regards,

Prasana.

Former Member
0 Kudos

I think u have to use popup for displaying this error message. That will be beneficial.

0 Kudos

please explain

former_member181995
Active Contributor
0 Kudos

Similar code you just try in EXIT_SAPMF02K_001.reason BADi sometimes not support enough message type E due to message severity.

Edited by: Ámit Güjärgoüd on Oct 3, 2008 8:59 AM