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: 

EXIT-COMMAND in BADI

Former Member
0 Kudos

Hi All,

I am working with BADI ME_GUI_PO_CUST. I implemented a customer screen for customer fields. Everything is working fine but problem is that on some conditions some fields become required. Now i want to avoid this check " Fill in entry in required fields ". Actually i create a button with function code 'E' and fill data in these fields with some given value(e.g. from warranty master i want to populate all data in these fields so i create a button with exit-command for this purpose). But when i press this button, it gives me meassage " Fill in entry in required fields ". bcoz some fields are already required. I want to avoid this mesaage & fill all fields according to warranty master. When i press this button, it did not go in this screen so EXIT-COMMAND does not execute & it still gives me message " Fill in entry in required fields ".

Anybody have idea how to work with EXIT-COMMAND in BADI or customer-exit?

2 REPLIES 2

Former Member
0 Kudos

Hi

Exit command is used to come out of any kind of loop like:

loop...endloop or

Do...enddo... or

While...endwhile.

You can use them in BADI or userexit.

Regards,

Sankar

0 Kudos

Hi Sankar,

I am here talking about at EXIT-COMMAND module at screen-level not simple EXIT command.