Application Development 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: 

relation between: EXIT_SAPMM06E_018 and ZXM06U40 and LXM06F40

former_member699400
Active Participant
0 Kudos
589

Hi!

I have created Z project with enhancement MM06E005 and have created ZX includes also.

As I understand, LX includes are need to be implemented as well.

Once I have seen Z project with LX includes implemented and I need to do the same in my Z project and I have no idea how to do it.

For example: FM EXIT_SAPMM06E_018 has custom include ZXM06U40.

How this FM is related to include LXM06F40?

As I understand LXM06F40 is a standart include, so it has to be implemented already, but it is not... why?

Will reward,

Mindaugas

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos
152

Hi,

Sorry ... I was mistakenly identified with LXM06U40 instead of LXM06F40.

Also I checked in my systems ECC 5.0 and SAP 4.7, include LXM06F40 does not exits. Which SAP version are you using? It seems include program LXM06F40 is not related to FM EXIT_SAPMM06E_018 (I could be wrong).

Regards,

Ferry Lianto

8 REPLIES 8

ferry_lianto
Active Contributor
0 Kudos
152

Hi,

FM EXIT_SAPMM06E_018 (include program LXM06F40) is part of function pool SAPLXM06 where you can find under include LXM06UXX (function library). Include LXM06F40 is part of include program LXM06UXX.

Regards,

Ferry Lianto

0 Kudos
152

thanks, but it seems that LXM06F40 is not part of LXM06UXX, because I can not find it in the code of LXM06UXX....

"where used" functionality is not helping as well, because it sais that this include was not found in programs.

The main thing confusing me is that in one SAP system I can find this include via SE38, but in our SAP system it is not egzisting, so it is strange, because it is standart object, so it has to be implemented already, or I mix something?

M.

Former Member
0 Kudos
152

ust check with Function module attributes ,here you can able to see Include name :LXM06U40

This include is starting with L* ,so you can't modify that one,

basically that include needs for data decalration,

you can use ZXM06U40 include -> here you can write the code as well you can declare variable

Just simple flow about Function Module :

Function group - it is collection of Function module ( would be like SAPLzfg99)

Function module - when you create FM at SE37 ,you need to assign function group to function module

See under Function pool : SAPLXM06 ,Includes ,here XM06 is the function group,when you see like SAPLXM06 then it becomes function pool

*******************************************************************

  • System-defined Include-files. *

*******************************************************************

INCLUDE LXM06TOP. " Global Data

INCLUDE LXM06UXX. " Function Modules

*******************************************************************

INCLUDE LXM06F00. " SAP-Formpool for Customer-Use

INCLUDE ZXM06ZZZ. " Subprograms and Modules

so do not use inclues other than ZX*

Thanks

Seshu

ferry_lianto
Active Contributor
0 Kudos
153

Hi,

Sorry ... I was mistakenly identified with LXM06U40 instead of LXM06F40.

Also I checked in my systems ECC 5.0 and SAP 4.7, include LXM06F40 does not exits. Which SAP version are you using? It seems include program LXM06F40 is not related to FM EXIT_SAPMM06E_018 (I could be wrong).

Regards,

Ferry Lianto

0 Kudos
152

my system is SAP ECC 6.0

and the system that has this LXM06F40 include is R/3 Release 4.6C

My task is to transfer enhancement from Release 4.6C to SAP ECC 6.0, and this enhancement is using LXM06F40, that is why I would like to have this include in SAP ECC 6.0, but as I see situation is not so simple...

M.

0 Kudos
152

I don't think it matters. Go to your user exit include and see if there any PERFORM statements in there that take you to this LXM06F40. If there are then all you need to do is to first create the ZXM06U40 include, then copy the code from 46c to your ECC 6.0 and then double click on one of the PERFORM statements. It should pop-up telling that it doesn't exist and if you want to create it. Say 'Yes', then it should pop-up another window asking you to choose where to place the new subroutine. Choose new include and system creates a new include in your main program. You can then go to your 46C system, copy all the contents of LXM06F40 to this new include and you should be good to go.

Check the attributes of LXM06F40, it should be one of your IDs.

0 Kudos
152

What ever i mentioned in previous reply,that is in 4.6C Version.

You can write the code in include ZXM06U40 - Nothing worry about function module includes ,anyway you don't use those and all.

Thanks

Seshu

ferry_lianto
Active Contributor
0 Kudos
152

Hi,

I would suggest to send note to SAP and ask them to confirm whether include

LXM06F40 is needed or required in ECC 6.0 since you are doing the enhancement transfer from 4.6C to ECC 6.0.

I am afraid these include was part of the old day enhacement of MM06E005 (check OSS Note 407975). That's why does not exist anymore in both SAP 4.7 and ECC 5.0.

Regards,

Ferry Lianto