Customer Exit-Ways to find Function Module Exit
Function Module Exit:
The function module exit allows us to add our code to the SAP programs with the help of function modules.
Syntax:CALL CUSTOMER-FUNCTION 'Three digit number'.
The three digit number in the above syntax varies from 000 to 999.
Example: CALL CUSTOMER-FUNCTION '001'.
Ways to find a Function Module Exit:
1.Put the Break-point on the statement CALL CUSTOMER-FUNCTION.
2.Put the package name of the program in SMOD T-code(Utilities-find-package name)
3.Go to T-code SE84(Enhancements- Customer exits)
Example: Finding the Function Module exit to pass the default value to 'Sold-to-party' field in 'VA01' transaction
Way-1: Put the Break-point on the statement CALL CUSTOMER-FUNCTION.
1.Go to T-code 'VA01'.
2.Enter order type.(Eg:AA).
3.Enter '/h' in Command prompt and press 'Enter'.
4.Press 'Enter'.
5.In debugger click on 'Breakpoints' button in menu bar.
6.Click on 'Breakpoint at'.
7.Click on 'Breakpoint at statement'.
8.Enter 'CALL CUSTOMER-FUNCTION' .
9.Press 'Enter'.( Break points set)
10.Press 'F8'. 11.Click on 'program/include/line' icon.
12.New window will opened and double click on function module.
13.Click on 'Attributes' tab .(By reading the short description we can find the Correct Function Exit).
If it not the correct exit then go to debugger and continue press F8 to rigger next Customer Exit.Then follw the above two steps.
In our case the next Customer exit is 'CALL CUSTOMER-FUNCTION '002'.
Click on 'program/include/line' icon.New window will opened and double click on function module.m)Click on 'Attributes' tab .
Way-2:Put the package name of the program in SMOD T-code(Utilities-find-package name)
1.Go to t-code 'VA01'.
2.Click on 'System'.
3.click on status.
4.double click on program name.
5.click on Goto-'Attributes'.(Find the package 'VA').
6.Go to t-code 'SMOD'.
7.Click on 'utilities - find'.
8.enter package.
9.click on 'execute'.
10.Double click on 'customer exit'.
11.Function exit will be displayed if available.
Way-3: Go to T-code SE84(Enhancements- Customer exits)
1.Go to t-code se84.
2.Expand 'Enhancements'.
3.Expand 'Customer exits'.
4.Double click on 'Enhancements'.
5.Enter package 'VA'.
6.Click on 'Execute'.
7.Double click on 'customer exit'.
Available exits will be displayed.
Comments
Post a Comment