2007 Dec 31 8:31 AM
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.
2007 Dec 31 8:53 AM
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 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.
2007 Dec 31 8:39 AM
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.
2007 Dec 31 8:42 AM
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
2007 Dec 31 8:43 AM
Hi
Please check the below link.
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
Cheers,
Hakim
Mark all useful answers
2007 Dec 31 8:50 AM
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.
2007 Dec 31 8:53 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |