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: 

Error message in badi VENDOR_ADD_DATA

Former Member
0 Kudos
200

Hi ,

I've a requirement for adding custom fields to vendor master. I successfully added the screen and i'm able to save the data using the badi's 'VENDOR_ADD_DATA' and 'VENDOR_ADD_DATA_CS'. I've a check on some fields on this screen. I've to give an error message if expiration date is empty and license field has data. I did this in the method 'CHECK_ALL_DATA' of the badi 'VENDOR_ADD_DATA' by passing values into the message variables accessible in the method. Everything looks good, the error message is coming at the bottom but the screen is getting navigated to the 'Partner Functions'. I tried giving the screen group 'E_SCRGR' and tab fcode 'E_FCODE' variables. But didn't work. Can anyone help me how to stop the navigation and keep the user in the same screen?

-- Venky

1 REPLY 1

Former Member
0 Kudos
55

Hi,

I figured it out, i had to send the screen number to the E_DYNNR variable which is '4000'. I got that value by debugging. The code had a case statement on this variable and i tried some of the screen number and this one worked :).

-- Venky