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

hi

Former Member
0 Likes
739

in module pool programming in a screen i have given textbox as mandatory but when i press exit button it ask to enter some value in textbox. how can i exit from screen without entering value in textbox.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
721

in module pool screen if any field is manditory for inputing data then it will ask for entering that value compulsarily, to avoid that then u need to create EXIT command module.

ie module <somename> AT EXIT-COMMAND.

HERE THE CODE WILL BE:-

module <somename> AT EXIT-COMMAND input.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE PROGRAM.

OR

LEAVE SCREEN.

etc

ENDCASE.

ENDMODULE.

NOTE : here for above function codes the function type must be 'E' will be given.

otherwise itdon't works.

in module pool programming in a screen i have given textbox as mandatory but when i press exit button it ask to enter some value in textbox. how can i exit from screen without entering value in textbox.

5 REPLIES 5
Read only

Former Member
0 Likes
721

Hi Ramya

try this.

*Reward pts if help.*

Deepanker

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.

The naming standard of function modules for functionmodule exits is:

EXIT_<program name><3 digit suffix>

The call to a functionmodule exit is implemented as:

CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

To find a Exit.

Goto Transaction -- Find The Package

SMOD >f4>Use the Package here to Find the Exits In the Package.

Else if you Want to search by Application Area wise ,

There is one more tab to find the Exits in the Respective Application Area.

Implementing the Exit-- CMOD Create ProjectsAssgn your Component .

Now Run ur Transaction to Check if it Triggers.

Thats it..

Suppose you need to find out all the user exits related to a tcode.

1. Execute the Tcode.

2. Open the SAP program.

3. Get the Development Class.

4. Execute Tcode SE84.

5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'

6. Enter the Development class and execute.

Reward pts if help.

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
721

Hi,

It is only if we required certain fields to be filled then we will set it as mandatory field. It is necesssary for the business logic to fill that mandatory field before proceeding to the next screen.

If at all if u want to proceed to next screen without filling it then dont make it as mandatory field. But be careful that it should not affect the business logic.

Regards

Vadivelan B

Read only

abdul_hakim
Active Contributor
0 Likes
721

Hi

Please check the below link.

http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

Cheers,

Hakim

Mark all useful answers

Read only

Former Member
0 Likes
721

Hi,

Set a default value to the screen field.

say,

if matnr is the screen field,

then,

for eg,

matnr type matnr value '100'.

so, the screen field (ie, box in the screen) will be 100 always (At the same time provide a search help to that field).

hope this helps.

Read only

Former Member
0 Likes
722

in module pool screen if any field is manditory for inputing data then it will ask for entering that value compulsarily, to avoid that then u need to create EXIT command module.

ie module <somename> AT EXIT-COMMAND.

HERE THE CODE WILL BE:-

module <somename> AT EXIT-COMMAND input.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE PROGRAM.

OR

LEAVE SCREEN.

etc

ENDCASE.

ENDMODULE.

NOTE : here for above function codes the function type must be 'E' will be given.

otherwise itdon't works.