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

FM Exit

Former Member
0 Likes
1,157

Hi all,

For eg: there is an FM exit: EXIT_SAPMM06E_006.

This gets triggered whenever i go to transaction ME21N (PO Creation).

But when i go to the main program (SAPLMEGUI) of ME21n through system--> Status.

When i go inside this pgm and press find to get the FM EXIT_SAPMM06E_006, it says no such string available.

Can anybody through a light by how, an FM exit gets called in a standard SAP pgm and how to find it.

Regards,

JLN

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,039

Hi,

Please check the include "LMEGUICIX". In this prg, routine call for "CUSTSCR1_HEAD_SET_DATA_PBO" exists. In this routine,you can find Function call for "EXIT_SAPMM06E_006".

For doin this, if you know the FM then goto SE37->check out for where used list & check if there is any relationship with your program.

Regards,

Dharitree

Hi all,

For eg: there is an FM exit: EXIT_SAPMM06E_006.

This gets triggered whenever i go to transaction ME21N (PO Creation).

But when i go to the main program (SAPLMEGUI) of ME21n through system--> Status.

When i go inside this pgm and press find to get the FM EXIT_SAPMM06E_006, it says no such string available.

Can anybody through a light by how, an FM exit gets called in a standard SAP pgm and how to find it.

Regards,

JLN

6 REPLIES 6
Read only

Former Member
0 Likes
1,039

Please check include: MM06EF0C_CUSTSCR1_HEAD_SET_D04. Line No: 39.

Also note that all exits need not be hardcoded in the programs.

Kind Regards

Eswar

Read only

Former Member
0 Likes
1,039

If you have the exit fm's name, you can do a where used list in se37 and trace backwards.

the customer exits function modules are called using the following syntax.

call customer-function '<number>'

Regards,

ravi

Read only

Former Member
0 Likes
1,039

Hi,

The exit you are searching is available in transaction ME21 in the include mentioned in the above post. I'm not sure if it is called from ME21n as it is Enjoy transaction.

Hope this helps.

Read only

Former Member
0 Likes
1,040

Hi,

Please check the include "LMEGUICIX". In this prg, routine call for "CUSTSCR1_HEAD_SET_DATA_PBO" exists. In this routine,you can find Function call for "EXIT_SAPMM06E_006".

For doin this, if you know the FM then goto SE37->check out for where used list & check if there is any relationship with your program.

Regards,

Dharitree

Read only

Former Member
0 Likes
1,039

Hi lakshminarayan,

1. FM EXIT_SAPMM06E_006, it says no such string available.

Yes, u are right !

2. It won't be available.

3. Such FMS (of exit) are not called directly.

4. Instead they are called in this fashion.

CALL CUSTOMER-FUNCTION '006'

5. This is a special ABAP syntax.

6. It does the following things :

a) It searches for the FM

with the following name

EXIT_ + PROGRAMNAME + _006

b) then it checks whether the enhancement is active or not.

c) If yes, then it automatically calls the related FM.

(EXIT_SAPMM06E_006 in your case)

7. This is how the customer-exits (FM exits) work.

regards,

amit m.

Read only

Former Member
0 Likes
1,039

To find Function Module Exit in any Standard program Find it By CALL CUSTOMER-FUNCTION in search item AND it will display all FM Exit and then look out for ur Exit.