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

User exits

Former Member
0 Likes
380

hi,

I want to create a User exit for

a transaction in FI.T_Code is F_02 and its standard Pgm is SAPMF05A.can u please tell me how can i find the exits for this transaction.if no exits is available can i create and how can i insert that particular

exit into the Pgm.

regards ,

gopan.g

2 REPLIES 2
Read only

Former Member
0 Likes
344

Hello,

I would suggest you to go for BADI,

Follow the below steps to find out what all BADI's are called when you press any button in any transaction.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Regs,

Venkat

Read only

Former Member
0 Likes
344

HI,

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen 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>

Example:

The program for transaction VA01 Create salesorder is SAPMV45A

If you search for CALL CUSTOMER-FUNCTION i program

SAPMV45A you will find ( Among other user exits):

CALL CUSTOMER-FUNCTION '003' 
  exporting 
    xvbak   = vbak 
    xvbuk   = vbuk 
    xkomk   = tkomk 
  importing 
    lvf_subrc = lvf_subrc 
  tables 
    xvbfa = xvbfa 
    xvbap = xvbap 
    xvbup = xvbup.

Suppose we want to see the available sales module user exits. Go to transaction SE81. Click on SD, then click "edit" on the menu bar and choose select subtree. Click on "information system," Open Environment node, customer exits, and enhancements. Press F8 to get all the user exits for that module.

In brief:

SE81->SD->Select subtree->Information System->Envir->Exit Techniques->Customers exits->enhancements->Execute(F8)

See the below thread, it is having a program copy and paste the program and execute that program, it will ask the Transaction code, if you execute this with the transaction this will give you all the Exits for that transaction ....

http://www.sapprofessionals.org/?q=program_to_find_user_exit_for_a_transaction

Regards

Sudheer