10-03-2008 6:14 AM
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,
10-03-2008 6:30 AM
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
10-03-2008 6:25 AM
Hi,
You can achieve this using field exit for the field AKONT. It will allow you to change the field.
Regards,
Prasana.
10-03-2008 6:27 AM
I think u have to use popup for displaying this error message. That will be beneficial.
10-03-2008 6:29 AM
10-03-2008 6:30 AM
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