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

Activating only one function-exit in a multiple function-exit in CMOD

Former Member
0 Likes
1,754

Dear All,

I am using customer-exit for doing validation in PO during saving. I am using EXIT EXIT_SAPMM06E_012 under enhancement

MM06E005. The code is working fine. The problem is that when I am activating the screen all the components under that enhancements are getting activated. There are 10 function-exits, 6 screen-exits and 2 incude tables. I have not added any new screen or done custom include. I only want to activate EXIT_SAPMM06E_012, rest I want to deactivate. It is giving a dump in production server when we are trying to create a contract as it is looking for a screen 0211 which we have not created.

Regards

D. Mallick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,264

am using customer-exit for doing validation in PO during saving. I am using EXIT EXIT_SAPMM06E_012 under enhancement

MM06E005. The code is working fine. The problem is that when I am activating the screen all the components under that enhancements are getting activated. There are 10 function-exits, 6 screen-exits and 2 incude tables. I have not added any new screen or done custom include. I only want to activate EXIT_SAPMM06E_012, rest I want to deactivate. It is giving a dump in production server when we are trying to create a contract as it is looking for a screen 0211 which we have not created.

HI ,

You can activate only one function exit EXIT_SAPMM06E_012, But you must and should create below empty screen and active Using SE51.

SAPLXM06 0101

SAPLXM06 0111

SAPLXM06 0201

SAPLXM06 0211

SAPLXM06 0301

SAPLXM06 0311

Thanks & Regards

Sudheer Madisetty

7 REPLIES 7
Read only

Former Member
0 Likes
1,265

am using customer-exit for doing validation in PO during saving. I am using EXIT EXIT_SAPMM06E_012 under enhancement

MM06E005. The code is working fine. The problem is that when I am activating the screen all the components under that enhancements are getting activated. There are 10 function-exits, 6 screen-exits and 2 incude tables. I have not added any new screen or done custom include. I only want to activate EXIT_SAPMM06E_012, rest I want to deactivate. It is giving a dump in production server when we are trying to create a contract as it is looking for a screen 0211 which we have not created.

HI ,

You can activate only one function exit EXIT_SAPMM06E_012, But you must and should create below empty screen and active Using SE51.

SAPLXM06 0101

SAPLXM06 0111

SAPLXM06 0201

SAPLXM06 0211

SAPLXM06 0301

SAPLXM06 0311

Thanks & Regards

Sudheer Madisetty

Read only

Former Member
0 Likes
1,264

Hi,

Check Sap note also

Note 563022 - ME21N: Runtime error 'DYNPRO_NOT_FOUND'

Thanks & Regards

Sudheer Madisetty

Read only

MarcinPciak
Active Contributor
0 Likes
1,264

Activating one of enhancement's component affects all these components within that enhancement. You can't activate just part of it. You just don't implement those unecessary, hence there will be no coding executed once they are called at certain point.

As for the error. Try to identify the function exit which raises that error. Then go to its function group and ensure the called screen is there. If not try to create new one (don't know exactly if you will be able to do so as it is an SAP namespace).

Strange is that you don't get this error DEV but in PROD. Like some part of FG is not send correctly.

Regards

Marcin

Read only

Former Member
0 Likes
1,264

Dear All,

With the help of Basis Team, I managed to find the error. If you see the documentation for enhancement MM06E005, it says

If you use the enhancement, you must create and generate the following

dynpros *(even if the dynpros are not going to be used):* .

In my case, I only needed to write code in EXIT_SAPMM06E_005 for validation in PO when you press check button. In a customer exit you cannot activate individual component , so you have to activate all of them or none. My issue got resolved by creating all the subscreens ( although I didn't need them for my development ). Once the subscreens ( 101, 201, 301, 111, 211, 311 ) got created and generated the error 'DYNPRO NOT FOUND' got resolved. Also make sure to put the screen attributes as subscreen.

Otherwise you will get a dump. Normally when you create a screen, a normal screen gets generated.

Thanks a lot.

Regards

Debopriyo Mallick

Read only

0 Likes
1,264

Debopriyo, thanks for the feedback! Don't forget to close the thread.

Read only

0 Likes
1,264

Hi,

had the same issue & solved with creating sub-screens.

thanks a lot for posting this thread.

Please mark this as solved.

Regards

Waruna Nadeep

Read only

Former Member
0 Likes
1,264

The issue is closed. Thank you all of you for your support and cooperation

Edited by: DEBOPRIYO MALLICK on Oct 15, 2010 7:37 AM