user exits

59
CUSTOMER EXITS Bonus material for 201 ABAP Interview questions http://www.201interviewquestions.com/books/abap.htm Material Code : BM01 Author : P.Renjith Kumar Genie Press

Upload: subhashkaridhal

Post on 21-May-2015

3.115 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: User Exits

CUSTOMER EXITS

Bonus material for 201 ABAP Interview questionshttp://www.201interviewquestions.com/books/abap.htm

Material Code : BM01

Author : P.Renjith Kumar Genie Press

Page 2: User Exits

Different types of Customer exits

The main customer exits are

• Function Module exits

• Screen exits

• Menu exits

• Field exits

Page 3: User Exits

Purpose of Exits

Function Module Exits

• Generally for making the validation in the standard transaction code field(s)

Screen Exits

• For adding the sub-screen in the standard transaction code

Menu exits

• To enable or disable the menu-bar in standard transaction code

Field exits

• To validate a particular screen field in standard transaction code

Page 4: User Exits

Dummy Project

Transaction code CO11N.

Requirements

• Add a new sub-screen to give the provision to user for entering the HR data and save in standard table to show the information in COOIS standard transaction code.

• Validate the field Execution start date should not be more than 1 week from today’s date.

Page 5: User Exits

CO11N Standard Screen

Page 6: User Exits

Required Screen

Page 7: User Exits

Searching the Function Exits

• First take the program name of the standard transaction code.

• Now come to se38 and give that name to check package

Page 8: User Exits
Page 9: User Exits
Page 10: User Exits

STEP ITcode SMOD

Page 11: User Exits

STEP II

Page 12: User Exits

STEP III

Page 13: User Exits

Dbl click

Page 14: User Exits

STEP IV

Page 15: User Exits

Dbl click

STEP V

Page 16: User Exits

Dbl click STEP VI

Page 17: User Exits

STEP VII

Page 18: User Exits
Page 19: User Exits

ANOTHER WAY TO FIND FUNCTION MODULE EXITS

• Go to se38 and give the program name and click the menu utilities find in source code

• Now give Call customer in the search string

• And process as next slide

Page 20: User Exits
Page 21: User Exits
Page 22: User Exits

Press Enter

Page 23: User Exits

Dbl click

Required Screen

Page 24: User Exits

Dbl Click

Required Screen

Page 25: User Exits
Page 26: User Exits

• Now come to SMOD and proceed as

STEP I and STEP II

Page 27: User Exits
Page 28: User Exits
Page 29: User Exits

HOW TO FIND SCREEN EXIT

• Proceed as mentioned in STEP I and

STEP II

Page 30: User Exits
Page 31: User Exits
Page 32: User Exits

Process flow

• Do as per STEP IV

Page 33: User Exits

Dbl click

Page 34: User Exits

Click

Here

Page 35: User Exits
Page 36: User Exits

CMOD

Page 37: User Exits
Page 38: User Exits
Page 39: User Exits
Page 40: User Exits
Page 41: User Exits

Field exits

• Go to transaction code RZ10 and check in instance profile whether abap/fieldexit parameter value is yes or not.

• Now go to standard transaction code and take the data element , screen name and screen no

• Now come to se38 run the program RSMODPRF.

Page 42: User Exits

STEP ITransaction code

RZ10

Click

Page 43: User Exits
Page 44: User Exits

STEP IIPress Display Or

Change

Page 45: User Exits

Check the parameter value

If it is not there create the new parameter

Page 46: User Exits

Press

Page 47: User Exits

Now come back and save the profile

• Now go to standard transaction code and take the data

element, screen name and screen no

• Here the standard transaction code is CS03

Page 48: User Exits
Page 49: User Exits

Press Execute

Page 50: User Exits

Execute

Page 51: User Exits

Press create to create your function module and

activate

Page 52: User Exits

Now again come to se38 initial screen and run RSMODPRFand execute it in the selection screen don’t define any data element

Page 53: User Exits

Execute

Page 54: User Exits
Page 55: User Exits
Page 56: User Exits
Page 57: User Exits
Page 58: User Exits

Caution and conclusion

• There is a chance that any customer exit is associated with several number of standard transaction code. So if any transaction code is not satisfying your requirement deactivate the enhancement and proceed for the next search

• It is a very sensitive programming area so it is necessary for every programmer to take care of that by which conflicts between standard and customization can be avoided

Page 59: User Exits

THANK YOU